From dacf760077d4d6e31541c534a306cfad67cfb9b1 Mon Sep 17 00:00:00 2001 From: Tyler Carson Date: Tue, 23 Jun 2026 14:55:31 -0700 Subject: [PATCH] Strip verify() and delimited functions from proto.js output --- keeperapi/package.json | 2 +- keeperapi/src/proto.d.ts | 23424 ------------ keeperapi/src/proto.js | 74230 +++---------------------------------- 3 files changed, 5872 insertions(+), 91784 deletions(-) diff --git a/keeperapi/package.json b/keeperapi/package.json index 4013e5cd..4a44b8a0 100644 --- a/keeperapi/package.json +++ b/keeperapi/package.json @@ -16,7 +16,7 @@ "scripts": { "start": "rollup -cw", "build": "node ./scripts/cleanDistFolder.js && rollup -c && cp src/proto.d.ts dist", - "update-proto:es6": "pbjs -t static-module --force-number -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 ../../keeperapp-protobuf/remove.proto && pbts -o src/proto.d.ts src/proto.js", + "update-proto:es6": "pbjs -t static-module --force-number --no-verify --no-delimited -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 ../../keeperapp-protobuf/remove.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 ../../keeperapp-protobuf/remove.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 ../../keeperapp-protobuf/remove.proto | pbts -o src/proto.d.ts -", "format": "prettier --write .", "format:check": "prettier --check .", diff --git a/keeperapi/src/proto.d.ts b/keeperapi/src/proto.d.ts index 31949811..9f07bc5c 100644 --- a/keeperapi/src/proto.d.ts +++ b/keeperapi/src/proto.d.ts @@ -151,14 +151,6 @@ export namespace Authentication { */ public static encode(message: Authentication.IQrcMessageKey, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified QrcMessageKey message, length delimited. Does not implicitly {@link Authentication.QrcMessageKey.verify|verify} messages. - * @param message QrcMessageKey message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Authentication.IQrcMessageKey, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a QrcMessageKey message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -169,22 +161,6 @@ export namespace Authentication { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.QrcMessageKey; - /** - * Decodes a QrcMessageKey message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns QrcMessageKey - * @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)): Authentication.QrcMessageKey; - - /** - * Verifies a QrcMessageKey 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 QrcMessageKey message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -290,14 +266,6 @@ export namespace Authentication { */ public static encode(message: Authentication.IApiRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified ApiRequest message, length delimited. Does not implicitly {@link Authentication.ApiRequest.verify|verify} messages. - * @param message ApiRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Authentication.IApiRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes an ApiRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -308,22 +276,6 @@ export namespace Authentication { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.ApiRequest; - /** - * Decodes an ApiRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ApiRequest - * @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)): Authentication.ApiRequest; - - /** - * Verifies an ApiRequest 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 ApiRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -405,14 +357,6 @@ export namespace Authentication { */ public static encode(message: Authentication.IApiRequestPayload, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified ApiRequestPayload message, length delimited. Does not implicitly {@link Authentication.ApiRequestPayload.verify|verify} messages. - * @param message ApiRequestPayload message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Authentication.IApiRequestPayload, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes an ApiRequestPayload message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -423,22 +367,6 @@ export namespace Authentication { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.ApiRequestPayload; - /** - * Decodes an ApiRequestPayload message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ApiRequestPayload - * @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)): Authentication.ApiRequestPayload; - - /** - * Verifies an ApiRequestPayload 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 ApiRequestPayload message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -508,14 +436,6 @@ export namespace Authentication { */ public static encode(message: Authentication.ITransform, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified Transform message, length delimited. Does not implicitly {@link Authentication.Transform.verify|verify} messages. - * @param message Transform message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Authentication.ITransform, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a Transform message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -526,22 +446,6 @@ export namespace Authentication { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.Transform; - /** - * Decodes a Transform message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Transform - * @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)): Authentication.Transform; - - /** - * Verifies a Transform 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 Transform message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -629,14 +533,6 @@ export namespace Authentication { */ public static encode(message: Authentication.IDeviceRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified DeviceRequest message, length delimited. Does not implicitly {@link Authentication.DeviceRequest.verify|verify} messages. - * @param message DeviceRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Authentication.IDeviceRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a DeviceRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -647,22 +543,6 @@ export namespace Authentication { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.DeviceRequest; - /** - * Decodes a DeviceRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns DeviceRequest - * @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)): Authentication.DeviceRequest; - - /** - * Verifies a DeviceRequest 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 DeviceRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -738,14 +618,6 @@ export namespace Authentication { */ public static encode(message: Authentication.IAuthRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified AuthRequest message, length delimited. Does not implicitly {@link Authentication.AuthRequest.verify|verify} messages. - * @param message AuthRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Authentication.IAuthRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes an AuthRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -756,22 +628,6 @@ export namespace Authentication { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.AuthRequest; - /** - * Decodes an AuthRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns AuthRequest - * @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)): Authentication.AuthRequest; - - /** - * Verifies an AuthRequest 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 AuthRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -865,14 +721,6 @@ export namespace Authentication { */ public static encode(message: Authentication.INewUserMinimumParams, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified NewUserMinimumParams message, length delimited. Does not implicitly {@link Authentication.NewUserMinimumParams.verify|verify} messages. - * @param message NewUserMinimumParams message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Authentication.INewUserMinimumParams, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a NewUserMinimumParams message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -883,22 +731,6 @@ export namespace Authentication { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.NewUserMinimumParams; - /** - * Decodes a NewUserMinimumParams message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns NewUserMinimumParams - * @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)): Authentication.NewUserMinimumParams; - - /** - * Verifies a NewUserMinimumParams 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 NewUserMinimumParams message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -974,14 +806,6 @@ export namespace Authentication { */ public static encode(message: Authentication.IPreLoginRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified PreLoginRequest message, length delimited. Does not implicitly {@link Authentication.PreLoginRequest.verify|verify} messages. - * @param message PreLoginRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Authentication.IPreLoginRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a PreLoginRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -992,22 +816,6 @@ export namespace Authentication { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.PreLoginRequest; - /** - * Decodes a PreLoginRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns PreLoginRequest - * @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)): Authentication.PreLoginRequest; - - /** - * Verifies a PreLoginRequest 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 PreLoginRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -1113,14 +921,6 @@ export namespace Authentication { */ public static encode(message: Authentication.ILoginRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified LoginRequest message, length delimited. Does not implicitly {@link Authentication.LoginRequest.verify|verify} messages. - * @param message LoginRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Authentication.ILoginRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a LoginRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -1131,22 +931,6 @@ export namespace Authentication { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.LoginRequest; - /** - * Decodes a LoginRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns LoginRequest - * @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)): Authentication.LoginRequest; - - /** - * Verifies a LoginRequest 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 LoginRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -1216,14 +1000,6 @@ export namespace Authentication { */ public static encode(message: Authentication.IDeviceResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified DeviceResponse message, length delimited. Does not implicitly {@link Authentication.DeviceResponse.verify|verify} messages. - * @param message DeviceResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Authentication.IDeviceResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a DeviceResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -1234,22 +1010,6 @@ export namespace Authentication { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.DeviceResponse; - /** - * Decodes a DeviceResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns DeviceResponse - * @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)): Authentication.DeviceResponse; - - /** - * Verifies a DeviceResponse 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 DeviceResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -1337,14 +1097,6 @@ export namespace Authentication { */ public static encode(message: Authentication.ISalt, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified Salt message, length delimited. Does not implicitly {@link Authentication.Salt.verify|verify} messages. - * @param message Salt message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Authentication.ISalt, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a Salt message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -1355,22 +1107,6 @@ export namespace Authentication { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.Salt; - /** - * Decodes a Salt message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Salt - * @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)): Authentication.Salt; - - /** - * Verifies a Salt 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 Salt message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -1434,14 +1170,6 @@ export namespace Authentication { */ public static encode(message: Authentication.ITwoFactorChannel, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified TwoFactorChannel message, length delimited. Does not implicitly {@link Authentication.TwoFactorChannel.verify|verify} messages. - * @param message TwoFactorChannel message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Authentication.ITwoFactorChannel, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a TwoFactorChannel message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -1452,22 +1180,6 @@ export namespace Authentication { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.TwoFactorChannel; - /** - * Decodes a TwoFactorChannel message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns TwoFactorChannel - * @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)): Authentication.TwoFactorChannel; - - /** - * Verifies a TwoFactorChannel 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 TwoFactorChannel message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -1648,14 +1360,6 @@ export namespace Authentication { */ public static encode(message: Authentication.IStartLoginRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified StartLoginRequest message, length delimited. Does not implicitly {@link Authentication.StartLoginRequest.verify|verify} messages. - * @param message StartLoginRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Authentication.IStartLoginRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a StartLoginRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -1666,22 +1370,6 @@ export namespace Authentication { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.StartLoginRequest; - /** - * Decodes a StartLoginRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns StartLoginRequest - * @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)): Authentication.StartLoginRequest; - - /** - * Verifies a StartLoginRequest 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 StartLoginRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -1781,14 +1469,6 @@ export namespace Authentication { */ public static encode(message: Authentication.IKeysInfo, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified KeysInfo message, length delimited. Does not implicitly {@link Authentication.KeysInfo.verify|verify} messages. - * @param message KeysInfo message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Authentication.IKeysInfo, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a KeysInfo message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -1799,22 +1479,6 @@ export namespace Authentication { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.KeysInfo; - /** - * Decodes a KeysInfo message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns KeysInfo - * @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)): Authentication.KeysInfo; - - /** - * Verifies a KeysInfo 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 KeysInfo message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -1980,14 +1644,6 @@ export namespace Authentication { */ public static encode(message: Authentication.ILoginResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified LoginResponse message, length delimited. Does not implicitly {@link Authentication.LoginResponse.verify|verify} messages. - * @param message LoginResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Authentication.ILoginResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a LoginResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -1998,22 +1654,6 @@ export namespace Authentication { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.LoginResponse; - /** - * Decodes a LoginResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns LoginResponse - * @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)): Authentication.LoginResponse; - - /** - * Verifies a LoginResponse 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 LoginResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -2101,14 +1741,6 @@ export namespace Authentication { */ public static encode(message: Authentication.ISwitchListElement, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified SwitchListElement message, length delimited. Does not implicitly {@link Authentication.SwitchListElement.verify|verify} messages. - * @param message SwitchListElement message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Authentication.ISwitchListElement, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a SwitchListElement message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -2119,22 +1751,6 @@ export namespace Authentication { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.SwitchListElement; - /** - * Decodes a SwitchListElement message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SwitchListElement - * @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)): Authentication.SwitchListElement; - - /** - * Verifies a SwitchListElement 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 SwitchListElement message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -2198,14 +1814,6 @@ export namespace Authentication { */ public static encode(message: Authentication.ISwitchListResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified SwitchListResponse message, length delimited. Does not implicitly {@link Authentication.SwitchListResponse.verify|verify} messages. - * @param message SwitchListResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Authentication.ISwitchListResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a SwitchListResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -2216,22 +1824,6 @@ export namespace Authentication { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.SwitchListResponse; - /** - * Decodes a SwitchListResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SwitchListResponse - * @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)): Authentication.SwitchListResponse; - - /** - * Verifies a SwitchListResponse 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 SwitchListResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -2325,14 +1917,6 @@ export namespace Authentication { */ public static encode(message: Authentication.ISsoUserInfo, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified SsoUserInfo message, length delimited. Does not implicitly {@link Authentication.SsoUserInfo.verify|verify} messages. - * @param message SsoUserInfo message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Authentication.ISsoUserInfo, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a SsoUserInfo message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -2343,22 +1927,6 @@ export namespace Authentication { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.SsoUserInfo; - /** - * Decodes a SsoUserInfo message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SsoUserInfo - * @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)): Authentication.SsoUserInfo; - - /** - * Verifies a SsoUserInfo 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 SsoUserInfo message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -2440,14 +2008,6 @@ export namespace Authentication { */ public static encode(message: Authentication.IPreLoginResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified PreLoginResponse message, length delimited. Does not implicitly {@link Authentication.PreLoginResponse.verify|verify} messages. - * @param message PreLoginResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Authentication.IPreLoginResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a PreLoginResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -2458,22 +2018,6 @@ export namespace Authentication { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.PreLoginResponse; - /** - * Decodes a PreLoginResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns PreLoginResponse - * @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)): Authentication.PreLoginResponse; - - /** - * Verifies a PreLoginResponse 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 PreLoginResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -2537,14 +2081,6 @@ export namespace Authentication { */ public static encode(message: Authentication.ILoginAsUserRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified LoginAsUserRequest message, length delimited. Does not implicitly {@link Authentication.LoginAsUserRequest.verify|verify} messages. - * @param message LoginAsUserRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Authentication.ILoginAsUserRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a LoginAsUserRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -2555,22 +2091,6 @@ export namespace Authentication { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.LoginAsUserRequest; - /** - * Decodes a LoginAsUserRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns LoginAsUserRequest - * @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)): Authentication.LoginAsUserRequest; - - /** - * Verifies a LoginAsUserRequest 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 LoginAsUserRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -2640,14 +2160,6 @@ export namespace Authentication { */ public static encode(message: Authentication.ILoginAsUserResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified LoginAsUserResponse message, length delimited. Does not implicitly {@link Authentication.LoginAsUserResponse.verify|verify} messages. - * @param message LoginAsUserResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Authentication.ILoginAsUserResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a LoginAsUserResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -2658,22 +2170,6 @@ export namespace Authentication { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.LoginAsUserResponse; - /** - * Decodes a LoginAsUserResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns LoginAsUserResponse - * @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)): Authentication.LoginAsUserResponse; - - /** - * Verifies a LoginAsUserResponse 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 LoginAsUserResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -2755,14 +2251,6 @@ export namespace Authentication { */ public static encode(message: Authentication.IValidateAuthHashRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified ValidateAuthHashRequest message, length delimited. Does not implicitly {@link Authentication.ValidateAuthHashRequest.verify|verify} messages. - * @param message ValidateAuthHashRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Authentication.IValidateAuthHashRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a ValidateAuthHashRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -2773,22 +2261,6 @@ export namespace Authentication { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.ValidateAuthHashRequest; - /** - * Decodes a ValidateAuthHashRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ValidateAuthHashRequest - * @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)): Authentication.ValidateAuthHashRequest; - - /** - * Verifies a ValidateAuthHashRequest 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 ValidateAuthHashRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -2937,14 +2409,6 @@ export namespace Authentication { */ public static encode(message: Authentication.ITwoFactorChannelInfo, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified TwoFactorChannelInfo message, length delimited. Does not implicitly {@link Authentication.TwoFactorChannelInfo.verify|verify} messages. - * @param message TwoFactorChannelInfo message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Authentication.ITwoFactorChannelInfo, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a TwoFactorChannelInfo message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -2955,22 +2419,6 @@ export namespace Authentication { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.TwoFactorChannelInfo; - /** - * Decodes a TwoFactorChannelInfo message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns TwoFactorChannelInfo - * @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)): Authentication.TwoFactorChannelInfo; - - /** - * Verifies a TwoFactorChannelInfo 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 TwoFactorChannelInfo message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -3062,14 +2510,6 @@ export namespace Authentication { */ public static encode(message: Authentication.ITwoFactorDuoStatus, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified TwoFactorDuoStatus message, length delimited. Does not implicitly {@link Authentication.TwoFactorDuoStatus.verify|verify} messages. - * @param message TwoFactorDuoStatus message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Authentication.ITwoFactorDuoStatus, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a TwoFactorDuoStatus message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -3080,22 +2520,6 @@ export namespace Authentication { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.TwoFactorDuoStatus; - /** - * Decodes a TwoFactorDuoStatus message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns TwoFactorDuoStatus - * @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)): Authentication.TwoFactorDuoStatus; - - /** - * Verifies a TwoFactorDuoStatus 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 TwoFactorDuoStatus message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -3183,14 +2607,6 @@ export namespace Authentication { */ public static encode(message: Authentication.ITwoFactorAddRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified TwoFactorAddRequest message, length delimited. Does not implicitly {@link Authentication.TwoFactorAddRequest.verify|verify} messages. - * @param message TwoFactorAddRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Authentication.ITwoFactorAddRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a TwoFactorAddRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -3201,22 +2617,6 @@ export namespace Authentication { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.TwoFactorAddRequest; - /** - * Decodes a TwoFactorAddRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns TwoFactorAddRequest - * @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)): Authentication.TwoFactorAddRequest; - - /** - * Verifies a TwoFactorAddRequest 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 TwoFactorAddRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -3286,14 +2686,6 @@ export namespace Authentication { */ public static encode(message: Authentication.ITwoFactorRenameRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified TwoFactorRenameRequest message, length delimited. Does not implicitly {@link Authentication.TwoFactorRenameRequest.verify|verify} messages. - * @param message TwoFactorRenameRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Authentication.ITwoFactorRenameRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a TwoFactorRenameRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -3304,22 +2696,6 @@ export namespace Authentication { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.TwoFactorRenameRequest; - /** - * Decodes a TwoFactorRenameRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns TwoFactorRenameRequest - * @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)): Authentication.TwoFactorRenameRequest; - - /** - * Verifies a TwoFactorRenameRequest 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 TwoFactorRenameRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -3389,14 +2765,6 @@ export namespace Authentication { */ public static encode(message: Authentication.ITwoFactorAddResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified TwoFactorAddResponse message, length delimited. Does not implicitly {@link Authentication.TwoFactorAddResponse.verify|verify} messages. - * @param message TwoFactorAddResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Authentication.ITwoFactorAddResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a TwoFactorAddResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -3407,22 +2775,6 @@ export namespace Authentication { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.TwoFactorAddResponse; - /** - * Decodes a TwoFactorAddResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns TwoFactorAddResponse - * @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)): Authentication.TwoFactorAddResponse; - - /** - * Verifies a TwoFactorAddResponse 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 TwoFactorAddResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -3486,14 +2838,6 @@ export namespace Authentication { */ public static encode(message: Authentication.ITwoFactorDeleteRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified TwoFactorDeleteRequest message, length delimited. Does not implicitly {@link Authentication.TwoFactorDeleteRequest.verify|verify} messages. - * @param message TwoFactorDeleteRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Authentication.ITwoFactorDeleteRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a TwoFactorDeleteRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -3504,22 +2848,6 @@ export namespace Authentication { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.TwoFactorDeleteRequest; - /** - * Decodes a TwoFactorDeleteRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns TwoFactorDeleteRequest - * @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)): Authentication.TwoFactorDeleteRequest; - - /** - * Verifies a TwoFactorDeleteRequest 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 TwoFactorDeleteRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -3589,14 +2917,6 @@ export namespace Authentication { */ public static encode(message: Authentication.ITwoFactorListResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified TwoFactorListResponse message, length delimited. Does not implicitly {@link Authentication.TwoFactorListResponse.verify|verify} messages. - * @param message TwoFactorListResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Authentication.ITwoFactorListResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a TwoFactorListResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -3607,22 +2927,6 @@ export namespace Authentication { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.TwoFactorListResponse; - /** - * Decodes a TwoFactorListResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns TwoFactorListResponse - * @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)): Authentication.TwoFactorListResponse; - - /** - * Verifies a TwoFactorListResponse 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 TwoFactorListResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -3686,14 +2990,6 @@ export namespace Authentication { */ public static encode(message: Authentication.ITwoFactorUpdateExpirationRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified TwoFactorUpdateExpirationRequest message, length delimited. Does not implicitly {@link Authentication.TwoFactorUpdateExpirationRequest.verify|verify} messages. - * @param message TwoFactorUpdateExpirationRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Authentication.ITwoFactorUpdateExpirationRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a TwoFactorUpdateExpirationRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -3704,22 +3000,6 @@ export namespace Authentication { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.TwoFactorUpdateExpirationRequest; - /** - * Decodes a TwoFactorUpdateExpirationRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns TwoFactorUpdateExpirationRequest - * @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)): Authentication.TwoFactorUpdateExpirationRequest; - - /** - * Verifies a TwoFactorUpdateExpirationRequest 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 TwoFactorUpdateExpirationRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -3807,14 +3087,6 @@ export namespace Authentication { */ public static encode(message: Authentication.ITwoFactorValidateRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified TwoFactorValidateRequest message, length delimited. Does not implicitly {@link Authentication.TwoFactorValidateRequest.verify|verify} messages. - * @param message TwoFactorValidateRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Authentication.ITwoFactorValidateRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a TwoFactorValidateRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -3825,22 +3097,6 @@ export namespace Authentication { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.TwoFactorValidateRequest; - /** - * Decodes a TwoFactorValidateRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns TwoFactorValidateRequest - * @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)): Authentication.TwoFactorValidateRequest; - - /** - * Verifies a TwoFactorValidateRequest 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 TwoFactorValidateRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -3904,14 +3160,6 @@ export namespace Authentication { */ public static encode(message: Authentication.ITwoFactorValidateResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified TwoFactorValidateResponse message, length delimited. Does not implicitly {@link Authentication.TwoFactorValidateResponse.verify|verify} messages. - * @param message TwoFactorValidateResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Authentication.ITwoFactorValidateResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a TwoFactorValidateResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -3922,22 +3170,6 @@ export namespace Authentication { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.TwoFactorValidateResponse; - /** - * Decodes a TwoFactorValidateResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns TwoFactorValidateResponse - * @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)): Authentication.TwoFactorValidateResponse; - - /** - * Verifies a TwoFactorValidateResponse 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 TwoFactorValidateResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -4019,14 +3251,6 @@ export namespace Authentication { */ public static encode(message: Authentication.ITwoFactorSendPushRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified TwoFactorSendPushRequest message, length delimited. Does not implicitly {@link Authentication.TwoFactorSendPushRequest.verify|verify} messages. - * @param message TwoFactorSendPushRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Authentication.ITwoFactorSendPushRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a TwoFactorSendPushRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -4037,22 +3261,6 @@ export namespace Authentication { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.TwoFactorSendPushRequest; - /** - * Decodes a TwoFactorSendPushRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns TwoFactorSendPushRequest - * @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)): Authentication.TwoFactorSendPushRequest; - - /** - * Verifies a TwoFactorSendPushRequest 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 TwoFactorSendPushRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -4140,14 +3348,6 @@ export namespace Authentication { */ public static encode(message: Authentication.ILicense, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified License message, length delimited. Does not implicitly {@link Authentication.License.verify|verify} messages. - * @param message License message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Authentication.ILicense, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a License message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -4158,22 +3358,6 @@ export namespace Authentication { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.License; - /** - * Decodes a License message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns License - * @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)): Authentication.License; - - /** - * Verifies a License 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 License message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -4257,14 +3441,6 @@ export namespace Authentication { */ public static encode(message: Authentication.IOwnerlessRecord, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified OwnerlessRecord message, length delimited. Does not implicitly {@link Authentication.OwnerlessRecord.verify|verify} messages. - * @param message OwnerlessRecord message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Authentication.IOwnerlessRecord, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes an OwnerlessRecord message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -4275,22 +3451,6 @@ export namespace Authentication { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.OwnerlessRecord; - /** - * Decodes an OwnerlessRecord message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns OwnerlessRecord - * @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)): Authentication.OwnerlessRecord; - - /** - * Verifies an OwnerlessRecord 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 OwnerlessRecord message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -4354,14 +3514,6 @@ export namespace Authentication { */ public static encode(message: Authentication.IOwnerlessRecords, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified OwnerlessRecords message, length delimited. Does not implicitly {@link Authentication.OwnerlessRecords.verify|verify} messages. - * @param message OwnerlessRecords message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Authentication.IOwnerlessRecords, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes an OwnerlessRecords message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -4372,22 +3524,6 @@ export namespace Authentication { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.OwnerlessRecords; - /** - * Decodes an OwnerlessRecords message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns OwnerlessRecords - * @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)): Authentication.OwnerlessRecords; - - /** - * Verifies an OwnerlessRecords 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 OwnerlessRecords message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -4499,14 +3635,6 @@ export namespace Authentication { */ public static encode(message: Authentication.IUserAuthRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified UserAuthRequest message, length delimited. Does not implicitly {@link Authentication.UserAuthRequest.verify|verify} messages. - * @param message UserAuthRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Authentication.IUserAuthRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a UserAuthRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -4517,22 +3645,6 @@ export namespace Authentication { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.UserAuthRequest; - /** - * Decodes a UserAuthRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns UserAuthRequest - * @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)): Authentication.UserAuthRequest; - - /** - * Verifies a UserAuthRequest 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 UserAuthRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -4596,14 +3708,6 @@ export namespace Authentication { */ public static encode(message: Authentication.IUidRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified UidRequest message, length delimited. Does not implicitly {@link Authentication.UidRequest.verify|verify} messages. - * @param message UidRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Authentication.IUidRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes an UidRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -4614,22 +3718,6 @@ export namespace Authentication { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.UidRequest; - /** - * Decodes an UidRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns UidRequest - * @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)): Authentication.UidRequest; - - /** - * Verifies an UidRequest 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 UidRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -4729,14 +3817,6 @@ export namespace Authentication { */ public static encode(message: Authentication.IDeviceUpdateRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified DeviceUpdateRequest message, length delimited. Does not implicitly {@link Authentication.DeviceUpdateRequest.verify|verify} messages. - * @param message DeviceUpdateRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Authentication.IDeviceUpdateRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a DeviceUpdateRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -4747,22 +3827,6 @@ export namespace Authentication { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.DeviceUpdateRequest; - /** - * Decodes a DeviceUpdateRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns DeviceUpdateRequest - * @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)): Authentication.DeviceUpdateRequest; - - /** - * Verifies a DeviceUpdateRequest 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 DeviceUpdateRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -4862,14 +3926,6 @@ export namespace Authentication { */ public static encode(message: Authentication.IDeviceUpdateResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified DeviceUpdateResponse message, length delimited. Does not implicitly {@link Authentication.DeviceUpdateResponse.verify|verify} messages. - * @param message DeviceUpdateResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Authentication.IDeviceUpdateResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a DeviceUpdateResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -4880,22 +3936,6 @@ export namespace Authentication { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.DeviceUpdateResponse; - /** - * Decodes a DeviceUpdateResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns DeviceUpdateResponse - * @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)): Authentication.DeviceUpdateResponse; - - /** - * Verifies a DeviceUpdateResponse 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 DeviceUpdateResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -4989,14 +4029,6 @@ export namespace Authentication { */ public static encode(message: Authentication.IRegisterDeviceInRegionRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified RegisterDeviceInRegionRequest message, length delimited. Does not implicitly {@link Authentication.RegisterDeviceInRegionRequest.verify|verify} messages. - * @param message RegisterDeviceInRegionRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Authentication.IRegisterDeviceInRegionRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a RegisterDeviceInRegionRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -5007,22 +4039,6 @@ export namespace Authentication { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.RegisterDeviceInRegionRequest; - /** - * Decodes a RegisterDeviceInRegionRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RegisterDeviceInRegionRequest - * @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)): Authentication.RegisterDeviceInRegionRequest; - - /** - * Verifies a RegisterDeviceInRegionRequest 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 RegisterDeviceInRegionRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -5140,14 +4156,6 @@ export namespace Authentication { */ public static encode(message: Authentication.IRegistrationRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified RegistrationRequest message, length delimited. Does not implicitly {@link Authentication.RegistrationRequest.verify|verify} messages. - * @param message RegistrationRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Authentication.IRegistrationRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a RegistrationRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -5158,22 +4166,6 @@ export namespace Authentication { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.RegistrationRequest; - /** - * Decodes a RegistrationRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RegistrationRequest - * @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)): Authentication.RegistrationRequest; - - /** - * Verifies a RegistrationRequest 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 RegistrationRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -5261,14 +4253,6 @@ export namespace Authentication { */ public static encode(message: Authentication.IConvertUserToV3Request, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified ConvertUserToV3Request message, length delimited. Does not implicitly {@link Authentication.ConvertUserToV3Request.verify|verify} messages. - * @param message ConvertUserToV3Request message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Authentication.IConvertUserToV3Request, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a ConvertUserToV3Request message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -5279,22 +4263,6 @@ export namespace Authentication { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.ConvertUserToV3Request; - /** - * Decodes a ConvertUserToV3Request message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ConvertUserToV3Request - * @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)): Authentication.ConvertUserToV3Request; - - /** - * Verifies a ConvertUserToV3Request 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 ConvertUserToV3Request message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -5358,14 +4326,6 @@ export namespace Authentication { */ public static encode(message: Authentication.IRevisionResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified RevisionResponse message, length delimited. Does not implicitly {@link Authentication.RevisionResponse.verify|verify} messages. - * @param message RevisionResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Authentication.IRevisionResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a RevisionResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -5376,22 +4336,6 @@ export namespace Authentication { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.RevisionResponse; - /** - * Decodes a RevisionResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RevisionResponse - * @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)): Authentication.RevisionResponse; - - /** - * Verifies a RevisionResponse 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 RevisionResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -5455,14 +4399,6 @@ export namespace Authentication { */ public static encode(message: Authentication.IChangeEmailRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified ChangeEmailRequest message, length delimited. Does not implicitly {@link Authentication.ChangeEmailRequest.verify|verify} messages. - * @param message ChangeEmailRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Authentication.IChangeEmailRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a ChangeEmailRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -5473,22 +4409,6 @@ export namespace Authentication { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.ChangeEmailRequest; - /** - * Decodes a ChangeEmailRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ChangeEmailRequest - * @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)): Authentication.ChangeEmailRequest; - - /** - * Verifies a ChangeEmailRequest 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 ChangeEmailRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -5552,14 +4472,6 @@ export namespace Authentication { */ public static encode(message: Authentication.IChangeEmailResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified ChangeEmailResponse message, length delimited. Does not implicitly {@link Authentication.ChangeEmailResponse.verify|verify} messages. - * @param message ChangeEmailResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Authentication.IChangeEmailResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a ChangeEmailResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -5570,22 +4482,6 @@ export namespace Authentication { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.ChangeEmailResponse; - /** - * Decodes a ChangeEmailResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ChangeEmailResponse - * @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)): Authentication.ChangeEmailResponse; - - /** - * Verifies a ChangeEmailResponse 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 ChangeEmailResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -5649,14 +4545,6 @@ export namespace Authentication { */ public static encode(message: Authentication.IEmailVerificationLinkResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified EmailVerificationLinkResponse message, length delimited. Does not implicitly {@link Authentication.EmailVerificationLinkResponse.verify|verify} messages. - * @param message EmailVerificationLinkResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Authentication.IEmailVerificationLinkResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes an EmailVerificationLinkResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -5667,22 +4555,6 @@ export namespace Authentication { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.EmailVerificationLinkResponse; - /** - * Decodes an EmailVerificationLinkResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns EmailVerificationLinkResponse - * @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)): Authentication.EmailVerificationLinkResponse; - - /** - * Verifies an EmailVerificationLinkResponse 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 EmailVerificationLinkResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -5752,14 +4624,6 @@ export namespace Authentication { */ public static encode(message: Authentication.ISecurityData, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified SecurityData message, length delimited. Does not implicitly {@link Authentication.SecurityData.verify|verify} messages. - * @param message SecurityData message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Authentication.ISecurityData, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a SecurityData message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -5770,22 +4634,6 @@ export namespace Authentication { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.SecurityData; - /** - * Decodes a SecurityData message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SecurityData - * @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)): Authentication.SecurityData; - - /** - * Verifies a SecurityData 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 SecurityData message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -5861,14 +4709,6 @@ export namespace Authentication { */ public static encode(message: Authentication.ISecurityScoreData, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified SecurityScoreData message, length delimited. Does not implicitly {@link Authentication.SecurityScoreData.verify|verify} messages. - * @param message SecurityScoreData message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Authentication.ISecurityScoreData, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a SecurityScoreData message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -5879,22 +4719,6 @@ export namespace Authentication { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.SecurityScoreData; - /** - * Decodes a SecurityScoreData message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SecurityScoreData - * @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)): Authentication.SecurityScoreData; - - /** - * Verifies a SecurityScoreData 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 SecurityScoreData message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -5976,14 +4800,6 @@ export namespace Authentication { */ public static encode(message: Authentication.ISecurityDataRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified SecurityDataRequest message, length delimited. Does not implicitly {@link Authentication.SecurityDataRequest.verify|verify} messages. - * @param message SecurityDataRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Authentication.ISecurityDataRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a SecurityDataRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -5994,22 +4810,6 @@ export namespace Authentication { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.SecurityDataRequest; - /** - * Decodes a SecurityDataRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SecurityDataRequest - * @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)): Authentication.SecurityDataRequest; - - /** - * Verifies a SecurityDataRequest 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 SecurityDataRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -6115,14 +4915,6 @@ export namespace Authentication { */ public static encode(message: Authentication.ISecurityReportIncrementalData, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified SecurityReportIncrementalData message, length delimited. Does not implicitly {@link Authentication.SecurityReportIncrementalData.verify|verify} messages. - * @param message SecurityReportIncrementalData message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Authentication.ISecurityReportIncrementalData, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a SecurityReportIncrementalData message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -6133,22 +4925,6 @@ export namespace Authentication { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.SecurityReportIncrementalData; - /** - * Decodes a SecurityReportIncrementalData message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SecurityReportIncrementalData - * @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)): Authentication.SecurityReportIncrementalData; - - /** - * Verifies a SecurityReportIncrementalData 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 SecurityReportIncrementalData message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -6260,14 +5036,6 @@ export namespace Authentication { */ public static encode(message: Authentication.ISecurityReport, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified SecurityReport message, length delimited. Does not implicitly {@link Authentication.SecurityReport.verify|verify} messages. - * @param message SecurityReport message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Authentication.ISecurityReport, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a SecurityReport message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -6278,22 +5046,6 @@ export namespace Authentication { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.SecurityReport; - /** - * Decodes a SecurityReport message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SecurityReport - * @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)): Authentication.SecurityReport; - - /** - * Verifies a SecurityReport 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 SecurityReport message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -6363,14 +5115,6 @@ export namespace Authentication { */ public static encode(message: Authentication.ISecurityReportSaveRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified SecurityReportSaveRequest message, length delimited. Does not implicitly {@link Authentication.SecurityReportSaveRequest.verify|verify} messages. - * @param message SecurityReportSaveRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Authentication.ISecurityReportSaveRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a SecurityReportSaveRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -6381,22 +5125,6 @@ export namespace Authentication { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.SecurityReportSaveRequest; - /** - * Decodes a SecurityReportSaveRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SecurityReportSaveRequest - * @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)): Authentication.SecurityReportSaveRequest; - - /** - * Verifies a SecurityReportSaveRequest 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 SecurityReportSaveRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -6460,14 +5188,6 @@ export namespace Authentication { */ public static encode(message: Authentication.ISecurityReportRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified SecurityReportRequest message, length delimited. Does not implicitly {@link Authentication.SecurityReportRequest.verify|verify} messages. - * @param message SecurityReportRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Authentication.ISecurityReportRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a SecurityReportRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -6478,22 +5198,6 @@ export namespace Authentication { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.SecurityReportRequest; - /** - * Decodes a SecurityReportRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SecurityReportRequest - * @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)): Authentication.SecurityReportRequest; - - /** - * Verifies a SecurityReportRequest 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 SecurityReportRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -6599,14 +5303,6 @@ export namespace Authentication { */ public static encode(message: Authentication.ISecurityReportResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified SecurityReportResponse message, length delimited. Does not implicitly {@link Authentication.SecurityReportResponse.verify|verify} messages. - * @param message SecurityReportResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Authentication.ISecurityReportResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a SecurityReportResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -6617,22 +5313,6 @@ export namespace Authentication { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.SecurityReportResponse; - /** - * Decodes a SecurityReportResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SecurityReportResponse - * @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)): Authentication.SecurityReportResponse; - - /** - * Verifies a SecurityReportResponse 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 SecurityReportResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -6696,14 +5376,6 @@ export namespace Authentication { */ public static encode(message: Authentication.IIncrementalSecurityDataRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified IncrementalSecurityDataRequest message, length delimited. Does not implicitly {@link Authentication.IncrementalSecurityDataRequest.verify|verify} messages. - * @param message IncrementalSecurityDataRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Authentication.IIncrementalSecurityDataRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes an IncrementalSecurityDataRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -6714,22 +5386,6 @@ export namespace Authentication { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.IncrementalSecurityDataRequest; - /** - * Decodes an IncrementalSecurityDataRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns IncrementalSecurityDataRequest - * @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)): Authentication.IncrementalSecurityDataRequest; - - /** - * Verifies an IncrementalSecurityDataRequest 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 IncrementalSecurityDataRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -6799,14 +5455,6 @@ export namespace Authentication { */ public static encode(message: Authentication.IIncrementalSecurityDataResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified IncrementalSecurityDataResponse message, length delimited. Does not implicitly {@link Authentication.IncrementalSecurityDataResponse.verify|verify} messages. - * @param message IncrementalSecurityDataResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Authentication.IIncrementalSecurityDataResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes an IncrementalSecurityDataResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -6817,22 +5465,6 @@ export namespace Authentication { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.IncrementalSecurityDataResponse; - /** - * Decodes an IncrementalSecurityDataResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns IncrementalSecurityDataResponse - * @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)): Authentication.IncrementalSecurityDataResponse; - - /** - * Verifies an IncrementalSecurityDataResponse 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 IncrementalSecurityDataResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -6896,14 +5528,6 @@ export namespace Authentication { */ public static encode(message: Authentication.IReusedPasswordsRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified ReusedPasswordsRequest message, length delimited. Does not implicitly {@link Authentication.ReusedPasswordsRequest.verify|verify} messages. - * @param message ReusedPasswordsRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Authentication.IReusedPasswordsRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a ReusedPasswordsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -6914,22 +5538,6 @@ export namespace Authentication { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.ReusedPasswordsRequest; - /** - * Decodes a ReusedPasswordsRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ReusedPasswordsRequest - * @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)): Authentication.ReusedPasswordsRequest; - - /** - * Verifies a ReusedPasswordsRequest 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 ReusedPasswordsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -6999,14 +5607,6 @@ export namespace Authentication { */ public static encode(message: Authentication.ISummaryConsoleReport, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified SummaryConsoleReport message, length delimited. Does not implicitly {@link Authentication.SummaryConsoleReport.verify|verify} messages. - * @param message SummaryConsoleReport message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Authentication.ISummaryConsoleReport, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a SummaryConsoleReport message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -7017,22 +5617,6 @@ export namespace Authentication { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.SummaryConsoleReport; - /** - * Decodes a SummaryConsoleReport message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SummaryConsoleReport - * @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)): Authentication.SummaryConsoleReport; - - /** - * Verifies a SummaryConsoleReport 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 SummaryConsoleReport message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -7123,14 +5707,6 @@ export namespace Authentication { */ public static encode(message: Authentication.IChangeToKeyTypeOne, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified ChangeToKeyTypeOne message, length delimited. Does not implicitly {@link Authentication.ChangeToKeyTypeOne.verify|verify} messages. - * @param message ChangeToKeyTypeOne message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Authentication.IChangeToKeyTypeOne, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a ChangeToKeyTypeOne message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -7141,22 +5717,6 @@ export namespace Authentication { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.ChangeToKeyTypeOne; - /** - * Decodes a ChangeToKeyTypeOne message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ChangeToKeyTypeOne - * @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)): Authentication.ChangeToKeyTypeOne; - - /** - * Verifies a ChangeToKeyTypeOne 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 ChangeToKeyTypeOne message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -7220,14 +5780,6 @@ export namespace Authentication { */ public static encode(message: Authentication.IChangeToKeyTypeOneRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified ChangeToKeyTypeOneRequest message, length delimited. Does not implicitly {@link Authentication.ChangeToKeyTypeOneRequest.verify|verify} messages. - * @param message ChangeToKeyTypeOneRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Authentication.IChangeToKeyTypeOneRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a ChangeToKeyTypeOneRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -7238,22 +5790,6 @@ export namespace Authentication { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.ChangeToKeyTypeOneRequest; - /** - * Decodes a ChangeToKeyTypeOneRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ChangeToKeyTypeOneRequest - * @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)): Authentication.ChangeToKeyTypeOneRequest; - - /** - * Verifies a ChangeToKeyTypeOneRequest 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 ChangeToKeyTypeOneRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -7335,14 +5871,6 @@ export namespace Authentication { */ public static encode(message: Authentication.IChangeToKeyTypeOneStatus, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified ChangeToKeyTypeOneStatus message, length delimited. Does not implicitly {@link Authentication.ChangeToKeyTypeOneStatus.verify|verify} messages. - * @param message ChangeToKeyTypeOneStatus message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Authentication.IChangeToKeyTypeOneStatus, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a ChangeToKeyTypeOneStatus message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -7353,22 +5881,6 @@ export namespace Authentication { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.ChangeToKeyTypeOneStatus; - /** - * Decodes a ChangeToKeyTypeOneStatus message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ChangeToKeyTypeOneStatus - * @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)): Authentication.ChangeToKeyTypeOneStatus; - - /** - * Verifies a ChangeToKeyTypeOneStatus 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 ChangeToKeyTypeOneStatus message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -7432,14 +5944,6 @@ export namespace Authentication { */ public static encode(message: Authentication.IChangeToKeyTypeOneResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified ChangeToKeyTypeOneResponse message, length delimited. Does not implicitly {@link Authentication.ChangeToKeyTypeOneResponse.verify|verify} messages. - * @param message ChangeToKeyTypeOneResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Authentication.IChangeToKeyTypeOneResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a ChangeToKeyTypeOneResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -7450,22 +5954,6 @@ export namespace Authentication { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.ChangeToKeyTypeOneResponse; - /** - * Decodes a ChangeToKeyTypeOneResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ChangeToKeyTypeOneResponse - * @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)): Authentication.ChangeToKeyTypeOneResponse; - - /** - * Verifies a ChangeToKeyTypeOneResponse 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 ChangeToKeyTypeOneResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -7567,14 +6055,6 @@ export namespace Authentication { */ public static encode(message: Authentication.IGetChangeKeyTypesRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified GetChangeKeyTypesRequest message, length delimited. Does not implicitly {@link Authentication.GetChangeKeyTypesRequest.verify|verify} messages. - * @param message GetChangeKeyTypesRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Authentication.IGetChangeKeyTypesRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a GetChangeKeyTypesRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -7585,22 +6065,6 @@ export namespace Authentication { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.GetChangeKeyTypesRequest; - /** - * Decodes a GetChangeKeyTypesRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetChangeKeyTypesRequest - * @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)): Authentication.GetChangeKeyTypesRequest; - - /** - * Verifies a GetChangeKeyTypesRequest 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 GetChangeKeyTypesRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -7670,14 +6134,6 @@ export namespace Authentication { */ public static encode(message: Authentication.IGetChangeKeyTypesResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified GetChangeKeyTypesResponse message, length delimited. Does not implicitly {@link Authentication.GetChangeKeyTypesResponse.verify|verify} messages. - * @param message GetChangeKeyTypesResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Authentication.IGetChangeKeyTypesResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a GetChangeKeyTypesResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -7688,22 +6144,6 @@ export namespace Authentication { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.GetChangeKeyTypesResponse; - /** - * Decodes a GetChangeKeyTypesResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetChangeKeyTypesResponse - * @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)): Authentication.GetChangeKeyTypesResponse; - - /** - * Verifies a GetChangeKeyTypesResponse 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 GetChangeKeyTypesResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -7773,14 +6213,6 @@ export namespace Authentication { */ public static encode(message: Authentication.IAllowedKeyTypes, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified AllowedKeyTypes message, length delimited. Does not implicitly {@link Authentication.AllowedKeyTypes.verify|verify} messages. - * @param message AllowedKeyTypes message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Authentication.IAllowedKeyTypes, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes an AllowedKeyTypes message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -7791,22 +6223,6 @@ export namespace Authentication { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.AllowedKeyTypes; - /** - * Decodes an AllowedKeyTypes message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns AllowedKeyTypes - * @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)): Authentication.AllowedKeyTypes; - - /** - * Verifies an AllowedKeyTypes 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 AllowedKeyTypes message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -7870,14 +6286,6 @@ export namespace Authentication { */ public static encode(message: Authentication.IChangeKeyTypes, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified ChangeKeyTypes message, length delimited. Does not implicitly {@link Authentication.ChangeKeyTypes.verify|verify} messages. - * @param message ChangeKeyTypes message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Authentication.IChangeKeyTypes, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a ChangeKeyTypes message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -7888,22 +6296,6 @@ export namespace Authentication { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.ChangeKeyTypes; - /** - * Decodes a ChangeKeyTypes message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ChangeKeyTypes - * @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)): Authentication.ChangeKeyTypes; - - /** - * Verifies a ChangeKeyTypes 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 ChangeKeyTypes message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -7997,14 +6389,6 @@ export namespace Authentication { */ public static encode(message: Authentication.IChangeKeyType, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified ChangeKeyType message, length delimited. Does not implicitly {@link Authentication.ChangeKeyType.verify|verify} messages. - * @param message ChangeKeyType message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Authentication.IChangeKeyType, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a ChangeKeyType message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -8015,22 +6399,6 @@ export namespace Authentication { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.ChangeKeyType; - /** - * Decodes a ChangeKeyType message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ChangeKeyType - * @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)): Authentication.ChangeKeyType; - - /** - * Verifies a ChangeKeyType 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 ChangeKeyType message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -8100,14 +6468,6 @@ export namespace Authentication { */ public static encode(message: Authentication.ISetKey, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified SetKey message, length delimited. Does not implicitly {@link Authentication.SetKey.verify|verify} messages. - * @param message SetKey message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Authentication.ISetKey, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a SetKey message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -8118,22 +6478,6 @@ export namespace Authentication { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.SetKey; - /** - * Decodes a SetKey message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SetKey - * @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)): Authentication.SetKey; - - /** - * Verifies a SetKey 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 SetKey message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -8197,14 +6541,6 @@ export namespace Authentication { */ public static encode(message: Authentication.ISetKeyRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified SetKeyRequest message, length delimited. Does not implicitly {@link Authentication.SetKeyRequest.verify|verify} messages. - * @param message SetKeyRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Authentication.ISetKeyRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a SetKeyRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -8215,22 +6551,6 @@ export namespace Authentication { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.SetKeyRequest; - /** - * Decodes a SetKeyRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SetKeyRequest - * @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)): Authentication.SetKeyRequest; - - /** - * Verifies a SetKeyRequest 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 SetKeyRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -8438,14 +6758,6 @@ export namespace Authentication { */ public static encode(message: Authentication.ICreateUserRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified CreateUserRequest message, length delimited. Does not implicitly {@link Authentication.CreateUserRequest.verify|verify} messages. - * @param message CreateUserRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Authentication.ICreateUserRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a CreateUserRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -8456,22 +6768,6 @@ export namespace Authentication { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.CreateUserRequest; - /** - * Decodes a CreateUserRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns CreateUserRequest - * @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)): Authentication.CreateUserRequest; - - /** - * Verifies a CreateUserRequest 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 CreateUserRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -8547,14 +6843,6 @@ export namespace Authentication { */ public static encode(message: Authentication.INodeEnforcementAddOrUpdateRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified NodeEnforcementAddOrUpdateRequest message, length delimited. Does not implicitly {@link Authentication.NodeEnforcementAddOrUpdateRequest.verify|verify} messages. - * @param message NodeEnforcementAddOrUpdateRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Authentication.INodeEnforcementAddOrUpdateRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a NodeEnforcementAddOrUpdateRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -8565,22 +6853,6 @@ export namespace Authentication { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.NodeEnforcementAddOrUpdateRequest; - /** - * Decodes a NodeEnforcementAddOrUpdateRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns NodeEnforcementAddOrUpdateRequest - * @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)): Authentication.NodeEnforcementAddOrUpdateRequest; - - /** - * Verifies a NodeEnforcementAddOrUpdateRequest 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 NodeEnforcementAddOrUpdateRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -8650,14 +6922,6 @@ export namespace Authentication { */ public static encode(message: Authentication.INodeEnforcementRemoveRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified NodeEnforcementRemoveRequest message, length delimited. Does not implicitly {@link Authentication.NodeEnforcementRemoveRequest.verify|verify} messages. - * @param message NodeEnforcementRemoveRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Authentication.INodeEnforcementRemoveRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a NodeEnforcementRemoveRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -8668,22 +6932,6 @@ export namespace Authentication { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.NodeEnforcementRemoveRequest; - /** - * Decodes a NodeEnforcementRemoveRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns NodeEnforcementRemoveRequest - * @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)): Authentication.NodeEnforcementRemoveRequest; - - /** - * Verifies a NodeEnforcementRemoveRequest 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 NodeEnforcementRemoveRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -8783,14 +7031,6 @@ export namespace Authentication { */ public static encode(message: Authentication.IApiRequestByKey, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified ApiRequestByKey message, length delimited. Does not implicitly {@link Authentication.ApiRequestByKey.verify|verify} messages. - * @param message ApiRequestByKey message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Authentication.IApiRequestByKey, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes an ApiRequestByKey message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -8801,22 +7041,6 @@ export namespace Authentication { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.ApiRequestByKey; - /** - * Decodes an ApiRequestByKey message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ApiRequestByKey - * @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)): Authentication.ApiRequestByKey; - - /** - * Verifies an ApiRequestByKey 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 ApiRequestByKey message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -8898,14 +7122,6 @@ export namespace Authentication { */ public static encode(message: Authentication.IApiRequestByKAtoKAKey, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified ApiRequestByKAtoKAKey message, length delimited. Does not implicitly {@link Authentication.ApiRequestByKAtoKAKey.verify|verify} messages. - * @param message ApiRequestByKAtoKAKey message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Authentication.IApiRequestByKAtoKAKey, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes an ApiRequestByKAtoKAKey message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -8916,22 +7132,6 @@ export namespace Authentication { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.ApiRequestByKAtoKAKey; - /** - * Decodes an ApiRequestByKAtoKAKey message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ApiRequestByKAtoKAKey - * @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)): Authentication.ApiRequestByKAtoKAKey; - - /** - * Verifies an ApiRequestByKAtoKAKey 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 ApiRequestByKAtoKAKey message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -9001,14 +7201,6 @@ export namespace Authentication { */ public static encode(message: Authentication.IMemcacheRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified MemcacheRequest message, length delimited. Does not implicitly {@link Authentication.MemcacheRequest.verify|verify} messages. - * @param message MemcacheRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Authentication.IMemcacheRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a MemcacheRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -9019,22 +7211,6 @@ export namespace Authentication { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.MemcacheRequest; - /** - * Decodes a MemcacheRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns MemcacheRequest - * @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)): Authentication.MemcacheRequest; - - /** - * Verifies a MemcacheRequest 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 MemcacheRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -9104,14 +7280,6 @@ export namespace Authentication { */ public static encode(message: Authentication.IMemcacheResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified MemcacheResponse message, length delimited. Does not implicitly {@link Authentication.MemcacheResponse.verify|verify} messages. - * @param message MemcacheResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Authentication.IMemcacheResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a MemcacheResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -9122,22 +7290,6 @@ export namespace Authentication { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.MemcacheResponse; - /** - * Decodes a MemcacheResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns MemcacheResponse - * @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)): Authentication.MemcacheResponse; - - /** - * Verifies a MemcacheResponse 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 MemcacheResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -9207,14 +7359,6 @@ export namespace Authentication { */ public static encode(message: Authentication.IMasterPasswordReentryRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified MasterPasswordReentryRequest message, length delimited. Does not implicitly {@link Authentication.MasterPasswordReentryRequest.verify|verify} messages. - * @param message MasterPasswordReentryRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Authentication.IMasterPasswordReentryRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a MasterPasswordReentryRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -9225,22 +7369,6 @@ export namespace Authentication { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.MasterPasswordReentryRequest; - /** - * Decodes a MasterPasswordReentryRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns MasterPasswordReentryRequest - * @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)): Authentication.MasterPasswordReentryRequest; - - /** - * Verifies a MasterPasswordReentryRequest 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 MasterPasswordReentryRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -9311,14 +7439,6 @@ export namespace Authentication { */ public static encode(message: Authentication.IMasterPasswordReentryResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified MasterPasswordReentryResponse message, length delimited. Does not implicitly {@link Authentication.MasterPasswordReentryResponse.verify|verify} messages. - * @param message MasterPasswordReentryResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Authentication.IMasterPasswordReentryResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a MasterPasswordReentryResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -9329,22 +7449,6 @@ export namespace Authentication { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.MasterPasswordReentryResponse; - /** - * Decodes a MasterPasswordReentryResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns MasterPasswordReentryResponse - * @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)): Authentication.MasterPasswordReentryResponse; - - /** - * Verifies a MasterPasswordReentryResponse 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 MasterPasswordReentryResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -9438,14 +7542,6 @@ export namespace Authentication { */ public static encode(message: Authentication.IDeviceRegistrationRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified DeviceRegistrationRequest message, length delimited. Does not implicitly {@link Authentication.DeviceRegistrationRequest.verify|verify} messages. - * @param message DeviceRegistrationRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Authentication.IDeviceRegistrationRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a DeviceRegistrationRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -9456,22 +7552,6 @@ export namespace Authentication { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.DeviceRegistrationRequest; - /** - * Decodes a DeviceRegistrationRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns DeviceRegistrationRequest - * @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)): Authentication.DeviceRegistrationRequest; - - /** - * Verifies a DeviceRegistrationRequest 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 DeviceRegistrationRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -9559,14 +7639,6 @@ export namespace Authentication { */ public static encode(message: Authentication.IDeviceVerificationRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified DeviceVerificationRequest message, length delimited. Does not implicitly {@link Authentication.DeviceVerificationRequest.verify|verify} messages. - * @param message DeviceVerificationRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Authentication.IDeviceVerificationRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a DeviceVerificationRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -9577,22 +7649,6 @@ export namespace Authentication { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.DeviceVerificationRequest; - /** - * Decodes a DeviceVerificationRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns DeviceVerificationRequest - * @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)): Authentication.DeviceVerificationRequest; - - /** - * Verifies a DeviceVerificationRequest 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 DeviceVerificationRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -9680,14 +7736,6 @@ export namespace Authentication { */ public static encode(message: Authentication.IDeviceVerificationResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified DeviceVerificationResponse message, length delimited. Does not implicitly {@link Authentication.DeviceVerificationResponse.verify|verify} messages. - * @param message DeviceVerificationResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Authentication.IDeviceVerificationResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a DeviceVerificationResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -9698,22 +7746,6 @@ export namespace Authentication { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.DeviceVerificationResponse; - /** - * Decodes a DeviceVerificationResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns DeviceVerificationResponse - * @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)): Authentication.DeviceVerificationResponse; - - /** - * Verifies a DeviceVerificationResponse 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 DeviceVerificationResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -9819,14 +7851,6 @@ export namespace Authentication { */ public static encode(message: Authentication.IDeviceApprovalRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified DeviceApprovalRequest message, length delimited. Does not implicitly {@link Authentication.DeviceApprovalRequest.verify|verify} messages. - * @param message DeviceApprovalRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Authentication.IDeviceApprovalRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a DeviceApprovalRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -9837,22 +7861,6 @@ export namespace Authentication { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.DeviceApprovalRequest; - /** - * Decodes a DeviceApprovalRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns DeviceApprovalRequest - * @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)): Authentication.DeviceApprovalRequest; - - /** - * Verifies a DeviceApprovalRequest 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 DeviceApprovalRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -9916,14 +7924,6 @@ export namespace Authentication { */ public static encode(message: Authentication.IDeviceApprovalResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified DeviceApprovalResponse message, length delimited. Does not implicitly {@link Authentication.DeviceApprovalResponse.verify|verify} messages. - * @param message DeviceApprovalResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Authentication.IDeviceApprovalResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a DeviceApprovalResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -9934,22 +7934,6 @@ export namespace Authentication { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.DeviceApprovalResponse; - /** - * Decodes a DeviceApprovalResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns DeviceApprovalResponse - * @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)): Authentication.DeviceApprovalResponse; - - /** - * Verifies a DeviceApprovalResponse 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 DeviceApprovalResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -10031,14 +8015,6 @@ export namespace Authentication { */ public static encode(message: Authentication.IApproveDeviceRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified ApproveDeviceRequest message, length delimited. Does not implicitly {@link Authentication.ApproveDeviceRequest.verify|verify} messages. - * @param message ApproveDeviceRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Authentication.IApproveDeviceRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes an ApproveDeviceRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -10049,22 +8025,6 @@ export namespace Authentication { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.ApproveDeviceRequest; - /** - * Decodes an ApproveDeviceRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ApproveDeviceRequest - * @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)): Authentication.ApproveDeviceRequest; - - /** - * Verifies an ApproveDeviceRequest 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 ApproveDeviceRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -10134,14 +8094,6 @@ export namespace Authentication { */ public static encode(message: Authentication.IEnterpriseUserAliasRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified EnterpriseUserAliasRequest message, length delimited. Does not implicitly {@link Authentication.EnterpriseUserAliasRequest.verify|verify} messages. - * @param message EnterpriseUserAliasRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Authentication.IEnterpriseUserAliasRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes an EnterpriseUserAliasRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -10152,22 +8104,6 @@ export namespace Authentication { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.EnterpriseUserAliasRequest; - /** - * Decodes an EnterpriseUserAliasRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns EnterpriseUserAliasRequest - * @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)): Authentication.EnterpriseUserAliasRequest; - - /** - * Verifies an EnterpriseUserAliasRequest 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 EnterpriseUserAliasRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -10243,14 +8179,6 @@ export namespace Authentication { */ public static encode(message: Authentication.IEnterpriseUserAddAliasRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified EnterpriseUserAddAliasRequest message, length delimited. Does not implicitly {@link Authentication.EnterpriseUserAddAliasRequest.verify|verify} messages. - * @param message EnterpriseUserAddAliasRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Authentication.IEnterpriseUserAddAliasRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes an EnterpriseUserAddAliasRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -10261,22 +8189,6 @@ export namespace Authentication { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.EnterpriseUserAddAliasRequest; - /** - * Decodes an EnterpriseUserAddAliasRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns EnterpriseUserAddAliasRequest - * @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)): Authentication.EnterpriseUserAddAliasRequest; - - /** - * Verifies an EnterpriseUserAddAliasRequest 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 EnterpriseUserAddAliasRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -10340,14 +8252,6 @@ export namespace Authentication { */ public static encode(message: Authentication.IEnterpriseUserAddAliasRequestV2, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified EnterpriseUserAddAliasRequestV2 message, length delimited. Does not implicitly {@link Authentication.EnterpriseUserAddAliasRequestV2.verify|verify} messages. - * @param message EnterpriseUserAddAliasRequestV2 message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Authentication.IEnterpriseUserAddAliasRequestV2, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes an EnterpriseUserAddAliasRequestV2 message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -10358,22 +8262,6 @@ export namespace Authentication { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.EnterpriseUserAddAliasRequestV2; - /** - * Decodes an EnterpriseUserAddAliasRequestV2 message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns EnterpriseUserAddAliasRequestV2 - * @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)): Authentication.EnterpriseUserAddAliasRequestV2; - - /** - * Verifies an EnterpriseUserAddAliasRequestV2 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 EnterpriseUserAddAliasRequestV2 message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -10443,14 +8331,6 @@ export namespace Authentication { */ public static encode(message: Authentication.IEnterpriseUserAddAliasStatus, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified EnterpriseUserAddAliasStatus message, length delimited. Does not implicitly {@link Authentication.EnterpriseUserAddAliasStatus.verify|verify} messages. - * @param message EnterpriseUserAddAliasStatus message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Authentication.IEnterpriseUserAddAliasStatus, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes an EnterpriseUserAddAliasStatus message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -10461,22 +8341,6 @@ export namespace Authentication { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.EnterpriseUserAddAliasStatus; - /** - * Decodes an EnterpriseUserAddAliasStatus message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns EnterpriseUserAddAliasStatus - * @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)): Authentication.EnterpriseUserAddAliasStatus; - - /** - * Verifies an EnterpriseUserAddAliasStatus 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 EnterpriseUserAddAliasStatus message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -10540,14 +8404,6 @@ export namespace Authentication { */ public static encode(message: Authentication.IEnterpriseUserAddAliasResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified EnterpriseUserAddAliasResponse message, length delimited. Does not implicitly {@link Authentication.EnterpriseUserAddAliasResponse.verify|verify} messages. - * @param message EnterpriseUserAddAliasResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Authentication.IEnterpriseUserAddAliasResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes an EnterpriseUserAddAliasResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -10558,22 +8414,6 @@ export namespace Authentication { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.EnterpriseUserAddAliasResponse; - /** - * Decodes an EnterpriseUserAddAliasResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns EnterpriseUserAddAliasResponse - * @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)): Authentication.EnterpriseUserAddAliasResponse; - - /** - * Verifies an EnterpriseUserAddAliasResponse 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 EnterpriseUserAddAliasResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -10637,14 +8477,6 @@ export namespace Authentication { */ public static encode(message: Authentication.IDevice, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified Device message, length delimited. Does not implicitly {@link Authentication.Device.verify|verify} messages. - * @param message Device message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Authentication.IDevice, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a Device message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -10655,22 +8487,6 @@ export namespace Authentication { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.Device; - /** - * Decodes a Device message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Device - * @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)): Authentication.Device; - - /** - * Verifies a Device 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 Device message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -10740,14 +8556,6 @@ export namespace Authentication { */ public static encode(message: Authentication.IRegisterDeviceDataKeyRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified RegisterDeviceDataKeyRequest message, length delimited. Does not implicitly {@link Authentication.RegisterDeviceDataKeyRequest.verify|verify} messages. - * @param message RegisterDeviceDataKeyRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Authentication.IRegisterDeviceDataKeyRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a RegisterDeviceDataKeyRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -10758,22 +8566,6 @@ export namespace Authentication { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.RegisterDeviceDataKeyRequest; - /** - * Decodes a RegisterDeviceDataKeyRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RegisterDeviceDataKeyRequest - * @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)): Authentication.RegisterDeviceDataKeyRequest; - - /** - * Verifies a RegisterDeviceDataKeyRequest 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 RegisterDeviceDataKeyRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -10849,14 +8641,6 @@ export namespace Authentication { */ public static encode(message: Authentication.IValidateCreateUserVerificationCodeRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified ValidateCreateUserVerificationCodeRequest message, length delimited. Does not implicitly {@link Authentication.ValidateCreateUserVerificationCodeRequest.verify|verify} messages. - * @param message ValidateCreateUserVerificationCodeRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Authentication.IValidateCreateUserVerificationCodeRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a ValidateCreateUserVerificationCodeRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -10867,22 +8651,6 @@ export namespace Authentication { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.ValidateCreateUserVerificationCodeRequest; - /** - * Decodes a ValidateCreateUserVerificationCodeRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ValidateCreateUserVerificationCodeRequest - * @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)): Authentication.ValidateCreateUserVerificationCodeRequest; - - /** - * Verifies a ValidateCreateUserVerificationCodeRequest 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 ValidateCreateUserVerificationCodeRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -10970,14 +8738,6 @@ export namespace Authentication { */ public static encode(message: Authentication.IValidateDeviceVerificationCodeRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified ValidateDeviceVerificationCodeRequest message, length delimited. Does not implicitly {@link Authentication.ValidateDeviceVerificationCodeRequest.verify|verify} messages. - * @param message ValidateDeviceVerificationCodeRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Authentication.IValidateDeviceVerificationCodeRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a ValidateDeviceVerificationCodeRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -10988,22 +8748,6 @@ export namespace Authentication { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.ValidateDeviceVerificationCodeRequest; - /** - * Decodes a ValidateDeviceVerificationCodeRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ValidateDeviceVerificationCodeRequest - * @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)): Authentication.ValidateDeviceVerificationCodeRequest; - - /** - * Verifies a ValidateDeviceVerificationCodeRequest 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 ValidateDeviceVerificationCodeRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -11079,14 +8823,6 @@ export namespace Authentication { */ public static encode(message: Authentication.ISendSessionMessageRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified SendSessionMessageRequest message, length delimited. Does not implicitly {@link Authentication.SendSessionMessageRequest.verify|verify} messages. - * @param message SendSessionMessageRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Authentication.ISendSessionMessageRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a SendSessionMessageRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -11097,22 +8833,6 @@ export namespace Authentication { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.SendSessionMessageRequest; - /** - * Decodes a SendSessionMessageRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SendSessionMessageRequest - * @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)): Authentication.SendSessionMessageRequest; - - /** - * Verifies a SendSessionMessageRequest 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 SendSessionMessageRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -11188,14 +8908,6 @@ export namespace Authentication { */ public static encode(message: Authentication.IGlobalUserAccount, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified GlobalUserAccount message, length delimited. Does not implicitly {@link Authentication.GlobalUserAccount.verify|verify} messages. - * @param message GlobalUserAccount message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Authentication.IGlobalUserAccount, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a GlobalUserAccount message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -11206,22 +8918,6 @@ export namespace Authentication { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.GlobalUserAccount; - /** - * Decodes a GlobalUserAccount message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GlobalUserAccount - * @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)): Authentication.GlobalUserAccount; - - /** - * Verifies a GlobalUserAccount 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 GlobalUserAccount message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -11291,14 +8987,6 @@ export namespace Authentication { */ public static encode(message: Authentication.IAccountUsername, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified AccountUsername message, length delimited. Does not implicitly {@link Authentication.AccountUsername.verify|verify} messages. - * @param message AccountUsername message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Authentication.IAccountUsername, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes an AccountUsername message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -11309,22 +8997,6 @@ export namespace Authentication { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.AccountUsername; - /** - * Decodes an AccountUsername message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns AccountUsername - * @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)): Authentication.AccountUsername; - - /** - * Verifies an AccountUsername 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 AccountUsername message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -11400,14 +9072,6 @@ export namespace Authentication { */ public static encode(message: Authentication.ISsoServiceProviderRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified SsoServiceProviderRequest message, length delimited. Does not implicitly {@link Authentication.SsoServiceProviderRequest.verify|verify} messages. - * @param message SsoServiceProviderRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Authentication.ISsoServiceProviderRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a SsoServiceProviderRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -11418,22 +9082,6 @@ export namespace Authentication { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.SsoServiceProviderRequest; - /** - * Decodes a SsoServiceProviderRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SsoServiceProviderRequest - * @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)): Authentication.SsoServiceProviderRequest; - - /** - * Verifies a SsoServiceProviderRequest 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 SsoServiceProviderRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -11515,14 +9163,6 @@ export namespace Authentication { */ public static encode(message: Authentication.ISsoServiceProviderResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified SsoServiceProviderResponse message, length delimited. Does not implicitly {@link Authentication.SsoServiceProviderResponse.verify|verify} messages. - * @param message SsoServiceProviderResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Authentication.ISsoServiceProviderResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a SsoServiceProviderResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -11533,22 +9173,6 @@ export namespace Authentication { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.SsoServiceProviderResponse; - /** - * Decodes a SsoServiceProviderResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SsoServiceProviderResponse - * @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)): Authentication.SsoServiceProviderResponse; - - /** - * Verifies a SsoServiceProviderResponse 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 SsoServiceProviderResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -11618,14 +9242,6 @@ export namespace Authentication { */ public static encode(message: Authentication.IUserSettingRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified UserSettingRequest message, length delimited. Does not implicitly {@link Authentication.UserSettingRequest.verify|verify} messages. - * @param message UserSettingRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Authentication.IUserSettingRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a UserSettingRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -11636,22 +9252,6 @@ export namespace Authentication { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.UserSettingRequest; - /** - * Decodes a UserSettingRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns UserSettingRequest - * @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)): Authentication.UserSettingRequest; - - /** - * Verifies a UserSettingRequest 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 UserSettingRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -11752,14 +9352,6 @@ export namespace Authentication { */ public static encode(message: Authentication.IThrottleState, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified ThrottleState message, length delimited. Does not implicitly {@link Authentication.ThrottleState.verify|verify} messages. - * @param message ThrottleState message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Authentication.IThrottleState, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a ThrottleState message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -11770,22 +9362,6 @@ export namespace Authentication { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.ThrottleState; - /** - * Decodes a ThrottleState message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ThrottleState - * @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)): Authentication.ThrottleState; - - /** - * Verifies a ThrottleState 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 ThrottleState message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -11891,14 +9467,6 @@ export namespace Authentication { */ public static encode(message: Authentication.IThrottleState2, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified ThrottleState2 message, length delimited. Does not implicitly {@link Authentication.ThrottleState2.verify|verify} messages. - * @param message ThrottleState2 message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Authentication.IThrottleState2, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a ThrottleState2 message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -11909,22 +9477,6 @@ export namespace Authentication { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.ThrottleState2; - /** - * Decodes a ThrottleState2 message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ThrottleState2 - * @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)): Authentication.ThrottleState2; - - /** - * Verifies a ThrottleState2 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 ThrottleState2 message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -12012,14 +9564,6 @@ export namespace Authentication { */ public static encode(message: Authentication.IDeviceInformation, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified DeviceInformation message, length delimited. Does not implicitly {@link Authentication.DeviceInformation.verify|verify} messages. - * @param message DeviceInformation message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Authentication.IDeviceInformation, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a DeviceInformation message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -12030,22 +9574,6 @@ export namespace Authentication { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.DeviceInformation; - /** - * Decodes a DeviceInformation message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns DeviceInformation - * @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)): Authentication.DeviceInformation; - - /** - * Verifies a DeviceInformation 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 DeviceInformation message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -12115,14 +9643,6 @@ export namespace Authentication { */ public static encode(message: Authentication.IUserSetting, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified UserSetting message, length delimited. Does not implicitly {@link Authentication.UserSetting.verify|verify} messages. - * @param message UserSetting message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Authentication.IUserSetting, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a UserSetting message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -12133,22 +9653,6 @@ export namespace Authentication { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.UserSetting; - /** - * Decodes a UserSetting message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns UserSetting - * @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)): Authentication.UserSetting; - - /** - * Verifies a UserSetting 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 UserSetting message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -12212,14 +9716,6 @@ export namespace Authentication { */ public static encode(message: Authentication.IUserDataKeyRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified UserDataKeyRequest message, length delimited. Does not implicitly {@link Authentication.UserDataKeyRequest.verify|verify} messages. - * @param message UserDataKeyRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Authentication.IUserDataKeyRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a UserDataKeyRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -12230,22 +9726,6 @@ export namespace Authentication { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.UserDataKeyRequest; - /** - * Decodes a UserDataKeyRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns UserDataKeyRequest - * @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)): Authentication.UserDataKeyRequest; - - /** - * Verifies a UserDataKeyRequest 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 UserDataKeyRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -12309,14 +9789,6 @@ export namespace Authentication { */ public static encode(message: Authentication.IUserDataKeyByNodeRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified UserDataKeyByNodeRequest message, length delimited. Does not implicitly {@link Authentication.UserDataKeyByNodeRequest.verify|verify} messages. - * @param message UserDataKeyByNodeRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Authentication.IUserDataKeyByNodeRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a UserDataKeyByNodeRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -12327,22 +9799,6 @@ export namespace Authentication { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.UserDataKeyByNodeRequest; - /** - * Decodes a UserDataKeyByNodeRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns UserDataKeyByNodeRequest - * @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)): Authentication.UserDataKeyByNodeRequest; - - /** - * Verifies a UserDataKeyByNodeRequest 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 UserDataKeyByNodeRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -12418,14 +9874,6 @@ export namespace Authentication { */ public static encode(message: Authentication.IEnterpriseUserIdDataKeyPair, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified EnterpriseUserIdDataKeyPair message, length delimited. Does not implicitly {@link Authentication.EnterpriseUserIdDataKeyPair.verify|verify} messages. - * @param message EnterpriseUserIdDataKeyPair message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Authentication.IEnterpriseUserIdDataKeyPair, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes an EnterpriseUserIdDataKeyPair message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -12436,22 +9884,6 @@ export namespace Authentication { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.EnterpriseUserIdDataKeyPair; - /** - * Decodes an EnterpriseUserIdDataKeyPair message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns EnterpriseUserIdDataKeyPair - * @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)): Authentication.EnterpriseUserIdDataKeyPair; - - /** - * Verifies an EnterpriseUserIdDataKeyPair 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 EnterpriseUserIdDataKeyPair message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -12533,14 +9965,6 @@ export namespace Authentication { */ public static encode(message: Authentication.IUserDataKey, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified UserDataKey message, length delimited. Does not implicitly {@link Authentication.UserDataKey.verify|verify} messages. - * @param message UserDataKey message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Authentication.IUserDataKey, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a UserDataKey message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -12551,22 +9975,6 @@ export namespace Authentication { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.UserDataKey; - /** - * Decodes a UserDataKey message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns UserDataKey - * @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)): Authentication.UserDataKey; - - /** - * Verifies a UserDataKey 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 UserDataKey message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -12642,14 +10050,6 @@ export namespace Authentication { */ public static encode(message: Authentication.IUserDataKeyResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified UserDataKeyResponse message, length delimited. Does not implicitly {@link Authentication.UserDataKeyResponse.verify|verify} messages. - * @param message UserDataKeyResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Authentication.IUserDataKeyResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a UserDataKeyResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -12660,22 +10060,6 @@ export namespace Authentication { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.UserDataKeyResponse; - /** - * Decodes a UserDataKeyResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns UserDataKeyResponse - * @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)): Authentication.UserDataKeyResponse; - - /** - * Verifies a UserDataKeyResponse 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 UserDataKeyResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -12739,14 +10123,6 @@ export namespace Authentication { */ public static encode(message: Authentication.IMasterPasswordRecoveryVerificationRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified MasterPasswordRecoveryVerificationRequest message, length delimited. Does not implicitly {@link Authentication.MasterPasswordRecoveryVerificationRequest.verify|verify} messages. - * @param message MasterPasswordRecoveryVerificationRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Authentication.IMasterPasswordRecoveryVerificationRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a MasterPasswordRecoveryVerificationRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -12757,22 +10133,6 @@ export namespace Authentication { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.MasterPasswordRecoveryVerificationRequest; - /** - * Decodes a MasterPasswordRecoveryVerificationRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns MasterPasswordRecoveryVerificationRequest - * @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)): Authentication.MasterPasswordRecoveryVerificationRequest; - - /** - * Verifies a MasterPasswordRecoveryVerificationRequest 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 MasterPasswordRecoveryVerificationRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -12842,14 +10202,6 @@ export namespace Authentication { */ public static encode(message: Authentication.IGetSecurityQuestionV3Request, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified GetSecurityQuestionV3Request message, length delimited. Does not implicitly {@link Authentication.GetSecurityQuestionV3Request.verify|verify} messages. - * @param message GetSecurityQuestionV3Request message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Authentication.IGetSecurityQuestionV3Request, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a GetSecurityQuestionV3Request message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -12860,22 +10212,6 @@ export namespace Authentication { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.GetSecurityQuestionV3Request; - /** - * Decodes a GetSecurityQuestionV3Request message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetSecurityQuestionV3Request - * @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)): Authentication.GetSecurityQuestionV3Request; - - /** - * Verifies a GetSecurityQuestionV3Request 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 GetSecurityQuestionV3Request message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -12957,14 +10293,6 @@ export namespace Authentication { */ public static encode(message: Authentication.IGetSecurityQuestionV3Response, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified GetSecurityQuestionV3Response message, length delimited. Does not implicitly {@link Authentication.GetSecurityQuestionV3Response.verify|verify} messages. - * @param message GetSecurityQuestionV3Response message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Authentication.IGetSecurityQuestionV3Response, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a GetSecurityQuestionV3Response message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -12975,22 +10303,6 @@ export namespace Authentication { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.GetSecurityQuestionV3Response; - /** - * Decodes a GetSecurityQuestionV3Response message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetSecurityQuestionV3Response - * @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)): Authentication.GetSecurityQuestionV3Response; - - /** - * Verifies a GetSecurityQuestionV3Response 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 GetSecurityQuestionV3Response message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -13066,14 +10378,6 @@ export namespace Authentication { */ public static encode(message: Authentication.IGetDataKeyBackupV3Request, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified GetDataKeyBackupV3Request message, length delimited. Does not implicitly {@link Authentication.GetDataKeyBackupV3Request.verify|verify} messages. - * @param message GetDataKeyBackupV3Request message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Authentication.IGetDataKeyBackupV3Request, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a GetDataKeyBackupV3Request message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -13084,22 +10388,6 @@ export namespace Authentication { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.GetDataKeyBackupV3Request; - /** - * Decodes a GetDataKeyBackupV3Request message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetDataKeyBackupV3Request - * @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)): Authentication.GetDataKeyBackupV3Request; - - /** - * Verifies a GetDataKeyBackupV3Request 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 GetDataKeyBackupV3Request message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -13193,14 +10481,6 @@ export namespace Authentication { */ public static encode(message: Authentication.IPasswordRules, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified PasswordRules message, length delimited. Does not implicitly {@link Authentication.PasswordRules.verify|verify} messages. - * @param message PasswordRules message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Authentication.IPasswordRules, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a PasswordRules message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -13211,22 +10491,6 @@ export namespace Authentication { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.PasswordRules; - /** - * Decodes a PasswordRules message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns PasswordRules - * @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)): Authentication.PasswordRules; - - /** - * Verifies a PasswordRules 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 PasswordRules message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -13344,14 +10608,6 @@ export namespace Authentication { */ public static encode(message: Authentication.IGetDataKeyBackupV3Response, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified GetDataKeyBackupV3Response message, length delimited. Does not implicitly {@link Authentication.GetDataKeyBackupV3Response.verify|verify} messages. - * @param message GetDataKeyBackupV3Response message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Authentication.IGetDataKeyBackupV3Response, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a GetDataKeyBackupV3Response message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -13362,22 +10618,6 @@ export namespace Authentication { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.GetDataKeyBackupV3Response; - /** - * Decodes a GetDataKeyBackupV3Response message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetDataKeyBackupV3Response - * @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)): Authentication.GetDataKeyBackupV3Response; - - /** - * Verifies a GetDataKeyBackupV3Response 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 GetDataKeyBackupV3Response message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -13441,14 +10681,6 @@ export namespace Authentication { */ public static encode(message: Authentication.IGetPublicKeysRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified GetPublicKeysRequest message, length delimited. Does not implicitly {@link Authentication.GetPublicKeysRequest.verify|verify} messages. - * @param message GetPublicKeysRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Authentication.IGetPublicKeysRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a GetPublicKeysRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -13459,22 +10691,6 @@ export namespace Authentication { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.GetPublicKeysRequest; - /** - * Decodes a GetPublicKeysRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetPublicKeysRequest - * @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)): Authentication.GetPublicKeysRequest; - - /** - * Verifies a GetPublicKeysRequest 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 GetPublicKeysRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -13568,14 +10784,6 @@ export namespace Authentication { */ public static encode(message: Authentication.IPublicKeyResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified PublicKeyResponse message, length delimited. Does not implicitly {@link Authentication.PublicKeyResponse.verify|verify} messages. - * @param message PublicKeyResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Authentication.IPublicKeyResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a PublicKeyResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -13586,22 +10794,6 @@ export namespace Authentication { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.PublicKeyResponse; - /** - * Decodes a PublicKeyResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns PublicKeyResponse - * @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)): Authentication.PublicKeyResponse; - - /** - * Verifies a PublicKeyResponse 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 PublicKeyResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -13665,14 +10857,6 @@ export namespace Authentication { */ public static encode(message: Authentication.IGetPublicKeysResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified GetPublicKeysResponse message, length delimited. Does not implicitly {@link Authentication.GetPublicKeysResponse.verify|verify} messages. - * @param message GetPublicKeysResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Authentication.IGetPublicKeysResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a GetPublicKeysResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -13683,22 +10867,6 @@ export namespace Authentication { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.GetPublicKeysResponse; - /** - * Decodes a GetPublicKeysResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetPublicKeysResponse - * @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)): Authentication.GetPublicKeysResponse; - - /** - * Verifies a GetPublicKeysResponse 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 GetPublicKeysResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -13768,14 +10936,6 @@ export namespace Authentication { */ public static encode(message: Authentication.ISetEccKeyPairRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified SetEccKeyPairRequest message, length delimited. Does not implicitly {@link Authentication.SetEccKeyPairRequest.verify|verify} messages. - * @param message SetEccKeyPairRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Authentication.ISetEccKeyPairRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a SetEccKeyPairRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -13786,22 +10946,6 @@ export namespace Authentication { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.SetEccKeyPairRequest; - /** - * Decodes a SetEccKeyPairRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SetEccKeyPairRequest - * @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)): Authentication.SetEccKeyPairRequest; - - /** - * Verifies a SetEccKeyPairRequest 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 SetEccKeyPairRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -13865,14 +11009,6 @@ export namespace Authentication { */ public static encode(message: Authentication.ISetEccKeyPairsRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified SetEccKeyPairsRequest message, length delimited. Does not implicitly {@link Authentication.SetEccKeyPairsRequest.verify|verify} messages. - * @param message SetEccKeyPairsRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Authentication.ISetEccKeyPairsRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a SetEccKeyPairsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -13883,22 +11019,6 @@ export namespace Authentication { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.SetEccKeyPairsRequest; - /** - * Decodes a SetEccKeyPairsRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SetEccKeyPairsRequest - * @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)): Authentication.SetEccKeyPairsRequest; - - /** - * Verifies a SetEccKeyPairsRequest 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 SetEccKeyPairsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -13962,14 +11082,6 @@ export namespace Authentication { */ public static encode(message: Authentication.ISetEccKeyPairsResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified SetEccKeyPairsResponse message, length delimited. Does not implicitly {@link Authentication.SetEccKeyPairsResponse.verify|verify} messages. - * @param message SetEccKeyPairsResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Authentication.ISetEccKeyPairsResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a SetEccKeyPairsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -13980,22 +11092,6 @@ export namespace Authentication { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.SetEccKeyPairsResponse; - /** - * Decodes a SetEccKeyPairsResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SetEccKeyPairsResponse - * @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)): Authentication.SetEccKeyPairsResponse; - - /** - * Verifies a SetEccKeyPairsResponse 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 SetEccKeyPairsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -14071,14 +11167,6 @@ export namespace Authentication { */ public static encode(message: Authentication.ITeamEccKeyPair, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified TeamEccKeyPair message, length delimited. Does not implicitly {@link Authentication.TeamEccKeyPair.verify|verify} messages. - * @param message TeamEccKeyPair message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Authentication.ITeamEccKeyPair, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a TeamEccKeyPair message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -14089,22 +11177,6 @@ export namespace Authentication { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.TeamEccKeyPair; - /** - * Decodes a TeamEccKeyPair message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns TeamEccKeyPair - * @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)): Authentication.TeamEccKeyPair; - - /** - * Verifies a TeamEccKeyPair 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 TeamEccKeyPair message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -14174,14 +11246,6 @@ export namespace Authentication { */ public static encode(message: Authentication.ITeamEccKeyPairResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified TeamEccKeyPairResponse message, length delimited. Does not implicitly {@link Authentication.TeamEccKeyPairResponse.verify|verify} messages. - * @param message TeamEccKeyPairResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Authentication.ITeamEccKeyPairResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a TeamEccKeyPairResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -14192,22 +11256,6 @@ export namespace Authentication { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.TeamEccKeyPairResponse; - /** - * Decodes a TeamEccKeyPairResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns TeamEccKeyPairResponse - * @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)): Authentication.TeamEccKeyPairResponse; - - /** - * Verifies a TeamEccKeyPairResponse 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 TeamEccKeyPairResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -14277,14 +11325,6 @@ export namespace Authentication { */ public static encode(message: Authentication.IGetKsmPublicKeysRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified GetKsmPublicKeysRequest message, length delimited. Does not implicitly {@link Authentication.GetKsmPublicKeysRequest.verify|verify} messages. - * @param message GetKsmPublicKeysRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Authentication.IGetKsmPublicKeysRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a GetKsmPublicKeysRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -14295,22 +11335,6 @@ export namespace Authentication { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.GetKsmPublicKeysRequest; - /** - * Decodes a GetKsmPublicKeysRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetKsmPublicKeysRequest - * @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)): Authentication.GetKsmPublicKeysRequest; - - /** - * Verifies a GetKsmPublicKeysRequest 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 GetKsmPublicKeysRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -14386,14 +11410,6 @@ export namespace Authentication { */ public static encode(message: Authentication.IDevicePublicKeyResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified DevicePublicKeyResponse message, length delimited. Does not implicitly {@link Authentication.DevicePublicKeyResponse.verify|verify} messages. - * @param message DevicePublicKeyResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Authentication.IDevicePublicKeyResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a DevicePublicKeyResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -14404,22 +11420,6 @@ export namespace Authentication { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.DevicePublicKeyResponse; - /** - * Decodes a DevicePublicKeyResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns DevicePublicKeyResponse - * @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)): Authentication.DevicePublicKeyResponse; - - /** - * Verifies a DevicePublicKeyResponse 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 DevicePublicKeyResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -14483,14 +11483,6 @@ export namespace Authentication { */ public static encode(message: Authentication.IGetKsmPublicKeysResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified GetKsmPublicKeysResponse message, length delimited. Does not implicitly {@link Authentication.GetKsmPublicKeysResponse.verify|verify} messages. - * @param message GetKsmPublicKeysResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Authentication.IGetKsmPublicKeysResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a GetKsmPublicKeysResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -14501,22 +11493,6 @@ export namespace Authentication { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.GetKsmPublicKeysResponse; - /** - * Decodes a GetKsmPublicKeysResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetKsmPublicKeysResponse - * @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)): Authentication.GetKsmPublicKeysResponse; - - /** - * Verifies a GetKsmPublicKeysResponse 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 GetKsmPublicKeysResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -14603,14 +11579,6 @@ export namespace Authentication { */ public static encode(message: Authentication.IAddAppSharesRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified AddAppSharesRequest message, length delimited. Does not implicitly {@link Authentication.AddAppSharesRequest.verify|verify} messages. - * @param message AddAppSharesRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Authentication.IAddAppSharesRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes an AddAppSharesRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -14621,22 +11589,6 @@ export namespace Authentication { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.AddAppSharesRequest; - /** - * Decodes an AddAppSharesRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns AddAppSharesRequest - * @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)): Authentication.AddAppSharesRequest; - - /** - * Verifies an AddAppSharesRequest 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 AddAppSharesRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -14706,14 +11658,6 @@ export namespace Authentication { */ public static encode(message: Authentication.IRemoveAppSharesRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified RemoveAppSharesRequest message, length delimited. Does not implicitly {@link Authentication.RemoveAppSharesRequest.verify|verify} messages. - * @param message RemoveAppSharesRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Authentication.IRemoveAppSharesRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a RemoveAppSharesRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -14724,22 +11668,6 @@ export namespace Authentication { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.RemoveAppSharesRequest; - /** - * Decodes a RemoveAppSharesRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RemoveAppSharesRequest - * @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)): Authentication.RemoveAppSharesRequest; - - /** - * Verifies a RemoveAppSharesRequest 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 RemoveAppSharesRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -14821,14 +11749,6 @@ export namespace Authentication { */ public static encode(message: Authentication.IAppShareAdd, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified AppShareAdd message, length delimited. Does not implicitly {@link Authentication.AppShareAdd.verify|verify} messages. - * @param message AppShareAdd message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Authentication.IAppShareAdd, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes an AppShareAdd message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -14839,22 +11759,6 @@ export namespace Authentication { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.AppShareAdd; - /** - * Decodes an AppShareAdd message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns AppShareAdd - * @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)): Authentication.AppShareAdd; - - /** - * Verifies an AppShareAdd 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 AppShareAdd message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -14942,14 +11846,6 @@ export namespace Authentication { */ public static encode(message: Authentication.IAppShare, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified AppShare message, length delimited. Does not implicitly {@link Authentication.AppShare.verify|verify} messages. - * @param message AppShare message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Authentication.IAppShare, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes an AppShare message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -14960,22 +11856,6 @@ export namespace Authentication { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.AppShare; - /** - * Decodes an AppShare message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns AppShare - * @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)): Authentication.AppShare; - - /** - * Verifies an AppShare 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 AppShare message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -15081,14 +11961,6 @@ export namespace Authentication { */ public static encode(message: Authentication.IAddAppClientRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified AddAppClientRequest message, length delimited. Does not implicitly {@link Authentication.AddAppClientRequest.verify|verify} messages. - * @param message AddAppClientRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Authentication.IAddAppClientRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes an AddAppClientRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -15099,22 +11971,6 @@ export namespace Authentication { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.AddAppClientRequest; - /** - * Decodes an AddAppClientRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns AddAppClientRequest - * @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)): Authentication.AddAppClientRequest; - - /** - * Verifies an AddAppClientRequest 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 AddAppClientRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -15184,14 +12040,6 @@ export namespace Authentication { */ public static encode(message: Authentication.IRemoveAppClientsRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified RemoveAppClientsRequest message, length delimited. Does not implicitly {@link Authentication.RemoveAppClientsRequest.verify|verify} messages. - * @param message RemoveAppClientsRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Authentication.IRemoveAppClientsRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a RemoveAppClientsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -15202,22 +12050,6 @@ export namespace Authentication { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.RemoveAppClientsRequest; - /** - * Decodes a RemoveAppClientsRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RemoveAppClientsRequest - * @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)): Authentication.RemoveAppClientsRequest; - - /** - * Verifies a RemoveAppClientsRequest 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 RemoveAppClientsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -15317,14 +12149,6 @@ export namespace Authentication { */ public static encode(message: Authentication.IAddExternalShareRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified AddExternalShareRequest message, length delimited. Does not implicitly {@link Authentication.AddExternalShareRequest.verify|verify} messages. - * @param message AddExternalShareRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Authentication.IAddExternalShareRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes an AddExternalShareRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -15335,22 +12159,6 @@ export namespace Authentication { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.AddExternalShareRequest; - /** - * Decodes an AddExternalShareRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns AddExternalShareRequest - * @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)): Authentication.AddExternalShareRequest; - - /** - * Verifies an AddExternalShareRequest 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 AddExternalShareRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -15480,14 +12288,6 @@ export namespace Authentication { */ public static encode(message: Authentication.IAppClient, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified AppClient message, length delimited. Does not implicitly {@link Authentication.AppClient.verify|verify} messages. - * @param message AppClient message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Authentication.IAppClient, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes an AppClient message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -15498,22 +12298,6 @@ export namespace Authentication { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.AppClient; - /** - * Decodes an AppClient message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns AppClient - * @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)): Authentication.AppClient; - - /** - * Verifies an AppClient 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 AppClient message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -15577,14 +12361,6 @@ export namespace Authentication { */ public static encode(message: Authentication.IGetAppInfoRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified GetAppInfoRequest message, length delimited. Does not implicitly {@link Authentication.GetAppInfoRequest.verify|verify} messages. - * @param message GetAppInfoRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Authentication.IGetAppInfoRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a GetAppInfoRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -15595,22 +12371,6 @@ export namespace Authentication { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.GetAppInfoRequest; - /** - * Decodes a GetAppInfoRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetAppInfoRequest - * @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)): Authentication.GetAppInfoRequest; - - /** - * Verifies a GetAppInfoRequest 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 GetAppInfoRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -15692,14 +12452,6 @@ export namespace Authentication { */ public static encode(message: Authentication.IAppInfo, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified AppInfo message, length delimited. Does not implicitly {@link Authentication.AppInfo.verify|verify} messages. - * @param message AppInfo message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Authentication.IAppInfo, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes an AppInfo message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -15710,22 +12462,6 @@ export namespace Authentication { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.AppInfo; - /** - * Decodes an AppInfo message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns AppInfo - * @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)): Authentication.AppInfo; - - /** - * Verifies an AppInfo 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 AppInfo message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -15789,14 +12525,6 @@ export namespace Authentication { */ public static encode(message: Authentication.IGetAppInfoResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified GetAppInfoResponse message, length delimited. Does not implicitly {@link Authentication.GetAppInfoResponse.verify|verify} messages. - * @param message GetAppInfoResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Authentication.IGetAppInfoResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a GetAppInfoResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -15807,22 +12535,6 @@ export namespace Authentication { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.GetAppInfoResponse; - /** - * Decodes a GetAppInfoResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetAppInfoResponse - * @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)): Authentication.GetAppInfoResponse; - - /** - * Verifies a GetAppInfoResponse 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 GetAppInfoResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -15934,14 +12646,6 @@ export namespace Authentication { */ public static encode(message: Authentication.IApplicationSummary, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified ApplicationSummary message, length delimited. Does not implicitly {@link Authentication.ApplicationSummary.verify|verify} messages. - * @param message ApplicationSummary message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Authentication.IApplicationSummary, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes an ApplicationSummary message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -15952,22 +12656,6 @@ export namespace Authentication { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.ApplicationSummary; - /** - * Decodes an ApplicationSummary message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ApplicationSummary - * @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)): Authentication.ApplicationSummary; - - /** - * Verifies an ApplicationSummary 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 ApplicationSummary message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -16031,14 +12719,6 @@ export namespace Authentication { */ public static encode(message: Authentication.IGetApplicationsSummaryResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified GetApplicationsSummaryResponse message, length delimited. Does not implicitly {@link Authentication.GetApplicationsSummaryResponse.verify|verify} messages. - * @param message GetApplicationsSummaryResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Authentication.IGetApplicationsSummaryResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a GetApplicationsSummaryResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -16049,22 +12729,6 @@ export namespace Authentication { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.GetApplicationsSummaryResponse; - /** - * Decodes a GetApplicationsSummaryResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetApplicationsSummaryResponse - * @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)): Authentication.GetApplicationsSummaryResponse; - - /** - * Verifies a GetApplicationsSummaryResponse 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 GetApplicationsSummaryResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -16128,14 +12792,6 @@ export namespace Authentication { */ public static encode(message: Authentication.IGetVerificationTokenRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified GetVerificationTokenRequest message, length delimited. Does not implicitly {@link Authentication.GetVerificationTokenRequest.verify|verify} messages. - * @param message GetVerificationTokenRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Authentication.IGetVerificationTokenRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a GetVerificationTokenRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -16146,22 +12802,6 @@ export namespace Authentication { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.GetVerificationTokenRequest; - /** - * Decodes a GetVerificationTokenRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetVerificationTokenRequest - * @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)): Authentication.GetVerificationTokenRequest; - - /** - * Verifies a GetVerificationTokenRequest 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 GetVerificationTokenRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -16225,14 +12865,6 @@ export namespace Authentication { */ public static encode(message: Authentication.IGetVerificationTokenResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified GetVerificationTokenResponse message, length delimited. Does not implicitly {@link Authentication.GetVerificationTokenResponse.verify|verify} messages. - * @param message GetVerificationTokenResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Authentication.IGetVerificationTokenResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a GetVerificationTokenResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -16243,22 +12875,6 @@ export namespace Authentication { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.GetVerificationTokenResponse; - /** - * Decodes a GetVerificationTokenResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetVerificationTokenResponse - * @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)): Authentication.GetVerificationTokenResponse; - - /** - * Verifies a GetVerificationTokenResponse 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 GetVerificationTokenResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -16322,14 +12938,6 @@ export namespace Authentication { */ public static encode(message: Authentication.ISendShareInviteRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified SendShareInviteRequest message, length delimited. Does not implicitly {@link Authentication.SendShareInviteRequest.verify|verify} messages. - * @param message SendShareInviteRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Authentication.ISendShareInviteRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a SendShareInviteRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -16340,22 +12948,6 @@ export namespace Authentication { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.SendShareInviteRequest; - /** - * Decodes a SendShareInviteRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SendShareInviteRequest - * @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)): Authentication.SendShareInviteRequest; - - /** - * Verifies a SendShareInviteRequest 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 SendShareInviteRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -16457,14 +13049,6 @@ export namespace Authentication { */ public static encode(message: Authentication.ITimeLimitedAccessRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified TimeLimitedAccessRequest message, length delimited. Does not implicitly {@link Authentication.TimeLimitedAccessRequest.verify|verify} messages. - * @param message TimeLimitedAccessRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Authentication.ITimeLimitedAccessRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a TimeLimitedAccessRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -16475,22 +13059,6 @@ export namespace Authentication { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.TimeLimitedAccessRequest; - /** - * Decodes a TimeLimitedAccessRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns TimeLimitedAccessRequest - * @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)): Authentication.TimeLimitedAccessRequest; - - /** - * Verifies a TimeLimitedAccessRequest 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 TimeLimitedAccessRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -16560,14 +13128,6 @@ export namespace Authentication { */ public static encode(message: Authentication.ITimeLimitedAccessStatus, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified TimeLimitedAccessStatus message, length delimited. Does not implicitly {@link Authentication.TimeLimitedAccessStatus.verify|verify} messages. - * @param message TimeLimitedAccessStatus message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Authentication.ITimeLimitedAccessStatus, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a TimeLimitedAccessStatus message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -16578,22 +13138,6 @@ export namespace Authentication { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.TimeLimitedAccessStatus; - /** - * Decodes a TimeLimitedAccessStatus message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns TimeLimitedAccessStatus - * @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)): Authentication.TimeLimitedAccessStatus; - - /** - * Verifies a TimeLimitedAccessStatus 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 TimeLimitedAccessStatus message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -16675,14 +13219,6 @@ export namespace Authentication { */ public static encode(message: Authentication.ITimeLimitedAccessResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified TimeLimitedAccessResponse message, length delimited. Does not implicitly {@link Authentication.TimeLimitedAccessResponse.verify|verify} messages. - * @param message TimeLimitedAccessResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Authentication.ITimeLimitedAccessResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a TimeLimitedAccessResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -16693,22 +13229,6 @@ export namespace Authentication { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.TimeLimitedAccessResponse; - /** - * Decodes a TimeLimitedAccessResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns TimeLimitedAccessResponse - * @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)): Authentication.TimeLimitedAccessResponse; - - /** - * Verifies a TimeLimitedAccessResponse 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 TimeLimitedAccessResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -16772,14 +13292,6 @@ export namespace Authentication { */ public static encode(message: Authentication.IRequestDownloadRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified RequestDownloadRequest message, length delimited. Does not implicitly {@link Authentication.RequestDownloadRequest.verify|verify} messages. - * @param message RequestDownloadRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Authentication.IRequestDownloadRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a RequestDownloadRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -16790,22 +13302,6 @@ export namespace Authentication { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.RequestDownloadRequest; - /** - * Decodes a RequestDownloadRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RequestDownloadRequest - * @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)): Authentication.RequestDownloadRequest; - - /** - * Verifies a RequestDownloadRequest 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 RequestDownloadRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -16881,14 +13377,6 @@ export namespace Authentication { */ public static encode(message: Authentication.IRequestDownloadResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified RequestDownloadResponse message, length delimited. Does not implicitly {@link Authentication.RequestDownloadResponse.verify|verify} messages. - * @param message RequestDownloadResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Authentication.IRequestDownloadResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a RequestDownloadResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -16899,22 +13387,6 @@ export namespace Authentication { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.RequestDownloadResponse; - /** - * Decodes a RequestDownloadResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RequestDownloadResponse - * @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)): Authentication.RequestDownloadResponse; - - /** - * Verifies a RequestDownloadResponse 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 RequestDownloadResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -16990,14 +13462,6 @@ export namespace Authentication { */ public static encode(message: Authentication.IDownload, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified Download message, length delimited. Does not implicitly {@link Authentication.Download.verify|verify} messages. - * @param message Download message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Authentication.IDownload, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a Download message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -17008,22 +13472,6 @@ export namespace Authentication { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.Download; - /** - * Decodes a Download message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Download - * @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)): Authentication.Download; - - /** - * Verifies a Download 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 Download message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -17087,14 +13535,6 @@ export namespace Authentication { */ public static encode(message: Authentication.IDeleteUserRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified DeleteUserRequest message, length delimited. Does not implicitly {@link Authentication.DeleteUserRequest.verify|verify} messages. - * @param message DeleteUserRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Authentication.IDeleteUserRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a DeleteUserRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -17105,22 +13545,6 @@ export namespace Authentication { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.DeleteUserRequest; - /** - * Decodes a DeleteUserRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns DeleteUserRequest - * @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)): Authentication.DeleteUserRequest; - - /** - * Verifies a DeleteUserRequest 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 DeleteUserRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -17202,14 +13626,6 @@ export namespace Authentication { */ public static encode(message: Authentication.IChangeMasterPasswordRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified ChangeMasterPasswordRequest message, length delimited. Does not implicitly {@link Authentication.ChangeMasterPasswordRequest.verify|verify} messages. - * @param message ChangeMasterPasswordRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Authentication.IChangeMasterPasswordRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a ChangeMasterPasswordRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -17220,22 +13636,6 @@ export namespace Authentication { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.ChangeMasterPasswordRequest; - /** - * Decodes a ChangeMasterPasswordRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ChangeMasterPasswordRequest - * @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)): Authentication.ChangeMasterPasswordRequest; - - /** - * Verifies a ChangeMasterPasswordRequest 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 ChangeMasterPasswordRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -17299,14 +13699,6 @@ export namespace Authentication { */ public static encode(message: Authentication.IChangeMasterPasswordResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified ChangeMasterPasswordResponse message, length delimited. Does not implicitly {@link Authentication.ChangeMasterPasswordResponse.verify|verify} messages. - * @param message ChangeMasterPasswordResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Authentication.IChangeMasterPasswordResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a ChangeMasterPasswordResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -17317,22 +13709,6 @@ export namespace Authentication { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.ChangeMasterPasswordResponse; - /** - * Decodes a ChangeMasterPasswordResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ChangeMasterPasswordResponse - * @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)): Authentication.ChangeMasterPasswordResponse; - - /** - * Verifies a ChangeMasterPasswordResponse 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 ChangeMasterPasswordResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -17402,14 +13778,6 @@ export namespace Authentication { */ public static encode(message: Authentication.IAccountRecoverySetupRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified AccountRecoverySetupRequest message, length delimited. Does not implicitly {@link Authentication.AccountRecoverySetupRequest.verify|verify} messages. - * @param message AccountRecoverySetupRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Authentication.IAccountRecoverySetupRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes an AccountRecoverySetupRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -17420,22 +13788,6 @@ export namespace Authentication { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.AccountRecoverySetupRequest; - /** - * Decodes an AccountRecoverySetupRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns AccountRecoverySetupRequest - * @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)): Authentication.AccountRecoverySetupRequest; - - /** - * Verifies an AccountRecoverySetupRequest 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 AccountRecoverySetupRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -17529,14 +13881,6 @@ export namespace Authentication { */ public static encode(message: Authentication.IAccountRecoveryVerifyCodeResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified AccountRecoveryVerifyCodeResponse message, length delimited. Does not implicitly {@link Authentication.AccountRecoveryVerifyCodeResponse.verify|verify} messages. - * @param message AccountRecoveryVerifyCodeResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Authentication.IAccountRecoveryVerifyCodeResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes an AccountRecoveryVerifyCodeResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -17547,22 +13891,6 @@ export namespace Authentication { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.AccountRecoveryVerifyCodeResponse; - /** - * Decodes an AccountRecoveryVerifyCodeResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns AccountRecoveryVerifyCodeResponse - * @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)): Authentication.AccountRecoveryVerifyCodeResponse; - - /** - * Verifies an AccountRecoveryVerifyCodeResponse 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 AccountRecoveryVerifyCodeResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -17626,14 +13954,6 @@ export namespace Authentication { */ public static encode(message: Authentication.IEmergencyAccessLoginRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified EmergencyAccessLoginRequest message, length delimited. Does not implicitly {@link Authentication.EmergencyAccessLoginRequest.verify|verify} messages. - * @param message EmergencyAccessLoginRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Authentication.IEmergencyAccessLoginRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes an EmergencyAccessLoginRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -17644,22 +13964,6 @@ export namespace Authentication { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.EmergencyAccessLoginRequest; - /** - * Decodes an EmergencyAccessLoginRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns EmergencyAccessLoginRequest - * @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)): Authentication.EmergencyAccessLoginRequest; - - /** - * Verifies an EmergencyAccessLoginRequest 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 EmergencyAccessLoginRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -17741,14 +14045,6 @@ export namespace Authentication { */ public static encode(message: Authentication.IEmergencyAccessLoginResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified EmergencyAccessLoginResponse message, length delimited. Does not implicitly {@link Authentication.EmergencyAccessLoginResponse.verify|verify} messages. - * @param message EmergencyAccessLoginResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Authentication.IEmergencyAccessLoginResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes an EmergencyAccessLoginResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -17759,22 +14055,6 @@ export namespace Authentication { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.EmergencyAccessLoginResponse; - /** - * Decodes an EmergencyAccessLoginResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns EmergencyAccessLoginResponse - * @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)): Authentication.EmergencyAccessLoginResponse; - - /** - * Verifies an EmergencyAccessLoginResponse 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 EmergencyAccessLoginResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -17877,14 +14157,6 @@ export namespace Authentication { */ public static encode(message: Authentication.IUserTeamKey, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified UserTeamKey message, length delimited. Does not implicitly {@link Authentication.UserTeamKey.verify|verify} messages. - * @param message UserTeamKey message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Authentication.IUserTeamKey, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a UserTeamKey message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -17895,22 +14167,6 @@ export namespace Authentication { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.UserTeamKey; - /** - * Decodes a UserTeamKey message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns UserTeamKey - * @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)): Authentication.UserTeamKey; - - /** - * Verifies a UserTeamKey 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 UserTeamKey message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -17974,14 +14230,6 @@ export namespace Authentication { */ public static encode(message: Authentication.IGenericRequestResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified GenericRequestResponse message, length delimited. Does not implicitly {@link Authentication.GenericRequestResponse.verify|verify} messages. - * @param message GenericRequestResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Authentication.IGenericRequestResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a GenericRequestResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -17992,22 +14240,6 @@ export namespace Authentication { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.GenericRequestResponse; - /** - * Decodes a GenericRequestResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GenericRequestResponse - * @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)): Authentication.GenericRequestResponse; - - /** - * Verifies a GenericRequestResponse 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 GenericRequestResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -18078,14 +14310,6 @@ export namespace Authentication { */ public static encode(message: Authentication.IPasskeyRegistrationRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified PasskeyRegistrationRequest message, length delimited. Does not implicitly {@link Authentication.PasskeyRegistrationRequest.verify|verify} messages. - * @param message PasskeyRegistrationRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Authentication.IPasskeyRegistrationRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a PasskeyRegistrationRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -18096,22 +14320,6 @@ export namespace Authentication { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.PasskeyRegistrationRequest; - /** - * Decodes a PasskeyRegistrationRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns PasskeyRegistrationRequest - * @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)): Authentication.PasskeyRegistrationRequest; - - /** - * Verifies a PasskeyRegistrationRequest 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 PasskeyRegistrationRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -18181,14 +14389,6 @@ export namespace Authentication { */ public static encode(message: Authentication.IPasskeyRegistrationResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified PasskeyRegistrationResponse message, length delimited. Does not implicitly {@link Authentication.PasskeyRegistrationResponse.verify|verify} messages. - * @param message PasskeyRegistrationResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Authentication.IPasskeyRegistrationResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a PasskeyRegistrationResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -18199,22 +14399,6 @@ export namespace Authentication { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.PasskeyRegistrationResponse; - /** - * Decodes a PasskeyRegistrationResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns PasskeyRegistrationResponse - * @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)): Authentication.PasskeyRegistrationResponse; - - /** - * Verifies a PasskeyRegistrationResponse 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 PasskeyRegistrationResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -18290,14 +14474,6 @@ export namespace Authentication { */ public static encode(message: Authentication.IPasskeyRegistrationFinalization, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified PasskeyRegistrationFinalization message, length delimited. Does not implicitly {@link Authentication.PasskeyRegistrationFinalization.verify|verify} messages. - * @param message PasskeyRegistrationFinalization message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Authentication.IPasskeyRegistrationFinalization, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a PasskeyRegistrationFinalization message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -18308,22 +14484,6 @@ export namespace Authentication { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.PasskeyRegistrationFinalization; - /** - * Decodes a PasskeyRegistrationFinalization message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns PasskeyRegistrationFinalization - * @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)): Authentication.PasskeyRegistrationFinalization; - - /** - * Verifies a PasskeyRegistrationFinalization 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 PasskeyRegistrationFinalization message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -18423,14 +14583,6 @@ export namespace Authentication { */ public static encode(message: Authentication.IPasskeyAuthenticationRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified PasskeyAuthenticationRequest message, length delimited. Does not implicitly {@link Authentication.PasskeyAuthenticationRequest.verify|verify} messages. - * @param message PasskeyAuthenticationRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Authentication.IPasskeyAuthenticationRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a PasskeyAuthenticationRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -18441,22 +14593,6 @@ export namespace Authentication { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.PasskeyAuthenticationRequest; - /** - * Decodes a PasskeyAuthenticationRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns PasskeyAuthenticationRequest - * @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)): Authentication.PasskeyAuthenticationRequest; - - /** - * Verifies a PasskeyAuthenticationRequest 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 PasskeyAuthenticationRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -18532,14 +14668,6 @@ export namespace Authentication { */ public static encode(message: Authentication.IPasskeyAuthenticationResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified PasskeyAuthenticationResponse message, length delimited. Does not implicitly {@link Authentication.PasskeyAuthenticationResponse.verify|verify} messages. - * @param message PasskeyAuthenticationResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Authentication.IPasskeyAuthenticationResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a PasskeyAuthenticationResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -18550,22 +14678,6 @@ export namespace Authentication { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.PasskeyAuthenticationResponse; - /** - * Decodes a PasskeyAuthenticationResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns PasskeyAuthenticationResponse - * @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)): Authentication.PasskeyAuthenticationResponse; - - /** - * Verifies a PasskeyAuthenticationResponse 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 PasskeyAuthenticationResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -18647,14 +14759,6 @@ export namespace Authentication { */ public static encode(message: Authentication.IPasskeyValidationRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified PasskeyValidationRequest message, length delimited. Does not implicitly {@link Authentication.PasskeyValidationRequest.verify|verify} messages. - * @param message PasskeyValidationRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Authentication.IPasskeyValidationRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a PasskeyValidationRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -18665,22 +14769,6 @@ export namespace Authentication { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.PasskeyValidationRequest; - /** - * Decodes a PasskeyValidationRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns PasskeyValidationRequest - * @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)): Authentication.PasskeyValidationRequest; - - /** - * Verifies a PasskeyValidationRequest 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 PasskeyValidationRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -18750,14 +14838,6 @@ export namespace Authentication { */ public static encode(message: Authentication.IPasskeyValidationResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified PasskeyValidationResponse message, length delimited. Does not implicitly {@link Authentication.PasskeyValidationResponse.verify|verify} messages. - * @param message PasskeyValidationResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Authentication.IPasskeyValidationResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a PasskeyValidationResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -18768,22 +14848,6 @@ export namespace Authentication { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.PasskeyValidationResponse; - /** - * Decodes a PasskeyValidationResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns PasskeyValidationResponse - * @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)): Authentication.PasskeyValidationResponse; - - /** - * Verifies a PasskeyValidationResponse 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 PasskeyValidationResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -18859,14 +14923,6 @@ export namespace Authentication { */ public static encode(message: Authentication.IUpdatePasskeyRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified UpdatePasskeyRequest message, length delimited. Does not implicitly {@link Authentication.UpdatePasskeyRequest.verify|verify} messages. - * @param message UpdatePasskeyRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Authentication.IUpdatePasskeyRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes an UpdatePasskeyRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -18877,22 +14933,6 @@ export namespace Authentication { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.UpdatePasskeyRequest; - /** - * Decodes an UpdatePasskeyRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns UpdatePasskeyRequest - * @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)): Authentication.UpdatePasskeyRequest; - - /** - * Verifies an UpdatePasskeyRequest 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 UpdatePasskeyRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -18956,14 +14996,6 @@ export namespace Authentication { */ public static encode(message: Authentication.IPasskeyListRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified PasskeyListRequest message, length delimited. Does not implicitly {@link Authentication.PasskeyListRequest.verify|verify} messages. - * @param message PasskeyListRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Authentication.IPasskeyListRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a PasskeyListRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -18974,22 +15006,6 @@ export namespace Authentication { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.PasskeyListRequest; - /** - * Decodes a PasskeyListRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns PasskeyListRequest - * @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)): Authentication.PasskeyListRequest; - - /** - * Verifies a PasskeyListRequest 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 PasskeyListRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -19089,14 +15105,6 @@ export namespace Authentication { */ public static encode(message: Authentication.IPasskeyInfo, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified PasskeyInfo message, length delimited. Does not implicitly {@link Authentication.PasskeyInfo.verify|verify} messages. - * @param message PasskeyInfo message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Authentication.IPasskeyInfo, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a PasskeyInfo message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -19107,22 +15115,6 @@ export namespace Authentication { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.PasskeyInfo; - /** - * Decodes a PasskeyInfo message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns PasskeyInfo - * @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)): Authentication.PasskeyInfo; - - /** - * Verifies a PasskeyInfo 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 PasskeyInfo message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -19186,14 +15178,6 @@ export namespace Authentication { */ public static encode(message: Authentication.IPasskeyListResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified PasskeyListResponse message, length delimited. Does not implicitly {@link Authentication.PasskeyListResponse.verify|verify} messages. - * @param message PasskeyListResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Authentication.IPasskeyListResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a PasskeyListResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -19204,22 +15188,6 @@ export namespace Authentication { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.PasskeyListResponse; - /** - * Decodes a PasskeyListResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns PasskeyListResponse - * @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)): Authentication.PasskeyListResponse; - - /** - * Verifies a PasskeyListResponse 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 PasskeyListResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -19297,14 +15265,6 @@ export namespace Authentication { */ public static encode(message: Authentication.ITranslationInfo, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified TranslationInfo message, length delimited. Does not implicitly {@link Authentication.TranslationInfo.verify|verify} messages. - * @param message TranslationInfo message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Authentication.ITranslationInfo, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a TranslationInfo message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -19315,22 +15275,6 @@ export namespace Authentication { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.TranslationInfo; - /** - * Decodes a TranslationInfo message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns TranslationInfo - * @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)): Authentication.TranslationInfo; - - /** - * Verifies a TranslationInfo 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 TranslationInfo message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -19394,14 +15338,6 @@ export namespace Authentication { */ public static encode(message: Authentication.ITranslationRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified TranslationRequest message, length delimited. Does not implicitly {@link Authentication.TranslationRequest.verify|verify} messages. - * @param message TranslationRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Authentication.ITranslationRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a TranslationRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -19412,22 +15348,6 @@ export namespace Authentication { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.TranslationRequest; - /** - * Decodes a TranslationRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns TranslationRequest - * @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)): Authentication.TranslationRequest; - - /** - * Verifies a TranslationRequest 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 TranslationRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -19491,14 +15411,6 @@ export namespace Authentication { */ public static encode(message: Authentication.ITranslationResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified TranslationResponse message, length delimited. Does not implicitly {@link Authentication.TranslationResponse.verify|verify} messages. - * @param message TranslationResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Authentication.ITranslationResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a TranslationResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -19509,22 +15421,6 @@ export namespace Authentication { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.TranslationResponse; - /** - * Decodes a TranslationResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns TranslationResponse - * @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)): Authentication.TranslationResponse; - - /** - * Verifies a TranslationResponse 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 TranslationResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -19610,14 +15506,6 @@ export namespace Enterprise { */ public static encode(message: Enterprise.IEnterpriseKeyPairRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified EnterpriseKeyPairRequest message, length delimited. Does not implicitly {@link Enterprise.EnterpriseKeyPairRequest.verify|verify} messages. - * @param message EnterpriseKeyPairRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Enterprise.IEnterpriseKeyPairRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes an EnterpriseKeyPairRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -19628,22 +15516,6 @@ export namespace Enterprise { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.EnterpriseKeyPairRequest; - /** - * Decodes an EnterpriseKeyPairRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns EnterpriseKeyPairRequest - * @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)): Enterprise.EnterpriseKeyPairRequest; - - /** - * Verifies an EnterpriseKeyPairRequest 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 EnterpriseKeyPairRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -19707,14 +15579,6 @@ export namespace Enterprise { */ public static encode(message: Enterprise.IGetTeamMemberRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified GetTeamMemberRequest message, length delimited. Does not implicitly {@link Enterprise.GetTeamMemberRequest.verify|verify} messages. - * @param message GetTeamMemberRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Enterprise.IGetTeamMemberRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a GetTeamMemberRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -19725,22 +15589,6 @@ export namespace Enterprise { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.GetTeamMemberRequest; - /** - * Decodes a GetTeamMemberRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetTeamMemberRequest - * @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)): Enterprise.GetTeamMemberRequest; - - /** - * Verifies a GetTeamMemberRequest 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 GetTeamMemberRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -19828,14 +15676,6 @@ export namespace Enterprise { */ public static encode(message: Enterprise.IEnterpriseUser, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified EnterpriseUser message, length delimited. Does not implicitly {@link Enterprise.EnterpriseUser.verify|verify} messages. - * @param message EnterpriseUser message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Enterprise.IEnterpriseUser, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes an EnterpriseUser message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -19846,22 +15686,6 @@ export namespace Enterprise { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.EnterpriseUser; - /** - * Decodes an EnterpriseUser message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns EnterpriseUser - * @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)): Enterprise.EnterpriseUser; - - /** - * Verifies an EnterpriseUser 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 EnterpriseUser message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -19925,14 +15749,6 @@ export namespace Enterprise { */ public static encode(message: Enterprise.IGetTeamMemberResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified GetTeamMemberResponse message, length delimited. Does not implicitly {@link Enterprise.GetTeamMemberResponse.verify|verify} messages. - * @param message GetTeamMemberResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Enterprise.IGetTeamMemberResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a GetTeamMemberResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -19943,22 +15759,6 @@ export namespace Enterprise { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.GetTeamMemberResponse; - /** - * Decodes a GetTeamMemberResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetTeamMemberResponse - * @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)): Enterprise.GetTeamMemberResponse; - - /** - * Verifies a GetTeamMemberResponse 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 GetTeamMemberResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -20022,14 +15822,6 @@ export namespace Enterprise { */ public static encode(message: Enterprise.IEnterpriseUserIds, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified EnterpriseUserIds message, length delimited. Does not implicitly {@link Enterprise.EnterpriseUserIds.verify|verify} messages. - * @param message EnterpriseUserIds message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Enterprise.IEnterpriseUserIds, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes an EnterpriseUserIds message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -20040,22 +15832,6 @@ export namespace Enterprise { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.EnterpriseUserIds; - /** - * Decodes an EnterpriseUserIds message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns EnterpriseUserIds - * @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)): Enterprise.EnterpriseUserIds; - - /** - * Verifies an EnterpriseUserIds 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 EnterpriseUserIds message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -20125,14 +15901,6 @@ export namespace Enterprise { */ public static encode(message: Enterprise.IEnterprisePersonalAccount, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified EnterprisePersonalAccount message, length delimited. Does not implicitly {@link Enterprise.EnterprisePersonalAccount.verify|verify} messages. - * @param message EnterprisePersonalAccount message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Enterprise.IEnterprisePersonalAccount, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes an EnterprisePersonalAccount message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -20143,22 +15911,6 @@ export namespace Enterprise { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.EnterprisePersonalAccount; - /** - * Decodes an EnterprisePersonalAccount message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns EnterprisePersonalAccount - * @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)): Enterprise.EnterprisePersonalAccount; - - /** - * Verifies an EnterprisePersonalAccount 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 EnterprisePersonalAccount message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -20234,14 +15986,6 @@ export namespace Enterprise { */ public static encode(message: Enterprise.IEncryptedTeamKeyRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified EncryptedTeamKeyRequest message, length delimited. Does not implicitly {@link Enterprise.EncryptedTeamKeyRequest.verify|verify} messages. - * @param message EncryptedTeamKeyRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Enterprise.IEncryptedTeamKeyRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes an EncryptedTeamKeyRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -20252,22 +15996,6 @@ export namespace Enterprise { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.EncryptedTeamKeyRequest; - /** - * Decodes an EncryptedTeamKeyRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns EncryptedTeamKeyRequest - * @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)): Enterprise.EncryptedTeamKeyRequest; - - /** - * Verifies an EncryptedTeamKeyRequest 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 EncryptedTeamKeyRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -20337,14 +16065,6 @@ export namespace Enterprise { */ public static encode(message: Enterprise.IReEncryptedData, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified ReEncryptedData message, length delimited. Does not implicitly {@link Enterprise.ReEncryptedData.verify|verify} messages. - * @param message ReEncryptedData message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Enterprise.IReEncryptedData, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a ReEncryptedData message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -20355,22 +16075,6 @@ export namespace Enterprise { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.ReEncryptedData; - /** - * Decodes a ReEncryptedData message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ReEncryptedData - * @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)): Enterprise.ReEncryptedData; - - /** - * Verifies a ReEncryptedData 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 ReEncryptedData message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -20440,14 +16144,6 @@ export namespace Enterprise { */ public static encode(message: Enterprise.IReEncryptedRoleKey, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified ReEncryptedRoleKey message, length delimited. Does not implicitly {@link Enterprise.ReEncryptedRoleKey.verify|verify} messages. - * @param message ReEncryptedRoleKey message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Enterprise.IReEncryptedRoleKey, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a ReEncryptedRoleKey message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -20458,22 +16154,6 @@ export namespace Enterprise { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.ReEncryptedRoleKey; - /** - * Decodes a ReEncryptedRoleKey message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ReEncryptedRoleKey - * @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)): Enterprise.ReEncryptedRoleKey; - - /** - * Verifies a ReEncryptedRoleKey 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 ReEncryptedRoleKey message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -20543,14 +16223,6 @@ export namespace Enterprise { */ public static encode(message: Enterprise.IReEncryptedUserDataKey, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified ReEncryptedUserDataKey message, length delimited. Does not implicitly {@link Enterprise.ReEncryptedUserDataKey.verify|verify} messages. - * @param message ReEncryptedUserDataKey message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Enterprise.IReEncryptedUserDataKey, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a ReEncryptedUserDataKey message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -20561,22 +16233,6 @@ export namespace Enterprise { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.ReEncryptedUserDataKey; - /** - * Decodes a ReEncryptedUserDataKey message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ReEncryptedUserDataKey - * @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)): Enterprise.ReEncryptedUserDataKey; - - /** - * Verifies a ReEncryptedUserDataKey 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 ReEncryptedUserDataKey message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -20676,14 +16332,6 @@ export namespace Enterprise { */ public static encode(message: Enterprise.INodeToManagedCompanyRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified NodeToManagedCompanyRequest message, length delimited. Does not implicitly {@link Enterprise.NodeToManagedCompanyRequest.verify|verify} messages. - * @param message NodeToManagedCompanyRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Enterprise.INodeToManagedCompanyRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a NodeToManagedCompanyRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -20694,22 +16342,6 @@ export namespace Enterprise { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.NodeToManagedCompanyRequest; - /** - * Decodes a NodeToManagedCompanyRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns NodeToManagedCompanyRequest - * @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)): Enterprise.NodeToManagedCompanyRequest; - - /** - * Verifies a NodeToManagedCompanyRequest 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 NodeToManagedCompanyRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -20779,14 +16411,6 @@ export namespace Enterprise { */ public static encode(message: Enterprise.IRoleTeam, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified RoleTeam message, length delimited. Does not implicitly {@link Enterprise.RoleTeam.verify|verify} messages. - * @param message RoleTeam message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Enterprise.IRoleTeam, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a RoleTeam message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -20797,22 +16421,6 @@ export namespace Enterprise { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.RoleTeam; - /** - * Decodes a RoleTeam message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RoleTeam - * @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)): Enterprise.RoleTeam; - - /** - * Verifies a RoleTeam 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 RoleTeam message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -20876,14 +16484,6 @@ export namespace Enterprise { */ public static encode(message: Enterprise.IRoleTeams, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified RoleTeams message, length delimited. Does not implicitly {@link Enterprise.RoleTeams.verify|verify} messages. - * @param message RoleTeams message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Enterprise.IRoleTeams, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a RoleTeams message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -20894,22 +16494,6 @@ export namespace Enterprise { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.RoleTeams; - /** - * Decodes a RoleTeams message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RoleTeams - * @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)): Enterprise.RoleTeams; - - /** - * Verifies a RoleTeams 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 RoleTeams message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -20979,14 +16563,6 @@ export namespace Enterprise { */ public static encode(message: Enterprise.ITeamsByRole, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified TeamsByRole message, length delimited. Does not implicitly {@link Enterprise.TeamsByRole.verify|verify} messages. - * @param message TeamsByRole message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Enterprise.ITeamsByRole, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a TeamsByRole message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -20997,22 +16573,6 @@ export namespace Enterprise { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.TeamsByRole; - /** - * Decodes a TeamsByRole message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns TeamsByRole - * @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)): Enterprise.TeamsByRole; - - /** - * Verifies a TeamsByRole 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 TeamsByRole message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -21082,14 +16642,6 @@ export namespace Enterprise { */ public static encode(message: Enterprise.IManagedNodesByRole, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified ManagedNodesByRole message, length delimited. Does not implicitly {@link Enterprise.ManagedNodesByRole.verify|verify} messages. - * @param message ManagedNodesByRole message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Enterprise.IManagedNodesByRole, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a ManagedNodesByRole message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -21100,22 +16652,6 @@ export namespace Enterprise { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.ManagedNodesByRole; - /** - * Decodes a ManagedNodesByRole message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ManagedNodesByRole - * @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)): Enterprise.ManagedNodesByRole; - - /** - * Verifies a ManagedNodesByRole 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 ManagedNodesByRole message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -21197,14 +16733,6 @@ export namespace Enterprise { */ public static encode(message: Enterprise.IRoleUserAddKeys, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified RoleUserAddKeys message, length delimited. Does not implicitly {@link Enterprise.RoleUserAddKeys.verify|verify} messages. - * @param message RoleUserAddKeys message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Enterprise.IRoleUserAddKeys, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a RoleUserAddKeys message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -21215,22 +16743,6 @@ export namespace Enterprise { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.RoleUserAddKeys; - /** - * Decodes a RoleUserAddKeys message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RoleUserAddKeys - * @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)): Enterprise.RoleUserAddKeys; - - /** - * Verifies a RoleUserAddKeys 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 RoleUserAddKeys message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -21300,14 +16812,6 @@ export namespace Enterprise { */ public static encode(message: Enterprise.IRoleUserAdd, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified RoleUserAdd message, length delimited. Does not implicitly {@link Enterprise.RoleUserAdd.verify|verify} messages. - * @param message RoleUserAdd message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Enterprise.IRoleUserAdd, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a RoleUserAdd message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -21318,22 +16822,6 @@ export namespace Enterprise { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.RoleUserAdd; - /** - * Decodes a RoleUserAdd message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RoleUserAdd - * @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)): Enterprise.RoleUserAdd; - - /** - * Verifies a RoleUserAdd 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 RoleUserAdd message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -21397,14 +16885,6 @@ export namespace Enterprise { */ public static encode(message: Enterprise.IRoleUsersAddRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified RoleUsersAddRequest message, length delimited. Does not implicitly {@link Enterprise.RoleUsersAddRequest.verify|verify} messages. - * @param message RoleUsersAddRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Enterprise.IRoleUsersAddRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a RoleUsersAddRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -21415,22 +16895,6 @@ export namespace Enterprise { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.RoleUsersAddRequest; - /** - * Decodes a RoleUsersAddRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RoleUsersAddRequest - * @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)): Enterprise.RoleUsersAddRequest; - - /** - * Verifies a RoleUsersAddRequest 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 RoleUsersAddRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -21526,14 +16990,6 @@ export namespace Enterprise { */ public static encode(message: Enterprise.IRoleUserAddResult, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified RoleUserAddResult message, length delimited. Does not implicitly {@link Enterprise.RoleUserAddResult.verify|verify} messages. - * @param message RoleUserAddResult message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Enterprise.IRoleUserAddResult, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a RoleUserAddResult message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -21544,22 +17000,6 @@ export namespace Enterprise { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.RoleUserAddResult; - /** - * Decodes a RoleUserAddResult message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RoleUserAddResult - * @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)): Enterprise.RoleUserAddResult; - - /** - * Verifies a RoleUserAddResult 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 RoleUserAddResult message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -21623,14 +17063,6 @@ export namespace Enterprise { */ public static encode(message: Enterprise.IRoleUsersAddResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified RoleUsersAddResponse message, length delimited. Does not implicitly {@link Enterprise.RoleUsersAddResponse.verify|verify} messages. - * @param message RoleUsersAddResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Enterprise.IRoleUsersAddResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a RoleUsersAddResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -21641,22 +17073,6 @@ export namespace Enterprise { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.RoleUsersAddResponse; - /** - * Decodes a RoleUsersAddResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RoleUsersAddResponse - * @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)): Enterprise.RoleUsersAddResponse; - - /** - * Verifies a RoleUsersAddResponse 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 RoleUsersAddResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -21726,14 +17142,6 @@ export namespace Enterprise { */ public static encode(message: Enterprise.IRoleUserRemove, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified RoleUserRemove message, length delimited. Does not implicitly {@link Enterprise.RoleUserRemove.verify|verify} messages. - * @param message RoleUserRemove message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Enterprise.IRoleUserRemove, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a RoleUserRemove message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -21744,22 +17152,6 @@ export namespace Enterprise { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.RoleUserRemove; - /** - * Decodes a RoleUserRemove message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RoleUserRemove - * @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)): Enterprise.RoleUserRemove; - - /** - * Verifies a RoleUserRemove 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 RoleUserRemove message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -21823,14 +17215,6 @@ export namespace Enterprise { */ public static encode(message: Enterprise.IRoleUsersRemoveRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified RoleUsersRemoveRequest message, length delimited. Does not implicitly {@link Enterprise.RoleUsersRemoveRequest.verify|verify} messages. - * @param message RoleUsersRemoveRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Enterprise.IRoleUsersRemoveRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a RoleUsersRemoveRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -21841,22 +17225,6 @@ export namespace Enterprise { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.RoleUsersRemoveRequest; - /** - * Decodes a RoleUsersRemoveRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RoleUsersRemoveRequest - * @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)): Enterprise.RoleUsersRemoveRequest; - - /** - * Verifies a RoleUsersRemoveRequest 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 RoleUsersRemoveRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -21938,14 +17306,6 @@ export namespace Enterprise { */ public static encode(message: Enterprise.IRoleUserRemoveResult, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified RoleUserRemoveResult message, length delimited. Does not implicitly {@link Enterprise.RoleUserRemoveResult.verify|verify} messages. - * @param message RoleUserRemoveResult message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Enterprise.IRoleUserRemoveResult, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a RoleUserRemoveResult message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -21956,22 +17316,6 @@ export namespace Enterprise { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.RoleUserRemoveResult; - /** - * Decodes a RoleUserRemoveResult message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RoleUserRemoveResult - * @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)): Enterprise.RoleUserRemoveResult; - - /** - * Verifies a RoleUserRemoveResult 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 RoleUserRemoveResult message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -22035,14 +17379,6 @@ export namespace Enterprise { */ public static encode(message: Enterprise.IRoleUsersRemoveResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified RoleUsersRemoveResponse message, length delimited. Does not implicitly {@link Enterprise.RoleUsersRemoveResponse.verify|verify} messages. - * @param message RoleUsersRemoveResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Enterprise.IRoleUsersRemoveResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a RoleUsersRemoveResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -22053,22 +17389,6 @@ export namespace Enterprise { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.RoleUsersRemoveResponse; - /** - * Decodes a RoleUsersRemoveResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RoleUsersRemoveResponse - * @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)): Enterprise.RoleUsersRemoveResponse; - - /** - * Verifies a RoleUsersRemoveResponse 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 RoleUsersRemoveResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -22228,14 +17548,6 @@ export namespace Enterprise { */ public static encode(message: Enterprise.IEnterpriseRegistration, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified EnterpriseRegistration message, length delimited. Does not implicitly {@link Enterprise.EnterpriseRegistration.verify|verify} messages. - * @param message EnterpriseRegistration message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Enterprise.IEnterpriseRegistration, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes an EnterpriseRegistration message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -22246,22 +17558,6 @@ export namespace Enterprise { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.EnterpriseRegistration; - /** - * Decodes an EnterpriseRegistration message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns EnterpriseRegistration - * @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)): Enterprise.EnterpriseRegistration; - - /** - * Verifies an EnterpriseRegistration 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 EnterpriseRegistration message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -22331,14 +17627,6 @@ export namespace Enterprise { */ public static encode(message: Enterprise.IDomainPasswordRulesRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified DomainPasswordRulesRequest message, length delimited. Does not implicitly {@link Enterprise.DomainPasswordRulesRequest.verify|verify} messages. - * @param message DomainPasswordRulesRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Enterprise.IDomainPasswordRulesRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a DomainPasswordRulesRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -22349,22 +17637,6 @@ export namespace Enterprise { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.DomainPasswordRulesRequest; - /** - * Decodes a DomainPasswordRulesRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns DomainPasswordRulesRequest - * @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)): Enterprise.DomainPasswordRulesRequest; - - /** - * Verifies a DomainPasswordRulesRequest 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 DomainPasswordRulesRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -22446,14 +17718,6 @@ export namespace Enterprise { */ public static encode(message: Enterprise.IDomainPasswordRulesFields, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified DomainPasswordRulesFields message, length delimited. Does not implicitly {@link Enterprise.DomainPasswordRulesFields.verify|verify} messages. - * @param message DomainPasswordRulesFields message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Enterprise.IDomainPasswordRulesFields, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a DomainPasswordRulesFields message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -22464,22 +17728,6 @@ export namespace Enterprise { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.DomainPasswordRulesFields; - /** - * Decodes a DomainPasswordRulesFields message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns DomainPasswordRulesFields - * @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)): Enterprise.DomainPasswordRulesFields; - - /** - * Verifies a DomainPasswordRulesFields 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 DomainPasswordRulesFields message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -22549,14 +17797,6 @@ export namespace Enterprise { */ public static encode(message: Enterprise.ILoginToMcRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified LoginToMcRequest message, length delimited. Does not implicitly {@link Enterprise.LoginToMcRequest.verify|verify} messages. - * @param message LoginToMcRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Enterprise.ILoginToMcRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a LoginToMcRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -22567,22 +17807,6 @@ export namespace Enterprise { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.LoginToMcRequest; - /** - * Decodes a LoginToMcRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns LoginToMcRequest - * @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)): Enterprise.LoginToMcRequest; - - /** - * Verifies a LoginToMcRequest 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 LoginToMcRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -22664,14 +17888,6 @@ export namespace Enterprise { */ public static encode(message: Enterprise.ILoginToMcResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified LoginToMcResponse message, length delimited. Does not implicitly {@link Enterprise.LoginToMcResponse.verify|verify} messages. - * @param message LoginToMcResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Enterprise.ILoginToMcResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a LoginToMcResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -22682,22 +17898,6 @@ export namespace Enterprise { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.LoginToMcResponse; - /** - * Decodes a LoginToMcResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns LoginToMcResponse - * @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)): Enterprise.LoginToMcResponse; - - /** - * Verifies a LoginToMcResponse 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 LoginToMcResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -22761,14 +17961,6 @@ export namespace Enterprise { */ public static encode(message: Enterprise.IDomainPasswordRulesResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified DomainPasswordRulesResponse message, length delimited. Does not implicitly {@link Enterprise.DomainPasswordRulesResponse.verify|verify} messages. - * @param message DomainPasswordRulesResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Enterprise.IDomainPasswordRulesResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a DomainPasswordRulesResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -22779,22 +17971,6 @@ export namespace Enterprise { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.DomainPasswordRulesResponse; - /** - * Decodes a DomainPasswordRulesResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns DomainPasswordRulesResponse - * @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)): Enterprise.DomainPasswordRulesResponse; - - /** - * Verifies a DomainPasswordRulesResponse 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 DomainPasswordRulesResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -22876,14 +18052,6 @@ export namespace Enterprise { */ public static encode(message: Enterprise.IApproveUserDeviceRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified ApproveUserDeviceRequest message, length delimited. Does not implicitly {@link Enterprise.ApproveUserDeviceRequest.verify|verify} messages. - * @param message ApproveUserDeviceRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Enterprise.IApproveUserDeviceRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes an ApproveUserDeviceRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -22894,22 +18062,6 @@ export namespace Enterprise { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.ApproveUserDeviceRequest; - /** - * Decodes an ApproveUserDeviceRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ApproveUserDeviceRequest - * @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)): Enterprise.ApproveUserDeviceRequest; - - /** - * Verifies an ApproveUserDeviceRequest 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 ApproveUserDeviceRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -22991,14 +18143,6 @@ export namespace Enterprise { */ public static encode(message: Enterprise.IApproveUserDeviceResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified ApproveUserDeviceResponse message, length delimited. Does not implicitly {@link Enterprise.ApproveUserDeviceResponse.verify|verify} messages. - * @param message ApproveUserDeviceResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Enterprise.IApproveUserDeviceResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes an ApproveUserDeviceResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -23009,22 +18153,6 @@ export namespace Enterprise { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.ApproveUserDeviceResponse; - /** - * Decodes an ApproveUserDeviceResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ApproveUserDeviceResponse - * @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)): Enterprise.ApproveUserDeviceResponse; - - /** - * Verifies an ApproveUserDeviceResponse 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 ApproveUserDeviceResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -23088,14 +18216,6 @@ export namespace Enterprise { */ public static encode(message: Enterprise.IApproveUserDevicesRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified ApproveUserDevicesRequest message, length delimited. Does not implicitly {@link Enterprise.ApproveUserDevicesRequest.verify|verify} messages. - * @param message ApproveUserDevicesRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Enterprise.IApproveUserDevicesRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes an ApproveUserDevicesRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -23106,22 +18226,6 @@ export namespace Enterprise { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.ApproveUserDevicesRequest; - /** - * Decodes an ApproveUserDevicesRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ApproveUserDevicesRequest - * @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)): Enterprise.ApproveUserDevicesRequest; - - /** - * Verifies an ApproveUserDevicesRequest 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 ApproveUserDevicesRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -23185,14 +18289,6 @@ export namespace Enterprise { */ public static encode(message: Enterprise.IApproveUserDevicesResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified ApproveUserDevicesResponse message, length delimited. Does not implicitly {@link Enterprise.ApproveUserDevicesResponse.verify|verify} messages. - * @param message ApproveUserDevicesResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Enterprise.IApproveUserDevicesResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes an ApproveUserDevicesResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -23203,22 +18299,6 @@ export namespace Enterprise { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.ApproveUserDevicesResponse; - /** - * Decodes an ApproveUserDevicesResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ApproveUserDevicesResponse - * @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)): Enterprise.ApproveUserDevicesResponse; - - /** - * Verifies an ApproveUserDevicesResponse 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 ApproveUserDevicesResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -23306,14 +18386,6 @@ export namespace Enterprise { */ public static encode(message: Enterprise.IEnterpriseUserDataKey, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified EnterpriseUserDataKey message, length delimited. Does not implicitly {@link Enterprise.EnterpriseUserDataKey.verify|verify} messages. - * @param message EnterpriseUserDataKey message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Enterprise.IEnterpriseUserDataKey, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes an EnterpriseUserDataKey message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -23324,22 +18396,6 @@ export namespace Enterprise { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.EnterpriseUserDataKey; - /** - * Decodes an EnterpriseUserDataKey message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns EnterpriseUserDataKey - * @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)): Enterprise.EnterpriseUserDataKey; - - /** - * Verifies an EnterpriseUserDataKey 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 EnterpriseUserDataKey message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -23403,14 +18459,6 @@ export namespace Enterprise { */ public static encode(message: Enterprise.IEnterpriseUserDataKeys, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified EnterpriseUserDataKeys message, length delimited. Does not implicitly {@link Enterprise.EnterpriseUserDataKeys.verify|verify} messages. - * @param message EnterpriseUserDataKeys message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Enterprise.IEnterpriseUserDataKeys, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes an EnterpriseUserDataKeys message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -23421,22 +18469,6 @@ export namespace Enterprise { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.EnterpriseUserDataKeys; - /** - * Decodes an EnterpriseUserDataKeys message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns EnterpriseUserDataKeys - * @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)): Enterprise.EnterpriseUserDataKeys; - - /** - * Verifies an EnterpriseUserDataKeys 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 EnterpriseUserDataKeys message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -23512,14 +18544,6 @@ export namespace Enterprise { */ public static encode(message: Enterprise.IEnterpriseUserDataKeyLight, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified EnterpriseUserDataKeyLight message, length delimited. Does not implicitly {@link Enterprise.EnterpriseUserDataKeyLight.verify|verify} messages. - * @param message EnterpriseUserDataKeyLight message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Enterprise.IEnterpriseUserDataKeyLight, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes an EnterpriseUserDataKeyLight message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -23530,22 +18554,6 @@ export namespace Enterprise { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.EnterpriseUserDataKeyLight; - /** - * Decodes an EnterpriseUserDataKeyLight message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns EnterpriseUserDataKeyLight - * @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)): Enterprise.EnterpriseUserDataKeyLight; - - /** - * Verifies an EnterpriseUserDataKeyLight 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 EnterpriseUserDataKeyLight message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -23615,14 +18623,6 @@ export namespace Enterprise { */ public static encode(message: Enterprise.IEnterpriseUserDataKeysByNode, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified EnterpriseUserDataKeysByNode message, length delimited. Does not implicitly {@link Enterprise.EnterpriseUserDataKeysByNode.verify|verify} messages. - * @param message EnterpriseUserDataKeysByNode message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Enterprise.IEnterpriseUserDataKeysByNode, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes an EnterpriseUserDataKeysByNode message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -23633,22 +18633,6 @@ export namespace Enterprise { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.EnterpriseUserDataKeysByNode; - /** - * Decodes an EnterpriseUserDataKeysByNode message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns EnterpriseUserDataKeysByNode - * @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)): Enterprise.EnterpriseUserDataKeysByNode; - - /** - * Verifies an EnterpriseUserDataKeysByNode 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 EnterpriseUserDataKeysByNode message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -23712,14 +18696,6 @@ export namespace Enterprise { */ public static encode(message: Enterprise.IEnterpriseUserDataKeysByNodeResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified EnterpriseUserDataKeysByNodeResponse message, length delimited. Does not implicitly {@link Enterprise.EnterpriseUserDataKeysByNodeResponse.verify|verify} messages. - * @param message EnterpriseUserDataKeysByNodeResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Enterprise.IEnterpriseUserDataKeysByNodeResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes an EnterpriseUserDataKeysByNodeResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -23730,22 +18706,6 @@ export namespace Enterprise { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.EnterpriseUserDataKeysByNodeResponse; - /** - * Decodes an EnterpriseUserDataKeysByNodeResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns EnterpriseUserDataKeysByNodeResponse - * @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)): Enterprise.EnterpriseUserDataKeysByNodeResponse; - - /** - * Verifies an EnterpriseUserDataKeysByNodeResponse 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 EnterpriseUserDataKeysByNodeResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -23809,14 +18769,6 @@ export namespace Enterprise { */ public static encode(message: Enterprise.IEnterpriseDataRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified EnterpriseDataRequest message, length delimited. Does not implicitly {@link Enterprise.EnterpriseDataRequest.verify|verify} messages. - * @param message EnterpriseDataRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Enterprise.IEnterpriseDataRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes an EnterpriseDataRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -23827,22 +18779,6 @@ export namespace Enterprise { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.EnterpriseDataRequest; - /** - * Decodes an EnterpriseDataRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns EnterpriseDataRequest - * @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)): Enterprise.EnterpriseDataRequest; - - /** - * Verifies an EnterpriseDataRequest 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 EnterpriseDataRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -23912,14 +18848,6 @@ export namespace Enterprise { */ public static encode(message: Enterprise.ISpecialProvisioning, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified SpecialProvisioning message, length delimited. Does not implicitly {@link Enterprise.SpecialProvisioning.verify|verify} messages. - * @param message SpecialProvisioning message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Enterprise.ISpecialProvisioning, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a SpecialProvisioning message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -23930,22 +18858,6 @@ export namespace Enterprise { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.SpecialProvisioning; - /** - * Decodes a SpecialProvisioning message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SpecialProvisioning - * @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)): Enterprise.SpecialProvisioning; - - /** - * Verifies a SpecialProvisioning 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 SpecialProvisioning message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -24045,14 +18957,6 @@ export namespace Enterprise { */ public static encode(message: Enterprise.IGeneralDataEntity, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified GeneralDataEntity message, length delimited. Does not implicitly {@link Enterprise.GeneralDataEntity.verify|verify} messages. - * @param message GeneralDataEntity message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Enterprise.IGeneralDataEntity, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a GeneralDataEntity message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -24063,22 +18967,6 @@ export namespace Enterprise { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.GeneralDataEntity; - /** - * Decodes a GeneralDataEntity message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GeneralDataEntity - * @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)): Enterprise.GeneralDataEntity; - - /** - * Verifies a GeneralDataEntity 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 GeneralDataEntity message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -24202,14 +19090,6 @@ export namespace Enterprise { */ public static encode(message: Enterprise.INode, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified Node message, length delimited. Does not implicitly {@link Enterprise.Node.verify|verify} messages. - * @param message Node message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Enterprise.INode, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a Node message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -24220,22 +19100,6 @@ export namespace Enterprise { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.Node; - /** - * Decodes a Node message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Node - * @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)): Enterprise.Node; - - /** - * Verifies a Node 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 Node message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -24335,14 +19199,6 @@ export namespace Enterprise { */ public static encode(message: Enterprise.IRole, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified Role message, length delimited. Does not implicitly {@link Enterprise.Role.verify|verify} messages. - * @param message Role message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Enterprise.IRole, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a Role message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -24353,22 +19209,6 @@ export namespace Enterprise { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.Role; - /** - * Decodes a Role message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Role - * @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)): Enterprise.Role; - - /** - * Verifies a Role 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 Role message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -24513,14 +19353,6 @@ export namespace Enterprise { */ public static encode(message: Enterprise.IUser, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified User message, length delimited. Does not implicitly {@link Enterprise.User.verify|verify} messages. - * @param message User message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Enterprise.IUser, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a User message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -24531,22 +19363,6 @@ export namespace Enterprise { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.User; - /** - * Decodes a User message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns User - * @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)): Enterprise.User; - - /** - * Verifies a User 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 User message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -24616,14 +19432,6 @@ export namespace Enterprise { */ public static encode(message: Enterprise.IUserAlias, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified UserAlias message, length delimited. Does not implicitly {@link Enterprise.UserAlias.verify|verify} messages. - * @param message UserAlias message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Enterprise.IUserAlias, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a UserAlias message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -24634,22 +19442,6 @@ export namespace Enterprise { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.UserAlias; - /** - * Decodes a UserAlias message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns UserAlias - * @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)): Enterprise.UserAlias; - - /** - * Verifies a UserAlias 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 UserAlias message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -24749,14 +19541,6 @@ export namespace Enterprise { */ public static encode(message: Enterprise.IComplianceReportMetaData, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified ComplianceReportMetaData message, length delimited. Does not implicitly {@link Enterprise.ComplianceReportMetaData.verify|verify} messages. - * @param message ComplianceReportMetaData message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Enterprise.IComplianceReportMetaData, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a ComplianceReportMetaData message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -24767,22 +19551,6 @@ export namespace Enterprise { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.ComplianceReportMetaData; - /** - * Decodes a ComplianceReportMetaData message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ComplianceReportMetaData - * @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)): Enterprise.ComplianceReportMetaData; - - /** - * Verifies a ComplianceReportMetaData 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 ComplianceReportMetaData message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -24858,14 +19626,6 @@ export namespace Enterprise { */ public static encode(message: Enterprise.IManagedNode, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified ManagedNode message, length delimited. Does not implicitly {@link Enterprise.ManagedNode.verify|verify} messages. - * @param message ManagedNode message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Enterprise.IManagedNode, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a ManagedNode message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -24876,22 +19636,6 @@ export namespace Enterprise { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.ManagedNode; - /** - * Decodes a ManagedNode message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ManagedNode - * @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)): Enterprise.ManagedNode; - - /** - * Verifies a ManagedNode 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 ManagedNode message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -24967,14 +19711,6 @@ export namespace Enterprise { */ public static encode(message: Enterprise.IUserManagedNode, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified UserManagedNode message, length delimited. Does not implicitly {@link Enterprise.UserManagedNode.verify|verify} messages. - * @param message UserManagedNode message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Enterprise.IUserManagedNode, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a UserManagedNode message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -24985,22 +19721,6 @@ export namespace Enterprise { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.UserManagedNode; - /** - * Decodes a UserManagedNode message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns UserManagedNode - * @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)): Enterprise.UserManagedNode; - - /** - * Verifies a UserManagedNode 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 UserManagedNode message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -25076,14 +19796,6 @@ export namespace Enterprise { */ public static encode(message: Enterprise.IUserPrivilege, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified UserPrivilege message, length delimited. Does not implicitly {@link Enterprise.UserPrivilege.verify|verify} messages. - * @param message UserPrivilege message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Enterprise.IUserPrivilege, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a UserPrivilege message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -25094,22 +19806,6 @@ export namespace Enterprise { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.UserPrivilege; - /** - * Decodes a UserPrivilege message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns UserPrivilege - * @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)): Enterprise.UserPrivilege; - - /** - * Verifies a UserPrivilege 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 UserPrivilege message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -25179,14 +19875,6 @@ export namespace Enterprise { */ public static encode(message: Enterprise.IRoleUser, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified RoleUser message, length delimited. Does not implicitly {@link Enterprise.RoleUser.verify|verify} messages. - * @param message RoleUser message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Enterprise.IRoleUser, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a RoleUser message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -25197,22 +19885,6 @@ export namespace Enterprise { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.RoleUser; - /** - * Decodes a RoleUser message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RoleUser - * @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)): Enterprise.RoleUser; - - /** - * Verifies a RoleUser 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 RoleUser message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -25288,14 +19960,6 @@ export namespace Enterprise { */ public static encode(message: Enterprise.IRolePrivilege, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified RolePrivilege message, length delimited. Does not implicitly {@link Enterprise.RolePrivilege.verify|verify} messages. - * @param message RolePrivilege message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Enterprise.IRolePrivilege, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a RolePrivilege message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -25306,22 +19970,6 @@ export namespace Enterprise { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.RolePrivilege; - /** - * Decodes a RolePrivilege message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RolePrivilege - * @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)): Enterprise.RolePrivilege; - - /** - * Verifies a RolePrivilege 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 RolePrivilege message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -25397,14 +20045,6 @@ export namespace Enterprise { */ public static encode(message: Enterprise.IPrivilegesByManagedNode, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified PrivilegesByManagedNode message, length delimited. Does not implicitly {@link Enterprise.PrivilegesByManagedNode.verify|verify} messages. - * @param message PrivilegesByManagedNode message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Enterprise.IPrivilegesByManagedNode, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a PrivilegesByManagedNode message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -25415,22 +20055,6 @@ export namespace Enterprise { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.PrivilegesByManagedNode; - /** - * Decodes a PrivilegesByManagedNode message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns PrivilegesByManagedNode - * @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)): Enterprise.PrivilegesByManagedNode; - - /** - * Verifies a PrivilegesByManagedNode 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 PrivilegesByManagedNode message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -25506,14 +20130,6 @@ export namespace Enterprise { */ public static encode(message: Enterprise.IRoleEnforcement, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified RoleEnforcement message, length delimited. Does not implicitly {@link Enterprise.RoleEnforcement.verify|verify} messages. - * @param message RoleEnforcement message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Enterprise.IRoleEnforcement, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a RoleEnforcement message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -25524,22 +20140,6 @@ export namespace Enterprise { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.RoleEnforcement; - /** - * Decodes a RoleEnforcement message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RoleEnforcement - * @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)): Enterprise.RoleEnforcement; - - /** - * Verifies a RoleEnforcement 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 RoleEnforcement message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -25645,14 +20245,6 @@ export namespace Enterprise { */ public static encode(message: Enterprise.ITeam, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified Team message, length delimited. Does not implicitly {@link Enterprise.Team.verify|verify} messages. - * @param message Team message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Enterprise.ITeam, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a Team message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -25663,22 +20255,6 @@ export namespace Enterprise { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.Team; - /** - * Decodes a Team message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Team - * @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)): Enterprise.Team; - - /** - * Verifies a Team 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 Team message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -25754,14 +20330,6 @@ export namespace Enterprise { */ public static encode(message: Enterprise.ITeamUser, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified TeamUser message, length delimited. Does not implicitly {@link Enterprise.TeamUser.verify|verify} messages. - * @param message TeamUser message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Enterprise.ITeamUser, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a TeamUser message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -25772,22 +20340,6 @@ export namespace Enterprise { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.TeamUser; - /** - * Decodes a TeamUser message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns TeamUser - * @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)): Enterprise.TeamUser; - - /** - * Verifies a TeamUser 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 TeamUser message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -25851,14 +20403,6 @@ export namespace Enterprise { */ public static encode(message: Enterprise.IGetDistributorInfoResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified GetDistributorInfoResponse message, length delimited. Does not implicitly {@link Enterprise.GetDistributorInfoResponse.verify|verify} messages. - * @param message GetDistributorInfoResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Enterprise.IGetDistributorInfoResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a GetDistributorInfoResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -25869,22 +20413,6 @@ export namespace Enterprise { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.GetDistributorInfoResponse; - /** - * Decodes a GetDistributorInfoResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetDistributorInfoResponse - * @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)): Enterprise.GetDistributorInfoResponse; - - /** - * Verifies a GetDistributorInfoResponse 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 GetDistributorInfoResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -25954,14 +20482,6 @@ export namespace Enterprise { */ public static encode(message: Enterprise.IDistributor, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified Distributor message, length delimited. Does not implicitly {@link Enterprise.Distributor.verify|verify} messages. - * @param message Distributor message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Enterprise.IDistributor, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a Distributor message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -25972,22 +20492,6 @@ export namespace Enterprise { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.Distributor; - /** - * Decodes a Distributor message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Distributor - * @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)): Enterprise.Distributor; - - /** - * Verifies a Distributor 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 Distributor message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -26099,14 +20603,6 @@ export namespace Enterprise { */ public static encode(message: Enterprise.IMspInfo, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified MspInfo message, length delimited. Does not implicitly {@link Enterprise.MspInfo.verify|verify} messages. - * @param message MspInfo message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Enterprise.IMspInfo, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a MspInfo message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -26117,22 +20613,6 @@ export namespace Enterprise { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.MspInfo; - /** - * Decodes a MspInfo message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns MspInfo - * @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)): Enterprise.MspInfo; - - /** - * Verifies a MspInfo 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 MspInfo message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -26262,14 +20742,6 @@ export namespace Enterprise { */ public static encode(message: Enterprise.IManagedCompany, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified ManagedCompany message, length delimited. Does not implicitly {@link Enterprise.ManagedCompany.verify|verify} messages. - * @param message ManagedCompany message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Enterprise.IManagedCompany, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a ManagedCompany message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -26280,22 +20752,6 @@ export namespace Enterprise { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.ManagedCompany; - /** - * Decodes a ManagedCompany message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ManagedCompany - * @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)): Enterprise.ManagedCompany; - - /** - * Verifies a ManagedCompany 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 ManagedCompany message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -26377,14 +20833,6 @@ export namespace Enterprise { */ public static encode(message: Enterprise.IMSPPool, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified MSPPool message, length delimited. Does not implicitly {@link Enterprise.MSPPool.verify|verify} messages. - * @param message MSPPool message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Enterprise.IMSPPool, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a MSPPool message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -26395,22 +20843,6 @@ export namespace Enterprise { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.MSPPool; - /** - * Decodes a MSPPool message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns MSPPool - * @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)): Enterprise.MSPPool; - - /** - * Verifies a MSPPool 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 MSPPool message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -26480,14 +20912,6 @@ export namespace Enterprise { */ public static encode(message: Enterprise.IMSPContact, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified MSPContact message, length delimited. Does not implicitly {@link Enterprise.MSPContact.verify|verify} messages. - * @param message MSPContact message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Enterprise.IMSPContact, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a MSPContact message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -26498,22 +20922,6 @@ export namespace Enterprise { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.MSPContact; - /** - * Decodes a MSPContact message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns MSPContact - * @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)): Enterprise.MSPContact; - - /** - * Verifies a MSPContact 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 MSPContact message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -26643,14 +21051,6 @@ export namespace Enterprise { */ public static encode(message: Enterprise.ILicenseAddOn, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified LicenseAddOn message, length delimited. Does not implicitly {@link Enterprise.LicenseAddOn.verify|verify} messages. - * @param message LicenseAddOn message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Enterprise.ILicenseAddOn, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a LicenseAddOn message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -26661,22 +21061,6 @@ export namespace Enterprise { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.LicenseAddOn; - /** - * Decodes a LicenseAddOn message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns LicenseAddOn - * @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)): Enterprise.LicenseAddOn; - - /** - * Verifies a LicenseAddOn 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 LicenseAddOn message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -26764,14 +21148,6 @@ export namespace Enterprise { */ public static encode(message: Enterprise.IMCDefault, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified MCDefault message, length delimited. Does not implicitly {@link Enterprise.MCDefault.verify|verify} messages. - * @param message MCDefault message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Enterprise.IMCDefault, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a MCDefault message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -26782,22 +21158,6 @@ export namespace Enterprise { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.MCDefault; - /** - * Decodes a MCDefault message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns MCDefault - * @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)): Enterprise.MCDefault; - - /** - * Verifies a MCDefault 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 MCDefault message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -26897,14 +21257,6 @@ export namespace Enterprise { */ public static encode(message: Enterprise.IMSPPermits, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified MSPPermits message, length delimited. Does not implicitly {@link Enterprise.MSPPermits.verify|verify} messages. - * @param message MSPPermits message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Enterprise.IMSPPermits, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a MSPPermits message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -26915,22 +21267,6 @@ export namespace Enterprise { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.MSPPermits; - /** - * Decodes a MSPPermits message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns MSPPermits - * @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)): Enterprise.MSPPermits; - - /** - * Verifies a MSPPermits 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 MSPPermits message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -27114,14 +21450,6 @@ export namespace Enterprise { */ public static encode(message: Enterprise.ILicense, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified License message, length delimited. Does not implicitly {@link Enterprise.License.verify|verify} messages. - * @param message License message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Enterprise.ILicense, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a License message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -27132,22 +21460,6 @@ export namespace Enterprise { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.License; - /** - * Decodes a License message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns License - * @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)): Enterprise.License; - - /** - * Verifies a License 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 License message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -27235,14 +21547,6 @@ export namespace Enterprise { */ public static encode(message: Enterprise.IBridge, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified Bridge message, length delimited. Does not implicitly {@link Enterprise.Bridge.verify|verify} messages. - * @param message Bridge message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Enterprise.IBridge, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a Bridge message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -27253,22 +21557,6 @@ export namespace Enterprise { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.Bridge; - /** - * Decodes a Bridge message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Bridge - * @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)): Enterprise.Bridge; - - /** - * Verifies a Bridge 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 Bridge message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -27362,14 +21650,6 @@ export namespace Enterprise { */ public static encode(message: Enterprise.IScim, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified Scim message, length delimited. Does not implicitly {@link Enterprise.Scim.verify|verify} messages. - * @param message Scim message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Enterprise.IScim, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a Scim message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -27380,22 +21660,6 @@ export namespace Enterprise { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.Scim; - /** - * Decodes a Scim message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Scim - * @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)): Enterprise.Scim; - - /** - * Verifies a Scim 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 Scim message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -27477,14 +21741,6 @@ export namespace Enterprise { */ public static encode(message: Enterprise.IEmailProvision, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified EmailProvision message, length delimited. Does not implicitly {@link Enterprise.EmailProvision.verify|verify} messages. - * @param message EmailProvision message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Enterprise.IEmailProvision, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes an EmailProvision message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -27495,22 +21751,6 @@ export namespace Enterprise { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.EmailProvision; - /** - * Decodes an EmailProvision message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns EmailProvision - * @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)): Enterprise.EmailProvision; - - /** - * Verifies an EmailProvision 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 EmailProvision message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -27592,14 +21832,6 @@ export namespace Enterprise { */ public static encode(message: Enterprise.IQueuedTeam, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified QueuedTeam message, length delimited. Does not implicitly {@link Enterprise.QueuedTeam.verify|verify} messages. - * @param message QueuedTeam message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Enterprise.IQueuedTeam, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a QueuedTeam message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -27610,22 +21842,6 @@ export namespace Enterprise { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.QueuedTeam; - /** - * Decodes a QueuedTeam message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns QueuedTeam - * @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)): Enterprise.QueuedTeam; - - /** - * Verifies a QueuedTeam 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 QueuedTeam message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -27695,14 +21911,6 @@ export namespace Enterprise { */ public static encode(message: Enterprise.IQueuedTeamUser, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified QueuedTeamUser message, length delimited. Does not implicitly {@link Enterprise.QueuedTeamUser.verify|verify} messages. - * @param message QueuedTeamUser message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Enterprise.IQueuedTeamUser, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a QueuedTeamUser message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -27713,22 +21921,6 @@ export namespace Enterprise { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.QueuedTeamUser; - /** - * Decodes a QueuedTeamUser message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns QueuedTeamUser - * @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)): Enterprise.QueuedTeamUser; - - /** - * Verifies a QueuedTeamUser 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 QueuedTeamUser message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -27817,14 +22009,6 @@ export namespace Enterprise { */ public static encode(message: Enterprise.ITeamsAddResult, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified TeamsAddResult message, length delimited. Does not implicitly {@link Enterprise.TeamsAddResult.verify|verify} messages. - * @param message TeamsAddResult message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Enterprise.ITeamsAddResult, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a TeamsAddResult message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -27835,22 +22019,6 @@ export namespace Enterprise { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.TeamsAddResult; - /** - * Decodes a TeamsAddResult message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns TeamsAddResult - * @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)): Enterprise.TeamsAddResult; - - /** - * Verifies a TeamsAddResult 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 TeamsAddResult message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -27926,14 +22094,6 @@ export namespace Enterprise { */ public static encode(message: Enterprise.ITeamAddResult, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified TeamAddResult message, length delimited. Does not implicitly {@link Enterprise.TeamAddResult.verify|verify} messages. - * @param message TeamAddResult message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Enterprise.ITeamAddResult, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a TeamAddResult message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -27944,22 +22104,6 @@ export namespace Enterprise { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.TeamAddResult; - /** - * Decodes a TeamAddResult message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns TeamAddResult - * @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)): Enterprise.TeamAddResult; - - /** - * Verifies a TeamAddResult 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 TeamAddResult message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -28059,14 +22203,6 @@ export namespace Enterprise { */ public static encode(message: Enterprise.ISsoService, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified SsoService message, length delimited. Does not implicitly {@link Enterprise.SsoService.verify|verify} messages. - * @param message SsoService message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Enterprise.ISsoService, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a SsoService message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -28077,22 +22213,6 @@ export namespace Enterprise { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.SsoService; - /** - * Decodes a SsoService message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SsoService - * @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)): Enterprise.SsoService; - - /** - * Verifies a SsoService 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 SsoService message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -28162,14 +22282,6 @@ export namespace Enterprise { */ public static encode(message: Enterprise.IReportFilterUser, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified ReportFilterUser message, length delimited. Does not implicitly {@link Enterprise.ReportFilterUser.verify|verify} messages. - * @param message ReportFilterUser message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Enterprise.IReportFilterUser, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a ReportFilterUser message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -28180,22 +22292,6 @@ export namespace Enterprise { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.ReportFilterUser; - /** - * Decodes a ReportFilterUser message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ReportFilterUser - * @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)): Enterprise.ReportFilterUser; - - /** - * Verifies a ReportFilterUser 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 ReportFilterUser message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -28325,14 +22421,6 @@ export namespace Enterprise { */ public static encode(message: Enterprise.IDeviceRequestForAdminApproval, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified DeviceRequestForAdminApproval message, length delimited. Does not implicitly {@link Enterprise.DeviceRequestForAdminApproval.verify|verify} messages. - * @param message DeviceRequestForAdminApproval message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Enterprise.IDeviceRequestForAdminApproval, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a DeviceRequestForAdminApproval message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -28343,22 +22431,6 @@ export namespace Enterprise { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.DeviceRequestForAdminApproval; - /** - * Decodes a DeviceRequestForAdminApproval message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns DeviceRequestForAdminApproval - * @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)): Enterprise.DeviceRequestForAdminApproval; - - /** - * Verifies a DeviceRequestForAdminApproval 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 DeviceRequestForAdminApproval message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -28468,14 +22540,6 @@ export namespace Enterprise { */ public static encode(message: Enterprise.IEnterpriseData, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified EnterpriseData message, length delimited. Does not implicitly {@link Enterprise.EnterpriseData.verify|verify} messages. - * @param message EnterpriseData message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Enterprise.IEnterpriseData, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes an EnterpriseData message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -28486,22 +22550,6 @@ export namespace Enterprise { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.EnterpriseData; - /** - * Decodes an EnterpriseData message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns EnterpriseData - * @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)): Enterprise.EnterpriseData; - - /** - * Verifies an EnterpriseData 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 EnterpriseData message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -28589,14 +22637,6 @@ export namespace Enterprise { */ public static encode(message: Enterprise.IEnterpriseDataResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified EnterpriseDataResponse message, length delimited. Does not implicitly {@link Enterprise.EnterpriseDataResponse.verify|verify} messages. - * @param message EnterpriseDataResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Enterprise.IEnterpriseDataResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes an EnterpriseDataResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -28607,22 +22647,6 @@ export namespace Enterprise { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.EnterpriseDataResponse; - /** - * Decodes an EnterpriseDataResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns EnterpriseDataResponse - * @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)): Enterprise.EnterpriseDataResponse; - - /** - * Verifies an EnterpriseDataResponse 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 EnterpriseDataResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -28686,14 +22710,6 @@ export namespace Enterprise { */ public static encode(message: Enterprise.IBackupRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified BackupRequest message, length delimited. Does not implicitly {@link Enterprise.BackupRequest.verify|verify} messages. - * @param message BackupRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Enterprise.IBackupRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a BackupRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -28704,22 +22720,6 @@ export namespace Enterprise { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.BackupRequest; - /** - * Decodes a BackupRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns BackupRequest - * @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)): Enterprise.BackupRequest; - - /** - * Verifies a BackupRequest 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 BackupRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -28834,14 +22834,6 @@ export namespace Enterprise { */ public static encode(message: Enterprise.IBackupRecord, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified BackupRecord message, length delimited. Does not implicitly {@link Enterprise.BackupRecord.verify|verify} messages. - * @param message BackupRecord message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Enterprise.IBackupRecord, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a BackupRecord message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -28852,22 +22844,6 @@ export namespace Enterprise { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.BackupRecord; - /** - * Decodes a BackupRecord message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns BackupRecord - * @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)): Enterprise.BackupRecord; - - /** - * Verifies a BackupRecord 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 BackupRecord message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -28937,14 +22913,6 @@ export namespace Enterprise { */ public static encode(message: Enterprise.IBackupKey, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified BackupKey message, length delimited. Does not implicitly {@link Enterprise.BackupKey.verify|verify} messages. - * @param message BackupKey message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Enterprise.IBackupKey, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a BackupKey message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -28955,22 +22923,6 @@ export namespace Enterprise { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.BackupKey; - /** - * Decodes a BackupKey message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns BackupKey - * @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)): Enterprise.BackupKey; - - /** - * Verifies a BackupKey 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 BackupKey message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -29082,14 +23034,6 @@ export namespace Enterprise { */ public static encode(message: Enterprise.IBackupUser, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified BackupUser message, length delimited. Does not implicitly {@link Enterprise.BackupUser.verify|verify} messages. - * @param message BackupUser message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Enterprise.IBackupUser, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a BackupUser message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -29100,22 +23044,6 @@ export namespace Enterprise { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.BackupUser; - /** - * Decodes a BackupUser message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns BackupUser - * @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)): Enterprise.BackupUser; - - /** - * Verifies a BackupUser 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 BackupUser message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -29197,14 +23125,6 @@ export namespace Enterprise { */ public static encode(message: Enterprise.IBackupResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified BackupResponse message, length delimited. Does not implicitly {@link Enterprise.BackupResponse.verify|verify} messages. - * @param message BackupResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Enterprise.IBackupResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a BackupResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -29215,22 +23135,6 @@ export namespace Enterprise { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.BackupResponse; - /** - * Decodes a BackupResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns BackupResponse - * @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)): Enterprise.BackupResponse; - - /** - * Verifies a BackupResponse 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 BackupResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -29318,14 +23222,6 @@ export namespace Enterprise { */ public static encode(message: Enterprise.IBackupFile, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified BackupFile message, length delimited. Does not implicitly {@link Enterprise.BackupFile.verify|verify} messages. - * @param message BackupFile message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Enterprise.IBackupFile, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a BackupFile message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -29336,22 +23232,6 @@ export namespace Enterprise { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.BackupFile; - /** - * Decodes a BackupFile message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns BackupFile - * @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)): Enterprise.BackupFile; - - /** - * Verifies a BackupFile 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 BackupFile message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -29415,14 +23295,6 @@ export namespace Enterprise { */ public static encode(message: Enterprise.IBackupsResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified BackupsResponse message, length delimited. Does not implicitly {@link Enterprise.BackupsResponse.verify|verify} messages. - * @param message BackupsResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Enterprise.IBackupsResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a BackupsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -29433,22 +23305,6 @@ export namespace Enterprise { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.BackupsResponse; - /** - * Decodes a BackupsResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns BackupsResponse - * @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)): Enterprise.BackupsResponse; - - /** - * Verifies a BackupsResponse 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 BackupsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -29512,14 +23368,6 @@ export namespace Enterprise { */ public static encode(message: Enterprise.IGetEnterpriseDataKeysRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified GetEnterpriseDataKeysRequest message, length delimited. Does not implicitly {@link Enterprise.GetEnterpriseDataKeysRequest.verify|verify} messages. - * @param message GetEnterpriseDataKeysRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Enterprise.IGetEnterpriseDataKeysRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a GetEnterpriseDataKeysRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -29530,22 +23378,6 @@ export namespace Enterprise { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.GetEnterpriseDataKeysRequest; - /** - * Decodes a GetEnterpriseDataKeysRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetEnterpriseDataKeysRequest - * @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)): Enterprise.GetEnterpriseDataKeysRequest; - - /** - * Verifies a GetEnterpriseDataKeysRequest 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 GetEnterpriseDataKeysRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -29633,14 +23465,6 @@ export namespace Enterprise { */ public static encode(message: Enterprise.IGetEnterpriseDataKeysResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified GetEnterpriseDataKeysResponse message, length delimited. Does not implicitly {@link Enterprise.GetEnterpriseDataKeysResponse.verify|verify} messages. - * @param message GetEnterpriseDataKeysResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Enterprise.IGetEnterpriseDataKeysResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a GetEnterpriseDataKeysResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -29651,22 +23475,6 @@ export namespace Enterprise { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.GetEnterpriseDataKeysResponse; - /** - * Decodes a GetEnterpriseDataKeysResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetEnterpriseDataKeysResponse - * @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)): Enterprise.GetEnterpriseDataKeysResponse; - - /** - * Verifies a GetEnterpriseDataKeysResponse 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 GetEnterpriseDataKeysResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -29742,14 +23550,6 @@ export namespace Enterprise { */ public static encode(message: Enterprise.IRoleKey, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified RoleKey message, length delimited. Does not implicitly {@link Enterprise.RoleKey.verify|verify} messages. - * @param message RoleKey message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Enterprise.IRoleKey, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a RoleKey message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -29760,22 +23560,6 @@ export namespace Enterprise { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.RoleKey; - /** - * Decodes a RoleKey message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RoleKey - * @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)): Enterprise.RoleKey; - - /** - * Verifies a RoleKey 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 RoleKey message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -29845,14 +23629,6 @@ export namespace Enterprise { */ public static encode(message: Enterprise.IMspKey, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified MspKey message, length delimited. Does not implicitly {@link Enterprise.MspKey.verify|verify} messages. - * @param message MspKey message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Enterprise.IMspKey, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a MspKey message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -29863,22 +23639,6 @@ export namespace Enterprise { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.MspKey; - /** - * Decodes a MspKey message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns MspKey - * @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)): Enterprise.MspKey; - - /** - * Verifies a MspKey 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 MspKey message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -29969,14 +23729,6 @@ export namespace Enterprise { */ public static encode(message: Enterprise.IEnterpriseKeys, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified EnterpriseKeys message, length delimited. Does not implicitly {@link Enterprise.EnterpriseKeys.verify|verify} messages. - * @param message EnterpriseKeys message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Enterprise.IEnterpriseKeys, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes an EnterpriseKeys message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -29987,22 +23739,6 @@ export namespace Enterprise { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.EnterpriseKeys; - /** - * Decodes an EnterpriseKeys message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns EnterpriseKeys - * @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)): Enterprise.EnterpriseKeys; - - /** - * Verifies an EnterpriseKeys 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 EnterpriseKeys message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -30072,14 +23808,6 @@ export namespace Enterprise { */ public static encode(message: Enterprise.ITreeKey, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified TreeKey message, length delimited. Does not implicitly {@link Enterprise.TreeKey.verify|verify} messages. - * @param message TreeKey message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Enterprise.ITreeKey, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a TreeKey message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -30090,22 +23818,6 @@ export namespace Enterprise { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.TreeKey; - /** - * Decodes a TreeKey message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns TreeKey - * @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)): Enterprise.TreeKey; - - /** - * Verifies a TreeKey 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 TreeKey message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -30169,14 +23881,6 @@ export namespace Enterprise { */ public static encode(message: Enterprise.ISharedRecordResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified SharedRecordResponse message, length delimited. Does not implicitly {@link Enterprise.SharedRecordResponse.verify|verify} messages. - * @param message SharedRecordResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Enterprise.ISharedRecordResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a SharedRecordResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -30187,22 +23891,6 @@ export namespace Enterprise { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.SharedRecordResponse; - /** - * Decodes a SharedRecordResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SharedRecordResponse - * @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)): Enterprise.SharedRecordResponse; - - /** - * Verifies a SharedRecordResponse 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 SharedRecordResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -30290,14 +23978,6 @@ export namespace Enterprise { */ public static encode(message: Enterprise.ISharedRecordEvent, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified SharedRecordEvent message, length delimited. Does not implicitly {@link Enterprise.SharedRecordEvent.verify|verify} messages. - * @param message SharedRecordEvent message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Enterprise.ISharedRecordEvent, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a SharedRecordEvent message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -30308,22 +23988,6 @@ export namespace Enterprise { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.SharedRecordEvent; - /** - * Decodes a SharedRecordEvent message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SharedRecordEvent - * @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)): Enterprise.SharedRecordEvent; - - /** - * Verifies a SharedRecordEvent 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 SharedRecordEvent message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -30404,14 +24068,6 @@ export namespace Enterprise { */ public static encode(message: Enterprise.ISetRestrictVisibilityRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified SetRestrictVisibilityRequest message, length delimited. Does not implicitly {@link Enterprise.SetRestrictVisibilityRequest.verify|verify} messages. - * @param message SetRestrictVisibilityRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Enterprise.ISetRestrictVisibilityRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a SetRestrictVisibilityRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -30422,22 +24078,6 @@ export namespace Enterprise { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.SetRestrictVisibilityRequest; - /** - * Decodes a SetRestrictVisibilityRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SetRestrictVisibilityRequest - * @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)): Enterprise.SetRestrictVisibilityRequest; - - /** - * Verifies a SetRestrictVisibilityRequest 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 SetRestrictVisibilityRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -30543,14 +24183,6 @@ export namespace Enterprise { */ public static encode(message: Enterprise.IUserAddRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified UserAddRequest message, length delimited. Does not implicitly {@link Enterprise.UserAddRequest.verify|verify} messages. - * @param message UserAddRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Enterprise.IUserAddRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a UserAddRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -30561,22 +24193,6 @@ export namespace Enterprise { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.UserAddRequest; - /** - * Decodes a UserAddRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns UserAddRequest - * @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)): Enterprise.UserAddRequest; - - /** - * Verifies a UserAddRequest 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 UserAddRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -30640,14 +24256,6 @@ export namespace Enterprise { */ public static encode(message: Enterprise.IUserUpdateRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified UserUpdateRequest message, length delimited. Does not implicitly {@link Enterprise.UserUpdateRequest.verify|verify} messages. - * @param message UserUpdateRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Enterprise.IUserUpdateRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a UserUpdateRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -30658,22 +24266,6 @@ export namespace Enterprise { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.UserUpdateRequest; - /** - * Decodes a UserUpdateRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns UserUpdateRequest - * @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)): Enterprise.UserUpdateRequest; - - /** - * Verifies a UserUpdateRequest 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 UserUpdateRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -30773,14 +24365,6 @@ export namespace Enterprise { */ public static encode(message: Enterprise.IUserUpdate, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified UserUpdate message, length delimited. Does not implicitly {@link Enterprise.UserUpdate.verify|verify} messages. - * @param message UserUpdate message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Enterprise.IUserUpdate, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a UserUpdate message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -30791,22 +24375,6 @@ export namespace Enterprise { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.UserUpdate; - /** - * Decodes a UserUpdate message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns UserUpdate - * @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)): Enterprise.UserUpdate; - - /** - * Verifies a UserUpdate 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 UserUpdate message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -30870,14 +24438,6 @@ export namespace Enterprise { */ public static encode(message: Enterprise.IUserUpdateResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified UserUpdateResponse message, length delimited. Does not implicitly {@link Enterprise.UserUpdateResponse.verify|verify} messages. - * @param message UserUpdateResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Enterprise.IUserUpdateResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a UserUpdateResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -30888,22 +24448,6 @@ export namespace Enterprise { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.UserUpdateResponse; - /** - * Decodes a UserUpdateResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns UserUpdateResponse - * @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)): Enterprise.UserUpdateResponse; - - /** - * Verifies a UserUpdateResponse 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 UserUpdateResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -30973,14 +24517,6 @@ export namespace Enterprise { */ public static encode(message: Enterprise.IUserUpdateResult, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified UserUpdateResult message, length delimited. Does not implicitly {@link Enterprise.UserUpdateResult.verify|verify} messages. - * @param message UserUpdateResult message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Enterprise.IUserUpdateResult, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a UserUpdateResult message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -30991,22 +24527,6 @@ export namespace Enterprise { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.UserUpdateResult; - /** - * Decodes a UserUpdateResult message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns UserUpdateResult - * @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)): Enterprise.UserUpdateResult; - - /** - * Verifies a UserUpdateResult 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 UserUpdateResult message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -31082,14 +24602,6 @@ export namespace Enterprise { */ public static encode(message: Enterprise.IComplianceRecordOwnersRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified ComplianceRecordOwnersRequest message, length delimited. Does not implicitly {@link Enterprise.ComplianceRecordOwnersRequest.verify|verify} messages. - * @param message ComplianceRecordOwnersRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Enterprise.IComplianceRecordOwnersRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a ComplianceRecordOwnersRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -31100,22 +24612,6 @@ export namespace Enterprise { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.ComplianceRecordOwnersRequest; - /** - * Decodes a ComplianceRecordOwnersRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ComplianceRecordOwnersRequest - * @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)): Enterprise.ComplianceRecordOwnersRequest; - - /** - * Verifies a ComplianceRecordOwnersRequest 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 ComplianceRecordOwnersRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -31179,14 +24675,6 @@ export namespace Enterprise { */ public static encode(message: Enterprise.IComplianceRecordOwnersResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified ComplianceRecordOwnersResponse message, length delimited. Does not implicitly {@link Enterprise.ComplianceRecordOwnersResponse.verify|verify} messages. - * @param message ComplianceRecordOwnersResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Enterprise.IComplianceRecordOwnersResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a ComplianceRecordOwnersResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -31197,22 +24685,6 @@ export namespace Enterprise { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.ComplianceRecordOwnersResponse; - /** - * Decodes a ComplianceRecordOwnersResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ComplianceRecordOwnersResponse - * @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)): Enterprise.ComplianceRecordOwnersResponse; - - /** - * Verifies a ComplianceRecordOwnersResponse 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 ComplianceRecordOwnersResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -31282,14 +24754,6 @@ export namespace Enterprise { */ public static encode(message: Enterprise.IRecordOwner, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified RecordOwner message, length delimited. Does not implicitly {@link Enterprise.RecordOwner.verify|verify} messages. - * @param message RecordOwner message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Enterprise.IRecordOwner, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a RecordOwner message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -31300,22 +24764,6 @@ export namespace Enterprise { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.RecordOwner; - /** - * Decodes a RecordOwner message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RecordOwner - * @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)): Enterprise.RecordOwner; - - /** - * Verifies a RecordOwner 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 RecordOwner message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -31397,14 +24845,6 @@ export namespace Enterprise { */ public static encode(message: Enterprise.IPreliminaryComplianceDataRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified PreliminaryComplianceDataRequest message, length delimited. Does not implicitly {@link Enterprise.PreliminaryComplianceDataRequest.verify|verify} messages. - * @param message PreliminaryComplianceDataRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Enterprise.IPreliminaryComplianceDataRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a PreliminaryComplianceDataRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -31415,22 +24855,6 @@ export namespace Enterprise { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.PreliminaryComplianceDataRequest; - /** - * Decodes a PreliminaryComplianceDataRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns PreliminaryComplianceDataRequest - * @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)): Enterprise.PreliminaryComplianceDataRequest; - - /** - * Verifies a PreliminaryComplianceDataRequest 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 PreliminaryComplianceDataRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -31512,14 +24936,6 @@ export namespace Enterprise { */ public static encode(message: Enterprise.IPreliminaryComplianceDataResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified PreliminaryComplianceDataResponse message, length delimited. Does not implicitly {@link Enterprise.PreliminaryComplianceDataResponse.verify|verify} messages. - * @param message PreliminaryComplianceDataResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Enterprise.IPreliminaryComplianceDataResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a PreliminaryComplianceDataResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -31530,22 +24946,6 @@ export namespace Enterprise { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.PreliminaryComplianceDataResponse; - /** - * Decodes a PreliminaryComplianceDataResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns PreliminaryComplianceDataResponse - * @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)): Enterprise.PreliminaryComplianceDataResponse; - - /** - * Verifies a PreliminaryComplianceDataResponse 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 PreliminaryComplianceDataResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -31627,14 +25027,6 @@ export namespace Enterprise { */ public static encode(message: Enterprise.IAuditUserRecord, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified AuditUserRecord message, length delimited. Does not implicitly {@link Enterprise.AuditUserRecord.verify|verify} messages. - * @param message AuditUserRecord message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Enterprise.IAuditUserRecord, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes an AuditUserRecord message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -31645,22 +25037,6 @@ export namespace Enterprise { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.AuditUserRecord; - /** - * Decodes an AuditUserRecord message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns AuditUserRecord - * @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)): Enterprise.AuditUserRecord; - - /** - * Verifies an AuditUserRecord 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 AuditUserRecord message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -31743,14 +25119,6 @@ export namespace Enterprise { */ public static encode(message: Enterprise.IAuditUserData, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified AuditUserData message, length delimited. Does not implicitly {@link Enterprise.AuditUserData.verify|verify} messages. - * @param message AuditUserData message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Enterprise.IAuditUserData, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes an AuditUserData message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -31761,22 +25129,6 @@ export namespace Enterprise { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.AuditUserData; - /** - * Decodes an AuditUserData message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns AuditUserData - * @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)): Enterprise.AuditUserData; - - /** - * Verifies an AuditUserData 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 AuditUserData message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -31864,14 +25216,6 @@ export namespace Enterprise { */ public static encode(message: Enterprise.IComplianceReportFilters, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified ComplianceReportFilters message, length delimited. Does not implicitly {@link Enterprise.ComplianceReportFilters.verify|verify} messages. - * @param message ComplianceReportFilters message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Enterprise.IComplianceReportFilters, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a ComplianceReportFilters message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -31882,22 +25226,6 @@ export namespace Enterprise { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.ComplianceReportFilters; - /** - * Decodes a ComplianceReportFilters message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ComplianceReportFilters - * @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)): Enterprise.ComplianceReportFilters; - - /** - * Verifies a ComplianceReportFilters 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 ComplianceReportFilters message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -31973,14 +25301,6 @@ export namespace Enterprise { */ public static encode(message: Enterprise.IComplianceReportRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified ComplianceReportRequest message, length delimited. Does not implicitly {@link Enterprise.ComplianceReportRequest.verify|verify} messages. - * @param message ComplianceReportRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Enterprise.IComplianceReportRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a ComplianceReportRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -31991,22 +25311,6 @@ export namespace Enterprise { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.ComplianceReportRequest; - /** - * Decodes a ComplianceReportRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ComplianceReportRequest - * @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)): Enterprise.ComplianceReportRequest; - - /** - * Verifies a ComplianceReportRequest 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 ComplianceReportRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -32082,14 +25386,6 @@ export namespace Enterprise { */ public static encode(message: Enterprise.IComplianceReportRun, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified ComplianceReportRun message, length delimited. Does not implicitly {@link Enterprise.ComplianceReportRun.verify|verify} messages. - * @param message ComplianceReportRun message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Enterprise.IComplianceReportRun, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a ComplianceReportRun message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -32100,22 +25396,6 @@ export namespace Enterprise { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.ComplianceReportRun; - /** - * Decodes a ComplianceReportRun message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ComplianceReportRun - * @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)): Enterprise.ComplianceReportRun; - - /** - * Verifies a ComplianceReportRun 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 ComplianceReportRun message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -32215,14 +25495,6 @@ export namespace Enterprise { */ public static encode(message: Enterprise.IComplianceReportCriteriaAndFilter, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified ComplianceReportCriteriaAndFilter message, length delimited. Does not implicitly {@link Enterprise.ComplianceReportCriteriaAndFilter.verify|verify} messages. - * @param message ComplianceReportCriteriaAndFilter message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Enterprise.IComplianceReportCriteriaAndFilter, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a ComplianceReportCriteriaAndFilter message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -32233,22 +25505,6 @@ export namespace Enterprise { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.ComplianceReportCriteriaAndFilter; - /** - * Decodes a ComplianceReportCriteriaAndFilter message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ComplianceReportCriteriaAndFilter - * @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)): Enterprise.ComplianceReportCriteriaAndFilter; - - /** - * Verifies a ComplianceReportCriteriaAndFilter 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 ComplianceReportCriteriaAndFilter message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -32324,14 +25580,6 @@ export namespace Enterprise { */ public static encode(message: Enterprise.IComplianceReportCriteria, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified ComplianceReportCriteria message, length delimited. Does not implicitly {@link Enterprise.ComplianceReportCriteria.verify|verify} messages. - * @param message ComplianceReportCriteria message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Enterprise.IComplianceReportCriteria, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a ComplianceReportCriteria message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -32342,22 +25590,6 @@ export namespace Enterprise { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.ComplianceReportCriteria; - /** - * Decodes a ComplianceReportCriteria message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ComplianceReportCriteria - * @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)): Enterprise.ComplianceReportCriteria; - - /** - * Verifies a ComplianceReportCriteria 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 ComplianceReportCriteria message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -32445,14 +25677,6 @@ export namespace Enterprise { */ public static encode(message: Enterprise.IComplianceReportFilter, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified ComplianceReportFilter message, length delimited. Does not implicitly {@link Enterprise.ComplianceReportFilter.verify|verify} messages. - * @param message ComplianceReportFilter message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Enterprise.IComplianceReportFilter, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a ComplianceReportFilter message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -32463,22 +25687,6 @@ export namespace Enterprise { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.ComplianceReportFilter; - /** - * Decodes a ComplianceReportFilter message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ComplianceReportFilter - * @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)): Enterprise.ComplianceReportFilter; - - /** - * Verifies a ComplianceReportFilter 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 ComplianceReportFilter message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -32626,14 +25834,6 @@ export namespace Enterprise { */ public static encode(message: Enterprise.IComplianceReportResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified ComplianceReportResponse message, length delimited. Does not implicitly {@link Enterprise.ComplianceReportResponse.verify|verify} messages. - * @param message ComplianceReportResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Enterprise.IComplianceReportResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a ComplianceReportResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -32644,22 +25844,6 @@ export namespace Enterprise { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.ComplianceReportResponse; - /** - * Decodes a ComplianceReportResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ComplianceReportResponse - * @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)): Enterprise.ComplianceReportResponse; - - /** - * Verifies a ComplianceReportResponse 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 ComplianceReportResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -32759,14 +25943,6 @@ export namespace Enterprise { */ public static encode(message: Enterprise.IAuditRecord, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified AuditRecord message, length delimited. Does not implicitly {@link Enterprise.AuditRecord.verify|verify} messages. - * @param message AuditRecord message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Enterprise.IAuditRecord, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes an AuditRecord message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -32777,22 +25953,6 @@ export namespace Enterprise { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.AuditRecord; - /** - * Decodes an AuditRecord message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns AuditRecord - * @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)): Enterprise.AuditRecord; - - /** - * Verifies an AuditRecord 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 AuditRecord message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -32892,14 +26052,6 @@ export namespace Enterprise { */ public static encode(message: Enterprise.IAuditRole, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified AuditRole message, length delimited. Does not implicitly {@link Enterprise.AuditRole.verify|verify} messages. - * @param message AuditRole message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Enterprise.IAuditRole, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes an AuditRole message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -32910,22 +26062,6 @@ export namespace Enterprise { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.AuditRole; - /** - * Decodes an AuditRole message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns AuditRole - * @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)): Enterprise.AuditRole; - - /** - * Verifies an AuditRole 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 AuditRole message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -33007,14 +26143,6 @@ export namespace Enterprise { */ public static encode(message: Enterprise.IRoleNodeManagement, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified RoleNodeManagement message, length delimited. Does not implicitly {@link Enterprise.RoleNodeManagement.verify|verify} messages. - * @param message RoleNodeManagement message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Enterprise.IRoleNodeManagement, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a RoleNodeManagement message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -33025,22 +26153,6 @@ export namespace Enterprise { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.RoleNodeManagement; - /** - * Decodes a RoleNodeManagement message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RoleNodeManagement - * @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)): Enterprise.RoleNodeManagement; - - /** - * Verifies a RoleNodeManagement 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 RoleNodeManagement message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -33128,14 +26240,6 @@ export namespace Enterprise { */ public static encode(message: Enterprise.IUserProfile, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified UserProfile message, length delimited. Does not implicitly {@link Enterprise.UserProfile.verify|verify} messages. - * @param message UserProfile message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Enterprise.IUserProfile, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a UserProfile message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -33146,22 +26250,6 @@ export namespace Enterprise { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.UserProfile; - /** - * Decodes a UserProfile message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns UserProfile - * @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)): Enterprise.UserProfile; - - /** - * Verifies a UserProfile 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 UserProfile message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -33252,14 +26340,6 @@ export namespace Enterprise { */ public static encode(message: Enterprise.IRecordPermission, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified RecordPermission message, length delimited. Does not implicitly {@link Enterprise.RecordPermission.verify|verify} messages. - * @param message RecordPermission message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Enterprise.IRecordPermission, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a RecordPermission message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -33270,22 +26350,6 @@ export namespace Enterprise { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.RecordPermission; - /** - * Decodes a RecordPermission message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RecordPermission - * @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)): Enterprise.RecordPermission; - - /** - * Verifies a RecordPermission 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 RecordPermission message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -33394,14 +26458,6 @@ export namespace Enterprise { */ public static encode(message: Enterprise.IDrivePermission, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified DrivePermission message, length delimited. Does not implicitly {@link Enterprise.DrivePermission.verify|verify} messages. - * @param message DrivePermission message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Enterprise.IDrivePermission, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a DrivePermission message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -33412,22 +26468,6 @@ export namespace Enterprise { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.DrivePermission; - /** - * Decodes a DrivePermission message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns DrivePermission - * @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)): Enterprise.DrivePermission; - - /** - * Verifies a DrivePermission 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 DrivePermission message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -33497,14 +26537,6 @@ export namespace Enterprise { */ public static encode(message: Enterprise.IUserRecord, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified UserRecord message, length delimited. Does not implicitly {@link Enterprise.UserRecord.verify|verify} messages. - * @param message UserRecord message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Enterprise.IUserRecord, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a UserRecord message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -33515,22 +26547,6 @@ export namespace Enterprise { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.UserRecord; - /** - * Decodes a UserRecord message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns UserRecord - * @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)): Enterprise.UserRecord; - - /** - * Verifies a UserRecord 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 UserRecord message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -33612,14 +26628,6 @@ export namespace Enterprise { */ public static encode(message: Enterprise.IAuditTeam, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified AuditTeam message, length delimited. Does not implicitly {@link Enterprise.AuditTeam.verify|verify} messages. - * @param message AuditTeam message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Enterprise.IAuditTeam, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes an AuditTeam message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -33630,22 +26638,6 @@ export namespace Enterprise { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.AuditTeam; - /** - * Decodes an AuditTeam message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns AuditTeam - * @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)): Enterprise.AuditTeam; - - /** - * Verifies an AuditTeam 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 AuditTeam message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -33715,14 +26707,6 @@ export namespace Enterprise { */ public static encode(message: Enterprise.IAuditTeamUser, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified AuditTeamUser message, length delimited. Does not implicitly {@link Enterprise.AuditTeamUser.verify|verify} messages. - * @param message AuditTeamUser message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Enterprise.IAuditTeamUser, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes an AuditTeamUser message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -33733,22 +26717,6 @@ export namespace Enterprise { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.AuditTeamUser; - /** - * Decodes an AuditTeamUser message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns AuditTeamUser - * @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)): Enterprise.AuditTeamUser; - - /** - * Verifies an AuditTeamUser 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 AuditTeamUser message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -33824,14 +26792,6 @@ export namespace Enterprise { */ public static encode(message: Enterprise.ISharedFolderRecord, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified SharedFolderRecord message, length delimited. Does not implicitly {@link Enterprise.SharedFolderRecord.verify|verify} messages. - * @param message SharedFolderRecord message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Enterprise.ISharedFolderRecord, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a SharedFolderRecord message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -33842,22 +26802,6 @@ export namespace Enterprise { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.SharedFolderRecord; - /** - * Decodes a SharedFolderRecord message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SharedFolderRecord - * @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)): Enterprise.SharedFolderRecord; - - /** - * Verifies a SharedFolderRecord 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 SharedFolderRecord message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -33927,14 +26871,6 @@ export namespace Enterprise { */ public static encode(message: Enterprise.IShareAdminRecord, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified ShareAdminRecord message, length delimited. Does not implicitly {@link Enterprise.ShareAdminRecord.verify|verify} messages. - * @param message ShareAdminRecord message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Enterprise.IShareAdminRecord, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a ShareAdminRecord message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -33945,22 +26881,6 @@ export namespace Enterprise { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.ShareAdminRecord; - /** - * Decodes a ShareAdminRecord message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ShareAdminRecord - * @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)): Enterprise.ShareAdminRecord; - - /** - * Verifies a ShareAdminRecord 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 ShareAdminRecord message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -34030,14 +26950,6 @@ export namespace Enterprise { */ public static encode(message: Enterprise.ISharedFolderUser, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified SharedFolderUser message, length delimited. Does not implicitly {@link Enterprise.SharedFolderUser.verify|verify} messages. - * @param message SharedFolderUser message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Enterprise.ISharedFolderUser, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a SharedFolderUser message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -34048,22 +26960,6 @@ export namespace Enterprise { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.SharedFolderUser; - /** - * Decodes a SharedFolderUser message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SharedFolderUser - * @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)): Enterprise.SharedFolderUser; - - /** - * Verifies a SharedFolderUser 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 SharedFolderUser message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -34133,14 +27029,6 @@ export namespace Enterprise { */ public static encode(message: Enterprise.ISharedFolderTeam, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified SharedFolderTeam message, length delimited. Does not implicitly {@link Enterprise.SharedFolderTeam.verify|verify} messages. - * @param message SharedFolderTeam message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Enterprise.ISharedFolderTeam, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a SharedFolderTeam message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -34151,22 +27039,6 @@ export namespace Enterprise { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.SharedFolderTeam; - /** - * Decodes a SharedFolderTeam message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SharedFolderTeam - * @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)): Enterprise.SharedFolderTeam; - - /** - * Verifies a SharedFolderTeam 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 SharedFolderTeam message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -34230,14 +27102,6 @@ export namespace Enterprise { */ public static encode(message: Enterprise.IGetComplianceReportRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified GetComplianceReportRequest message, length delimited. Does not implicitly {@link Enterprise.GetComplianceReportRequest.verify|verify} messages. - * @param message GetComplianceReportRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Enterprise.IGetComplianceReportRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a GetComplianceReportRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -34248,22 +27112,6 @@ export namespace Enterprise { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.GetComplianceReportRequest; - /** - * Decodes a GetComplianceReportRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetComplianceReportRequest - * @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)): Enterprise.GetComplianceReportRequest; - - /** - * Verifies a GetComplianceReportRequest 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 GetComplianceReportRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -34327,14 +27175,6 @@ export namespace Enterprise { */ public static encode(message: Enterprise.IGetComplianceReportResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified GetComplianceReportResponse message, length delimited. Does not implicitly {@link Enterprise.GetComplianceReportResponse.verify|verify} messages. - * @param message GetComplianceReportResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Enterprise.IGetComplianceReportResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a GetComplianceReportResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -34345,22 +27185,6 @@ export namespace Enterprise { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.GetComplianceReportResponse; - /** - * Decodes a GetComplianceReportResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetComplianceReportResponse - * @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)): Enterprise.GetComplianceReportResponse; - - /** - * Verifies a GetComplianceReportResponse 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 GetComplianceReportResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -34424,14 +27248,6 @@ export namespace Enterprise { */ public static encode(message: Enterprise.IComplianceReportCriteriaRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified ComplianceReportCriteriaRequest message, length delimited. Does not implicitly {@link Enterprise.ComplianceReportCriteriaRequest.verify|verify} messages. - * @param message ComplianceReportCriteriaRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Enterprise.IComplianceReportCriteriaRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a ComplianceReportCriteriaRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -34442,22 +27258,6 @@ export namespace Enterprise { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.ComplianceReportCriteriaRequest; - /** - * Decodes a ComplianceReportCriteriaRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ComplianceReportCriteriaRequest - * @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)): Enterprise.ComplianceReportCriteriaRequest; - - /** - * Verifies a ComplianceReportCriteriaRequest 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 ComplianceReportCriteriaRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -34521,14 +27321,6 @@ export namespace Enterprise { */ public static encode(message: Enterprise.ISaveComplianceReportCriteriaResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified SaveComplianceReportCriteriaResponse message, length delimited. Does not implicitly {@link Enterprise.SaveComplianceReportCriteriaResponse.verify|verify} messages. - * @param message SaveComplianceReportCriteriaResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Enterprise.ISaveComplianceReportCriteriaResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a SaveComplianceReportCriteriaResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -34539,22 +27331,6 @@ export namespace Enterprise { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.SaveComplianceReportCriteriaResponse; - /** - * Decodes a SaveComplianceReportCriteriaResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SaveComplianceReportCriteriaResponse - * @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)): Enterprise.SaveComplianceReportCriteriaResponse; - - /** - * Verifies a SaveComplianceReportCriteriaResponse 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 SaveComplianceReportCriteriaResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -34624,14 +27400,6 @@ export namespace Enterprise { */ public static encode(message: Enterprise.ILinkedRecord, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified LinkedRecord message, length delimited. Does not implicitly {@link Enterprise.LinkedRecord.verify|verify} messages. - * @param message LinkedRecord message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Enterprise.ILinkedRecord, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a LinkedRecord message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -34642,22 +27410,6 @@ export namespace Enterprise { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.LinkedRecord; - /** - * Decodes a LinkedRecord message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns LinkedRecord - * @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)): Enterprise.LinkedRecord; - - /** - * Verifies a LinkedRecord 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 LinkedRecord message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -34733,14 +27485,6 @@ export namespace Enterprise { */ public static encode(message: Enterprise.IGetSharingAdminsRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified GetSharingAdminsRequest message, length delimited. Does not implicitly {@link Enterprise.GetSharingAdminsRequest.verify|verify} messages. - * @param message GetSharingAdminsRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Enterprise.IGetSharingAdminsRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a GetSharingAdminsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -34751,22 +27495,6 @@ export namespace Enterprise { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.GetSharingAdminsRequest; - /** - * Decodes a GetSharingAdminsRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetSharingAdminsRequest - * @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)): Enterprise.GetSharingAdminsRequest; - - /** - * Verifies a GetSharingAdminsRequest 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 GetSharingAdminsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -34872,14 +27600,6 @@ export namespace Enterprise { */ public static encode(message: Enterprise.IUserProfileExt, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified UserProfileExt message, length delimited. Does not implicitly {@link Enterprise.UserProfileExt.verify|verify} messages. - * @param message UserProfileExt message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Enterprise.IUserProfileExt, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a UserProfileExt message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -34890,22 +27610,6 @@ export namespace Enterprise { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.UserProfileExt; - /** - * Decodes a UserProfileExt message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns UserProfileExt - * @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)): Enterprise.UserProfileExt; - - /** - * Verifies a UserProfileExt 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 UserProfileExt message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -34969,14 +27673,6 @@ export namespace Enterprise { */ public static encode(message: Enterprise.IGetSharingAdminsResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified GetSharingAdminsResponse message, length delimited. Does not implicitly {@link Enterprise.GetSharingAdminsResponse.verify|verify} messages. - * @param message GetSharingAdminsResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Enterprise.IGetSharingAdminsResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a GetSharingAdminsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -34987,22 +27683,6 @@ export namespace Enterprise { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.GetSharingAdminsResponse; - /** - * Decodes a GetSharingAdminsResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetSharingAdminsResponse - * @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)): Enterprise.GetSharingAdminsResponse; - - /** - * Verifies a GetSharingAdminsResponse 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 GetSharingAdminsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -35066,14 +27746,6 @@ export namespace Enterprise { */ public static encode(message: Enterprise.ITeamsEnterpriseUsersAddRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified TeamsEnterpriseUsersAddRequest message, length delimited. Does not implicitly {@link Enterprise.TeamsEnterpriseUsersAddRequest.verify|verify} messages. - * @param message TeamsEnterpriseUsersAddRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Enterprise.ITeamsEnterpriseUsersAddRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a TeamsEnterpriseUsersAddRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -35084,22 +27756,6 @@ export namespace Enterprise { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.TeamsEnterpriseUsersAddRequest; - /** - * Decodes a TeamsEnterpriseUsersAddRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns TeamsEnterpriseUsersAddRequest - * @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)): Enterprise.TeamsEnterpriseUsersAddRequest; - - /** - * Verifies a TeamsEnterpriseUsersAddRequest 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 TeamsEnterpriseUsersAddRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -35169,14 +27825,6 @@ export namespace Enterprise { */ public static encode(message: Enterprise.ITeamsEnterpriseUsersAddTeamRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified TeamsEnterpriseUsersAddTeamRequest message, length delimited. Does not implicitly {@link Enterprise.TeamsEnterpriseUsersAddTeamRequest.verify|verify} messages. - * @param message TeamsEnterpriseUsersAddTeamRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Enterprise.ITeamsEnterpriseUsersAddTeamRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a TeamsEnterpriseUsersAddTeamRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -35187,22 +27835,6 @@ export namespace Enterprise { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.TeamsEnterpriseUsersAddTeamRequest; - /** - * Decodes a TeamsEnterpriseUsersAddTeamRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns TeamsEnterpriseUsersAddTeamRequest - * @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)): Enterprise.TeamsEnterpriseUsersAddTeamRequest; - - /** - * Verifies a TeamsEnterpriseUsersAddTeamRequest 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 TeamsEnterpriseUsersAddTeamRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -35284,14 +27916,6 @@ export namespace Enterprise { */ public static encode(message: Enterprise.ITeamsEnterpriseUsersAddUserRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified TeamsEnterpriseUsersAddUserRequest message, length delimited. Does not implicitly {@link Enterprise.TeamsEnterpriseUsersAddUserRequest.verify|verify} messages. - * @param message TeamsEnterpriseUsersAddUserRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Enterprise.ITeamsEnterpriseUsersAddUserRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a TeamsEnterpriseUsersAddUserRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -35302,22 +27926,6 @@ export namespace Enterprise { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.TeamsEnterpriseUsersAddUserRequest; - /** - * Decodes a TeamsEnterpriseUsersAddUserRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns TeamsEnterpriseUsersAddUserRequest - * @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)): Enterprise.TeamsEnterpriseUsersAddUserRequest; - - /** - * Verifies a TeamsEnterpriseUsersAddUserRequest 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 TeamsEnterpriseUsersAddUserRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -35387,14 +27995,6 @@ export namespace Enterprise { */ public static encode(message: Enterprise.ITypedKey, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified TypedKey message, length delimited. Does not implicitly {@link Enterprise.TypedKey.verify|verify} messages. - * @param message TypedKey message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Enterprise.ITypedKey, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a TypedKey message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -35405,22 +28005,6 @@ export namespace Enterprise { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.TypedKey; - /** - * Decodes a TypedKey message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns TypedKey - * @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)): Enterprise.TypedKey; - - /** - * Verifies a TypedKey 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 TypedKey message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -35497,14 +28081,6 @@ export namespace Enterprise { */ public static encode(message: Enterprise.ITeamsEnterpriseUsersAddResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified TeamsEnterpriseUsersAddResponse message, length delimited. Does not implicitly {@link Enterprise.TeamsEnterpriseUsersAddResponse.verify|verify} messages. - * @param message TeamsEnterpriseUsersAddResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Enterprise.ITeamsEnterpriseUsersAddResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a TeamsEnterpriseUsersAddResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -35515,22 +28091,6 @@ export namespace Enterprise { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.TeamsEnterpriseUsersAddResponse; - /** - * Decodes a TeamsEnterpriseUsersAddResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns TeamsEnterpriseUsersAddResponse - * @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)): Enterprise.TeamsEnterpriseUsersAddResponse; - - /** - * Verifies a TeamsEnterpriseUsersAddResponse 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 TeamsEnterpriseUsersAddResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -35624,14 +28184,6 @@ export namespace Enterprise { */ public static encode(message: Enterprise.ITeamsEnterpriseUsersAddTeamResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified TeamsEnterpriseUsersAddTeamResponse message, length delimited. Does not implicitly {@link Enterprise.TeamsEnterpriseUsersAddTeamResponse.verify|verify} messages. - * @param message TeamsEnterpriseUsersAddTeamResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Enterprise.ITeamsEnterpriseUsersAddTeamResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a TeamsEnterpriseUsersAddTeamResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -35642,22 +28194,6 @@ export namespace Enterprise { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.TeamsEnterpriseUsersAddTeamResponse; - /** - * Decodes a TeamsEnterpriseUsersAddTeamResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns TeamsEnterpriseUsersAddTeamResponse - * @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)): Enterprise.TeamsEnterpriseUsersAddTeamResponse; - - /** - * Verifies a TeamsEnterpriseUsersAddTeamResponse 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 TeamsEnterpriseUsersAddTeamResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -35751,14 +28287,6 @@ export namespace Enterprise { */ public static encode(message: Enterprise.ITeamsEnterpriseUsersAddUserResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified TeamsEnterpriseUsersAddUserResponse message, length delimited. Does not implicitly {@link Enterprise.TeamsEnterpriseUsersAddUserResponse.verify|verify} messages. - * @param message TeamsEnterpriseUsersAddUserResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Enterprise.ITeamsEnterpriseUsersAddUserResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a TeamsEnterpriseUsersAddUserResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -35769,22 +28297,6 @@ export namespace Enterprise { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.TeamsEnterpriseUsersAddUserResponse; - /** - * Decodes a TeamsEnterpriseUsersAddUserResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns TeamsEnterpriseUsersAddUserResponse - * @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)): Enterprise.TeamsEnterpriseUsersAddUserResponse; - - /** - * Verifies a TeamsEnterpriseUsersAddUserResponse 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 TeamsEnterpriseUsersAddUserResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -35854,14 +28366,6 @@ export namespace Enterprise { */ public static encode(message: Enterprise.ITeamEnterpriseUserRemove, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified TeamEnterpriseUserRemove message, length delimited. Does not implicitly {@link Enterprise.TeamEnterpriseUserRemove.verify|verify} messages. - * @param message TeamEnterpriseUserRemove message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Enterprise.ITeamEnterpriseUserRemove, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a TeamEnterpriseUserRemove message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -35872,22 +28376,6 @@ export namespace Enterprise { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.TeamEnterpriseUserRemove; - /** - * Decodes a TeamEnterpriseUserRemove message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns TeamEnterpriseUserRemove - * @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)): Enterprise.TeamEnterpriseUserRemove; - - /** - * Verifies a TeamEnterpriseUserRemove 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 TeamEnterpriseUserRemove message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -35951,14 +28439,6 @@ export namespace Enterprise { */ public static encode(message: Enterprise.ITeamEnterpriseUserRemovesRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified TeamEnterpriseUserRemovesRequest message, length delimited. Does not implicitly {@link Enterprise.TeamEnterpriseUserRemovesRequest.verify|verify} messages. - * @param message TeamEnterpriseUserRemovesRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Enterprise.ITeamEnterpriseUserRemovesRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a TeamEnterpriseUserRemovesRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -35969,22 +28449,6 @@ export namespace Enterprise { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.TeamEnterpriseUserRemovesRequest; - /** - * Decodes a TeamEnterpriseUserRemovesRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns TeamEnterpriseUserRemovesRequest - * @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)): Enterprise.TeamEnterpriseUserRemovesRequest; - - /** - * Verifies a TeamEnterpriseUserRemovesRequest 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 TeamEnterpriseUserRemovesRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -36048,14 +28512,6 @@ export namespace Enterprise { */ public static encode(message: Enterprise.ITeamEnterpriseUserRemovesResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified TeamEnterpriseUserRemovesResponse message, length delimited. Does not implicitly {@link Enterprise.TeamEnterpriseUserRemovesResponse.verify|verify} messages. - * @param message TeamEnterpriseUserRemovesResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Enterprise.ITeamEnterpriseUserRemovesResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a TeamEnterpriseUserRemovesResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -36066,22 +28522,6 @@ export namespace Enterprise { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.TeamEnterpriseUserRemovesResponse; - /** - * Decodes a TeamEnterpriseUserRemovesResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns TeamEnterpriseUserRemovesResponse - * @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)): Enterprise.TeamEnterpriseUserRemovesResponse; - - /** - * Verifies a TeamEnterpriseUserRemovesResponse 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 TeamEnterpriseUserRemovesResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -36169,14 +28609,6 @@ export namespace Enterprise { */ public static encode(message: Enterprise.ITeamEnterpriseUserRemoveResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified TeamEnterpriseUserRemoveResponse message, length delimited. Does not implicitly {@link Enterprise.TeamEnterpriseUserRemoveResponse.verify|verify} messages. - * @param message TeamEnterpriseUserRemoveResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Enterprise.ITeamEnterpriseUserRemoveResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a TeamEnterpriseUserRemoveResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -36187,22 +28619,6 @@ export namespace Enterprise { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.TeamEnterpriseUserRemoveResponse; - /** - * Decodes a TeamEnterpriseUserRemoveResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns TeamEnterpriseUserRemoveResponse - * @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)): Enterprise.TeamEnterpriseUserRemoveResponse; - - /** - * Verifies a TeamEnterpriseUserRemoveResponse 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 TeamEnterpriseUserRemoveResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -36284,14 +28700,6 @@ export namespace Enterprise { */ public static encode(message: Enterprise.IDomainAlias, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified DomainAlias message, length delimited. Does not implicitly {@link Enterprise.DomainAlias.verify|verify} messages. - * @param message DomainAlias message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Enterprise.IDomainAlias, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a DomainAlias message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -36302,22 +28710,6 @@ export namespace Enterprise { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.DomainAlias; - /** - * Decodes a DomainAlias message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns DomainAlias - * @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)): Enterprise.DomainAlias; - - /** - * Verifies a DomainAlias 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 DomainAlias message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -36381,14 +28773,6 @@ export namespace Enterprise { */ public static encode(message: Enterprise.IDomainAliasRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified DomainAliasRequest message, length delimited. Does not implicitly {@link Enterprise.DomainAliasRequest.verify|verify} messages. - * @param message DomainAliasRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Enterprise.IDomainAliasRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a DomainAliasRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -36399,22 +28783,6 @@ export namespace Enterprise { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.DomainAliasRequest; - /** - * Decodes a DomainAliasRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns DomainAliasRequest - * @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)): Enterprise.DomainAliasRequest; - - /** - * Verifies a DomainAliasRequest 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 DomainAliasRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -36478,14 +28846,6 @@ export namespace Enterprise { */ public static encode(message: Enterprise.IDomainAliasResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified DomainAliasResponse message, length delimited. Does not implicitly {@link Enterprise.DomainAliasResponse.verify|verify} messages. - * @param message DomainAliasResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Enterprise.IDomainAliasResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a DomainAliasResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -36496,22 +28856,6 @@ export namespace Enterprise { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.DomainAliasResponse; - /** - * Decodes a DomainAliasResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns DomainAliasResponse - * @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)): Enterprise.DomainAliasResponse; - - /** - * Verifies a DomainAliasResponse 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 DomainAliasResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -36581,14 +28925,6 @@ export namespace Enterprise { */ public static encode(message: Enterprise.IEnterpriseUsersProvisionRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified EnterpriseUsersProvisionRequest message, length delimited. Does not implicitly {@link Enterprise.EnterpriseUsersProvisionRequest.verify|verify} messages. - * @param message EnterpriseUsersProvisionRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Enterprise.IEnterpriseUsersProvisionRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes an EnterpriseUsersProvisionRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -36599,22 +28935,6 @@ export namespace Enterprise { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.EnterpriseUsersProvisionRequest; - /** - * Decodes an EnterpriseUsersProvisionRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns EnterpriseUsersProvisionRequest - * @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)): Enterprise.EnterpriseUsersProvisionRequest; - - /** - * Verifies an EnterpriseUsersProvisionRequest 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 EnterpriseUsersProvisionRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -36768,14 +29088,6 @@ export namespace Enterprise { */ public static encode(message: Enterprise.IEnterpriseUsersProvision, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified EnterpriseUsersProvision message, length delimited. Does not implicitly {@link Enterprise.EnterpriseUsersProvision.verify|verify} messages. - * @param message EnterpriseUsersProvision message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Enterprise.IEnterpriseUsersProvision, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes an EnterpriseUsersProvision message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -36786,22 +29098,6 @@ export namespace Enterprise { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.EnterpriseUsersProvision; - /** - * Decodes an EnterpriseUsersProvision message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns EnterpriseUsersProvision - * @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)): Enterprise.EnterpriseUsersProvision; - - /** - * Verifies an EnterpriseUsersProvision 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 EnterpriseUsersProvision message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -36865,14 +29161,6 @@ export namespace Enterprise { */ public static encode(message: Enterprise.IEnterpriseUsersProvisionResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified EnterpriseUsersProvisionResponse message, length delimited. Does not implicitly {@link Enterprise.EnterpriseUsersProvisionResponse.verify|verify} messages. - * @param message EnterpriseUsersProvisionResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Enterprise.IEnterpriseUsersProvisionResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes an EnterpriseUsersProvisionResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -36883,22 +29171,6 @@ export namespace Enterprise { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.EnterpriseUsersProvisionResponse; - /** - * Decodes an EnterpriseUsersProvisionResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns EnterpriseUsersProvisionResponse - * @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)): Enterprise.EnterpriseUsersProvisionResponse; - - /** - * Verifies an EnterpriseUsersProvisionResponse 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 EnterpriseUsersProvisionResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -36980,14 +29252,6 @@ export namespace Enterprise { */ public static encode(message: Enterprise.IEnterpriseUsersProvisionResult, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified EnterpriseUsersProvisionResult message, length delimited. Does not implicitly {@link Enterprise.EnterpriseUsersProvisionResult.verify|verify} messages. - * @param message EnterpriseUsersProvisionResult message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Enterprise.IEnterpriseUsersProvisionResult, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes an EnterpriseUsersProvisionResult message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -36998,22 +29262,6 @@ export namespace Enterprise { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.EnterpriseUsersProvisionResult; - /** - * Decodes an EnterpriseUsersProvisionResult message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns EnterpriseUsersProvisionResult - * @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)): Enterprise.EnterpriseUsersProvisionResult; - - /** - * Verifies an EnterpriseUsersProvisionResult 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 EnterpriseUsersProvisionResult message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -37083,14 +29331,6 @@ export namespace Enterprise { */ public static encode(message: Enterprise.IEnterpriseUsersAddRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified EnterpriseUsersAddRequest message, length delimited. Does not implicitly {@link Enterprise.EnterpriseUsersAddRequest.verify|verify} messages. - * @param message EnterpriseUsersAddRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Enterprise.IEnterpriseUsersAddRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes an EnterpriseUsersAddRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -37101,22 +29341,6 @@ export namespace Enterprise { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.EnterpriseUsersAddRequest; - /** - * Decodes an EnterpriseUsersAddRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns EnterpriseUsersAddRequest - * @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)): Enterprise.EnterpriseUsersAddRequest; - - /** - * Verifies an EnterpriseUsersAddRequest 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 EnterpriseUsersAddRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -37240,14 +29464,6 @@ export namespace Enterprise { */ public static encode(message: Enterprise.IEnterpriseUsersAdd, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified EnterpriseUsersAdd message, length delimited. Does not implicitly {@link Enterprise.EnterpriseUsersAdd.verify|verify} messages. - * @param message EnterpriseUsersAdd message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Enterprise.IEnterpriseUsersAdd, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes an EnterpriseUsersAdd message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -37258,22 +29474,6 @@ export namespace Enterprise { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.EnterpriseUsersAdd; - /** - * Decodes an EnterpriseUsersAdd message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns EnterpriseUsersAdd - * @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)): Enterprise.EnterpriseUsersAdd; - - /** - * Verifies an EnterpriseUsersAdd 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 EnterpriseUsersAdd message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -37361,14 +29561,6 @@ export namespace Enterprise { */ public static encode(message: Enterprise.IEnterpriseUsersAddResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified EnterpriseUsersAddResponse message, length delimited. Does not implicitly {@link Enterprise.EnterpriseUsersAddResponse.verify|verify} messages. - * @param message EnterpriseUsersAddResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Enterprise.IEnterpriseUsersAddResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes an EnterpriseUsersAddResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -37379,22 +29571,6 @@ export namespace Enterprise { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.EnterpriseUsersAddResponse; - /** - * Decodes an EnterpriseUsersAddResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns EnterpriseUsersAddResponse - * @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)): Enterprise.EnterpriseUsersAddResponse; - - /** - * Verifies an EnterpriseUsersAddResponse 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 EnterpriseUsersAddResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -37488,14 +29664,6 @@ export namespace Enterprise { */ public static encode(message: Enterprise.IEnterpriseUsersAddResult, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified EnterpriseUsersAddResult message, length delimited. Does not implicitly {@link Enterprise.EnterpriseUsersAddResult.verify|verify} messages. - * @param message EnterpriseUsersAddResult message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Enterprise.IEnterpriseUsersAddResult, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes an EnterpriseUsersAddResult message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -37506,22 +29674,6 @@ export namespace Enterprise { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.EnterpriseUsersAddResult; - /** - * Decodes an EnterpriseUsersAddResult message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns EnterpriseUsersAddResult - * @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)): Enterprise.EnterpriseUsersAddResult; - - /** - * Verifies an EnterpriseUsersAddResult 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 EnterpriseUsersAddResult message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -37615,14 +29767,6 @@ export namespace Enterprise { */ public static encode(message: Enterprise.IUpdateMSPPermitsRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified UpdateMSPPermitsRequest message, length delimited. Does not implicitly {@link Enterprise.UpdateMSPPermitsRequest.verify|verify} messages. - * @param message UpdateMSPPermitsRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Enterprise.IUpdateMSPPermitsRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes an UpdateMSPPermitsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -37633,22 +29777,6 @@ export namespace Enterprise { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.UpdateMSPPermitsRequest; - /** - * Decodes an UpdateMSPPermitsRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns UpdateMSPPermitsRequest - * @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)): Enterprise.UpdateMSPPermitsRequest; - - /** - * Verifies an UpdateMSPPermitsRequest 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 UpdateMSPPermitsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -37721,14 +29849,6 @@ export namespace Enterprise { */ public static encode(message: Enterprise.IDeleteEnterpriseUsersRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified DeleteEnterpriseUsersRequest message, length delimited. Does not implicitly {@link Enterprise.DeleteEnterpriseUsersRequest.verify|verify} messages. - * @param message DeleteEnterpriseUsersRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Enterprise.IDeleteEnterpriseUsersRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a DeleteEnterpriseUsersRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -37739,22 +29859,6 @@ export namespace Enterprise { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.DeleteEnterpriseUsersRequest; - /** - * Decodes a DeleteEnterpriseUsersRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns DeleteEnterpriseUsersRequest - * @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)): Enterprise.DeleteEnterpriseUsersRequest; - - /** - * Verifies a DeleteEnterpriseUsersRequest 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 DeleteEnterpriseUsersRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -37833,14 +29937,6 @@ export namespace Enterprise { */ public static encode(message: Enterprise.IDeleteEnterpriseUserStatus, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified DeleteEnterpriseUserStatus message, length delimited. Does not implicitly {@link Enterprise.DeleteEnterpriseUserStatus.verify|verify} messages. - * @param message DeleteEnterpriseUserStatus message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Enterprise.IDeleteEnterpriseUserStatus, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a DeleteEnterpriseUserStatus message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -37851,22 +29947,6 @@ export namespace Enterprise { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.DeleteEnterpriseUserStatus; - /** - * Decodes a DeleteEnterpriseUserStatus message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns DeleteEnterpriseUserStatus - * @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)): Enterprise.DeleteEnterpriseUserStatus; - - /** - * Verifies a DeleteEnterpriseUserStatus 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 DeleteEnterpriseUserStatus message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -37930,14 +30010,6 @@ export namespace Enterprise { */ public static encode(message: Enterprise.IDeleteEnterpriseUsersResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified DeleteEnterpriseUsersResponse message, length delimited. Does not implicitly {@link Enterprise.DeleteEnterpriseUsersResponse.verify|verify} messages. - * @param message DeleteEnterpriseUsersResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Enterprise.IDeleteEnterpriseUsersResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a DeleteEnterpriseUsersResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -37948,22 +30020,6 @@ export namespace Enterprise { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.DeleteEnterpriseUsersResponse; - /** - * Decodes a DeleteEnterpriseUsersResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns DeleteEnterpriseUsersResponse - * @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)): Enterprise.DeleteEnterpriseUsersResponse; - - /** - * Verifies a DeleteEnterpriseUsersResponse 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 DeleteEnterpriseUsersResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -38046,14 +30102,6 @@ export namespace Enterprise { */ public static encode(message: Enterprise.IClearSecurityDataRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified ClearSecurityDataRequest message, length delimited. Does not implicitly {@link Enterprise.ClearSecurityDataRequest.verify|verify} messages. - * @param message ClearSecurityDataRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Enterprise.IClearSecurityDataRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a ClearSecurityDataRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -38064,22 +30112,6 @@ export namespace Enterprise { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.ClearSecurityDataRequest; - /** - * Decodes a ClearSecurityDataRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ClearSecurityDataRequest - * @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)): Enterprise.ClearSecurityDataRequest; - - /** - * Verifies a ClearSecurityDataRequest 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 ClearSecurityDataRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -38143,14 +30175,6 @@ export namespace Enterprise { */ public static encode(message: Enterprise.IListDomainsResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified ListDomainsResponse message, length delimited. Does not implicitly {@link Enterprise.ListDomainsResponse.verify|verify} messages. - * @param message ListDomainsResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Enterprise.IListDomainsResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a ListDomainsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -38161,22 +30185,6 @@ export namespace Enterprise { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.ListDomainsResponse; - /** - * Decodes a ListDomainsResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ListDomainsResponse - * @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)): Enterprise.ListDomainsResponse; - - /** - * Verifies a ListDomainsResponse 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 ListDomainsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -38253,14 +30261,6 @@ export namespace Enterprise { */ public static encode(message: Enterprise.IReserveDomainRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified ReserveDomainRequest message, length delimited. Does not implicitly {@link Enterprise.ReserveDomainRequest.verify|verify} messages. - * @param message ReserveDomainRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Enterprise.IReserveDomainRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a ReserveDomainRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -38271,22 +30271,6 @@ export namespace Enterprise { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.ReserveDomainRequest; - /** - * Decodes a ReserveDomainRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ReserveDomainRequest - * @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)): Enterprise.ReserveDomainRequest; - - /** - * Verifies a ReserveDomainRequest 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 ReserveDomainRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -38350,14 +30334,6 @@ export namespace Enterprise { */ public static encode(message: Enterprise.IReserveDomainResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified ReserveDomainResponse message, length delimited. Does not implicitly {@link Enterprise.ReserveDomainResponse.verify|verify} messages. - * @param message ReserveDomainResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Enterprise.IReserveDomainResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a ReserveDomainResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -38368,22 +30344,6 @@ export namespace Enterprise { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.ReserveDomainResponse; - /** - * Decodes a ReserveDomainResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ReserveDomainResponse - * @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)): Enterprise.ReserveDomainResponse; - - /** - * Verifies a ReserveDomainResponse 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 ReserveDomainResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -38453,14 +30413,6 @@ export namespace Enterprise { */ public static encode(message: Enterprise.IRolesByTeam, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified RolesByTeam message, length delimited. Does not implicitly {@link Enterprise.RolesByTeam.verify|verify} messages. - * @param message RolesByTeam message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Enterprise.IRolesByTeam, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a RolesByTeam message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -38471,22 +30423,6 @@ export namespace Enterprise { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.RolesByTeam; - /** - * Decodes a RolesByTeam message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RolesByTeam - * @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)): Enterprise.RolesByTeam; - - /** - * Verifies a RolesByTeam 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 RolesByTeam message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -38568,14 +30504,6 @@ export namespace Enterprise { */ public static encode(message: Enterprise.ILockUsersRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified LockUsersRequest message, length delimited. Does not implicitly {@link Enterprise.LockUsersRequest.verify|verify} messages. - * @param message LockUsersRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Enterprise.ILockUsersRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a LockUsersRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -38586,22 +30514,6 @@ export namespace Enterprise { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.LockUsersRequest; - /** - * Decodes a LockUsersRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns LockUsersRequest - * @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)): Enterprise.LockUsersRequest; - - /** - * Verifies a LockUsersRequest 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 LockUsersRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -38665,14 +30577,6 @@ export namespace Enterprise { */ public static encode(message: Enterprise.ILockUsersResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified LockUsersResponse message, length delimited. Does not implicitly {@link Enterprise.LockUsersResponse.verify|verify} messages. - * @param message LockUsersResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Enterprise.ILockUsersResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a LockUsersResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -38683,22 +30587,6 @@ export namespace Enterprise { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.LockUsersResponse; - /** - * Decodes a LockUsersResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns LockUsersResponse - * @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)): Enterprise.LockUsersResponse; - - /** - * Verifies a LockUsersResponse 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 LockUsersResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -38784,14 +30672,6 @@ export namespace Enterprise { */ public static encode(message: Enterprise.ILockUserResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified LockUserResponse message, length delimited. Does not implicitly {@link Enterprise.LockUserResponse.verify|verify} messages. - * @param message LockUserResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Enterprise.ILockUserResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a LockUserResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -38802,22 +30682,6 @@ export namespace Enterprise { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.LockUserResponse; - /** - * Decodes a LockUserResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns LockUserResponse - * @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)): Enterprise.LockUserResponse; - - /** - * Verifies a LockUserResponse 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 LockUserResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -38921,14 +30785,6 @@ export namespace Folder { */ public static encode(message: Folder.IEncryptedDataKey, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified EncryptedDataKey message, length delimited. Does not implicitly {@link Folder.EncryptedDataKey.verify|verify} messages. - * @param message EncryptedDataKey message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Folder.IEncryptedDataKey, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes an EncryptedDataKey message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -38939,22 +30795,6 @@ export namespace Folder { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Folder.EncryptedDataKey; - /** - * Decodes an EncryptedDataKey message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns EncryptedDataKey - * @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)): Folder.EncryptedDataKey; - - /** - * Verifies an EncryptedDataKey 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 EncryptedDataKey message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -39036,14 +30876,6 @@ export namespace Folder { */ public static encode(message: Folder.ISharedFolderRecordData, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified SharedFolderRecordData message, length delimited. Does not implicitly {@link Folder.SharedFolderRecordData.verify|verify} messages. - * @param message SharedFolderRecordData message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Folder.ISharedFolderRecordData, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a SharedFolderRecordData message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -39054,22 +30886,6 @@ export namespace Folder { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Folder.SharedFolderRecordData; - /** - * Decodes a SharedFolderRecordData message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SharedFolderRecordData - * @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)): Folder.SharedFolderRecordData; - - /** - * Verifies a SharedFolderRecordData 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 SharedFolderRecordData message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -39133,14 +30949,6 @@ export namespace Folder { */ public static encode(message: Folder.ISharedFolderRecordDataList, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified SharedFolderRecordDataList message, length delimited. Does not implicitly {@link Folder.SharedFolderRecordDataList.verify|verify} messages. - * @param message SharedFolderRecordDataList message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Folder.ISharedFolderRecordDataList, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a SharedFolderRecordDataList message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -39151,22 +30959,6 @@ export namespace Folder { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Folder.SharedFolderRecordDataList; - /** - * Decodes a SharedFolderRecordDataList message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SharedFolderRecordDataList - * @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)): Folder.SharedFolderRecordDataList; - - /** - * Verifies a SharedFolderRecordDataList 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 SharedFolderRecordDataList message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -39242,14 +31034,6 @@ export namespace Folder { */ public static encode(message: Folder.ISharedFolderRecordFix, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified SharedFolderRecordFix message, length delimited. Does not implicitly {@link Folder.SharedFolderRecordFix.verify|verify} messages. - * @param message SharedFolderRecordFix message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Folder.ISharedFolderRecordFix, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a SharedFolderRecordFix message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -39260,22 +31044,6 @@ export namespace Folder { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Folder.SharedFolderRecordFix; - /** - * Decodes a SharedFolderRecordFix message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SharedFolderRecordFix - * @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)): Folder.SharedFolderRecordFix; - - /** - * Verifies a SharedFolderRecordFix 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 SharedFolderRecordFix message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -39339,14 +31107,6 @@ export namespace Folder { */ public static encode(message: Folder.ISharedFolderRecordFixList, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified SharedFolderRecordFixList message, length delimited. Does not implicitly {@link Folder.SharedFolderRecordFixList.verify|verify} messages. - * @param message SharedFolderRecordFixList message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Folder.ISharedFolderRecordFixList, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a SharedFolderRecordFixList message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -39357,22 +31117,6 @@ export namespace Folder { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Folder.SharedFolderRecordFixList; - /** - * Decodes a SharedFolderRecordFixList message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SharedFolderRecordFixList - * @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)): Folder.SharedFolderRecordFixList; - - /** - * Verifies a SharedFolderRecordFixList 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 SharedFolderRecordFixList message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -39496,14 +31240,6 @@ export namespace Folder { */ public static encode(message: Folder.IRecordRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified RecordRequest message, length delimited. Does not implicitly {@link Folder.RecordRequest.verify|verify} messages. - * @param message RecordRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Folder.IRecordRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a RecordRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -39514,22 +31250,6 @@ export namespace Folder { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Folder.RecordRequest; - /** - * Decodes a RecordRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RecordRequest - * @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)): Folder.RecordRequest; - - /** - * Verifies a RecordRequest 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 RecordRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -39605,14 +31325,6 @@ export namespace Folder { */ public static encode(message: Folder.IRecordResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified RecordResponse message, length delimited. Does not implicitly {@link Folder.RecordResponse.verify|verify} messages. - * @param message RecordResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Folder.IRecordResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a RecordResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -39623,22 +31335,6 @@ export namespace Folder { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Folder.RecordResponse; - /** - * Decodes a RecordResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RecordResponse - * @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)): Folder.RecordResponse; - - /** - * Verifies a RecordResponse 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 RecordResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -39726,14 +31422,6 @@ export namespace Folder { */ public static encode(message: Folder.ISharedFolderFields, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified SharedFolderFields message, length delimited. Does not implicitly {@link Folder.SharedFolderFields.verify|verify} messages. - * @param message SharedFolderFields message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Folder.ISharedFolderFields, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a SharedFolderFields message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -39744,22 +31432,6 @@ export namespace Folder { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Folder.SharedFolderFields; - /** - * Decodes a SharedFolderFields message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SharedFolderFields - * @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)): Folder.SharedFolderFields; - - /** - * Verifies a SharedFolderFields 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 SharedFolderFields message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -39823,14 +31495,6 @@ export namespace Folder { */ public static encode(message: Folder.ISharedFolderFolderFields, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified SharedFolderFolderFields message, length delimited. Does not implicitly {@link Folder.SharedFolderFolderFields.verify|verify} messages. - * @param message SharedFolderFolderFields message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Folder.ISharedFolderFolderFields, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a SharedFolderFolderFields message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -39841,22 +31505,6 @@ export namespace Folder { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Folder.SharedFolderFolderFields; - /** - * Decodes a SharedFolderFolderFields message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SharedFolderFolderFields - * @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)): Folder.SharedFolderFolderFields; - - /** - * Verifies a SharedFolderFolderFields 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 SharedFolderFolderFields message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -39956,14 +31604,6 @@ export namespace Folder { */ public static encode(message: Folder.IFolderRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified FolderRequest message, length delimited. Does not implicitly {@link Folder.FolderRequest.verify|verify} messages. - * @param message FolderRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Folder.IFolderRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a FolderRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -39974,22 +31614,6 @@ export namespace Folder { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Folder.FolderRequest; - /** - * Decodes a FolderRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns FolderRequest - * @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)): Folder.FolderRequest; - - /** - * Verifies a FolderRequest 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 FolderRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -40065,14 +31689,6 @@ export namespace Folder { */ public static encode(message: Folder.IFolderResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified FolderResponse message, length delimited. Does not implicitly {@link Folder.FolderResponse.verify|verify} messages. - * @param message FolderResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Folder.IFolderResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a FolderResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -40083,22 +31699,6 @@ export namespace Folder { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Folder.FolderResponse; - /** - * Decodes a FolderResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns FolderResponse - * @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)): Folder.FolderResponse; - - /** - * Verifies a FolderResponse 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 FolderResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -40168,14 +31768,6 @@ export namespace Folder { */ public static encode(message: Folder.IImportFolderRecordRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified ImportFolderRecordRequest message, length delimited. Does not implicitly {@link Folder.ImportFolderRecordRequest.verify|verify} messages. - * @param message ImportFolderRecordRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Folder.IImportFolderRecordRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes an ImportFolderRecordRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -40186,22 +31778,6 @@ export namespace Folder { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Folder.ImportFolderRecordRequest; - /** - * Decodes an ImportFolderRecordRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ImportFolderRecordRequest - * @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)): Folder.ImportFolderRecordRequest; - - /** - * Verifies an ImportFolderRecordRequest 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 ImportFolderRecordRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -40271,14 +31847,6 @@ export namespace Folder { */ public static encode(message: Folder.IImportFolderRecordResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified ImportFolderRecordResponse message, length delimited. Does not implicitly {@link Folder.ImportFolderRecordResponse.verify|verify} messages. - * @param message ImportFolderRecordResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Folder.IImportFolderRecordResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes an ImportFolderRecordResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -40289,22 +31857,6 @@ export namespace Folder { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Folder.ImportFolderRecordResponse; - /** - * Decodes an ImportFolderRecordResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ImportFolderRecordResponse - * @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)): Folder.ImportFolderRecordResponse; - - /** - * Verifies an ImportFolderRecordResponse 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 ImportFolderRecordResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -40429,14 +31981,6 @@ export namespace Folder { */ public static encode(message: Folder.ISharedFolderUpdateRecord, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified SharedFolderUpdateRecord message, length delimited. Does not implicitly {@link Folder.SharedFolderUpdateRecord.verify|verify} messages. - * @param message SharedFolderUpdateRecord message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Folder.ISharedFolderUpdateRecord, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a SharedFolderUpdateRecord message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -40447,22 +31991,6 @@ export namespace Folder { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Folder.SharedFolderUpdateRecord; - /** - * Decodes a SharedFolderUpdateRecord message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SharedFolderUpdateRecord - * @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)): Folder.SharedFolderUpdateRecord; - - /** - * Verifies a SharedFolderUpdateRecord 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 SharedFolderUpdateRecord message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -40568,14 +32096,6 @@ export namespace Folder { */ public static encode(message: Folder.ISharedFolderUpdateUser, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified SharedFolderUpdateUser message, length delimited. Does not implicitly {@link Folder.SharedFolderUpdateUser.verify|verify} messages. - * @param message SharedFolderUpdateUser message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Folder.ISharedFolderUpdateUser, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a SharedFolderUpdateUser message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -40586,22 +32106,6 @@ export namespace Folder { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Folder.SharedFolderUpdateUser; - /** - * Decodes a SharedFolderUpdateUser message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SharedFolderUpdateUser - * @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)): Folder.SharedFolderUpdateUser; - - /** - * Verifies a SharedFolderUpdateUser 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 SharedFolderUpdateUser message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -40707,14 +32211,6 @@ export namespace Folder { */ public static encode(message: Folder.ISharedFolderUpdateTeam, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified SharedFolderUpdateTeam message, length delimited. Does not implicitly {@link Folder.SharedFolderUpdateTeam.verify|verify} messages. - * @param message SharedFolderUpdateTeam message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Folder.ISharedFolderUpdateTeam, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a SharedFolderUpdateTeam message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -40725,22 +32221,6 @@ export namespace Folder { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Folder.SharedFolderUpdateTeam; - /** - * Decodes a SharedFolderUpdateTeam message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SharedFolderUpdateTeam - * @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)): Folder.SharedFolderUpdateTeam; - - /** - * Verifies a SharedFolderUpdateTeam 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 SharedFolderUpdateTeam message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -40918,14 +32398,6 @@ export namespace Folder { */ public static encode(message: Folder.ISharedFolderUpdateV3Request, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified SharedFolderUpdateV3Request message, length delimited. Does not implicitly {@link Folder.SharedFolderUpdateV3Request.verify|verify} messages. - * @param message SharedFolderUpdateV3Request message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Folder.ISharedFolderUpdateV3Request, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a SharedFolderUpdateV3Request message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -40936,22 +32408,6 @@ export namespace Folder { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Folder.SharedFolderUpdateV3Request; - /** - * Decodes a SharedFolderUpdateV3Request message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SharedFolderUpdateV3Request - * @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)): Folder.SharedFolderUpdateV3Request; - - /** - * Verifies a SharedFolderUpdateV3Request 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 SharedFolderUpdateV3Request message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -41015,14 +32471,6 @@ export namespace Folder { */ public static encode(message: Folder.ISharedFolderUpdateV3RequestV2, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified SharedFolderUpdateV3RequestV2 message, length delimited. Does not implicitly {@link Folder.SharedFolderUpdateV3RequestV2.verify|verify} messages. - * @param message SharedFolderUpdateV3RequestV2 message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Folder.ISharedFolderUpdateV3RequestV2, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a SharedFolderUpdateV3RequestV2 message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -41033,22 +32481,6 @@ export namespace Folder { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Folder.SharedFolderUpdateV3RequestV2; - /** - * Decodes a SharedFolderUpdateV3RequestV2 message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SharedFolderUpdateV3RequestV2 - * @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)): Folder.SharedFolderUpdateV3RequestV2; - - /** - * Verifies a SharedFolderUpdateV3RequestV2 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 SharedFolderUpdateV3RequestV2 message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -41118,14 +32550,6 @@ export namespace Folder { */ public static encode(message: Folder.ISharedFolderUpdateRecordStatus, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified SharedFolderUpdateRecordStatus message, length delimited. Does not implicitly {@link Folder.SharedFolderUpdateRecordStatus.verify|verify} messages. - * @param message SharedFolderUpdateRecordStatus message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Folder.ISharedFolderUpdateRecordStatus, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a SharedFolderUpdateRecordStatus message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -41136,22 +32560,6 @@ export namespace Folder { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Folder.SharedFolderUpdateRecordStatus; - /** - * Decodes a SharedFolderUpdateRecordStatus message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SharedFolderUpdateRecordStatus - * @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)): Folder.SharedFolderUpdateRecordStatus; - - /** - * Verifies a SharedFolderUpdateRecordStatus 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 SharedFolderUpdateRecordStatus message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -41221,14 +32629,6 @@ export namespace Folder { */ public static encode(message: Folder.ISharedFolderUpdateUserStatus, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified SharedFolderUpdateUserStatus message, length delimited. Does not implicitly {@link Folder.SharedFolderUpdateUserStatus.verify|verify} messages. - * @param message SharedFolderUpdateUserStatus message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Folder.ISharedFolderUpdateUserStatus, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a SharedFolderUpdateUserStatus message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -41239,22 +32639,6 @@ export namespace Folder { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Folder.SharedFolderUpdateUserStatus; - /** - * Decodes a SharedFolderUpdateUserStatus message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SharedFolderUpdateUserStatus - * @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)): Folder.SharedFolderUpdateUserStatus; - - /** - * Verifies a SharedFolderUpdateUserStatus 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 SharedFolderUpdateUserStatus message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -41324,14 +32708,6 @@ export namespace Folder { */ public static encode(message: Folder.ISharedFolderUpdateTeamStatus, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified SharedFolderUpdateTeamStatus message, length delimited. Does not implicitly {@link Folder.SharedFolderUpdateTeamStatus.verify|verify} messages. - * @param message SharedFolderUpdateTeamStatus message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Folder.ISharedFolderUpdateTeamStatus, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a SharedFolderUpdateTeamStatus message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -41342,22 +32718,6 @@ export namespace Folder { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Folder.SharedFolderUpdateTeamStatus; - /** - * Decodes a SharedFolderUpdateTeamStatus message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SharedFolderUpdateTeamStatus - * @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)): Folder.SharedFolderUpdateTeamStatus; - - /** - * Verifies a SharedFolderUpdateTeamStatus 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 SharedFolderUpdateTeamStatus message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -41487,14 +32847,6 @@ export namespace Folder { */ public static encode(message: Folder.ISharedFolderUpdateV3Response, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified SharedFolderUpdateV3Response message, length delimited. Does not implicitly {@link Folder.SharedFolderUpdateV3Response.verify|verify} messages. - * @param message SharedFolderUpdateV3Response message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Folder.ISharedFolderUpdateV3Response, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a SharedFolderUpdateV3Response message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -41505,22 +32857,6 @@ export namespace Folder { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Folder.SharedFolderUpdateV3Response; - /** - * Decodes a SharedFolderUpdateV3Response message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SharedFolderUpdateV3Response - * @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)): Folder.SharedFolderUpdateV3Response; - - /** - * Verifies a SharedFolderUpdateV3Response 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 SharedFolderUpdateV3Response message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -41584,14 +32920,6 @@ export namespace Folder { */ public static encode(message: Folder.ISharedFolderUpdateV3ResponseV2, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified SharedFolderUpdateV3ResponseV2 message, length delimited. Does not implicitly {@link Folder.SharedFolderUpdateV3ResponseV2.verify|verify} messages. - * @param message SharedFolderUpdateV3ResponseV2 message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Folder.ISharedFolderUpdateV3ResponseV2, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a SharedFolderUpdateV3ResponseV2 message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -41602,22 +32930,6 @@ export namespace Folder { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Folder.SharedFolderUpdateV3ResponseV2; - /** - * Decodes a SharedFolderUpdateV3ResponseV2 message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SharedFolderUpdateV3ResponseV2 - * @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)): Folder.SharedFolderUpdateV3ResponseV2; - - /** - * Verifies a SharedFolderUpdateV3ResponseV2 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 SharedFolderUpdateV3ResponseV2 message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -41699,14 +33011,6 @@ export namespace Folder { */ public static encode(message: Folder.IGetDeletedSharedFoldersAndRecordsResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified GetDeletedSharedFoldersAndRecordsResponse message, length delimited. Does not implicitly {@link Folder.GetDeletedSharedFoldersAndRecordsResponse.verify|verify} messages. - * @param message GetDeletedSharedFoldersAndRecordsResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Folder.IGetDeletedSharedFoldersAndRecordsResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a GetDeletedSharedFoldersAndRecordsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -41717,22 +33021,6 @@ export namespace Folder { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Folder.GetDeletedSharedFoldersAndRecordsResponse; - /** - * Decodes a GetDeletedSharedFoldersAndRecordsResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetDeletedSharedFoldersAndRecordsResponse - * @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)): Folder.GetDeletedSharedFoldersAndRecordsResponse; - - /** - * Verifies a GetDeletedSharedFoldersAndRecordsResponse 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 GetDeletedSharedFoldersAndRecordsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -41838,14 +33126,6 @@ export namespace Folder { */ public static encode(message: Folder.IDeletedSharedFolder, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified DeletedSharedFolder message, length delimited. Does not implicitly {@link Folder.DeletedSharedFolder.verify|verify} messages. - * @param message DeletedSharedFolder message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Folder.IDeletedSharedFolder, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a DeletedSharedFolder message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -41856,22 +33136,6 @@ export namespace Folder { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Folder.DeletedSharedFolder; - /** - * Decodes a DeletedSharedFolder message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns DeletedSharedFolder - * @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)): Folder.DeletedSharedFolder; - - /** - * Verifies a DeletedSharedFolder 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 DeletedSharedFolder message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -41959,14 +33223,6 @@ export namespace Folder { */ public static encode(message: Folder.IDeletedSharedFolderRecord, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified DeletedSharedFolderRecord message, length delimited. Does not implicitly {@link Folder.DeletedSharedFolderRecord.verify|verify} messages. - * @param message DeletedSharedFolderRecord message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Folder.IDeletedSharedFolderRecord, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a DeletedSharedFolderRecord message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -41977,22 +33233,6 @@ export namespace Folder { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Folder.DeletedSharedFolderRecord; - /** - * Decodes a DeletedSharedFolderRecord message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns DeletedSharedFolderRecord - * @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)): Folder.DeletedSharedFolderRecord; - - /** - * Verifies a DeletedSharedFolderRecord 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 DeletedSharedFolderRecord message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -42086,14 +33326,6 @@ export namespace Folder { */ public static encode(message: Folder.IDeletedRecordData, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified DeletedRecordData message, length delimited. Does not implicitly {@link Folder.DeletedRecordData.verify|verify} messages. - * @param message DeletedRecordData message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Folder.IDeletedRecordData, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a DeletedRecordData message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -42104,22 +33336,6 @@ export namespace Folder { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Folder.DeletedRecordData; - /** - * Decodes a DeletedRecordData message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns DeletedRecordData - * @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)): Folder.DeletedRecordData; - - /** - * Verifies a DeletedRecordData 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 DeletedRecordData message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -42189,14 +33405,6 @@ export namespace Folder { */ public static encode(message: Folder.IUsername, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified Username message, length delimited. Does not implicitly {@link Folder.Username.verify|verify} messages. - * @param message Username message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Folder.IUsername, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a Username message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -42207,22 +33415,6 @@ export namespace Folder { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Folder.Username; - /** - * Decodes a Username message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Username - * @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)): Folder.Username; - - /** - * Verifies a Username 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 Username message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -42292,14 +33484,6 @@ export namespace Folder { */ public static encode(message: Folder.IRestoreDeletedSharedFoldersAndRecordsRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified RestoreDeletedSharedFoldersAndRecordsRequest message, length delimited. Does not implicitly {@link Folder.RestoreDeletedSharedFoldersAndRecordsRequest.verify|verify} messages. - * @param message RestoreDeletedSharedFoldersAndRecordsRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Folder.IRestoreDeletedSharedFoldersAndRecordsRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a RestoreDeletedSharedFoldersAndRecordsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -42310,22 +33494,6 @@ export namespace Folder { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Folder.RestoreDeletedSharedFoldersAndRecordsRequest; - /** - * Decodes a RestoreDeletedSharedFoldersAndRecordsRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RestoreDeletedSharedFoldersAndRecordsRequest - * @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)): Folder.RestoreDeletedSharedFoldersAndRecordsRequest; - - /** - * Verifies a RestoreDeletedSharedFoldersAndRecordsRequest 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 RestoreDeletedSharedFoldersAndRecordsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -42395,14 +33563,6 @@ export namespace Folder { */ public static encode(message: Folder.IRestoreSharedObject, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified RestoreSharedObject message, length delimited. Does not implicitly {@link Folder.RestoreSharedObject.verify|verify} messages. - * @param message RestoreSharedObject message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Folder.IRestoreSharedObject, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a RestoreSharedObject message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -42413,22 +33573,6 @@ export namespace Folder { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Folder.RestoreSharedObject; - /** - * Decodes a RestoreSharedObject message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RestoreSharedObject - * @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)): Folder.RestoreSharedObject; - - /** - * Verifies a RestoreSharedObject 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 RestoreSharedObject message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -42551,14 +33695,6 @@ export namespace Folder { */ public static encode(message: Folder.IFolderData, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified FolderData message, length delimited. Does not implicitly {@link Folder.FolderData.verify|verify} messages. - * @param message FolderData message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Folder.IFolderData, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a FolderData message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -42569,22 +33705,6 @@ export namespace Folder { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Folder.FolderData; - /** - * Decodes a FolderData message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns FolderData - * @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)): Folder.FolderData; - - /** - * Verifies a FolderData 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 FolderData message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -42666,14 +33786,6 @@ export namespace Folder { */ public static encode(message: Folder.IFolderKey, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified FolderKey message, length delimited. Does not implicitly {@link Folder.FolderKey.verify|verify} messages. - * @param message FolderKey message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Folder.IFolderKey, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a FolderKey message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -42684,22 +33796,6 @@ export namespace Folder { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Folder.FolderKey; - /** - * Decodes a FolderKey message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns FolderKey - * @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)): Folder.FolderKey; - - /** - * Verifies a FolderKey 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 FolderKey message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -42770,14 +33866,6 @@ export namespace Folder { */ public static encode(message: Folder.IFolderAddRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified FolderAddRequest message, length delimited. Does not implicitly {@link Folder.FolderAddRequest.verify|verify} messages. - * @param message FolderAddRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Folder.IFolderAddRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a FolderAddRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -42788,22 +33876,6 @@ export namespace Folder { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Folder.FolderAddRequest; - /** - * Decodes a FolderAddRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns FolderAddRequest - * @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)): Folder.FolderAddRequest; - - /** - * Verifies a FolderAddRequest 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 FolderAddRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -42887,14 +33959,6 @@ export namespace Folder { */ public static encode(message: Folder.IFolderModifyResult, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified FolderModifyResult message, length delimited. Does not implicitly {@link Folder.FolderModifyResult.verify|verify} messages. - * @param message FolderModifyResult message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Folder.IFolderModifyResult, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a FolderModifyResult message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -42905,22 +33969,6 @@ export namespace Folder { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Folder.FolderModifyResult; - /** - * Decodes a FolderModifyResult message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns FolderModifyResult - * @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)): Folder.FolderModifyResult; - - /** - * Verifies a FolderModifyResult 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 FolderModifyResult message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -42984,14 +34032,6 @@ export namespace Folder { */ public static encode(message: Folder.IFolderAddResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified FolderAddResponse message, length delimited. Does not implicitly {@link Folder.FolderAddResponse.verify|verify} messages. - * @param message FolderAddResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Folder.IFolderAddResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a FolderAddResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -43002,22 +34042,6 @@ export namespace Folder { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Folder.FolderAddResponse; - /** - * Decodes a FolderAddResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns FolderAddResponse - * @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)): Folder.FolderAddResponse; - - /** - * Verifies a FolderAddResponse 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 FolderAddResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -43081,14 +34105,6 @@ export namespace Folder { */ public static encode(message: Folder.IFolderUpdateRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified FolderUpdateRequest message, length delimited. Does not implicitly {@link Folder.FolderUpdateRequest.verify|verify} messages. - * @param message FolderUpdateRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Folder.IFolderUpdateRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a FolderUpdateRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -43099,22 +34115,6 @@ export namespace Folder { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Folder.FolderUpdateRequest; - /** - * Decodes a FolderUpdateRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns FolderUpdateRequest - * @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)): Folder.FolderUpdateRequest; - - /** - * Verifies a FolderUpdateRequest 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 FolderUpdateRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -43178,14 +34178,6 @@ export namespace Folder { */ public static encode(message: Folder.IFolderUpdateResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified FolderUpdateResponse message, length delimited. Does not implicitly {@link Folder.FolderUpdateResponse.verify|verify} messages. - * @param message FolderUpdateResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Folder.IFolderUpdateResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a FolderUpdateResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -43196,22 +34188,6 @@ export namespace Folder { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Folder.FolderUpdateResponse; - /** - * Decodes a FolderUpdateResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns FolderUpdateResponse - * @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)): Folder.FolderUpdateResponse; - - /** - * Verifies a FolderUpdateResponse 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 FolderUpdateResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -43365,14 +34341,6 @@ export namespace Folder { */ public static encode(message: Folder.IFolderPermissions, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified FolderPermissions message, length delimited. Does not implicitly {@link Folder.FolderPermissions.verify|verify} messages. - * @param message FolderPermissions message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Folder.IFolderPermissions, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a FolderPermissions message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -43383,22 +34351,6 @@ export namespace Folder { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Folder.FolderPermissions; - /** - * Decodes a FolderPermissions message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns FolderPermissions - * @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)): Folder.FolderPermissions; - - /** - * Verifies a FolderPermissions 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 FolderPermissions message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -43534,14 +34486,6 @@ export namespace Folder { */ public static encode(message: Folder.ICapabilities, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified Capabilities message, length delimited. Does not implicitly {@link Folder.Capabilities.verify|verify} messages. - * @param message Capabilities message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Folder.ICapabilities, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a Capabilities message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -43552,22 +34496,6 @@ export namespace Folder { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Folder.Capabilities; - /** - * Decodes a Capabilities message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Capabilities - * @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)): Folder.Capabilities; - - /** - * Verifies a Capabilities 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 Capabilities message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -43649,14 +34577,6 @@ export namespace Folder { */ public static encode(message: Folder.IFolderRecordUpdateRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified FolderRecordUpdateRequest message, length delimited. Does not implicitly {@link Folder.FolderRecordUpdateRequest.verify|verify} messages. - * @param message FolderRecordUpdateRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Folder.IFolderRecordUpdateRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a FolderRecordUpdateRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -43667,22 +34587,6 @@ export namespace Folder { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Folder.FolderRecordUpdateRequest; - /** - * Decodes a FolderRecordUpdateRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns FolderRecordUpdateRequest - * @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)): Folder.FolderRecordUpdateRequest; - - /** - * Verifies a FolderRecordUpdateRequest 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 FolderRecordUpdateRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -43764,14 +34668,6 @@ export namespace Folder { */ public static encode(message: Folder.IRecordMetadata, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified RecordMetadata message, length delimited. Does not implicitly {@link Folder.RecordMetadata.verify|verify} messages. - * @param message RecordMetadata message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Folder.IRecordMetadata, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a RecordMetadata message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -43782,22 +34678,6 @@ export namespace Folder { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Folder.RecordMetadata; - /** - * Decodes a RecordMetadata message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RecordMetadata - * @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)): Folder.RecordMetadata; - - /** - * Verifies a RecordMetadata 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 RecordMetadata message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -43873,14 +34753,6 @@ export namespace Folder { */ public static encode(message: Folder.IFolderRecord, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified FolderRecord message, length delimited. Does not implicitly {@link Folder.FolderRecord.verify|verify} messages. - * @param message FolderRecord message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Folder.IFolderRecord, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a FolderRecord message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -43891,22 +34763,6 @@ export namespace Folder { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Folder.FolderRecord; - /** - * Decodes a FolderRecord message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns FolderRecord - * @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)): Folder.FolderRecord; - - /** - * Verifies a FolderRecord 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 FolderRecord message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -43976,14 +34832,6 @@ export namespace Folder { */ public static encode(message: Folder.IFolderRecordUpdateResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified FolderRecordUpdateResponse message, length delimited. Does not implicitly {@link Folder.FolderRecordUpdateResponse.verify|verify} messages. - * @param message FolderRecordUpdateResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Folder.IFolderRecordUpdateResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a FolderRecordUpdateResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -43994,22 +34842,6 @@ export namespace Folder { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Folder.FolderRecordUpdateResponse; - /** - * Decodes a FolderRecordUpdateResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns FolderRecordUpdateResponse - * @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)): Folder.FolderRecordUpdateResponse; - - /** - * Verifies a FolderRecordUpdateResponse 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 FolderRecordUpdateResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -44085,14 +34917,6 @@ export namespace Folder { */ public static encode(message: Folder.IFolderRecordUpdateResult, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified FolderRecordUpdateResult message, length delimited. Does not implicitly {@link Folder.FolderRecordUpdateResult.verify|verify} messages. - * @param message FolderRecordUpdateResult message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Folder.IFolderRecordUpdateResult, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a FolderRecordUpdateResult message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -44103,22 +34927,6 @@ export namespace Folder { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Folder.FolderRecordUpdateResult; - /** - * Decodes a FolderRecordUpdateResult message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns FolderRecordUpdateResult - * @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)): Folder.FolderRecordUpdateResult; - - /** - * Verifies a FolderRecordUpdateResult 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 FolderRecordUpdateResult message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -44260,14 +35068,6 @@ export namespace Folder { */ public static encode(message: Folder.IFolderAccessData, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified FolderAccessData message, length delimited. Does not implicitly {@link Folder.FolderAccessData.verify|verify} messages. - * @param message FolderAccessData message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Folder.IFolderAccessData, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a FolderAccessData message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -44278,22 +35078,6 @@ export namespace Folder { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Folder.FolderAccessData; - /** - * Decodes a FolderAccessData message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns FolderAccessData - * @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)): Folder.FolderAccessData; - - /** - * Verifies a FolderAccessData 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 FolderAccessData message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -44369,14 +35153,6 @@ export namespace Folder { */ public static encode(message: Folder.IRevokedAccess, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified RevokedAccess message, length delimited. Does not implicitly {@link Folder.RevokedAccess.verify|verify} messages. - * @param message RevokedAccess message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Folder.IRevokedAccess, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a RevokedAccess message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -44387,22 +35163,6 @@ export namespace Folder { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Folder.RevokedAccess; - /** - * Decodes a RevokedAccess message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RevokedAccess - * @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)): Folder.RevokedAccess; - - /** - * Verifies a RevokedAccess 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 RevokedAccess message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -44466,14 +35226,6 @@ export namespace Folder { */ public static encode(message: Folder.IFolderRemoved, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified FolderRemoved message, length delimited. Does not implicitly {@link Folder.FolderRemoved.verify|verify} messages. - * @param message FolderRemoved message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Folder.IFolderRemoved, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a FolderRemoved message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -44484,22 +35236,6 @@ export namespace Folder { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Folder.FolderRemoved; - /** - * Decodes a FolderRemoved message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns FolderRemoved - * @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)): Folder.FolderRemoved; - - /** - * Verifies a FolderRemoved 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 FolderRemoved message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -44677,14 +35413,6 @@ export namespace Folder { */ public static encode(message: Folder.IRecordAccessData, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified RecordAccessData message, length delimited. Does not implicitly {@link Folder.RecordAccessData.verify|verify} messages. - * @param message RecordAccessData message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Folder.IRecordAccessData, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a RecordAccessData message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -44695,22 +35423,6 @@ export namespace Folder { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Folder.RecordAccessData; - /** - * Decodes a RecordAccessData message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RecordAccessData - * @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)): Folder.RecordAccessData; - - /** - * Verifies a RecordAccessData 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 RecordAccessData message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -44804,14 +35516,6 @@ export namespace Folder { */ public static encode(message: Folder.IAccessData, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified AccessData message, length delimited. Does not implicitly {@link Folder.AccessData.verify|verify} messages. - * @param message AccessData message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Folder.IAccessData, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes an AccessData message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -44822,22 +35526,6 @@ export namespace Folder { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Folder.AccessData; - /** - * Decodes an AccessData message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns AccessData - * @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)): Folder.AccessData; - - /** - * Verifies an AccessData 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 AccessData message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -44913,14 +35601,6 @@ export namespace Folder { */ public static encode(message: Folder.IFolderAccessRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified FolderAccessRequest message, length delimited. Does not implicitly {@link Folder.FolderAccessRequest.verify|verify} messages. - * @param message FolderAccessRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Folder.IFolderAccessRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a FolderAccessRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -44931,22 +35611,6 @@ export namespace Folder { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Folder.FolderAccessRequest; - /** - * Decodes a FolderAccessRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns FolderAccessRequest - * @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)): Folder.FolderAccessRequest; - - /** - * Verifies a FolderAccessRequest 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 FolderAccessRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -45034,14 +35698,6 @@ export namespace Folder { */ public static encode(message: Folder.IFolderAccessResult, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified FolderAccessResult message, length delimited. Does not implicitly {@link Folder.FolderAccessResult.verify|verify} messages. - * @param message FolderAccessResult message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Folder.IFolderAccessResult, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a FolderAccessResult message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -45052,22 +35708,6 @@ export namespace Folder { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Folder.FolderAccessResult; - /** - * Decodes a FolderAccessResult message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns FolderAccessResult - * @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)): Folder.FolderAccessResult; - - /** - * Verifies a FolderAccessResult 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 FolderAccessResult message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -45131,14 +35771,6 @@ export namespace Folder { */ public static encode(message: Folder.IFolderAccessResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified FolderAccessResponse message, length delimited. Does not implicitly {@link Folder.FolderAccessResponse.verify|verify} messages. - * @param message FolderAccessResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Folder.IFolderAccessResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a FolderAccessResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -45149,22 +35781,6 @@ export namespace Folder { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Folder.FolderAccessResponse; - /** - * Decodes a FolderAccessResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns FolderAccessResponse - * @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)): Folder.FolderAccessResponse; - - /** - * Verifies a FolderAccessResponse 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 FolderAccessResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -45252,14 +35868,6 @@ export namespace Folder { */ public static encode(message: Folder.IUserInfo, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified UserInfo message, length delimited. Does not implicitly {@link Folder.UserInfo.verify|verify} messages. - * @param message UserInfo message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Folder.IUserInfo, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a UserInfo message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -45270,22 +35878,6 @@ export namespace Folder { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Folder.UserInfo; - /** - * Decodes a UserInfo message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns UserInfo - * @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)): Folder.UserInfo; - - /** - * Verifies a UserInfo 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 UserInfo message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -45361,14 +35953,6 @@ export namespace Folder { */ public static encode(message: Folder.IRecordData, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified RecordData message, length delimited. Does not implicitly {@link Folder.RecordData.verify|verify} messages. - * @param message RecordData message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Folder.IRecordData, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a RecordData message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -45379,22 +35963,6 @@ export namespace Folder { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Folder.RecordData; - /** - * Decodes a RecordData message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RecordData - * @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)): Folder.RecordData; - - /** - * Verifies a RecordData 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 RecordData message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -45479,14 +36047,6 @@ export namespace Folder { */ public static encode(message: Folder.IRecordKey, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified RecordKey message, length delimited. Does not implicitly {@link Folder.RecordKey.verify|verify} messages. - * @param message RecordKey message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Folder.IRecordKey, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a RecordKey message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -45497,22 +36057,6 @@ export namespace Folder { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Folder.RecordKey; - /** - * Decodes a RecordKey message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RecordKey - * @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)): Folder.RecordKey; - - /** - * Verifies a RecordKey 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 RecordKey message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -45601,14 +36145,6 @@ export namespace Records { */ public static encode(message: Records.IRecordType, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified RecordType message, length delimited. Does not implicitly {@link Records.RecordType.verify|verify} messages. - * @param message RecordType message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Records.IRecordType, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a RecordType message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -45619,22 +36155,6 @@ export namespace Records { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.RecordType; - /** - * Decodes a RecordType message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RecordType - * @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)): Records.RecordType; - - /** - * Verifies a RecordType 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 RecordType message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -45716,14 +36236,6 @@ export namespace Records { */ public static encode(message: Records.IRecordTypesRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified RecordTypesRequest message, length delimited. Does not implicitly {@link Records.RecordTypesRequest.verify|verify} messages. - * @param message RecordTypesRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Records.IRecordTypesRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a RecordTypesRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -45734,22 +36246,6 @@ export namespace Records { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.RecordTypesRequest; - /** - * Decodes a RecordTypesRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RecordTypesRequest - * @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)): Records.RecordTypesRequest; - - /** - * Verifies a RecordTypesRequest 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 RecordTypesRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -45837,14 +36333,6 @@ export namespace Records { */ public static encode(message: Records.IRecordTypesResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified RecordTypesResponse message, length delimited. Does not implicitly {@link Records.RecordTypesResponse.verify|verify} messages. - * @param message RecordTypesResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Records.IRecordTypesResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a RecordTypesResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -45855,22 +36343,6 @@ export namespace Records { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.RecordTypesResponse; - /** - * Decodes a RecordTypesResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RecordTypesResponse - * @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)): Records.RecordTypesResponse; - - /** - * Verifies a RecordTypesResponse 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 RecordTypesResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -45940,14 +36412,6 @@ export namespace Records { */ public static encode(message: Records.IRecordTypeModifyResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified RecordTypeModifyResponse message, length delimited. Does not implicitly {@link Records.RecordTypeModifyResponse.verify|verify} messages. - * @param message RecordTypeModifyResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Records.IRecordTypeModifyResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a RecordTypeModifyResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -45958,22 +36422,6 @@ export namespace Records { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.RecordTypeModifyResponse; - /** - * Decodes a RecordTypeModifyResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RecordTypeModifyResponse - * @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)): Records.RecordTypeModifyResponse; - - /** - * Verifies a RecordTypeModifyResponse 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 RecordTypeModifyResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -46043,14 +36491,6 @@ export namespace Records { */ public static encode(message: Records.IRecordsGetRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified RecordsGetRequest message, length delimited. Does not implicitly {@link Records.RecordsGetRequest.verify|verify} messages. - * @param message RecordsGetRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Records.IRecordsGetRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a RecordsGetRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -46061,22 +36501,6 @@ export namespace Records { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.RecordsGetRequest; - /** - * Decodes a RecordsGetRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RecordsGetRequest - * @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)): Records.RecordsGetRequest; - - /** - * Verifies a RecordsGetRequest 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 RecordsGetRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -46188,14 +36612,6 @@ export namespace Records { */ public static encode(message: Records.IRecord, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified Record message, length delimited. Does not implicitly {@link Records.Record.verify|verify} messages. - * @param message Record message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Records.IRecord, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a Record message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -46206,22 +36622,6 @@ export namespace Records { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.Record; - /** - * Decodes a Record message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Record - * @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)): Records.Record; - - /** - * Verifies a Record 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 Record message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -46308,14 +36708,6 @@ export namespace Records { */ public static encode(message: Records.IFolderRecordKey, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified FolderRecordKey message, length delimited. Does not implicitly {@link Records.FolderRecordKey.verify|verify} messages. - * @param message FolderRecordKey message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Records.IFolderRecordKey, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a FolderRecordKey message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -46326,22 +36718,6 @@ export namespace Records { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.FolderRecordKey; - /** - * Decodes a FolderRecordKey message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns FolderRecordKey - * @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)): Records.FolderRecordKey; - - /** - * Verifies a FolderRecordKey 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 FolderRecordKey message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -46417,14 +36793,6 @@ export namespace Records { */ public static encode(message: Records.IFolder, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified Folder message, length delimited. Does not implicitly {@link Records.Folder.verify|verify} messages. - * @param message Folder message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Records.IFolder, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a Folder message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -46435,22 +36803,6 @@ export namespace Records { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.Folder; - /** - * Decodes a Folder message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Folder - * @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)): Records.Folder; - - /** - * Verifies a Folder 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 Folder message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -46538,14 +36890,6 @@ export namespace Records { */ public static encode(message: Records.ITeam, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified Team message, length delimited. Does not implicitly {@link Records.Team.verify|verify} messages. - * @param message Team message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Records.ITeam, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a Team message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -46556,22 +36900,6 @@ export namespace Records { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.Team; - /** - * Decodes a Team message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Team - * @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)): Records.Team; - - /** - * Verifies a Team 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 Team message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -46653,14 +36981,6 @@ export namespace Records { */ public static encode(message: Records.IRecordsGetResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified RecordsGetResponse message, length delimited. Does not implicitly {@link Records.RecordsGetResponse.verify|verify} messages. - * @param message RecordsGetResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Records.IRecordsGetResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a RecordsGetResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -46671,22 +36991,6 @@ export namespace Records { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.RecordsGetResponse; - /** - * Decodes a RecordsGetResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RecordsGetResponse - * @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)): Records.RecordsGetResponse; - - /** - * Verifies a RecordsGetResponse 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 RecordsGetResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -46763,14 +37067,6 @@ export namespace Records { */ public static encode(message: Records.IRecordLink, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified RecordLink message, length delimited. Does not implicitly {@link Records.RecordLink.verify|verify} messages. - * @param message RecordLink message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Records.IRecordLink, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a RecordLink message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -46781,22 +37077,6 @@ export namespace Records { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.RecordLink; - /** - * Decodes a RecordLink message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RecordLink - * @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)): Records.RecordLink; - - /** - * Verifies a RecordLink 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 RecordLink message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -46866,14 +37146,6 @@ export namespace Records { */ public static encode(message: Records.IRecordAudit, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified RecordAudit message, length delimited. Does not implicitly {@link Records.RecordAudit.verify|verify} messages. - * @param message RecordAudit message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Records.IRecordAudit, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a RecordAudit message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -46884,22 +37156,6 @@ export namespace Records { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.RecordAudit; - /** - * Decodes a RecordAudit message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RecordAudit - * @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)): Records.RecordAudit; - - /** - * Verifies a RecordAudit 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 RecordAudit message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -46963,14 +37219,6 @@ export namespace Records { */ public static encode(message: Records.ISecurityData, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified SecurityData message, length delimited. Does not implicitly {@link Records.SecurityData.verify|verify} messages. - * @param message SecurityData message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Records.ISecurityData, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a SecurityData message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -46981,22 +37229,6 @@ export namespace Records { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.SecurityData; - /** - * Decodes a SecurityData message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SecurityData - * @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)): Records.SecurityData; - - /** - * Verifies a SecurityData 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 SecurityData message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -47060,14 +37292,6 @@ export namespace Records { */ public static encode(message: Records.ISecurityScoreData, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified SecurityScoreData message, length delimited. Does not implicitly {@link Records.SecurityScoreData.verify|verify} messages. - * @param message SecurityScoreData message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Records.ISecurityScoreData, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a SecurityScoreData message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -47078,22 +37302,6 @@ export namespace Records { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.SecurityScoreData; - /** - * Decodes a SecurityScoreData message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SecurityScoreData - * @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)): Records.SecurityScoreData; - - /** - * Verifies a SecurityScoreData 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 SecurityScoreData message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -47223,14 +37431,6 @@ export namespace Records { */ public static encode(message: Records.IRecordAdd, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified RecordAdd message, length delimited. Does not implicitly {@link Records.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: Records.IRecordAdd, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a RecordAdd message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -47241,22 +37441,6 @@ export namespace Records { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.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)): Records.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 @@ -47332,14 +37516,6 @@ export namespace Records { */ public static encode(message: Records.IRecordsAddRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified RecordsAddRequest message, length delimited. Does not implicitly {@link Records.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: Records.IRecordsAddRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a RecordsAddRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -47350,22 +37526,6 @@ export namespace Records { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.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)): Records.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 @@ -47483,14 +37643,6 @@ export namespace Records { */ public static encode(message: Records.IRecordUpdate, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified RecordUpdate message, length delimited. Does not implicitly {@link Records.RecordUpdate.verify|verify} messages. - * @param message RecordUpdate message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Records.IRecordUpdate, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a RecordUpdate message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -47501,22 +37653,6 @@ export namespace Records { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.RecordUpdate; - /** - * Decodes a RecordUpdate message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RecordUpdate - * @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)): Records.RecordUpdate; - - /** - * Verifies a RecordUpdate 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 RecordUpdate message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -47592,14 +37728,6 @@ export namespace Records { */ public static encode(message: Records.IRecordsUpdateRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified RecordsUpdateRequest message, length delimited. Does not implicitly {@link Records.RecordsUpdateRequest.verify|verify} messages. - * @param message RecordsUpdateRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Records.IRecordsUpdateRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a RecordsUpdateRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -47610,22 +37738,6 @@ export namespace Records { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.RecordsUpdateRequest; - /** - * Decodes a RecordsUpdateRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RecordsUpdateRequest - * @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)): Records.RecordsUpdateRequest; - - /** - * Verifies a RecordsUpdateRequest 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 RecordsUpdateRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -47719,14 +37831,6 @@ export namespace Records { */ public static encode(message: Records.IRecordFileForConversion, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified RecordFileForConversion message, length delimited. Does not implicitly {@link Records.RecordFileForConversion.verify|verify} messages. - * @param message RecordFileForConversion message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Records.IRecordFileForConversion, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a RecordFileForConversion message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -47737,22 +37841,6 @@ export namespace Records { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.RecordFileForConversion; - /** - * Decodes a RecordFileForConversion message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RecordFileForConversion - * @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)): Records.RecordFileForConversion; - - /** - * Verifies a RecordFileForConversion 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 RecordFileForConversion message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -47822,14 +37910,6 @@ export namespace Records { */ public static encode(message: Records.IRecordFolderForConversion, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified RecordFolderForConversion message, length delimited. Does not implicitly {@link Records.RecordFolderForConversion.verify|verify} messages. - * @param message RecordFolderForConversion message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Records.IRecordFolderForConversion, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a RecordFolderForConversion message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -47840,22 +37920,6 @@ export namespace Records { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.RecordFolderForConversion; - /** - * Decodes a RecordFolderForConversion message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RecordFolderForConversion - * @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)): Records.RecordFolderForConversion; - - /** - * Verifies a RecordFolderForConversion 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 RecordFolderForConversion message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -47961,14 +38025,6 @@ export namespace Records { */ public static encode(message: Records.IRecordConvertToV3, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified RecordConvertToV3 message, length delimited. Does not implicitly {@link Records.RecordConvertToV3.verify|verify} messages. - * @param message RecordConvertToV3 message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Records.IRecordConvertToV3, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a RecordConvertToV3 message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -47979,22 +38035,6 @@ export namespace Records { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.RecordConvertToV3; - /** - * Decodes a RecordConvertToV3 message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RecordConvertToV3 - * @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)): Records.RecordConvertToV3; - - /** - * Verifies a RecordConvertToV3 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 RecordConvertToV3 message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -48064,14 +38104,6 @@ export namespace Records { */ public static encode(message: Records.IRecordsConvertToV3Request, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified RecordsConvertToV3Request message, length delimited. Does not implicitly {@link Records.RecordsConvertToV3Request.verify|verify} messages. - * @param message RecordsConvertToV3Request message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Records.IRecordsConvertToV3Request, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a RecordsConvertToV3Request message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -48082,22 +38114,6 @@ export namespace Records { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.RecordsConvertToV3Request; - /** - * Decodes a RecordsConvertToV3Request message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RecordsConvertToV3Request - * @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)): Records.RecordsConvertToV3Request; - - /** - * Verifies a RecordsConvertToV3Request 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 RecordsConvertToV3Request message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -48161,14 +38177,6 @@ export namespace Records { */ public static encode(message: Records.IRecordsRemoveRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified RecordsRemoveRequest message, length delimited. Does not implicitly {@link Records.RecordsRemoveRequest.verify|verify} messages. - * @param message RecordsRemoveRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Records.IRecordsRemoveRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a RecordsRemoveRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -48179,22 +38187,6 @@ export namespace Records { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.RecordsRemoveRequest; - /** - * Decodes a RecordsRemoveRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RecordsRemoveRequest - * @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)): Records.RecordsRemoveRequest; - - /** - * Verifies a RecordsRemoveRequest 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 RecordsRemoveRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -48264,14 +38256,6 @@ export namespace Records { */ public static encode(message: Records.IRecordRevert, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified RecordRevert message, length delimited. Does not implicitly {@link Records.RecordRevert.verify|verify} messages. - * @param message RecordRevert message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Records.IRecordRevert, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a RecordRevert message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -48282,22 +38266,6 @@ export namespace Records { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.RecordRevert; - /** - * Decodes a RecordRevert message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RecordRevert - * @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)): Records.RecordRevert; - - /** - * Verifies a RecordRevert 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 RecordRevert message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -48361,14 +38329,6 @@ export namespace Records { */ public static encode(message: Records.IRecordsRevertRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified RecordsRevertRequest message, length delimited. Does not implicitly {@link Records.RecordsRevertRequest.verify|verify} messages. - * @param message RecordsRevertRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Records.IRecordsRevertRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a RecordsRevertRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -48379,22 +38339,6 @@ export namespace Records { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.RecordsRevertRequest; - /** - * Decodes a RecordsRevertRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RecordsRevertRequest - * @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)): Records.RecordsRevertRequest; - - /** - * Verifies a RecordsRevertRequest 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 RecordsRevertRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -48487,14 +38431,6 @@ export namespace Records { */ public static encode(message: Records.IRecordLinkError, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified RecordLinkError message, length delimited. Does not implicitly {@link Records.RecordLinkError.verify|verify} messages. - * @param message RecordLinkError message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Records.IRecordLinkError, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a RecordLinkError message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -48505,22 +38441,6 @@ export namespace Records { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.RecordLinkError; - /** - * Decodes a RecordLinkError message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RecordLinkError - * @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)): Records.RecordLinkError; - - /** - * Verifies a RecordLinkError 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 RecordLinkError message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -48602,14 +38522,6 @@ export namespace Records { */ public static encode(message: Records.IRecordModifyStatus, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified RecordModifyStatus message, length delimited. Does not implicitly {@link Records.RecordModifyStatus.verify|verify} messages. - * @param message RecordModifyStatus message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Records.IRecordModifyStatus, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a RecordModifyStatus message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -48620,22 +38532,6 @@ export namespace Records { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.RecordModifyStatus; - /** - * Decodes a RecordModifyStatus message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RecordModifyStatus - * @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)): Records.RecordModifyStatus; - - /** - * Verifies a RecordModifyStatus 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 RecordModifyStatus message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -48705,14 +38601,6 @@ export namespace Records { */ public static encode(message: Records.IRecordsModifyResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified RecordsModifyResponse message, length delimited. Does not implicitly {@link Records.RecordsModifyResponse.verify|verify} messages. - * @param message RecordsModifyResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Records.IRecordsModifyResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a RecordsModifyResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -48723,22 +38611,6 @@ export namespace Records { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.RecordsModifyResponse; - /** - * Decodes a RecordsModifyResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RecordsModifyResponse - * @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)): Records.RecordsModifyResponse; - - /** - * Verifies a RecordsModifyResponse 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 RecordsModifyResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -48820,14 +38692,6 @@ export namespace Records { */ public static encode(message: Records.IRecordAddAuditData, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified RecordAddAuditData message, length delimited. Does not implicitly {@link Records.RecordAddAuditData.verify|verify} messages. - * @param message RecordAddAuditData message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Records.IRecordAddAuditData, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a RecordAddAuditData message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -48838,22 +38702,6 @@ export namespace Records { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.RecordAddAuditData; - /** - * Decodes a RecordAddAuditData message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RecordAddAuditData - * @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)): Records.RecordAddAuditData; - - /** - * Verifies a RecordAddAuditData 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 RecordAddAuditData message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -48917,14 +38765,6 @@ export namespace Records { */ public static encode(message: Records.IAddAuditDataRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified AddAuditDataRequest message, length delimited. Does not implicitly {@link Records.AddAuditDataRequest.verify|verify} messages. - * @param message AddAuditDataRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Records.IAddAuditDataRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes an AddAuditDataRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -48935,22 +38775,6 @@ export namespace Records { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.AddAuditDataRequest; - /** - * Decodes an AddAuditDataRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns AddAuditDataRequest - * @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)): Records.AddAuditDataRequest; - - /** - * Verifies an AddAuditDataRequest 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 AddAuditDataRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -49044,14 +38868,6 @@ export namespace Records { */ public static encode(message: Records.IFile, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified File message, length delimited. Does not implicitly {@link Records.File.verify|verify} messages. - * @param message File message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Records.IFile, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a File message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -49062,22 +38878,6 @@ export namespace Records { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.File; - /** - * Decodes a File message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns File - * @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)): Records.File; - - /** - * Verifies a File 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 File message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -49147,14 +38947,6 @@ export namespace Records { */ public static encode(message: Records.IFilesAddRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified FilesAddRequest message, length delimited. Does not implicitly {@link Records.FilesAddRequest.verify|verify} messages. - * @param message FilesAddRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Records.IFilesAddRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a FilesAddRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -49165,22 +38957,6 @@ export namespace Records { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.FilesAddRequest; - /** - * Decodes a FilesAddRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns FilesAddRequest - * @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)): Records.FilesAddRequest; - - /** - * Verifies a FilesAddRequest 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 FilesAddRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -49280,14 +39056,6 @@ export namespace Records { */ public static encode(message: Records.IFileAddStatus, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified FileAddStatus message, length delimited. Does not implicitly {@link Records.FileAddStatus.verify|verify} messages. - * @param message FileAddStatus message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Records.IFileAddStatus, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a FileAddStatus message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -49298,22 +39066,6 @@ export namespace Records { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.FileAddStatus; - /** - * Decodes a FileAddStatus message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns FileAddStatus - * @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)): Records.FileAddStatus; - - /** - * Verifies a FileAddStatus 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 FileAddStatus message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -49383,14 +39135,6 @@ export namespace Records { */ public static encode(message: Records.IFilesAddResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified FilesAddResponse message, length delimited. Does not implicitly {@link Records.FilesAddResponse.verify|verify} messages. - * @param message FilesAddResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Records.IFilesAddResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a FilesAddResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -49401,22 +39145,6 @@ export namespace Records { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.FilesAddResponse; - /** - * Decodes a FilesAddResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns FilesAddResponse - * @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)): Records.FilesAddResponse; - - /** - * Verifies a FilesAddResponse 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 FilesAddResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -49492,14 +39220,6 @@ export namespace Records { */ public static encode(message: Records.IFilesGetRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified FilesGetRequest message, length delimited. Does not implicitly {@link Records.FilesGetRequest.verify|verify} messages. - * @param message FilesGetRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Records.IFilesGetRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a FilesGetRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -49510,22 +39230,6 @@ export namespace Records { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.FilesGetRequest; - /** - * Decodes a FilesGetRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns FilesGetRequest - * @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)): Records.FilesGetRequest; - - /** - * Verifies a FilesGetRequest 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 FilesGetRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -49620,14 +39324,6 @@ export namespace Records { */ public static encode(message: Records.IFileGetStatus, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified FileGetStatus message, length delimited. Does not implicitly {@link Records.FileGetStatus.verify|verify} messages. - * @param message FileGetStatus message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Records.IFileGetStatus, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a FileGetStatus message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -49638,22 +39334,6 @@ export namespace Records { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.FileGetStatus; - /** - * Decodes a FileGetStatus message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns FileGetStatus - * @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)): Records.FileGetStatus; - - /** - * Verifies a FileGetStatus 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 FileGetStatus message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -49717,14 +39397,6 @@ export namespace Records { */ public static encode(message: Records.IFilesGetResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified FilesGetResponse message, length delimited. Does not implicitly {@link Records.FilesGetResponse.verify|verify} messages. - * @param message FilesGetResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Records.IFilesGetResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a FilesGetResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -49735,22 +39407,6 @@ export namespace Records { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.FilesGetResponse; - /** - * Decodes a FilesGetResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns FilesGetResponse - * @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)): Records.FilesGetResponse; - - /** - * Verifies a FilesGetResponse 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 FilesGetResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -49838,14 +39494,6 @@ export namespace Records { */ public static encode(message: Records.IApplicationAddRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified ApplicationAddRequest message, length delimited. Does not implicitly {@link Records.ApplicationAddRequest.verify|verify} messages. - * @param message ApplicationAddRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Records.IApplicationAddRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes an ApplicationAddRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -49856,22 +39504,6 @@ export namespace Records { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.ApplicationAddRequest; - /** - * Decodes an ApplicationAddRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ApplicationAddRequest - * @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)): Records.ApplicationAddRequest; - - /** - * Verifies an ApplicationAddRequest 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 ApplicationAddRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -49954,14 +39586,6 @@ export namespace Records { */ public static encode(message: Records.IGetRecordDataWithAccessInfoRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified GetRecordDataWithAccessInfoRequest message, length delimited. Does not implicitly {@link Records.GetRecordDataWithAccessInfoRequest.verify|verify} messages. - * @param message GetRecordDataWithAccessInfoRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Records.IGetRecordDataWithAccessInfoRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a GetRecordDataWithAccessInfoRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -49972,22 +39596,6 @@ export namespace Records { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.GetRecordDataWithAccessInfoRequest; - /** - * Decodes a GetRecordDataWithAccessInfoRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetRecordDataWithAccessInfoRequest - * @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)): Records.GetRecordDataWithAccessInfoRequest; - - /** - * Verifies a GetRecordDataWithAccessInfoRequest 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 GetRecordDataWithAccessInfoRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -50105,14 +39713,6 @@ export namespace Records { */ public static encode(message: Records.IUserPermission, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified UserPermission message, length delimited. Does not implicitly {@link Records.UserPermission.verify|verify} messages. - * @param message UserPermission message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Records.IUserPermission, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a UserPermission message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -50123,22 +39723,6 @@ export namespace Records { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.UserPermission; - /** - * Decodes a UserPermission message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns UserPermission - * @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)): Records.UserPermission; - - /** - * Verifies a UserPermission 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 UserPermission message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -50238,14 +39822,6 @@ export namespace Records { */ public static encode(message: Records.ISharedFolderPermission, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified SharedFolderPermission message, length delimited. Does not implicitly {@link Records.SharedFolderPermission.verify|verify} messages. - * @param message SharedFolderPermission message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Records.ISharedFolderPermission, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a SharedFolderPermission message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -50256,22 +39832,6 @@ export namespace Records { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.SharedFolderPermission; - /** - * Decodes a SharedFolderPermission message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SharedFolderPermission - * @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)): Records.SharedFolderPermission; - - /** - * Verifies a SharedFolderPermission 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 SharedFolderPermission message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -50413,14 +39973,6 @@ export namespace Records { */ public static encode(message: Records.IRecordData, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified RecordData message, length delimited. Does not implicitly {@link Records.RecordData.verify|verify} messages. - * @param message RecordData message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Records.IRecordData, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a RecordData message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -50431,22 +39983,6 @@ export namespace Records { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.RecordData; - /** - * Decodes a RecordData message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RecordData - * @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)): Records.RecordData; - - /** - * Verifies a RecordData 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 RecordData message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -50528,14 +40064,6 @@ export namespace Records { */ public static encode(message: Records.IRecordDataWithAccessInfo, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified RecordDataWithAccessInfo message, length delimited. Does not implicitly {@link Records.RecordDataWithAccessInfo.verify|verify} messages. - * @param message RecordDataWithAccessInfo message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Records.IRecordDataWithAccessInfo, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a RecordDataWithAccessInfo message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -50546,22 +40074,6 @@ export namespace Records { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.RecordDataWithAccessInfo; - /** - * Decodes a RecordDataWithAccessInfo message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RecordDataWithAccessInfo - * @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)): Records.RecordDataWithAccessInfo; - - /** - * Verifies a RecordDataWithAccessInfo 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 RecordDataWithAccessInfo message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -50631,14 +40143,6 @@ export namespace Records { */ public static encode(message: Records.IGetRecordDataWithAccessInfoResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified GetRecordDataWithAccessInfoResponse message, length delimited. Does not implicitly {@link Records.GetRecordDataWithAccessInfoResponse.verify|verify} messages. - * @param message GetRecordDataWithAccessInfoResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Records.IGetRecordDataWithAccessInfoResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a GetRecordDataWithAccessInfoResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -50649,22 +40153,6 @@ export namespace Records { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.GetRecordDataWithAccessInfoResponse; - /** - * Decodes a GetRecordDataWithAccessInfoResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetRecordDataWithAccessInfoResponse - * @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)): Records.GetRecordDataWithAccessInfoResponse; - - /** - * Verifies a GetRecordDataWithAccessInfoResponse 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 GetRecordDataWithAccessInfoResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -50747,14 +40235,6 @@ export namespace Records { */ public static encode(message: Records.IIsObjectShareAdmin, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified IsObjectShareAdmin message, length delimited. Does not implicitly {@link Records.IsObjectShareAdmin.verify|verify} messages. - * @param message IsObjectShareAdmin message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Records.IIsObjectShareAdmin, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes an IsObjectShareAdmin message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -50765,22 +40245,6 @@ export namespace Records { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.IsObjectShareAdmin; - /** - * Decodes an IsObjectShareAdmin message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns IsObjectShareAdmin - * @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)): Records.IsObjectShareAdmin; - - /** - * Verifies an IsObjectShareAdmin 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 IsObjectShareAdmin message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -50844,14 +40308,6 @@ export namespace Records { */ public static encode(message: Records.IAmIShareAdmin, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified AmIShareAdmin message, length delimited. Does not implicitly {@link Records.AmIShareAdmin.verify|verify} messages. - * @param message AmIShareAdmin message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Records.IAmIShareAdmin, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes an AmIShareAdmin message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -50862,22 +40318,6 @@ export namespace Records { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.AmIShareAdmin; - /** - * Decodes an AmIShareAdmin message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns AmIShareAdmin - * @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)): Records.AmIShareAdmin; - - /** - * Verifies an AmIShareAdmin 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 AmIShareAdmin message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -50959,14 +40399,6 @@ export namespace Records { */ public static encode(message: Records.IRecordShareUpdateRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified RecordShareUpdateRequest message, length delimited. Does not implicitly {@link Records.RecordShareUpdateRequest.verify|verify} messages. - * @param message RecordShareUpdateRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Records.IRecordShareUpdateRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a RecordShareUpdateRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -50977,22 +40409,6 @@ export namespace Records { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.RecordShareUpdateRequest; - /** - * Decodes a RecordShareUpdateRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RecordShareUpdateRequest - * @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)): Records.RecordShareUpdateRequest; - - /** - * Verifies a RecordShareUpdateRequest 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 RecordShareUpdateRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -51128,14 +40544,6 @@ export namespace Records { */ public static encode(message: Records.ISharedRecord, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified SharedRecord message, length delimited. Does not implicitly {@link Records.SharedRecord.verify|verify} messages. - * @param message SharedRecord message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Records.ISharedRecord, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a SharedRecord message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -51146,22 +40554,6 @@ export namespace Records { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.SharedRecord; - /** - * Decodes a SharedRecord message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SharedRecord - * @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)): Records.SharedRecord; - - /** - * Verifies a SharedRecord 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 SharedRecord message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -51237,14 +40629,6 @@ export namespace Records { */ public static encode(message: Records.IRecordShareUpdateResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified RecordShareUpdateResponse message, length delimited. Does not implicitly {@link Records.RecordShareUpdateResponse.verify|verify} messages. - * @param message RecordShareUpdateResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Records.IRecordShareUpdateResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a RecordShareUpdateResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -51255,22 +40639,6 @@ export namespace Records { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.RecordShareUpdateResponse; - /** - * Decodes a RecordShareUpdateResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RecordShareUpdateResponse - * @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)): Records.RecordShareUpdateResponse; - - /** - * Verifies a RecordShareUpdateResponse 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 RecordShareUpdateResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -51352,14 +40720,6 @@ export namespace Records { */ public static encode(message: Records.ISharedRecordStatus, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified SharedRecordStatus message, length delimited. Does not implicitly {@link Records.SharedRecordStatus.verify|verify} messages. - * @param message SharedRecordStatus message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Records.ISharedRecordStatus, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a SharedRecordStatus message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -51370,22 +40730,6 @@ export namespace Records { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.SharedRecordStatus; - /** - * Decodes a SharedRecordStatus message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SharedRecordStatus - * @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)): Records.SharedRecordStatus; - - /** - * Verifies a SharedRecordStatus 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 SharedRecordStatus message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -51455,14 +40799,6 @@ export namespace Records { */ public static encode(message: Records.IGetRecordPermissionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified GetRecordPermissionsRequest message, length delimited. Does not implicitly {@link Records.GetRecordPermissionsRequest.verify|verify} messages. - * @param message GetRecordPermissionsRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Records.IGetRecordPermissionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a GetRecordPermissionsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -51473,22 +40809,6 @@ export namespace Records { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.GetRecordPermissionsRequest; - /** - * Decodes a GetRecordPermissionsRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetRecordPermissionsRequest - * @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)): Records.GetRecordPermissionsRequest; - - /** - * Verifies a GetRecordPermissionsRequest 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 GetRecordPermissionsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -51552,14 +40872,6 @@ export namespace Records { */ public static encode(message: Records.IGetRecordPermissionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified GetRecordPermissionsResponse message, length delimited. Does not implicitly {@link Records.GetRecordPermissionsResponse.verify|verify} messages. - * @param message GetRecordPermissionsResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Records.IGetRecordPermissionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a GetRecordPermissionsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -51570,22 +40882,6 @@ export namespace Records { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.GetRecordPermissionsResponse; - /** - * Decodes a GetRecordPermissionsResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetRecordPermissionsResponse - * @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)): Records.GetRecordPermissionsResponse; - - /** - * Verifies a GetRecordPermissionsResponse 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 GetRecordPermissionsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -51673,14 +40969,6 @@ export namespace Records { */ public static encode(message: Records.IRecordPermission, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified RecordPermission message, length delimited. Does not implicitly {@link Records.RecordPermission.verify|verify} messages. - * @param message RecordPermission message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Records.IRecordPermission, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a RecordPermission message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -51691,22 +40979,6 @@ export namespace Records { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.RecordPermission; - /** - * Decodes a RecordPermission message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RecordPermission - * @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)): Records.RecordPermission; - - /** - * Verifies a RecordPermission 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 RecordPermission message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -51788,14 +41060,6 @@ export namespace Records { */ public static encode(message: Records.IGetShareObjectsRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified GetShareObjectsRequest message, length delimited. Does not implicitly {@link Records.GetShareObjectsRequest.verify|verify} messages. - * @param message GetShareObjectsRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Records.IGetShareObjectsRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a GetShareObjectsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -51806,22 +41070,6 @@ export namespace Records { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.GetShareObjectsRequest; - /** - * Decodes a GetShareObjectsRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetShareObjectsRequest - * @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)): Records.GetShareObjectsRequest; - - /** - * Verifies a GetShareObjectsRequest 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 GetShareObjectsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -51921,14 +41169,6 @@ export namespace Records { */ public static encode(message: Records.IGetShareObjectsResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified GetShareObjectsResponse message, length delimited. Does not implicitly {@link Records.GetShareObjectsResponse.verify|verify} messages. - * @param message GetShareObjectsResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Records.IGetShareObjectsResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a GetShareObjectsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -51939,22 +41179,6 @@ export namespace Records { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.GetShareObjectsResponse; - /** - * Decodes a GetShareObjectsResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetShareObjectsResponse - * @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)): Records.GetShareObjectsResponse; - - /** - * Verifies a GetShareObjectsResponse 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 GetShareObjectsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -52054,14 +41278,6 @@ export namespace Records { */ public static encode(message: Records.IShareUser, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified ShareUser message, length delimited. Does not implicitly {@link Records.ShareUser.verify|verify} messages. - * @param message ShareUser message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Records.IShareUser, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a ShareUser message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -52072,22 +41288,6 @@ export namespace Records { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.ShareUser; - /** - * Decodes a ShareUser message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ShareUser - * @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)): Records.ShareUser; - - /** - * Verifies a ShareUser 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 ShareUser message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -52163,14 +41363,6 @@ export namespace Records { */ public static encode(message: Records.IShareTeam, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified ShareTeam message, length delimited. Does not implicitly {@link Records.ShareTeam.verify|verify} messages. - * @param message ShareTeam message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Records.IShareTeam, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a ShareTeam message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -52181,22 +41373,6 @@ export namespace Records { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.ShareTeam; - /** - * Decodes a ShareTeam message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ShareTeam - * @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)): Records.ShareTeam; - - /** - * Verifies a ShareTeam 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 ShareTeam message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -52266,14 +41442,6 @@ export namespace Records { */ public static encode(message: Records.IShareEnterprise, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified ShareEnterprise message, length delimited. Does not implicitly {@link Records.ShareEnterprise.verify|verify} messages. - * @param message ShareEnterprise message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Records.IShareEnterprise, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a ShareEnterprise message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -52284,22 +41452,6 @@ export namespace Records { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.ShareEnterprise; - /** - * Decodes a ShareEnterprise message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ShareEnterprise - * @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)): Records.ShareEnterprise; - - /** - * Verifies a ShareEnterprise 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 ShareEnterprise message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -52370,14 +41522,6 @@ export namespace Records { */ public static encode(message: Records.IRecordsOnwershipTransferRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified RecordsOnwershipTransferRequest message, length delimited. Does not implicitly {@link Records.RecordsOnwershipTransferRequest.verify|verify} messages. - * @param message RecordsOnwershipTransferRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Records.IRecordsOnwershipTransferRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a RecordsOnwershipTransferRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -52388,22 +41532,6 @@ export namespace Records { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.RecordsOnwershipTransferRequest; - /** - * Decodes a RecordsOnwershipTransferRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RecordsOnwershipTransferRequest - * @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)): Records.RecordsOnwershipTransferRequest; - - /** - * Verifies a RecordsOnwershipTransferRequest 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 RecordsOnwershipTransferRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -52485,14 +41613,6 @@ export namespace Records { */ public static encode(message: Records.ITransferRecord, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified TransferRecord message, length delimited. Does not implicitly {@link Records.TransferRecord.verify|verify} messages. - * @param message TransferRecord message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Records.ITransferRecord, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a TransferRecord message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -52503,22 +41623,6 @@ export namespace Records { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.TransferRecord; - /** - * Decodes a TransferRecord message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns TransferRecord - * @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)): Records.TransferRecord; - - /** - * Verifies a TransferRecord 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 TransferRecord message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -52582,14 +41686,6 @@ export namespace Records { */ public static encode(message: Records.IRecordsOnwershipTransferResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified RecordsOnwershipTransferResponse message, length delimited. Does not implicitly {@link Records.RecordsOnwershipTransferResponse.verify|verify} messages. - * @param message RecordsOnwershipTransferResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Records.IRecordsOnwershipTransferResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a RecordsOnwershipTransferResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -52600,22 +41696,6 @@ export namespace Records { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.RecordsOnwershipTransferResponse; - /** - * Decodes a RecordsOnwershipTransferResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RecordsOnwershipTransferResponse - * @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)): Records.RecordsOnwershipTransferResponse; - - /** - * Verifies a RecordsOnwershipTransferResponse 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 RecordsOnwershipTransferResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -52697,14 +41777,6 @@ export namespace Records { */ public static encode(message: Records.ITransferRecordStatus, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified TransferRecordStatus message, length delimited. Does not implicitly {@link Records.TransferRecordStatus.verify|verify} messages. - * @param message TransferRecordStatus message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Records.ITransferRecordStatus, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a TransferRecordStatus message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -52715,22 +41787,6 @@ export namespace Records { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.TransferRecordStatus; - /** - * Decodes a TransferRecordStatus message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns TransferRecordStatus - * @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)): Records.TransferRecordStatus; - - /** - * Verifies a TransferRecordStatus 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 TransferRecordStatus message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -52800,14 +41856,6 @@ export namespace Records { */ public static encode(message: Records.IRecordsUnshareRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified RecordsUnshareRequest message, length delimited. Does not implicitly {@link Records.RecordsUnshareRequest.verify|verify} messages. - * @param message RecordsUnshareRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Records.IRecordsUnshareRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a RecordsUnshareRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -52818,22 +41866,6 @@ export namespace Records { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.RecordsUnshareRequest; - /** - * Decodes a RecordsUnshareRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RecordsUnshareRequest - * @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)): Records.RecordsUnshareRequest; - - /** - * Verifies a RecordsUnshareRequest 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 RecordsUnshareRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -52903,14 +41935,6 @@ export namespace Records { */ public static encode(message: Records.IRecordsUnshareResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified RecordsUnshareResponse message, length delimited. Does not implicitly {@link Records.RecordsUnshareResponse.verify|verify} messages. - * @param message RecordsUnshareResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Records.IRecordsUnshareResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a RecordsUnshareResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -52921,22 +41945,6 @@ export namespace Records { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.RecordsUnshareResponse; - /** - * Decodes a RecordsUnshareResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RecordsUnshareResponse - * @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)): Records.RecordsUnshareResponse; - - /** - * Verifies a RecordsUnshareResponse 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 RecordsUnshareResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -53006,14 +42014,6 @@ export namespace Records { */ public static encode(message: Records.IRecordsUnshareFolder, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified RecordsUnshareFolder message, length delimited. Does not implicitly {@link Records.RecordsUnshareFolder.verify|verify} messages. - * @param message RecordsUnshareFolder message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Records.IRecordsUnshareFolder, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a RecordsUnshareFolder message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -53024,22 +42024,6 @@ export namespace Records { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.RecordsUnshareFolder; - /** - * Decodes a RecordsUnshareFolder message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RecordsUnshareFolder - * @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)): Records.RecordsUnshareFolder; - - /** - * Verifies a RecordsUnshareFolder 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 RecordsUnshareFolder message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -53109,14 +42093,6 @@ export namespace Records { */ public static encode(message: Records.IRecordsUnshareUser, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified RecordsUnshareUser message, length delimited. Does not implicitly {@link Records.RecordsUnshareUser.verify|verify} messages. - * @param message RecordsUnshareUser message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Records.IRecordsUnshareUser, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a RecordsUnshareUser message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -53127,22 +42103,6 @@ export namespace Records { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.RecordsUnshareUser; - /** - * Decodes a RecordsUnshareUser message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RecordsUnshareUser - * @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)): Records.RecordsUnshareUser; - - /** - * Verifies a RecordsUnshareUser 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 RecordsUnshareUser message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -53212,14 +42172,6 @@ export namespace Records { */ public static encode(message: Records.IRecordsUnshareFolderStatus, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified RecordsUnshareFolderStatus message, length delimited. Does not implicitly {@link Records.RecordsUnshareFolderStatus.verify|verify} messages. - * @param message RecordsUnshareFolderStatus message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Records.IRecordsUnshareFolderStatus, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a RecordsUnshareFolderStatus message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -53230,22 +42182,6 @@ export namespace Records { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.RecordsUnshareFolderStatus; - /** - * Decodes a RecordsUnshareFolderStatus message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RecordsUnshareFolderStatus - * @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)): Records.RecordsUnshareFolderStatus; - - /** - * Verifies a RecordsUnshareFolderStatus 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 RecordsUnshareFolderStatus message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -53315,14 +42251,6 @@ export namespace Records { */ public static encode(message: Records.IRecordsUnshareUserStatus, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified RecordsUnshareUserStatus message, length delimited. Does not implicitly {@link Records.RecordsUnshareUserStatus.verify|verify} messages. - * @param message RecordsUnshareUserStatus message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Records.IRecordsUnshareUserStatus, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a RecordsUnshareUserStatus message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -53333,22 +42261,6 @@ export namespace Records { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.RecordsUnshareUserStatus; - /** - * Decodes a RecordsUnshareUserStatus message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RecordsUnshareUserStatus - * @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)): Records.RecordsUnshareUserStatus; - - /** - * Verifies a RecordsUnshareUserStatus 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 RecordsUnshareUserStatus message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -53439,14 +42351,6 @@ export namespace Records { */ public static encode(message: Records.ITimedAccessCallbackPayload, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified TimedAccessCallbackPayload message, length delimited. Does not implicitly {@link Records.TimedAccessCallbackPayload.verify|verify} messages. - * @param message TimedAccessCallbackPayload message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Records.ITimedAccessCallbackPayload, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a TimedAccessCallbackPayload message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -53457,22 +42361,6 @@ export namespace Records { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.TimedAccessCallbackPayload; - /** - * Decodes a TimedAccessCallbackPayload message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns TimedAccessCallbackPayload - * @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)): Records.TimedAccessCallbackPayload; - - /** - * Verifies a TimedAccessCallbackPayload 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 TimedAccessCallbackPayload message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -53572,14 +42460,6 @@ export namespace Records { */ public static encode(message: Records.ITimeLimitedAccessRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified TimeLimitedAccessRequest message, length delimited. Does not implicitly {@link Records.TimeLimitedAccessRequest.verify|verify} messages. - * @param message TimeLimitedAccessRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Records.ITimeLimitedAccessRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a TimeLimitedAccessRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -53590,22 +42470,6 @@ export namespace Records { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.TimeLimitedAccessRequest; - /** - * Decodes a TimeLimitedAccessRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns TimeLimitedAccessRequest - * @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)): Records.TimeLimitedAccessRequest; - - /** - * Verifies a TimeLimitedAccessRequest 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 TimeLimitedAccessRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -53675,14 +42539,6 @@ export namespace Records { */ public static encode(message: Records.ITimeLimitedAccessStatus, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified TimeLimitedAccessStatus message, length delimited. Does not implicitly {@link Records.TimeLimitedAccessStatus.verify|verify} messages. - * @param message TimeLimitedAccessStatus message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Records.ITimeLimitedAccessStatus, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a TimeLimitedAccessStatus message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -53693,22 +42549,6 @@ export namespace Records { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.TimeLimitedAccessStatus; - /** - * Decodes a TimeLimitedAccessStatus message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns TimeLimitedAccessStatus - * @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)): Records.TimeLimitedAccessStatus; - - /** - * Verifies a TimeLimitedAccessStatus 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 TimeLimitedAccessStatus message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -53790,14 +42630,6 @@ export namespace Records { */ public static encode(message: Records.ITimeLimitedAccessResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified TimeLimitedAccessResponse message, length delimited. Does not implicitly {@link Records.TimeLimitedAccessResponse.verify|verify} messages. - * @param message TimeLimitedAccessResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Records.ITimeLimitedAccessResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a TimeLimitedAccessResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -53808,22 +42640,6 @@ export namespace Records { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.TimeLimitedAccessResponse; - /** - * Decodes a TimeLimitedAccessResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns TimeLimitedAccessResponse - * @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)): Records.TimeLimitedAccessResponse; - - /** - * Verifies a TimeLimitedAccessResponse 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 TimeLimitedAccessResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -53921,14 +42737,6 @@ export namespace common { */ public static encode(message: common.tla.ITLAProperties, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified TLAProperties message, length delimited. Does not implicitly {@link common.tla.TLAProperties.verify|verify} messages. - * @param message TLAProperties message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: common.tla.ITLAProperties, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a TLAProperties message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -53939,22 +42747,6 @@ export namespace common { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): common.tla.TLAProperties; - /** - * Decodes a TLAProperties message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns TLAProperties - * @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)): common.tla.TLAProperties; - - /** - * Verifies a TLAProperties 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 TLAProperties message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -54036,14 +42828,6 @@ export namespace AccountSummary { */ public static encode(message: AccountSummary.IAccountSummaryRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified AccountSummaryRequest message, length delimited. Does not implicitly {@link AccountSummary.AccountSummaryRequest.verify|verify} messages. - * @param message AccountSummaryRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: AccountSummary.IAccountSummaryRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes an AccountSummaryRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -54054,22 +42838,6 @@ export namespace AccountSummary { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): AccountSummary.AccountSummaryRequest; - /** - * Decodes an AccountSummaryRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns AccountSummaryRequest - * @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)): AccountSummary.AccountSummaryRequest; - - /** - * Verifies an AccountSummaryRequest 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 AccountSummaryRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -54247,14 +43015,6 @@ export namespace AccountSummary { */ public static encode(message: AccountSummary.IAccountSummaryElements, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified AccountSummaryElements message, length delimited. Does not implicitly {@link AccountSummary.AccountSummaryElements.verify|verify} messages. - * @param message AccountSummaryElements message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: AccountSummary.IAccountSummaryElements, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes an AccountSummaryElements message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -54265,22 +43025,6 @@ export namespace AccountSummary { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): AccountSummary.AccountSummaryElements; - /** - * Decodes an AccountSummaryElements message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns AccountSummaryElements - * @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)): AccountSummary.AccountSummaryElements; - - /** - * Verifies an AccountSummaryElements 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 AccountSummaryElements message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -54416,14 +43160,6 @@ export namespace AccountSummary { */ public static encode(message: AccountSummary.IDeviceInfo, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified DeviceInfo message, length delimited. Does not implicitly {@link AccountSummary.DeviceInfo.verify|verify} messages. - * @param message DeviceInfo message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: AccountSummary.IDeviceInfo, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a DeviceInfo message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -54434,22 +43170,6 @@ export namespace AccountSummary { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): AccountSummary.DeviceInfo; - /** - * Decodes a DeviceInfo message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns DeviceInfo - * @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)): AccountSummary.DeviceInfo; - - /** - * Verifies a DeviceInfo 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 DeviceInfo message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -54549,14 +43269,6 @@ export namespace AccountSummary { */ public static encode(message: AccountSummary.IKeysInfo, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified KeysInfo message, length delimited. Does not implicitly {@link AccountSummary.KeysInfo.verify|verify} messages. - * @param message KeysInfo message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: AccountSummary.IKeysInfo, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a KeysInfo message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -54567,22 +43279,6 @@ export namespace AccountSummary { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): AccountSummary.KeysInfo; - /** - * Decodes a KeysInfo message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns KeysInfo - * @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)): AccountSummary.KeysInfo; - - /** - * Verifies a KeysInfo 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 KeysInfo message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -54676,14 +43372,6 @@ export namespace AccountSummary { */ public static encode(message: AccountSummary.ISyncLog, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified SyncLog message, length delimited. Does not implicitly {@link AccountSummary.SyncLog.verify|verify} messages. - * @param message SyncLog message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: AccountSummary.ISyncLog, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a SyncLog message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -54694,22 +43382,6 @@ export namespace AccountSummary { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): AccountSummary.SyncLog; - /** - * Decodes a SyncLog message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SyncLog - * @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)): AccountSummary.SyncLog; - - /** - * Verifies a SyncLog 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 SyncLog message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -54971,14 +43643,6 @@ export namespace AccountSummary { */ public static encode(message: AccountSummary.ILicense, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified License message, length delimited. Does not implicitly {@link AccountSummary.License.verify|verify} messages. - * @param message License message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: AccountSummary.ILicense, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a License message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -54989,22 +43653,6 @@ export namespace AccountSummary { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): AccountSummary.License; - /** - * Decodes a License message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns License - * @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)): AccountSummary.License; - - /** - * Verifies a License 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 License message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -55110,14 +43758,6 @@ export namespace AccountSummary { */ public static encode(message: AccountSummary.IAddOn, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified AddOn message, length delimited. Does not implicitly {@link AccountSummary.AddOn.verify|verify} messages. - * @param message AddOn message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: AccountSummary.IAddOn, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes an AddOn message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -55128,22 +43768,6 @@ export namespace AccountSummary { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): AccountSummary.AddOn; - /** - * Decodes an AddOn message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns AddOn - * @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)): AccountSummary.AddOn; - - /** - * Verifies an AddOn 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 AddOn message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -55447,14 +44071,6 @@ export namespace AccountSummary { */ public static encode(message: AccountSummary.ISettings, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified Settings message, length delimited. Does not implicitly {@link AccountSummary.Settings.verify|verify} messages. - * @param message Settings message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: AccountSummary.ISettings, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a Settings message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -55465,22 +44081,6 @@ export namespace AccountSummary { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): AccountSummary.Settings; - /** - * Decodes a Settings message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Settings - * @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)): AccountSummary.Settings; - - /** - * Verifies a Settings 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 Settings message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -55550,14 +44150,6 @@ export namespace AccountSummary { */ public static encode(message: AccountSummary.IKeyValue, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified KeyValue message, length delimited. Does not implicitly {@link AccountSummary.KeyValue.verify|verify} messages. - * @param message KeyValue message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: AccountSummary.IKeyValue, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a KeyValue message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -55568,22 +44160,6 @@ export namespace AccountSummary { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): AccountSummary.KeyValue; - /** - * Decodes a KeyValue message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns KeyValue - * @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)): AccountSummary.KeyValue; - - /** - * Verifies a KeyValue 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 KeyValue message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -55653,14 +44229,6 @@ export namespace AccountSummary { */ public static encode(message: AccountSummary.IKeyValueBoolean, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified KeyValueBoolean message, length delimited. Does not implicitly {@link AccountSummary.KeyValueBoolean.verify|verify} messages. - * @param message KeyValueBoolean message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: AccountSummary.IKeyValueBoolean, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a KeyValueBoolean message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -55671,22 +44239,6 @@ export namespace AccountSummary { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): AccountSummary.KeyValueBoolean; - /** - * Decodes a KeyValueBoolean message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns KeyValueBoolean - * @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)): AccountSummary.KeyValueBoolean; - - /** - * Verifies a KeyValueBoolean 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 KeyValueBoolean message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -55756,14 +44308,6 @@ export namespace AccountSummary { */ public static encode(message: AccountSummary.IKeyValueLong, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified KeyValueLong message, length delimited. Does not implicitly {@link AccountSummary.KeyValueLong.verify|verify} messages. - * @param message KeyValueLong message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: AccountSummary.IKeyValueLong, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a KeyValueLong message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -55774,22 +44318,6 @@ export namespace AccountSummary { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): AccountSummary.KeyValueLong; - /** - * Decodes a KeyValueLong message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns KeyValueLong - * @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)): AccountSummary.KeyValueLong; - - /** - * Verifies a KeyValueLong 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 KeyValueLong message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -55865,14 +44393,6 @@ export namespace AccountSummary { */ public static encode(message: AccountSummary.IResult, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified Result message, length delimited. Does not implicitly {@link AccountSummary.Result.verify|verify} messages. - * @param message Result message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: AccountSummary.IResult, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a Result message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -55883,22 +44403,6 @@ export namespace AccountSummary { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): AccountSummary.Result; - /** - * Decodes a Result message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Result - * @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)): AccountSummary.Result; - - /** - * Verifies a Result 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 Result message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -55980,14 +44484,6 @@ export namespace AccountSummary { */ public static encode(message: AccountSummary.IEnforcements, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified Enforcements message, length delimited. Does not implicitly {@link AccountSummary.Enforcements.verify|verify} messages. - * @param message Enforcements message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: AccountSummary.IEnforcements, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes an Enforcements message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -55998,22 +44494,6 @@ export namespace AccountSummary { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): AccountSummary.Enforcements; - /** - * Decodes an Enforcements message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Enforcements - * @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)): AccountSummary.Enforcements; - - /** - * Verifies an Enforcements 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 Enforcements message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -56083,14 +44563,6 @@ export namespace AccountSummary { */ public static encode(message: AccountSummary.IMissingAccountShareKey, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified MissingAccountShareKey message, length delimited. Does not implicitly {@link AccountSummary.MissingAccountShareKey.verify|verify} messages. - * @param message MissingAccountShareKey message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: AccountSummary.IMissingAccountShareKey, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a MissingAccountShareKey message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -56101,22 +44573,6 @@ export namespace AccountSummary { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): AccountSummary.MissingAccountShareKey; - /** - * Decodes a MissingAccountShareKey message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns MissingAccountShareKey - * @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)): AccountSummary.MissingAccountShareKey; - - /** - * Verifies a MissingAccountShareKey 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 MissingAccountShareKey message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -56210,14 +44666,6 @@ export namespace AccountSummary { */ public static encode(message: AccountSummary.IPasswordRule, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified PasswordRule message, length delimited. Does not implicitly {@link AccountSummary.PasswordRule.verify|verify} messages. - * @param message PasswordRule message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: AccountSummary.IPasswordRule, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a PasswordRule message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -56228,22 +44676,6 @@ export namespace AccountSummary { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): AccountSummary.PasswordRule; - /** - * Decodes a PasswordRule message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns PasswordRule - * @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)): AccountSummary.PasswordRule; - - /** - * Verifies a PasswordRule 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 PasswordRule message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -56331,14 +44763,6 @@ export namespace AccountSummary { */ public static encode(message: AccountSummary.ISecurityKey, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified SecurityKey message, length delimited. Does not implicitly {@link AccountSummary.SecurityKey.verify|verify} messages. - * @param message SecurityKey message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: AccountSummary.ISecurityKey, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a SecurityKey message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -56349,22 +44773,6 @@ export namespace AccountSummary { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): AccountSummary.SecurityKey; - /** - * Decodes a SecurityKey message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SecurityKey - * @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)): AccountSummary.SecurityKey; - - /** - * Verifies a SecurityKey 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 SecurityKey message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -56452,14 +44860,6 @@ export namespace AccountSummary { */ public static encode(message: AccountSummary.IDeviceRegistration, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified DeviceRegistration message, length delimited. Does not implicitly {@link AccountSummary.DeviceRegistration.verify|verify} messages. - * @param message DeviceRegistration message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: AccountSummary.IDeviceRegistration, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a DeviceRegistration message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -56470,22 +44870,6 @@ export namespace AccountSummary { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): AccountSummary.DeviceRegistration; - /** - * Decodes a DeviceRegistration message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns DeviceRegistration - * @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)): AccountSummary.DeviceRegistration; - - /** - * Verifies a DeviceRegistration 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 DeviceRegistration message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -56561,14 +44945,6 @@ export namespace AccountSummary { */ public static encode(message: AccountSummary.IGroup, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified Group message, length delimited. Does not implicitly {@link AccountSummary.Group.verify|verify} messages. - * @param message Group message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: AccountSummary.IGroup, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a Group message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -56579,22 +44955,6 @@ export namespace AccountSummary { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): AccountSummary.Group; - /** - * Decodes a Group message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Group - * @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)): AccountSummary.Group; - - /** - * Verifies a Group 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 Group message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -56700,14 +45060,6 @@ export namespace AccountSummary { */ public static encode(message: AccountSummary.IAdministrator, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified Administrator message, length delimited. Does not implicitly {@link AccountSummary.Administrator.verify|verify} messages. - * @param message Administrator message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: AccountSummary.IAdministrator, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes an Administrator message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -56718,22 +45070,6 @@ export namespace AccountSummary { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): AccountSummary.Administrator; - /** - * Decodes an Administrator message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Administrator - * @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)): AccountSummary.Administrator; - - /** - * Verifies an Administrator 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 Administrator message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -56902,14 +45238,6 @@ export namespace Automator { */ public static encode(message: Automator.IAutomatorSettingValue, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified AutomatorSettingValue message, length delimited. Does not implicitly {@link Automator.AutomatorSettingValue.verify|verify} messages. - * @param message AutomatorSettingValue message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Automator.IAutomatorSettingValue, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes an AutomatorSettingValue message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -56920,22 +45248,6 @@ export namespace Automator { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Automator.AutomatorSettingValue; - /** - * Decodes an AutomatorSettingValue message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns AutomatorSettingValue - * @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)): Automator.AutomatorSettingValue; - - /** - * Verifies an AutomatorSettingValue 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 AutomatorSettingValue message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -57064,14 +45376,6 @@ export namespace Automator { */ public static encode(message: Automator.IApproveDeviceRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified ApproveDeviceRequest message, length delimited. Does not implicitly {@link Automator.ApproveDeviceRequest.verify|verify} messages. - * @param message ApproveDeviceRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Automator.IApproveDeviceRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes an ApproveDeviceRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -57082,22 +45386,6 @@ export namespace Automator { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Automator.ApproveDeviceRequest; - /** - * Decodes an ApproveDeviceRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ApproveDeviceRequest - * @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)): Automator.ApproveDeviceRequest; - - /** - * Verifies an ApproveDeviceRequest 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 ApproveDeviceRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -57210,14 +45498,6 @@ export namespace Automator { */ public static encode(message: Automator.ISetupRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified SetupRequest message, length delimited. Does not implicitly {@link Automator.SetupRequest.verify|verify} messages. - * @param message SetupRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Automator.ISetupRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a SetupRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -57228,22 +45508,6 @@ export namespace Automator { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Automator.SetupRequest; - /** - * Decodes a SetupRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SetupRequest - * @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)): Automator.SetupRequest; - - /** - * Verifies a SetupRequest 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 SetupRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -57322,14 +45586,6 @@ export namespace Automator { */ public static encode(message: Automator.IStatusRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified StatusRequest message, length delimited. Does not implicitly {@link Automator.StatusRequest.verify|verify} messages. - * @param message StatusRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Automator.IStatusRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a StatusRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -57340,22 +45596,6 @@ export namespace Automator { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Automator.StatusRequest; - /** - * Decodes a StatusRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns StatusRequest - * @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)): Automator.StatusRequest; - - /** - * Verifies a StatusRequest 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 StatusRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -57551,14 +45791,6 @@ export namespace Automator { */ public static encode(message: Automator.IInitializeRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified InitializeRequest message, length delimited. Does not implicitly {@link Automator.InitializeRequest.verify|verify} messages. - * @param message InitializeRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Automator.IInitializeRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes an InitializeRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -57569,22 +45801,6 @@ export namespace Automator { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Automator.InitializeRequest; - /** - * Decodes an InitializeRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns InitializeRequest - * @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)): Automator.InitializeRequest; - - /** - * Verifies an InitializeRequest 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 InitializeRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -57698,14 +45914,6 @@ export namespace Automator { */ public static encode(message: Automator.INotInitializedResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified NotInitializedResponse message, length delimited. Does not implicitly {@link Automator.NotInitializedResponse.verify|verify} messages. - * @param message NotInitializedResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Automator.INotInitializedResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a NotInitializedResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -57716,22 +45924,6 @@ export namespace Automator { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Automator.NotInitializedResponse; - /** - * Decodes a NotInitializedResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns NotInitializedResponse - * @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)): Automator.NotInitializedResponse; - - /** - * Verifies a NotInitializedResponse 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 NotInitializedResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -57868,14 +46060,6 @@ export namespace Automator { */ public static encode(message: Automator.IAutomatorResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified AutomatorResponse message, length delimited. Does not implicitly {@link Automator.AutomatorResponse.verify|verify} messages. - * @param message AutomatorResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Automator.IAutomatorResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes an AutomatorResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -57886,22 +46070,6 @@ export namespace Automator { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Automator.AutomatorResponse; - /** - * Decodes an AutomatorResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns AutomatorResponse - * @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)): Automator.AutomatorResponse; - - /** - * Verifies an AutomatorResponse 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 AutomatorResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -57987,14 +46155,6 @@ export namespace Automator { */ public static encode(message: Automator.IApproveDeviceResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified ApproveDeviceResponse message, length delimited. Does not implicitly {@link Automator.ApproveDeviceResponse.verify|verify} messages. - * @param message ApproveDeviceResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Automator.IApproveDeviceResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes an ApproveDeviceResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -58005,22 +46165,6 @@ export namespace Automator { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Automator.ApproveDeviceResponse; - /** - * Decodes an ApproveDeviceResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ApproveDeviceResponse - * @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)): Automator.ApproveDeviceResponse; - - /** - * Verifies an ApproveDeviceResponse 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 ApproveDeviceResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -58174,14 +46318,6 @@ export namespace Automator { */ public static encode(message: Automator.IStatusResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified StatusResponse message, length delimited. Does not implicitly {@link Automator.StatusResponse.verify|verify} messages. - * @param message StatusResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Automator.IStatusResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a StatusResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -58192,22 +46328,6 @@ export namespace Automator { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Automator.StatusResponse; - /** - * Decodes a StatusResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns StatusResponse - * @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)): Automator.StatusResponse; - - /** - * Verifies a StatusResponse 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 StatusResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -58274,14 +46394,6 @@ export namespace Automator { */ public static encode(message: Automator.IErrorResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified ErrorResponse message, length delimited. Does not implicitly {@link Automator.ErrorResponse.verify|verify} messages. - * @param message ErrorResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Automator.IErrorResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes an ErrorResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -58292,22 +46404,6 @@ export namespace Automator { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Automator.ErrorResponse; - /** - * Decodes an ErrorResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ErrorResponse - * @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)): Automator.ErrorResponse; - - /** - * Verifies an ErrorResponse 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 ErrorResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -58402,14 +46498,6 @@ export namespace Automator { */ public static encode(message: Automator.ILogEntry, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified LogEntry message, length delimited. Does not implicitly {@link Automator.LogEntry.verify|verify} messages. - * @param message LogEntry message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Automator.ILogEntry, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a LogEntry message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -58420,22 +46508,6 @@ export namespace Automator { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Automator.LogEntry; - /** - * Decodes a LogEntry message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns LogEntry - * @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)): Automator.LogEntry; - - /** - * Verifies a LogEntry 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 LogEntry message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -58530,14 +46602,6 @@ export namespace Automator { */ public static encode(message: Automator.IAdminResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified AdminResponse message, length delimited. Does not implicitly {@link Automator.AdminResponse.verify|verify} messages. - * @param message AdminResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Automator.IAdminResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes an AdminResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -58548,22 +46612,6 @@ export namespace Automator { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Automator.AdminResponse; - /** - * Decodes an AdminResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns AdminResponse - * @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)): Automator.AdminResponse; - - /** - * Verifies an AdminResponse 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 AdminResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -58693,14 +46741,6 @@ export namespace Automator { */ public static encode(message: Automator.IAutomatorInfo, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified AutomatorInfo message, length delimited. Does not implicitly {@link Automator.AutomatorInfo.verify|verify} messages. - * @param message AutomatorInfo message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Automator.IAutomatorInfo, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes an AutomatorInfo message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -58711,22 +46751,6 @@ export namespace Automator { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Automator.AutomatorInfo; - /** - * Decodes an AutomatorInfo message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns AutomatorInfo - * @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)): Automator.AutomatorInfo; - - /** - * Verifies an AutomatorInfo 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 AutomatorInfo message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -58807,14 +46831,6 @@ export namespace Automator { */ public static encode(message: Automator.IAdminCreateAutomatorRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified AdminCreateAutomatorRequest message, length delimited. Does not implicitly {@link Automator.AdminCreateAutomatorRequest.verify|verify} messages. - * @param message AdminCreateAutomatorRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Automator.IAdminCreateAutomatorRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes an AdminCreateAutomatorRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -58825,22 +46841,6 @@ export namespace Automator { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Automator.AdminCreateAutomatorRequest; - /** - * Decodes an AdminCreateAutomatorRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns AdminCreateAutomatorRequest - * @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)): Automator.AdminCreateAutomatorRequest; - - /** - * Verifies an AdminCreateAutomatorRequest 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 AdminCreateAutomatorRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -58911,14 +46911,6 @@ export namespace Automator { */ public static encode(message: Automator.IAdminDeleteAutomatorRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified AdminDeleteAutomatorRequest message, length delimited. Does not implicitly {@link Automator.AdminDeleteAutomatorRequest.verify|verify} messages. - * @param message AdminDeleteAutomatorRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Automator.IAdminDeleteAutomatorRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes an AdminDeleteAutomatorRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -58929,22 +46921,6 @@ export namespace Automator { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Automator.AdminDeleteAutomatorRequest; - /** - * Decodes an AdminDeleteAutomatorRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns AdminDeleteAutomatorRequest - * @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)): Automator.AdminDeleteAutomatorRequest; - - /** - * Verifies an AdminDeleteAutomatorRequest 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 AdminDeleteAutomatorRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -59014,14 +46990,6 @@ export namespace Automator { */ public static encode(message: Automator.IAdminGetAutomatorsOnNodeRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified AdminGetAutomatorsOnNodeRequest message, length delimited. Does not implicitly {@link Automator.AdminGetAutomatorsOnNodeRequest.verify|verify} messages. - * @param message AdminGetAutomatorsOnNodeRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Automator.IAdminGetAutomatorsOnNodeRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes an AdminGetAutomatorsOnNodeRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -59032,22 +47000,6 @@ export namespace Automator { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Automator.AdminGetAutomatorsOnNodeRequest; - /** - * Decodes an AdminGetAutomatorsOnNodeRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns AdminGetAutomatorsOnNodeRequest - * @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)): Automator.AdminGetAutomatorsOnNodeRequest; - - /** - * Verifies an AdminGetAutomatorsOnNodeRequest 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 AdminGetAutomatorsOnNodeRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -59118,14 +47070,6 @@ export namespace Automator { */ public static encode(message: Automator.IAdminGetAutomatorsForEnterpriseRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified AdminGetAutomatorsForEnterpriseRequest message, length delimited. Does not implicitly {@link Automator.AdminGetAutomatorsForEnterpriseRequest.verify|verify} messages. - * @param message AdminGetAutomatorsForEnterpriseRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Automator.IAdminGetAutomatorsForEnterpriseRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes an AdminGetAutomatorsForEnterpriseRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -59136,22 +47080,6 @@ export namespace Automator { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Automator.AdminGetAutomatorsForEnterpriseRequest; - /** - * Decodes an AdminGetAutomatorsForEnterpriseRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns AdminGetAutomatorsForEnterpriseRequest - * @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)): Automator.AdminGetAutomatorsForEnterpriseRequest; - - /** - * Verifies an AdminGetAutomatorsForEnterpriseRequest 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 AdminGetAutomatorsForEnterpriseRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -59219,14 +47147,6 @@ export namespace Automator { */ public static encode(message: Automator.IAdminGetAutomatorRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified AdminGetAutomatorRequest message, length delimited. Does not implicitly {@link Automator.AdminGetAutomatorRequest.verify|verify} messages. - * @param message AdminGetAutomatorRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Automator.IAdminGetAutomatorRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes an AdminGetAutomatorRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -59237,22 +47157,6 @@ export namespace Automator { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Automator.AdminGetAutomatorRequest; - /** - * Decodes an AdminGetAutomatorRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns AdminGetAutomatorRequest - * @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)): Automator.AdminGetAutomatorRequest; - - /** - * Verifies an AdminGetAutomatorRequest 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 AdminGetAutomatorRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -59326,14 +47230,6 @@ export namespace Automator { */ public static encode(message: Automator.IAdminEnableAutomatorRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified AdminEnableAutomatorRequest message, length delimited. Does not implicitly {@link Automator.AdminEnableAutomatorRequest.verify|verify} messages. - * @param message AdminEnableAutomatorRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Automator.IAdminEnableAutomatorRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes an AdminEnableAutomatorRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -59344,22 +47240,6 @@ export namespace Automator { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Automator.AdminEnableAutomatorRequest; - /** - * Decodes an AdminEnableAutomatorRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns AdminEnableAutomatorRequest - * @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)): Automator.AdminEnableAutomatorRequest; - - /** - * Verifies an AdminEnableAutomatorRequest 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 AdminEnableAutomatorRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -59459,14 +47339,6 @@ export namespace Automator { */ public static encode(message: Automator.IAdminEditAutomatorRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified AdminEditAutomatorRequest message, length delimited. Does not implicitly {@link Automator.AdminEditAutomatorRequest.verify|verify} messages. - * @param message AdminEditAutomatorRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Automator.IAdminEditAutomatorRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes an AdminEditAutomatorRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -59477,22 +47349,6 @@ export namespace Automator { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Automator.AdminEditAutomatorRequest; - /** - * Decodes an AdminEditAutomatorRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns AdminEditAutomatorRequest - * @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)): Automator.AdminEditAutomatorRequest; - - /** - * Verifies an AdminEditAutomatorRequest 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 AdminEditAutomatorRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -59592,14 +47448,6 @@ export namespace Automator { */ public static encode(message: Automator.IAdminSetupAutomatorRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified AdminSetupAutomatorRequest message, length delimited. Does not implicitly {@link Automator.AdminSetupAutomatorRequest.verify|verify} messages. - * @param message AdminSetupAutomatorRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Automator.IAdminSetupAutomatorRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes an AdminSetupAutomatorRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -59610,22 +47458,6 @@ export namespace Automator { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Automator.AdminSetupAutomatorRequest; - /** - * Decodes an AdminSetupAutomatorRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns AdminSetupAutomatorRequest - * @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)): Automator.AdminSetupAutomatorRequest; - - /** - * Verifies an AdminSetupAutomatorRequest 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 AdminSetupAutomatorRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -59716,14 +47548,6 @@ export namespace Automator { */ public static encode(message: Automator.IAdminSetupAutomatorResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified AdminSetupAutomatorResponse message, length delimited. Does not implicitly {@link Automator.AdminSetupAutomatorResponse.verify|verify} messages. - * @param message AdminSetupAutomatorResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Automator.IAdminSetupAutomatorResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes an AdminSetupAutomatorResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -59734,22 +47558,6 @@ export namespace Automator { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Automator.AdminSetupAutomatorResponse; - /** - * Decodes an AdminSetupAutomatorResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns AdminSetupAutomatorResponse - * @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)): Automator.AdminSetupAutomatorResponse; - - /** - * Verifies an AdminSetupAutomatorResponse 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 AdminSetupAutomatorResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -59818,14 +47626,6 @@ export namespace Automator { */ public static encode(message: Automator.IAdminAutomatorSkillsRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified AdminAutomatorSkillsRequest message, length delimited. Does not implicitly {@link Automator.AdminAutomatorSkillsRequest.verify|verify} messages. - * @param message AdminAutomatorSkillsRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Automator.IAdminAutomatorSkillsRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes an AdminAutomatorSkillsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -59836,22 +47636,6 @@ export namespace Automator { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Automator.AdminAutomatorSkillsRequest; - /** - * Decodes an AdminAutomatorSkillsRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns AdminAutomatorSkillsRequest - * @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)): Automator.AdminAutomatorSkillsRequest; - - /** - * Verifies an AdminAutomatorSkillsRequest 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 AdminAutomatorSkillsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -59927,14 +47711,6 @@ export namespace Automator { */ public static encode(message: Automator.IAutomatorSkill, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified AutomatorSkill message, length delimited. Does not implicitly {@link Automator.AutomatorSkill.verify|verify} messages. - * @param message AutomatorSkill message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Automator.IAutomatorSkill, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes an AutomatorSkill message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -59945,22 +47721,6 @@ export namespace Automator { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Automator.AutomatorSkill; - /** - * Decodes an AutomatorSkill message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns AutomatorSkill - * @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)): Automator.AutomatorSkill; - - /** - * Verifies an AutomatorSkill 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 AutomatorSkill message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -60036,14 +47796,6 @@ export namespace Automator { */ public static encode(message: Automator.IAdminAutomatorSkillsResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified AdminAutomatorSkillsResponse message, length delimited. Does not implicitly {@link Automator.AdminAutomatorSkillsResponse.verify|verify} messages. - * @param message AdminAutomatorSkillsResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Automator.IAdminAutomatorSkillsResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes an AdminAutomatorSkillsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -60054,22 +47806,6 @@ export namespace Automator { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Automator.AdminAutomatorSkillsResponse; - /** - * Decodes an AdminAutomatorSkillsResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns AdminAutomatorSkillsResponse - * @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)): Automator.AdminAutomatorSkillsResponse; - - /** - * Verifies an AdminAutomatorSkillsResponse 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 AdminAutomatorSkillsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -60139,14 +47875,6 @@ export namespace Automator { */ public static encode(message: Automator.IAdminResetAutomatorRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified AdminResetAutomatorRequest message, length delimited. Does not implicitly {@link Automator.AdminResetAutomatorRequest.verify|verify} messages. - * @param message AdminResetAutomatorRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Automator.IAdminResetAutomatorRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes an AdminResetAutomatorRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -60157,22 +47885,6 @@ export namespace Automator { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Automator.AdminResetAutomatorRequest; - /** - * Decodes an AdminResetAutomatorRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns AdminResetAutomatorRequest - * @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)): Automator.AdminResetAutomatorRequest; - - /** - * Verifies an AdminResetAutomatorRequest 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 AdminResetAutomatorRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -60241,14 +47953,6 @@ export namespace Automator { */ public static encode(message: Automator.IAdminInitializeAutomatorRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified AdminInitializeAutomatorRequest message, length delimited. Does not implicitly {@link Automator.AdminInitializeAutomatorRequest.verify|verify} messages. - * @param message AdminInitializeAutomatorRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Automator.IAdminInitializeAutomatorRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes an AdminInitializeAutomatorRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -60259,22 +47963,6 @@ export namespace Automator { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Automator.AdminInitializeAutomatorRequest; - /** - * Decodes an AdminInitializeAutomatorRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns AdminInitializeAutomatorRequest - * @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)): Automator.AdminInitializeAutomatorRequest; - - /** - * Verifies an AdminInitializeAutomatorRequest 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 AdminInitializeAutomatorRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -60345,14 +48033,6 @@ export namespace Automator { */ public static encode(message: Automator.IAdminAutomatorLogRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified AdminAutomatorLogRequest message, length delimited. Does not implicitly {@link Automator.AdminAutomatorLogRequest.verify|verify} messages. - * @param message AdminAutomatorLogRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Automator.IAdminAutomatorLogRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes an AdminAutomatorLogRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -60363,22 +48043,6 @@ export namespace Automator { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Automator.AdminAutomatorLogRequest; - /** - * Decodes an AdminAutomatorLogRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns AdminAutomatorLogRequest - * @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)): Automator.AdminAutomatorLogRequest; - - /** - * Verifies an AdminAutomatorLogRequest 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 AdminAutomatorLogRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -60449,14 +48113,6 @@ export namespace Automator { */ public static encode(message: Automator.IAdminAutomatorLogClearRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified AdminAutomatorLogClearRequest message, length delimited. Does not implicitly {@link Automator.AdminAutomatorLogClearRequest.verify|verify} messages. - * @param message AdminAutomatorLogClearRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Automator.IAdminAutomatorLogClearRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes an AdminAutomatorLogClearRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -60467,22 +48123,6 @@ export namespace Automator { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Automator.AdminAutomatorLogClearRequest; - /** - * Decodes an AdminAutomatorLogClearRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns AdminAutomatorLogClearRequest - * @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)): Automator.AdminAutomatorLogClearRequest; - - /** - * Verifies an AdminAutomatorLogClearRequest 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 AdminAutomatorLogClearRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -60611,14 +48251,6 @@ export namespace Automator { */ public static encode(message: Automator.IApproveTeamsForUserRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified ApproveTeamsForUserRequest message, length delimited. Does not implicitly {@link Automator.ApproveTeamsForUserRequest.verify|verify} messages. - * @param message ApproveTeamsForUserRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Automator.IApproveTeamsForUserRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes an ApproveTeamsForUserRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -60629,22 +48261,6 @@ export namespace Automator { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Automator.ApproveTeamsForUserRequest; - /** - * Decodes an ApproveTeamsForUserRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ApproveTeamsForUserRequest - * @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)): Automator.ApproveTeamsForUserRequest; - - /** - * Verifies an ApproveTeamsForUserRequest 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 ApproveTeamsForUserRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -60731,14 +48347,6 @@ export namespace Automator { */ public static encode(message: Automator.ITeamDescription, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified TeamDescription message, length delimited. Does not implicitly {@link Automator.TeamDescription.verify|verify} messages. - * @param message TeamDescription message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Automator.ITeamDescription, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a TeamDescription message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -60749,22 +48357,6 @@ export namespace Automator { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Automator.TeamDescription; - /** - * Decodes a TeamDescription message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns TeamDescription - * @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)): Automator.TeamDescription; - - /** - * Verifies a TeamDescription 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 TeamDescription message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -60851,14 +48443,6 @@ export namespace Automator { */ public static encode(message: Automator.IApproveTeamsForUserResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified ApproveTeamsForUserResponse message, length delimited. Does not implicitly {@link Automator.ApproveTeamsForUserResponse.verify|verify} messages. - * @param message ApproveTeamsForUserResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Automator.IApproveTeamsForUserResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes an ApproveTeamsForUserResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -60869,22 +48453,6 @@ export namespace Automator { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Automator.ApproveTeamsForUserResponse; - /** - * Decodes an ApproveTeamsForUserResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ApproveTeamsForUserResponse - * @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)): Automator.ApproveTeamsForUserResponse; - - /** - * Verifies an ApproveTeamsForUserResponse 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 ApproveTeamsForUserResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -60995,14 +48563,6 @@ export namespace Automator { */ public static encode(message: Automator.IApproveOneTeamForUserResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified ApproveOneTeamForUserResponse message, length delimited. Does not implicitly {@link Automator.ApproveOneTeamForUserResponse.verify|verify} messages. - * @param message ApproveOneTeamForUserResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Automator.IApproveOneTeamForUserResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes an ApproveOneTeamForUserResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -61013,22 +48573,6 @@ export namespace Automator { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Automator.ApproveOneTeamForUserResponse; - /** - * Decodes an ApproveOneTeamForUserResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ApproveOneTeamForUserResponse - * @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)): Automator.ApproveOneTeamForUserResponse; - - /** - * Verifies an ApproveOneTeamForUserResponse 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 ApproveOneTeamForUserResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -61145,14 +48689,6 @@ export namespace Automator { */ public static encode(message: Automator.IApproveTeamsRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified ApproveTeamsRequest message, length delimited. Does not implicitly {@link Automator.ApproveTeamsRequest.verify|verify} messages. - * @param message ApproveTeamsRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Automator.IApproveTeamsRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes an ApproveTeamsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -61163,22 +48699,6 @@ export namespace Automator { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Automator.ApproveTeamsRequest; - /** - * Decodes an ApproveTeamsRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ApproveTeamsRequest - * @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)): Automator.ApproveTeamsRequest; - - /** - * Verifies an ApproveTeamsRequest 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 ApproveTeamsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -61259,14 +48779,6 @@ export namespace Automator { */ public static encode(message: Automator.IApproveTeamsResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified ApproveTeamsResponse message, length delimited. Does not implicitly {@link Automator.ApproveTeamsResponse.verify|verify} messages. - * @param message ApproveTeamsResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Automator.IApproveTeamsResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes an ApproveTeamsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -61277,22 +48789,6 @@ export namespace Automator { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Automator.ApproveTeamsResponse; - /** - * Decodes an ApproveTeamsResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ApproveTeamsResponse - * @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)): Automator.ApproveTeamsResponse; - - /** - * Verifies an ApproveTeamsResponse 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 ApproveTeamsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -61440,14 +48936,6 @@ export namespace Automator { */ public static encode(message: Automator.IApproveOneTeamResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified ApproveOneTeamResponse message, length delimited. Does not implicitly {@link Automator.ApproveOneTeamResponse.verify|verify} messages. - * @param message ApproveOneTeamResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Automator.IApproveOneTeamResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes an ApproveOneTeamResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -61458,22 +48946,6 @@ export namespace Automator { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Automator.ApproveOneTeamResponse; - /** - * Decodes an ApproveOneTeamResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ApproveOneTeamResponse - * @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)): Automator.ApproveOneTeamResponse; - - /** - * Verifies an ApproveOneTeamResponse 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 ApproveOneTeamResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -61576,14 +49048,6 @@ export namespace Automator { */ public static encode(message: Automator.ISSLCertificateInfo, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified SSLCertificateInfo message, length delimited. Does not implicitly {@link Automator.SSLCertificateInfo.verify|verify} messages. - * @param message SSLCertificateInfo message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Automator.ISSLCertificateInfo, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a SSLCertificateInfo message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -61594,22 +49058,6 @@ export namespace Automator { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Automator.SSLCertificateInfo; - /** - * Decodes a SSLCertificateInfo message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SSLCertificateInfo - * @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)): Automator.SSLCertificateInfo; - - /** - * Verifies a SSLCertificateInfo 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 SSLCertificateInfo message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -61786,14 +49234,6 @@ export namespace SsoCloud { */ public static encode(message: SsoCloud.ISsoCloudSettingValue, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified SsoCloudSettingValue message, length delimited. Does not implicitly {@link SsoCloud.SsoCloudSettingValue.verify|verify} messages. - * @param message SsoCloudSettingValue message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: SsoCloud.ISsoCloudSettingValue, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a SsoCloudSettingValue message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -61804,22 +49244,6 @@ export namespace SsoCloud { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): SsoCloud.SsoCloudSettingValue; - /** - * Decodes a SsoCloudSettingValue message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SsoCloudSettingValue - * @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)): SsoCloud.SsoCloudSettingValue; - - /** - * Verifies a SsoCloudSettingValue 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 SsoCloudSettingValue message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -61901,14 +49325,6 @@ export namespace SsoCloud { */ public static encode(message: SsoCloud.ISsoCloudSettingAction, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified SsoCloudSettingAction message, length delimited. Does not implicitly {@link SsoCloud.SsoCloudSettingAction.verify|verify} messages. - * @param message SsoCloudSettingAction message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: SsoCloud.ISsoCloudSettingAction, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a SsoCloudSettingAction message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -61919,22 +49335,6 @@ export namespace SsoCloud { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): SsoCloud.SsoCloudSettingAction; - /** - * Decodes a SsoCloudSettingAction message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SsoCloudSettingAction - * @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)): SsoCloud.SsoCloudSettingAction; - - /** - * Verifies a SsoCloudSettingAction 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 SsoCloudSettingAction message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -62022,14 +49422,6 @@ export namespace SsoCloud { */ public static encode(message: SsoCloud.ISsoCloudConfigurationRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified SsoCloudConfigurationRequest message, length delimited. Does not implicitly {@link SsoCloud.SsoCloudConfigurationRequest.verify|verify} messages. - * @param message SsoCloudConfigurationRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: SsoCloud.ISsoCloudConfigurationRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a SsoCloudConfigurationRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -62040,22 +49432,6 @@ export namespace SsoCloud { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): SsoCloud.SsoCloudConfigurationRequest; - /** - * Decodes a SsoCloudConfigurationRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SsoCloudConfigurationRequest - * @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)): SsoCloud.SsoCloudConfigurationRequest; - - /** - * Verifies a SsoCloudConfigurationRequest 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 SsoCloudConfigurationRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -62131,14 +49507,6 @@ export namespace SsoCloud { */ public static encode(message: SsoCloud.ISsoSharedConfigItem, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified SsoSharedConfigItem message, length delimited. Does not implicitly {@link SsoCloud.SsoSharedConfigItem.verify|verify} messages. - * @param message SsoSharedConfigItem message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: SsoCloud.ISsoSharedConfigItem, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a SsoSharedConfigItem message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -62149,22 +49517,6 @@ export namespace SsoCloud { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): SsoCloud.SsoSharedConfigItem; - /** - * Decodes a SsoSharedConfigItem message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SsoSharedConfigItem - * @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)): SsoCloud.SsoSharedConfigItem; - - /** - * Verifies a SsoSharedConfigItem 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 SsoSharedConfigItem message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -62276,14 +49628,6 @@ export namespace SsoCloud { */ public static encode(message: SsoCloud.ISsoCloudConfigurationResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified SsoCloudConfigurationResponse message, length delimited. Does not implicitly {@link SsoCloud.SsoCloudConfigurationResponse.verify|verify} messages. - * @param message SsoCloudConfigurationResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: SsoCloud.ISsoCloudConfigurationResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a SsoCloudConfigurationResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -62294,22 +49638,6 @@ export namespace SsoCloud { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): SsoCloud.SsoCloudConfigurationResponse; - /** - * Decodes a SsoCloudConfigurationResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SsoCloudConfigurationResponse - * @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)): SsoCloud.SsoCloudConfigurationResponse; - - /** - * Verifies a SsoCloudConfigurationResponse 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 SsoCloudConfigurationResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -62385,14 +49713,6 @@ export namespace SsoCloud { */ public static encode(message: SsoCloud.ISsoIdpTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified SsoIdpTypeRequest message, length delimited. Does not implicitly {@link SsoCloud.SsoIdpTypeRequest.verify|verify} messages. - * @param message SsoIdpTypeRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: SsoCloud.ISsoIdpTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a SsoIdpTypeRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -62403,22 +49723,6 @@ export namespace SsoCloud { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): SsoCloud.SsoIdpTypeRequest; - /** - * Decodes a SsoIdpTypeRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SsoIdpTypeRequest - * @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)): SsoCloud.SsoIdpTypeRequest; - - /** - * Verifies a SsoIdpTypeRequest 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 SsoIdpTypeRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -62494,14 +49798,6 @@ export namespace SsoCloud { */ public static encode(message: SsoCloud.ISsoIdpTypeResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified SsoIdpTypeResponse message, length delimited. Does not implicitly {@link SsoCloud.SsoIdpTypeResponse.verify|verify} messages. - * @param message SsoIdpTypeResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: SsoCloud.ISsoIdpTypeResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a SsoIdpTypeResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -62512,22 +49808,6 @@ export namespace SsoCloud { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): SsoCloud.SsoIdpTypeResponse; - /** - * Decodes a SsoIdpTypeResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SsoIdpTypeResponse - * @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)): SsoCloud.SsoIdpTypeResponse; - - /** - * Verifies a SsoIdpTypeResponse 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 SsoIdpTypeResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -62591,14 +49871,6 @@ export namespace SsoCloud { */ public static encode(message: SsoCloud.ISsoCloudSAMLLogRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified SsoCloudSAMLLogRequest message, length delimited. Does not implicitly {@link SsoCloud.SsoCloudSAMLLogRequest.verify|verify} messages. - * @param message SsoCloudSAMLLogRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: SsoCloud.ISsoCloudSAMLLogRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a SsoCloudSAMLLogRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -62609,22 +49881,6 @@ export namespace SsoCloud { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): SsoCloud.SsoCloudSAMLLogRequest; - /** - * Decodes a SsoCloudSAMLLogRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SsoCloudSAMLLogRequest - * @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)): SsoCloud.SsoCloudSAMLLogRequest; - - /** - * Verifies a SsoCloudSAMLLogRequest 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 SsoCloudSAMLLogRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -62742,14 +49998,6 @@ export namespace SsoCloud { */ public static encode(message: SsoCloud.ISsoCloudSAMLLogEntry, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified SsoCloudSAMLLogEntry message, length delimited. Does not implicitly {@link SsoCloud.SsoCloudSAMLLogEntry.verify|verify} messages. - * @param message SsoCloudSAMLLogEntry message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: SsoCloud.ISsoCloudSAMLLogEntry, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a SsoCloudSAMLLogEntry message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -62760,22 +50008,6 @@ export namespace SsoCloud { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): SsoCloud.SsoCloudSAMLLogEntry; - /** - * Decodes a SsoCloudSAMLLogEntry message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SsoCloudSAMLLogEntry - * @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)): SsoCloud.SsoCloudSAMLLogEntry; - - /** - * Verifies a SsoCloudSAMLLogEntry 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 SsoCloudSAMLLogEntry message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -62845,14 +50077,6 @@ export namespace SsoCloud { */ public static encode(message: SsoCloud.ISsoCloudSAMLLogResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified SsoCloudSAMLLogResponse message, length delimited. Does not implicitly {@link SsoCloud.SsoCloudSAMLLogResponse.verify|verify} messages. - * @param message SsoCloudSAMLLogResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: SsoCloud.ISsoCloudSAMLLogResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a SsoCloudSAMLLogResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -62863,22 +50087,6 @@ export namespace SsoCloud { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): SsoCloud.SsoCloudSAMLLogResponse; - /** - * Decodes a SsoCloudSAMLLogResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SsoCloudSAMLLogResponse - * @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)): SsoCloud.SsoCloudSAMLLogResponse; - - /** - * Verifies a SsoCloudSAMLLogResponse 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 SsoCloudSAMLLogResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -62951,14 +50159,6 @@ export namespace SsoCloud { */ public static encode(message: SsoCloud.ISsoCloudServiceProviderUpdateRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified SsoCloudServiceProviderUpdateRequest message, length delimited. Does not implicitly {@link SsoCloud.SsoCloudServiceProviderUpdateRequest.verify|verify} messages. - * @param message SsoCloudServiceProviderUpdateRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: SsoCloud.ISsoCloudServiceProviderUpdateRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a SsoCloudServiceProviderUpdateRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -62969,22 +50169,6 @@ export namespace SsoCloud { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): SsoCloud.SsoCloudServiceProviderUpdateRequest; - /** - * Decodes a SsoCloudServiceProviderUpdateRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SsoCloudServiceProviderUpdateRequest - * @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)): SsoCloud.SsoCloudServiceProviderUpdateRequest; - - /** - * Verifies a SsoCloudServiceProviderUpdateRequest 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 SsoCloudServiceProviderUpdateRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -63063,14 +50247,6 @@ export namespace SsoCloud { */ public static encode(message: SsoCloud.ISsoCloudIdpMetadataRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified SsoCloudIdpMetadataRequest message, length delimited. Does not implicitly {@link SsoCloud.SsoCloudIdpMetadataRequest.verify|verify} messages. - * @param message SsoCloudIdpMetadataRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: SsoCloud.ISsoCloudIdpMetadataRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a SsoCloudIdpMetadataRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -63081,22 +50257,6 @@ export namespace SsoCloud { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): SsoCloud.SsoCloudIdpMetadataRequest; - /** - * Decodes a SsoCloudIdpMetadataRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SsoCloudIdpMetadataRequest - * @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)): SsoCloud.SsoCloudIdpMetadataRequest; - - /** - * Verifies a SsoCloudIdpMetadataRequest 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 SsoCloudIdpMetadataRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -63187,14 +50347,6 @@ export namespace SsoCloud { */ public static encode(message: SsoCloud.ISsoCloudIdpMetadataSupportRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified SsoCloudIdpMetadataSupportRequest message, length delimited. Does not implicitly {@link SsoCloud.SsoCloudIdpMetadataSupportRequest.verify|verify} messages. - * @param message SsoCloudIdpMetadataSupportRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: SsoCloud.ISsoCloudIdpMetadataSupportRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a SsoCloudIdpMetadataSupportRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -63205,22 +50357,6 @@ export namespace SsoCloud { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): SsoCloud.SsoCloudIdpMetadataSupportRequest; - /** - * Decodes a SsoCloudIdpMetadataSupportRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SsoCloudIdpMetadataSupportRequest - * @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)): SsoCloud.SsoCloudIdpMetadataSupportRequest; - - /** - * Verifies a SsoCloudIdpMetadataSupportRequest 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 SsoCloudIdpMetadataSupportRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -63287,14 +50423,6 @@ export namespace SsoCloud { */ public static encode(message: SsoCloud.ISsoCloudConfigurationValidationRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified SsoCloudConfigurationValidationRequest message, length delimited. Does not implicitly {@link SsoCloud.SsoCloudConfigurationValidationRequest.verify|verify} messages. - * @param message SsoCloudConfigurationValidationRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: SsoCloud.ISsoCloudConfigurationValidationRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a SsoCloudConfigurationValidationRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -63305,22 +50433,6 @@ export namespace SsoCloud { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): SsoCloud.SsoCloudConfigurationValidationRequest; - /** - * Decodes a SsoCloudConfigurationValidationRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SsoCloudConfigurationValidationRequest - * @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)): SsoCloud.SsoCloudConfigurationValidationRequest; - - /** - * Verifies a SsoCloudConfigurationValidationRequest 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 SsoCloudConfigurationValidationRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -63396,14 +50508,6 @@ export namespace SsoCloud { */ public static encode(message: SsoCloud.IValidationContent, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified ValidationContent message, length delimited. Does not implicitly {@link SsoCloud.ValidationContent.verify|verify} messages. - * @param message ValidationContent message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: SsoCloud.IValidationContent, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a ValidationContent message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -63414,22 +50518,6 @@ export namespace SsoCloud { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): SsoCloud.ValidationContent; - /** - * Decodes a ValidationContent message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ValidationContent - * @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)): SsoCloud.ValidationContent; - - /** - * Verifies a ValidationContent 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 ValidationContent message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -63493,14 +50581,6 @@ export namespace SsoCloud { */ public static encode(message: SsoCloud.ISsoCloudConfigurationValidationResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified SsoCloudConfigurationValidationResponse message, length delimited. Does not implicitly {@link SsoCloud.SsoCloudConfigurationValidationResponse.verify|verify} messages. - * @param message SsoCloudConfigurationValidationResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: SsoCloud.ISsoCloudConfigurationValidationResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a SsoCloudConfigurationValidationResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -63511,22 +50591,6 @@ export namespace SsoCloud { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): SsoCloud.SsoCloudConfigurationValidationResponse; - /** - * Decodes a SsoCloudConfigurationValidationResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SsoCloudConfigurationValidationResponse - * @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)): SsoCloud.SsoCloudConfigurationValidationResponse; - - /** - * Verifies a SsoCloudConfigurationValidationResponse 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 SsoCloudConfigurationValidationResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -63590,14 +50654,6 @@ export namespace SsoCloud { */ public static encode(message: SsoCloud.ISsoCloudServiceProviderConfigurationListRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified SsoCloudServiceProviderConfigurationListRequest message, length delimited. Does not implicitly {@link SsoCloud.SsoCloudServiceProviderConfigurationListRequest.verify|verify} messages. - * @param message SsoCloudServiceProviderConfigurationListRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: SsoCloud.ISsoCloudServiceProviderConfigurationListRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a SsoCloudServiceProviderConfigurationListRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -63608,22 +50664,6 @@ export namespace SsoCloud { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): SsoCloud.SsoCloudServiceProviderConfigurationListRequest; - /** - * Decodes a SsoCloudServiceProviderConfigurationListRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SsoCloudServiceProviderConfigurationListRequest - * @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)): SsoCloud.SsoCloudServiceProviderConfigurationListRequest; - - /** - * Verifies a SsoCloudServiceProviderConfigurationListRequest 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 SsoCloudServiceProviderConfigurationListRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -63708,14 +50748,6 @@ export namespace SsoCloud { */ public static encode(message: SsoCloud.IConfigurationListItem, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified ConfigurationListItem message, length delimited. Does not implicitly {@link SsoCloud.ConfigurationListItem.verify|verify} messages. - * @param message ConfigurationListItem message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: SsoCloud.IConfigurationListItem, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a ConfigurationListItem message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -63726,22 +50758,6 @@ export namespace SsoCloud { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): SsoCloud.ConfigurationListItem; - /** - * Decodes a ConfigurationListItem message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ConfigurationListItem - * @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)): SsoCloud.ConfigurationListItem; - - /** - * Verifies a ConfigurationListItem 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 ConfigurationListItem message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -63805,14 +50821,6 @@ export namespace SsoCloud { */ public static encode(message: SsoCloud.ISsoCloudServiceProviderConfigurationListResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified SsoCloudServiceProviderConfigurationListResponse message, length delimited. Does not implicitly {@link SsoCloud.SsoCloudServiceProviderConfigurationListResponse.verify|verify} messages. - * @param message SsoCloudServiceProviderConfigurationListResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: SsoCloud.ISsoCloudServiceProviderConfigurationListResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a SsoCloudServiceProviderConfigurationListResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -63823,22 +50831,6 @@ export namespace SsoCloud { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): SsoCloud.SsoCloudServiceProviderConfigurationListResponse; - /** - * Decodes a SsoCloudServiceProviderConfigurationListResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SsoCloudServiceProviderConfigurationListResponse - * @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)): SsoCloud.SsoCloudServiceProviderConfigurationListResponse; - - /** - * Verifies a SsoCloudServiceProviderConfigurationListResponse 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 SsoCloudServiceProviderConfigurationListResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -63953,14 +50945,6 @@ export namespace SsoCloud { */ public static encode(message: SsoCloud.ISsoCloudRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified SsoCloudRequest message, length delimited. Does not implicitly {@link SsoCloud.SsoCloudRequest.verify|verify} messages. - * @param message SsoCloudRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: SsoCloud.ISsoCloudRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a SsoCloudRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -63971,22 +50955,6 @@ export namespace SsoCloud { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): SsoCloud.SsoCloudRequest; - /** - * Decodes a SsoCloudRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SsoCloudRequest - * @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)): SsoCloud.SsoCloudRequest; - - /** - * Verifies a SsoCloudRequest 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 SsoCloudRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -64095,14 +51063,6 @@ export namespace SsoCloud { */ public static encode(message: SsoCloud.ISsoCloudResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified SsoCloudResponse message, length delimited. Does not implicitly {@link SsoCloud.SsoCloudResponse.verify|verify} messages. - * @param message SsoCloudResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: SsoCloud.ISsoCloudResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a SsoCloudResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -64113,22 +51073,6 @@ export namespace SsoCloud { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): SsoCloud.SsoCloudResponse; - /** - * Decodes a SsoCloudResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SsoCloudResponse - * @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)): SsoCloud.SsoCloudResponse; - - /** - * Verifies a SsoCloudResponse 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 SsoCloudResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -64204,14 +51148,6 @@ export namespace SsoCloud { */ public static encode(message: SsoCloud.ISsoCloudLogRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified SsoCloudLogRequest message, length delimited. Does not implicitly {@link SsoCloud.SsoCloudLogRequest.verify|verify} messages. - * @param message SsoCloudLogRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: SsoCloud.ISsoCloudLogRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a SsoCloudLogRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -64222,22 +51158,6 @@ export namespace SsoCloud { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): SsoCloud.SsoCloudLogRequest; - /** - * Decodes a SsoCloudLogRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SsoCloudLogRequest - * @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)): SsoCloud.SsoCloudLogRequest; - - /** - * Verifies a SsoCloudLogRequest 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 SsoCloudLogRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -64361,14 +51281,6 @@ export namespace SsoCloud { */ public static encode(message: SsoCloud.ISamlRelayState, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified SamlRelayState message, length delimited. Does not implicitly {@link SsoCloud.SamlRelayState.verify|verify} messages. - * @param message SamlRelayState message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: SsoCloud.ISamlRelayState, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a SamlRelayState message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -64379,22 +51291,6 @@ export namespace SsoCloud { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): SsoCloud.SamlRelayState; - /** - * Decodes a SamlRelayState message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SamlRelayState - * @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)): SsoCloud.SamlRelayState; - - /** - * Verifies a SamlRelayState 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 SamlRelayState message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -64491,14 +51387,6 @@ export namespace SsoCloud { */ public static encode(message: SsoCloud.ISsoCloudMigrationStatusRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified SsoCloudMigrationStatusRequest message, length delimited. Does not implicitly {@link SsoCloud.SsoCloudMigrationStatusRequest.verify|verify} messages. - * @param message SsoCloudMigrationStatusRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: SsoCloud.ISsoCloudMigrationStatusRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a SsoCloudMigrationStatusRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -64509,22 +51397,6 @@ export namespace SsoCloud { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): SsoCloud.SsoCloudMigrationStatusRequest; - /** - * Decodes a SsoCloudMigrationStatusRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SsoCloudMigrationStatusRequest - * @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)): SsoCloud.SsoCloudMigrationStatusRequest; - - /** - * Verifies a SsoCloudMigrationStatusRequest 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 SsoCloudMigrationStatusRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -64654,14 +51526,6 @@ export namespace SsoCloud { */ public static encode(message: SsoCloud.ISsoCloudMigrationStatusResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified SsoCloudMigrationStatusResponse message, length delimited. Does not implicitly {@link SsoCloud.SsoCloudMigrationStatusResponse.verify|verify} messages. - * @param message SsoCloudMigrationStatusResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: SsoCloud.ISsoCloudMigrationStatusResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a SsoCloudMigrationStatusResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -64672,22 +51536,6 @@ export namespace SsoCloud { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): SsoCloud.SsoCloudMigrationStatusResponse; - /** - * Decodes a SsoCloudMigrationStatusResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SsoCloudMigrationStatusResponse - * @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)): SsoCloud.SsoCloudMigrationStatusResponse; - - /** - * Verifies a SsoCloudMigrationStatusResponse 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 SsoCloudMigrationStatusResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -64769,14 +51617,6 @@ export namespace SsoCloud { */ public static encode(message: SsoCloud.ISsoCloudMigrationUserInfo, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified SsoCloudMigrationUserInfo message, length delimited. Does not implicitly {@link SsoCloud.SsoCloudMigrationUserInfo.verify|verify} messages. - * @param message SsoCloudMigrationUserInfo message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: SsoCloud.ISsoCloudMigrationUserInfo, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a SsoCloudMigrationUserInfo message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -64787,22 +51627,6 @@ export namespace SsoCloud { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): SsoCloud.SsoCloudMigrationUserInfo; - /** - * Decodes a SsoCloudMigrationUserInfo message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SsoCloudMigrationUserInfo - * @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)): SsoCloud.SsoCloudMigrationUserInfo; - - /** - * Verifies a SsoCloudMigrationUserInfo 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 SsoCloudMigrationUserInfo message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -64888,14 +51712,6 @@ export namespace SemanticVersion { */ public static encode(message: SemanticVersion.IVersion, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified Version message, length delimited. Does not implicitly {@link SemanticVersion.Version.verify|verify} messages. - * @param message Version message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: SemanticVersion.IVersion, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a Version message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -64906,22 +51722,6 @@ export namespace SemanticVersion { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): SemanticVersion.Version; - /** - * Decodes a Version message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Version - * @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)): SemanticVersion.Version; - - /** - * Verifies a Version 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 Version message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -65013,14 +51813,6 @@ export namespace BreachWatch { */ public static encode(message: BreachWatch.IBreachWatchRecordRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified BreachWatchRecordRequest message, length delimited. Does not implicitly {@link BreachWatch.BreachWatchRecordRequest.verify|verify} messages. - * @param message BreachWatchRecordRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: BreachWatch.IBreachWatchRecordRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a BreachWatchRecordRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -65031,22 +51823,6 @@ export namespace BreachWatch { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BreachWatch.BreachWatchRecordRequest; - /** - * Decodes a BreachWatchRecordRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns BreachWatchRecordRequest - * @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)): BreachWatch.BreachWatchRecordRequest; - - /** - * Verifies a BreachWatchRecordRequest 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 BreachWatchRecordRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -65116,14 +51892,6 @@ export namespace BreachWatch { */ public static encode(message: BreachWatch.IBreachWatchUpdateRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified BreachWatchUpdateRequest message, length delimited. Does not implicitly {@link BreachWatch.BreachWatchUpdateRequest.verify|verify} messages. - * @param message BreachWatchUpdateRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: BreachWatch.IBreachWatchUpdateRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a BreachWatchUpdateRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -65134,22 +51902,6 @@ export namespace BreachWatch { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BreachWatch.BreachWatchUpdateRequest; - /** - * Decodes a BreachWatchUpdateRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns BreachWatchUpdateRequest - * @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)): BreachWatch.BreachWatchUpdateRequest; - - /** - * Verifies a BreachWatchUpdateRequest 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 BreachWatchUpdateRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -65225,14 +51977,6 @@ export namespace BreachWatch { */ public static encode(message: BreachWatch.IBreachWatchRecordStatus, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified BreachWatchRecordStatus message, length delimited. Does not implicitly {@link BreachWatch.BreachWatchRecordStatus.verify|verify} messages. - * @param message BreachWatchRecordStatus message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: BreachWatch.IBreachWatchRecordStatus, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a BreachWatchRecordStatus message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -65243,22 +51987,6 @@ export namespace BreachWatch { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BreachWatch.BreachWatchRecordStatus; - /** - * Decodes a BreachWatchRecordStatus message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns BreachWatchRecordStatus - * @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)): BreachWatch.BreachWatchRecordStatus; - - /** - * Verifies a BreachWatchRecordStatus 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 BreachWatchRecordStatus message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -65322,14 +52050,6 @@ export namespace BreachWatch { */ public static encode(message: BreachWatch.IBreachWatchUpdateResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified BreachWatchUpdateResponse message, length delimited. Does not implicitly {@link BreachWatch.BreachWatchUpdateResponse.verify|verify} messages. - * @param message BreachWatchUpdateResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: BreachWatch.IBreachWatchUpdateResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a BreachWatchUpdateResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -65340,22 +52060,6 @@ export namespace BreachWatch { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BreachWatch.BreachWatchUpdateResponse; - /** - * Decodes a BreachWatchUpdateResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns BreachWatchUpdateResponse - * @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)): BreachWatch.BreachWatchUpdateResponse; - - /** - * Verifies a BreachWatchUpdateResponse 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 BreachWatchUpdateResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -65419,14 +52123,6 @@ export namespace BreachWatch { */ public static encode(message: BreachWatch.IBreachWatchTokenRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified BreachWatchTokenRequest message, length delimited. Does not implicitly {@link BreachWatch.BreachWatchTokenRequest.verify|verify} messages. - * @param message BreachWatchTokenRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: BreachWatch.IBreachWatchTokenRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a BreachWatchTokenRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -65437,22 +52133,6 @@ export namespace BreachWatch { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BreachWatch.BreachWatchTokenRequest; - /** - * Decodes a BreachWatchTokenRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns BreachWatchTokenRequest - * @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)): BreachWatch.BreachWatchTokenRequest; - - /** - * Verifies a BreachWatchTokenRequest 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 BreachWatchTokenRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -65522,14 +52202,6 @@ export namespace BreachWatch { */ public static encode(message: BreachWatch.IBreachWatchTokenResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified BreachWatchTokenResponse message, length delimited. Does not implicitly {@link BreachWatch.BreachWatchTokenResponse.verify|verify} messages. - * @param message BreachWatchTokenResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: BreachWatch.IBreachWatchTokenResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a BreachWatchTokenResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -65540,22 +52212,6 @@ export namespace BreachWatch { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BreachWatch.BreachWatchTokenResponse; - /** - * Decodes a BreachWatchTokenResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns BreachWatchTokenResponse - * @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)): BreachWatch.BreachWatchTokenResponse; - - /** - * Verifies a BreachWatchTokenResponse 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 BreachWatchTokenResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -65631,14 +52287,6 @@ export namespace BreachWatch { */ public static encode(message: BreachWatch.IAnonymizedTokenResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified AnonymizedTokenResponse message, length delimited. Does not implicitly {@link BreachWatch.AnonymizedTokenResponse.verify|verify} messages. - * @param message AnonymizedTokenResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: BreachWatch.IAnonymizedTokenResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes an AnonymizedTokenResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -65649,22 +52297,6 @@ export namespace BreachWatch { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BreachWatch.AnonymizedTokenResponse; - /** - * Decodes an AnonymizedTokenResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns AnonymizedTokenResponse - * @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)): BreachWatch.AnonymizedTokenResponse; - - /** - * Verifies an AnonymizedTokenResponse 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 AnonymizedTokenResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -65734,14 +52366,6 @@ export namespace BreachWatch { */ public static encode(message: BreachWatch.IHashCheck, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified HashCheck message, length delimited. Does not implicitly {@link BreachWatch.HashCheck.verify|verify} messages. - * @param message HashCheck message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: BreachWatch.IHashCheck, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a HashCheck message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -65752,22 +52376,6 @@ export namespace BreachWatch { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BreachWatch.HashCheck; - /** - * Decodes a HashCheck message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns HashCheck - * @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)): BreachWatch.HashCheck; - - /** - * Verifies a HashCheck 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 HashCheck message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -65843,14 +52451,6 @@ export namespace BreachWatch { */ public static encode(message: BreachWatch.IBreachWatchStatusRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified BreachWatchStatusRequest message, length delimited. Does not implicitly {@link BreachWatch.BreachWatchStatusRequest.verify|verify} messages. - * @param message BreachWatchStatusRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: BreachWatch.IBreachWatchStatusRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a BreachWatchStatusRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -65861,22 +52461,6 @@ export namespace BreachWatch { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BreachWatch.BreachWatchStatusRequest; - /** - * Decodes a BreachWatchStatusRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns BreachWatchStatusRequest - * @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)): BreachWatch.BreachWatchStatusRequest; - - /** - * Verifies a BreachWatchStatusRequest 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 BreachWatchStatusRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -65952,14 +52536,6 @@ export namespace BreachWatch { */ public static encode(message: BreachWatch.IHashStatus, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified HashStatus message, length delimited. Does not implicitly {@link BreachWatch.HashStatus.verify|verify} messages. - * @param message HashStatus message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: BreachWatch.IHashStatus, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a HashStatus message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -65970,22 +52546,6 @@ export namespace BreachWatch { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BreachWatch.HashStatus; - /** - * Decodes a HashStatus message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns HashStatus - * @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)): BreachWatch.HashStatus; - - /** - * Verifies a HashStatus 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 HashStatus message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -66049,14 +52609,6 @@ export namespace BreachWatch { */ public static encode(message: BreachWatch.IBreachWatchStatusResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified BreachWatchStatusResponse message, length delimited. Does not implicitly {@link BreachWatch.BreachWatchStatusResponse.verify|verify} messages. - * @param message BreachWatchStatusResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: BreachWatch.IBreachWatchStatusResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a BreachWatchStatusResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -66067,22 +52619,6 @@ export namespace BreachWatch { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BreachWatch.BreachWatchStatusResponse; - /** - * Decodes a BreachWatchStatusResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns BreachWatchStatusResponse - * @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)): BreachWatch.BreachWatchStatusResponse; - - /** - * Verifies a BreachWatchStatusResponse 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 BreachWatchStatusResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -66152,14 +52688,6 @@ export namespace BreachWatch { */ public static encode(message: BreachWatch.IEnterprisePublicKeyResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified EnterprisePublicKeyResponse message, length delimited. Does not implicitly {@link BreachWatch.EnterprisePublicKeyResponse.verify|verify} messages. - * @param message EnterprisePublicKeyResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: BreachWatch.IEnterprisePublicKeyResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes an EnterprisePublicKeyResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -66170,22 +52698,6 @@ export namespace BreachWatch { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BreachWatch.EnterprisePublicKeyResponse; - /** - * Decodes an EnterprisePublicKeyResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns EnterprisePublicKeyResponse - * @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)): BreachWatch.EnterprisePublicKeyResponse; - - /** - * Verifies an EnterprisePublicKeyResponse 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 EnterprisePublicKeyResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -66249,14 +52761,6 @@ export namespace BreachWatch { */ public static encode(message: BreachWatch.IFreeScanRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified FreeScanRequest message, length delimited. Does not implicitly {@link BreachWatch.FreeScanRequest.verify|verify} messages. - * @param message FreeScanRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: BreachWatch.IFreeScanRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a FreeScanRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -66267,22 +52771,6 @@ export namespace BreachWatch { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BreachWatch.FreeScanRequest; - /** - * Decodes a FreeScanRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns FreeScanRequest - * @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)): BreachWatch.FreeScanRequest; - - /** - * Verifies a FreeScanRequest 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 FreeScanRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -66352,14 +52840,6 @@ export namespace BreachWatch { */ public static encode(message: BreachWatch.IFreeScanResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified FreeScanResponse message, length delimited. Does not implicitly {@link BreachWatch.FreeScanResponse.verify|verify} messages. - * @param message FreeScanResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: BreachWatch.IFreeScanResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a FreeScanResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -66370,22 +52850,6 @@ export namespace BreachWatch { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BreachWatch.FreeScanResponse; - /** - * Decodes a FreeScanResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns FreeScanResponse - * @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)): BreachWatch.FreeScanResponse; - - /** - * Verifies a FreeScanResponse 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 FreeScanResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -66449,14 +52913,6 @@ export namespace BreachWatch { */ public static encode(message: BreachWatch.IPaidUserRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified PaidUserRequest message, length delimited. Does not implicitly {@link BreachWatch.PaidUserRequest.verify|verify} messages. - * @param message PaidUserRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: BreachWatch.IPaidUserRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a PaidUserRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -66467,22 +52923,6 @@ export namespace BreachWatch { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BreachWatch.PaidUserRequest; - /** - * Decodes a PaidUserRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns PaidUserRequest - * @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)): BreachWatch.PaidUserRequest; - - /** - * Verifies a PaidUserRequest 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 PaidUserRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -66546,14 +52986,6 @@ export namespace BreachWatch { */ public static encode(message: BreachWatch.IPaidUserResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified PaidUserResponse message, length delimited. Does not implicitly {@link BreachWatch.PaidUserResponse.verify|verify} messages. - * @param message PaidUserResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: BreachWatch.IPaidUserResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a PaidUserResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -66564,22 +52996,6 @@ export namespace BreachWatch { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BreachWatch.PaidUserResponse; - /** - * Decodes a PaidUserResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns PaidUserResponse - * @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)): BreachWatch.PaidUserResponse; - - /** - * Verifies a PaidUserResponse 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 PaidUserResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -66643,14 +53059,6 @@ export namespace BreachWatch { */ public static encode(message: BreachWatch.IDetailedScanRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified DetailedScanRequest message, length delimited. Does not implicitly {@link BreachWatch.DetailedScanRequest.verify|verify} messages. - * @param message DetailedScanRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: BreachWatch.IDetailedScanRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a DetailedScanRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -66661,22 +53069,6 @@ export namespace BreachWatch { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BreachWatch.DetailedScanRequest; - /** - * Decodes a DetailedScanRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns DetailedScanRequest - * @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)): BreachWatch.DetailedScanRequest; - - /** - * Verifies a DetailedScanRequest 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 DetailedScanRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -66740,14 +53132,6 @@ export namespace BreachWatch { */ public static encode(message: BreachWatch.IUseOneTimeTokenRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified UseOneTimeTokenRequest message, length delimited. Does not implicitly {@link BreachWatch.UseOneTimeTokenRequest.verify|verify} messages. - * @param message UseOneTimeTokenRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: BreachWatch.IUseOneTimeTokenRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a UseOneTimeTokenRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -66758,22 +53142,6 @@ export namespace BreachWatch { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BreachWatch.UseOneTimeTokenRequest; - /** - * Decodes a UseOneTimeTokenRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns UseOneTimeTokenRequest - * @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)): BreachWatch.UseOneTimeTokenRequest; - - /** - * Verifies a UseOneTimeTokenRequest 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 UseOneTimeTokenRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -66861,14 +53229,6 @@ export namespace BreachWatch { */ public static encode(message: BreachWatch.IBreachEvent, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified BreachEvent message, length delimited. Does not implicitly {@link BreachWatch.BreachEvent.verify|verify} messages. - * @param message BreachEvent message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: BreachWatch.IBreachEvent, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a BreachEvent message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -66879,22 +53239,6 @@ export namespace BreachWatch { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BreachWatch.BreachEvent; - /** - * Decodes a BreachEvent message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns BreachEvent - * @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)): BreachWatch.BreachEvent; - - /** - * Verifies a BreachEvent 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 BreachEvent message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -66976,14 +53320,6 @@ export namespace BreachWatch { */ public static encode(message: BreachWatch.IUseOneTimeTokenResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified UseOneTimeTokenResponse message, length delimited. Does not implicitly {@link BreachWatch.UseOneTimeTokenResponse.verify|verify} messages. - * @param message UseOneTimeTokenResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: BreachWatch.IUseOneTimeTokenResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a UseOneTimeTokenResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -66994,22 +53330,6 @@ export namespace BreachWatch { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BreachWatch.UseOneTimeTokenResponse; - /** - * Decodes a UseOneTimeTokenResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns UseOneTimeTokenResponse - * @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)): BreachWatch.UseOneTimeTokenResponse; - - /** - * Verifies a UseOneTimeTokenResponse 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 UseOneTimeTokenResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -67079,14 +53399,6 @@ export namespace BreachWatch { */ public static encode(message: BreachWatch.IOneTimeUseToken, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified OneTimeUseToken message, length delimited. Does not implicitly {@link BreachWatch.OneTimeUseToken.verify|verify} messages. - * @param message OneTimeUseToken message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: BreachWatch.IOneTimeUseToken, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes an OneTimeUseToken message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -67097,22 +53409,6 @@ export namespace BreachWatch { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BreachWatch.OneTimeUseToken; - /** - * Decodes an OneTimeUseToken message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns OneTimeUseToken - * @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)): BreachWatch.OneTimeUseToken; - - /** - * Verifies an OneTimeUseToken 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 OneTimeUseToken message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -67176,14 +53472,6 @@ export namespace BreachWatch { */ public static encode(message: BreachWatch.IFreePasswordScanRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified FreePasswordScanRequest message, length delimited. Does not implicitly {@link BreachWatch.FreePasswordScanRequest.verify|verify} messages. - * @param message FreePasswordScanRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: BreachWatch.IFreePasswordScanRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a FreePasswordScanRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -67194,22 +53482,6 @@ export namespace BreachWatch { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BreachWatch.FreePasswordScanRequest; - /** - * Decodes a FreePasswordScanRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns FreePasswordScanRequest - * @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)): BreachWatch.FreePasswordScanRequest; - - /** - * Verifies a FreePasswordScanRequest 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 FreePasswordScanRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -67273,14 +53545,6 @@ export namespace BreachWatch { */ public static encode(message: BreachWatch.IFreePasswordScanResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified FreePasswordScanResponse message, length delimited. Does not implicitly {@link BreachWatch.FreePasswordScanResponse.verify|verify} messages. - * @param message FreePasswordScanResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: BreachWatch.IFreePasswordScanResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a FreePasswordScanResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -67291,22 +53555,6 @@ export namespace BreachWatch { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BreachWatch.FreePasswordScanResponse; - /** - * Decodes a FreePasswordScanResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns FreePasswordScanResponse - * @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)): BreachWatch.FreePasswordScanResponse; - - /** - * Verifies a FreePasswordScanResponse 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 FreePasswordScanResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -67380,14 +53628,6 @@ export namespace Tokens { */ public static encode(message: Tokens.IBreachWatchUpdateRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified BreachWatchUpdateRequest message, length delimited. Does not implicitly {@link Tokens.BreachWatchUpdateRequest.verify|verify} messages. - * @param message BreachWatchUpdateRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Tokens.IBreachWatchUpdateRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a BreachWatchUpdateRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -67398,22 +53638,6 @@ export namespace Tokens { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Tokens.BreachWatchUpdateRequest; - /** - * Decodes a BreachWatchUpdateRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns BreachWatchUpdateRequest - * @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)): Tokens.BreachWatchUpdateRequest; - - /** - * Verifies a BreachWatchUpdateRequest 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 BreachWatchUpdateRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -67495,14 +53719,6 @@ export namespace Tokens { */ public static encode(message: Tokens.IBreachWatchRecordRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified BreachWatchRecordRequest message, length delimited. Does not implicitly {@link Tokens.BreachWatchRecordRequest.verify|verify} messages. - * @param message BreachWatchRecordRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Tokens.IBreachWatchRecordRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a BreachWatchRecordRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -67513,22 +53729,6 @@ export namespace Tokens { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Tokens.BreachWatchRecordRequest; - /** - * Decodes a BreachWatchRecordRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns BreachWatchRecordRequest - * @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)): Tokens.BreachWatchRecordRequest; - - /** - * Verifies a BreachWatchRecordRequest 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 BreachWatchRecordRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -67610,14 +53810,6 @@ export namespace Tokens { */ public static encode(message: Tokens.IBreachWatchData, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified BreachWatchData message, length delimited. Does not implicitly {@link Tokens.BreachWatchData.verify|verify} messages. - * @param message BreachWatchData message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Tokens.IBreachWatchData, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a BreachWatchData message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -67628,22 +53820,6 @@ export namespace Tokens { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Tokens.BreachWatchData; - /** - * Decodes a BreachWatchData message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns BreachWatchData - * @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)): Tokens.BreachWatchData; - - /** - * Verifies a BreachWatchData 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 BreachWatchData message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -67725,14 +53901,6 @@ export namespace Tokens { */ public static encode(message: Tokens.IBWPassword, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified BWPassword message, length delimited. Does not implicitly {@link Tokens.BWPassword.verify|verify} messages. - * @param message BWPassword message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Tokens.IBWPassword, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a BWPassword message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -67743,22 +53911,6 @@ export namespace Tokens { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Tokens.BWPassword; - /** - * Decodes a BWPassword message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns BWPassword - * @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)): Tokens.BWPassword; - - /** - * Verifies a BWPassword 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 BWPassword message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -67837,14 +53989,6 @@ export namespace Tokens { */ public static encode(message: Tokens.IDeviceToken, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified DeviceToken message, length delimited. Does not implicitly {@link Tokens.DeviceToken.verify|verify} messages. - * @param message DeviceToken message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Tokens.IDeviceToken, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a DeviceToken message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -67855,22 +53999,6 @@ export namespace Tokens { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Tokens.DeviceToken; - /** - * Decodes a DeviceToken message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns DeviceToken - * @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)): Tokens.DeviceToken; - - /** - * Verifies a DeviceToken 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 DeviceToken message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -67952,14 +54080,6 @@ export namespace Tokens { */ public static encode(message: Tokens.ISSOLoginToken, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified SSOLoginToken message, length delimited. Does not implicitly {@link Tokens.SSOLoginToken.verify|verify} messages. - * @param message SSOLoginToken message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Tokens.ISSOLoginToken, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a SSOLoginToken message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -67970,22 +54090,6 @@ export namespace Tokens { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Tokens.SSOLoginToken; - /** - * Decodes a SSOLoginToken message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SSOLoginToken - * @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)): Tokens.SSOLoginToken; - - /** - * Verifies a SSOLoginToken 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 SSOLoginToken message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -68055,14 +54159,6 @@ export namespace Tokens { */ public static encode(message: Tokens.IPasskeyLoginToken, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified PasskeyLoginToken message, length delimited. Does not implicitly {@link Tokens.PasskeyLoginToken.verify|verify} messages. - * @param message PasskeyLoginToken message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Tokens.IPasskeyLoginToken, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a PasskeyLoginToken message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -68073,22 +54169,6 @@ export namespace Tokens { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Tokens.PasskeyLoginToken; - /** - * Decodes a PasskeyLoginToken message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns PasskeyLoginToken - * @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)): Tokens.PasskeyLoginToken; - - /** - * Verifies a PasskeyLoginToken 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 PasskeyLoginToken message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -68248,14 +54328,6 @@ export namespace Tokens { */ public static encode(message: Tokens.ILoginToken, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified LoginToken message, length delimited. Does not implicitly {@link Tokens.LoginToken.verify|verify} messages. - * @param message LoginToken message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Tokens.ILoginToken, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a LoginToken message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -68266,22 +54338,6 @@ export namespace Tokens { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Tokens.LoginToken; - /** - * Decodes a LoginToken message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns LoginToken - * @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)): Tokens.LoginToken; - - /** - * Verifies a LoginToken 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 LoginToken message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -68363,14 +54419,6 @@ export namespace Tokens { */ public static encode(message: Tokens.IDeviceApprovalToken, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified DeviceApprovalToken message, length delimited. Does not implicitly {@link Tokens.DeviceApprovalToken.verify|verify} messages. - * @param message DeviceApprovalToken message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Tokens.IDeviceApprovalToken, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a DeviceApprovalToken message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -68381,22 +54429,6 @@ export namespace Tokens { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Tokens.DeviceApprovalToken; - /** - * Decodes a DeviceApprovalToken message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns DeviceApprovalToken - * @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)): Tokens.DeviceApprovalToken; - - /** - * Verifies a DeviceApprovalToken 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 DeviceApprovalToken message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -68478,14 +54510,6 @@ export namespace Tokens { */ public static encode(message: Tokens.ITwoFactorToken, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified TwoFactorToken message, length delimited. Does not implicitly {@link Tokens.TwoFactorToken.verify|verify} messages. - * @param message TwoFactorToken message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Tokens.ITwoFactorToken, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a TwoFactorToken message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -68496,22 +54520,6 @@ export namespace Tokens { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Tokens.TwoFactorToken; - /** - * Decodes a TwoFactorToken message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns TwoFactorToken - * @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)): Tokens.TwoFactorToken; - - /** - * Verifies a TwoFactorToken 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 TwoFactorToken message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -68593,14 +54601,6 @@ export namespace Tokens { */ public static encode(message: Tokens.IBreachWatchToken, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified BreachWatchToken message, length delimited. Does not implicitly {@link Tokens.BreachWatchToken.verify|verify} messages. - * @param message BreachWatchToken message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Tokens.IBreachWatchToken, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a BreachWatchToken message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -68611,22 +54611,6 @@ export namespace Tokens { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Tokens.BreachWatchToken; - /** - * Decodes a BreachWatchToken message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns BreachWatchToken - * @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)): Tokens.BreachWatchToken; - - /** - * Verifies a BreachWatchToken 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 BreachWatchToken message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -68715,14 +54699,6 @@ export namespace Tokens { */ public static encode(message: Tokens.IAnonymizedToken, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified AnonymizedToken message, length delimited. Does not implicitly {@link Tokens.AnonymizedToken.verify|verify} messages. - * @param message AnonymizedToken message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Tokens.IAnonymizedToken, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes an AnonymizedToken message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -68733,22 +54709,6 @@ export namespace Tokens { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Tokens.AnonymizedToken; - /** - * Decodes an AnonymizedToken message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns AnonymizedToken - * @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)): Tokens.AnonymizedToken; - - /** - * Verifies an AnonymizedToken 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 AnonymizedToken message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -68818,14 +54778,6 @@ export namespace Tokens { */ public static encode(message: Tokens.ILicenseToken, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified LicenseToken message, length delimited. Does not implicitly {@link Tokens.LicenseToken.verify|verify} messages. - * @param message LicenseToken message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Tokens.ILicenseToken, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a LicenseToken message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -68836,22 +54788,6 @@ export namespace Tokens { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Tokens.LicenseToken; - /** - * Decodes a LicenseToken message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns LicenseToken - * @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)): Tokens.LicenseToken; - - /** - * Verifies a LicenseToken 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 LicenseToken message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -69054,14 +54990,6 @@ export namespace Tokens { */ public static encode(message: Tokens.ISessionToken, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified SessionToken message, length delimited. Does not implicitly {@link Tokens.SessionToken.verify|verify} messages. - * @param message SessionToken message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Tokens.ISessionToken, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a SessionToken message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -69072,22 +55000,6 @@ export namespace Tokens { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Tokens.SessionToken; - /** - * Decodes a SessionToken message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SessionToken - * @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)): Tokens.SessionToken; - - /** - * Verifies a SessionToken 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 SessionToken message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -69157,14 +55069,6 @@ export namespace Tokens { */ public static encode(message: Tokens.IUserLicenseStatus, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified UserLicenseStatus message, length delimited. Does not implicitly {@link Tokens.UserLicenseStatus.verify|verify} messages. - * @param message UserLicenseStatus message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Tokens.IUserLicenseStatus, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a UserLicenseStatus message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -69175,22 +55079,6 @@ export namespace Tokens { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Tokens.UserLicenseStatus; - /** - * Decodes a UserLicenseStatus message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns UserLicenseStatus - * @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)): Tokens.UserLicenseStatus; - - /** - * Verifies a UserLicenseStatus 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 UserLicenseStatus message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -69254,14 +55142,6 @@ export namespace Tokens { */ public static encode(message: Tokens.ICheckOutTokenResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified CheckOutTokenResponse message, length delimited. Does not implicitly {@link Tokens.CheckOutTokenResponse.verify|verify} messages. - * @param message CheckOutTokenResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Tokens.ICheckOutTokenResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a CheckOutTokenResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -69272,22 +55152,6 @@ export namespace Tokens { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Tokens.CheckOutTokenResponse; - /** - * Decodes a CheckOutTokenResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns CheckOutTokenResponse - * @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)): Tokens.CheckOutTokenResponse; - - /** - * Verifies a CheckOutTokenResponse 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 CheckOutTokenResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -69363,14 +55227,6 @@ export namespace Tokens { */ public static encode(message: Tokens.IImporterToken, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified ImporterToken message, length delimited. Does not implicitly {@link Tokens.ImporterToken.verify|verify} messages. - * @param message ImporterToken message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Tokens.IImporterToken, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes an ImporterToken message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -69381,22 +55237,6 @@ export namespace Tokens { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Tokens.ImporterToken; - /** - * Decodes an ImporterToken message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ImporterToken - * @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)): Tokens.ImporterToken; - - /** - * Verifies an ImporterToken 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 ImporterToken message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -69490,14 +55330,6 @@ export namespace Tokens { */ public static encode(message: Tokens.IApiDecryptedRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified ApiDecryptedRequest message, length delimited. Does not implicitly {@link Tokens.ApiDecryptedRequest.verify|verify} messages. - * @param message ApiDecryptedRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Tokens.IApiDecryptedRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes an ApiDecryptedRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -69508,22 +55340,6 @@ export namespace Tokens { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Tokens.ApiDecryptedRequest; - /** - * Decodes an ApiDecryptedRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ApiDecryptedRequest - * @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)): Tokens.ApiDecryptedRequest; - - /** - * Verifies an ApiDecryptedRequest 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 ApiDecryptedRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -69617,14 +55433,6 @@ export namespace Tokens { */ public static encode(message: Tokens.IChangeEmailToken, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified ChangeEmailToken message, length delimited. Does not implicitly {@link Tokens.ChangeEmailToken.verify|verify} messages. - * @param message ChangeEmailToken message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Tokens.IChangeEmailToken, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a ChangeEmailToken message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -69635,22 +55443,6 @@ export namespace Tokens { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Tokens.ChangeEmailToken; - /** - * Decodes a ChangeEmailToken message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ChangeEmailToken - * @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)): Tokens.ChangeEmailToken; - - /** - * Verifies a ChangeEmailToken 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 ChangeEmailToken message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -69738,14 +55530,6 @@ export namespace Tokens { */ public static encode(message: Tokens.IEmailVerificationToken, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified EmailVerificationToken message, length delimited. Does not implicitly {@link Tokens.EmailVerificationToken.verify|verify} messages. - * @param message EmailVerificationToken message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Tokens.IEmailVerificationToken, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes an EmailVerificationToken message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -69756,22 +55540,6 @@ export namespace Tokens { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Tokens.EmailVerificationToken; - /** - * Decodes an EmailVerificationToken message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns EmailVerificationToken - * @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)): Tokens.EmailVerificationToken; - - /** - * Verifies an EmailVerificationToken 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 EmailVerificationToken message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -69877,14 +55645,6 @@ export namespace Tokens { */ public static encode(message: Tokens.IIpAddressVerificationToken, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified IpAddressVerificationToken message, length delimited. Does not implicitly {@link Tokens.IpAddressVerificationToken.verify|verify} messages. - * @param message IpAddressVerificationToken message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Tokens.IIpAddressVerificationToken, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes an IpAddressVerificationToken message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -69895,22 +55655,6 @@ export namespace Tokens { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Tokens.IpAddressVerificationToken; - /** - * Decodes an IpAddressVerificationToken message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns IpAddressVerificationToken - * @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)): Tokens.IpAddressVerificationToken; - - /** - * Verifies an IpAddressVerificationToken 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 IpAddressVerificationToken message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -70004,14 +55748,6 @@ export namespace Tokens { */ public static encode(message: Tokens.IEnterprisePersonalAccountToken, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified EnterprisePersonalAccountToken message, length delimited. Does not implicitly {@link Tokens.EnterprisePersonalAccountToken.verify|verify} messages. - * @param message EnterprisePersonalAccountToken message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Tokens.IEnterprisePersonalAccountToken, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes an EnterprisePersonalAccountToken message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -70022,22 +55758,6 @@ export namespace Tokens { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Tokens.EnterprisePersonalAccountToken; - /** - * Decodes an EnterprisePersonalAccountToken message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns EnterprisePersonalAccountToken - * @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)): Tokens.EnterprisePersonalAccountToken; - - /** - * Verifies an EnterprisePersonalAccountToken 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 EnterprisePersonalAccountToken message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -70137,14 +55857,6 @@ export namespace Tokens { */ public static encode(message: Tokens.IUsernameVerificationToken, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified UsernameVerificationToken message, length delimited. Does not implicitly {@link Tokens.UsernameVerificationToken.verify|verify} messages. - * @param message UsernameVerificationToken message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Tokens.IUsernameVerificationToken, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a UsernameVerificationToken message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -70155,22 +55867,6 @@ export namespace Tokens { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Tokens.UsernameVerificationToken; - /** - * Decodes a UsernameVerificationToken message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns UsernameVerificationToken - * @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)): Tokens.UsernameVerificationToken; - - /** - * Verifies a UsernameVerificationToken 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 UsernameVerificationToken message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -70276,14 +55972,6 @@ export namespace Tokens { */ public static encode(message: Tokens.IDeviceVerificationToken, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified DeviceVerificationToken message, length delimited. Does not implicitly {@link Tokens.DeviceVerificationToken.verify|verify} messages. - * @param message DeviceVerificationToken message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Tokens.IDeviceVerificationToken, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a DeviceVerificationToken message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -70294,22 +55982,6 @@ export namespace Tokens { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Tokens.DeviceVerificationToken; - /** - * Decodes a DeviceVerificationToken message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns DeviceVerificationToken - * @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)): Tokens.DeviceVerificationToken; - - /** - * Verifies a DeviceVerificationToken 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 DeviceVerificationToken message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -70403,14 +56075,6 @@ export namespace Tokens { */ public static encode(message: Tokens.IReActivateDeviceApprovalRequestToken, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified ReActivateDeviceApprovalRequestToken message, length delimited. Does not implicitly {@link Tokens.ReActivateDeviceApprovalRequestToken.verify|verify} messages. - * @param message ReActivateDeviceApprovalRequestToken message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Tokens.IReActivateDeviceApprovalRequestToken, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a ReActivateDeviceApprovalRequestToken message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -70421,22 +56085,6 @@ export namespace Tokens { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Tokens.ReActivateDeviceApprovalRequestToken; - /** - * Decodes a ReActivateDeviceApprovalRequestToken message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ReActivateDeviceApprovalRequestToken - * @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)): Tokens.ReActivateDeviceApprovalRequestToken; - - /** - * Verifies a ReActivateDeviceApprovalRequestToken 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 ReActivateDeviceApprovalRequestToken message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -70536,14 +56184,6 @@ export namespace Tokens { */ public static encode(message: Tokens.ICreateUserToken, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified CreateUserToken message, length delimited. Does not implicitly {@link Tokens.CreateUserToken.verify|verify} messages. - * @param message CreateUserToken message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Tokens.ICreateUserToken, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a CreateUserToken message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -70554,22 +56194,6 @@ export namespace Tokens { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Tokens.CreateUserToken; - /** - * Decodes a CreateUserToken message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns CreateUserToken - * @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)): Tokens.CreateUserToken; - - /** - * Verifies a CreateUserToken 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 CreateUserToken message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -70657,14 +56281,6 @@ export namespace Tokens { */ public static encode(message: Tokens.IDeleteUserToken, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified DeleteUserToken message, length delimited. Does not implicitly {@link Tokens.DeleteUserToken.verify|verify} messages. - * @param message DeleteUserToken message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Tokens.IDeleteUserToken, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a DeleteUserToken message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -70675,22 +56291,6 @@ export namespace Tokens { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Tokens.DeleteUserToken; - /** - * Decodes a DeleteUserToken message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns DeleteUserToken - * @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)): Tokens.DeleteUserToken; - - /** - * Verifies a DeleteUserToken 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 DeleteUserToken message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -70791,14 +56391,6 @@ export namespace Tokens { */ public static encode(message: Tokens.IProcessToken, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified ProcessToken message, length delimited. Does not implicitly {@link Tokens.ProcessToken.verify|verify} messages. - * @param message ProcessToken message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Tokens.IProcessToken, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a ProcessToken message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -70809,22 +56401,6 @@ export namespace Tokens { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Tokens.ProcessToken; - /** - * Decodes a ProcessToken message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ProcessToken - * @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)): Tokens.ProcessToken; - - /** - * Verifies a ProcessToken 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 ProcessToken message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -70912,14 +56488,6 @@ export namespace Tokens { */ public static encode(message: Tokens.IEnterpriseDataContinuationToken, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified EnterpriseDataContinuationToken message, length delimited. Does not implicitly {@link Tokens.EnterpriseDataContinuationToken.verify|verify} messages. - * @param message EnterpriseDataContinuationToken message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Tokens.IEnterpriseDataContinuationToken, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes an EnterpriseDataContinuationToken message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -70930,22 +56498,6 @@ export namespace Tokens { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Tokens.EnterpriseDataContinuationToken; - /** - * Decodes an EnterpriseDataContinuationToken message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns EnterpriseDataContinuationToken - * @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)): Tokens.EnterpriseDataContinuationToken; - - /** - * Verifies an EnterpriseDataContinuationToken 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 EnterpriseDataContinuationToken message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -71081,14 +56633,6 @@ export namespace Tokens { */ public static encode(message: Tokens.IPosition, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified Position message, length delimited. Does not implicitly {@link Tokens.Position.verify|verify} messages. - * @param message Position message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Tokens.IPosition, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a Position message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -71099,22 +56643,6 @@ export namespace Tokens { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Tokens.Position; - /** - * Decodes a Position message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Position - * @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)): Tokens.Position; - - /** - * Verifies a Position 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 Position message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -71178,14 +56706,6 @@ export namespace Tokens { */ public static encode(message: Tokens.ILocationL, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified LocationL message, length delimited. Does not implicitly {@link Tokens.LocationL.verify|verify} messages. - * @param message LocationL message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Tokens.ILocationL, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a LocationL message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -71196,22 +56716,6 @@ export namespace Tokens { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Tokens.LocationL; - /** - * Decodes a LocationL message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns LocationL - * @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)): Tokens.LocationL; - - /** - * Verifies a LocationL 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 LocationL message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -71281,14 +56785,6 @@ export namespace Tokens { */ public static encode(message: Tokens.ILocationLL, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified LocationLL message, length delimited. Does not implicitly {@link Tokens.LocationLL.verify|verify} messages. - * @param message LocationLL message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Tokens.ILocationLL, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a LocationLL message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -71299,22 +56795,6 @@ export namespace Tokens { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Tokens.LocationLL; - /** - * Decodes a LocationLL message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns LocationLL - * @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)): Tokens.LocationLL; - - /** - * Verifies a LocationLL 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 LocationLL message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -71384,14 +56864,6 @@ export namespace Tokens { */ public static encode(message: Tokens.ILocationLI, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified LocationLI message, length delimited. Does not implicitly {@link Tokens.LocationLI.verify|verify} messages. - * @param message LocationLI message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Tokens.ILocationLI, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a LocationLI message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -71402,22 +56874,6 @@ export namespace Tokens { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Tokens.LocationLI; - /** - * Decodes a LocationLI message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns LocationLI - * @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)): Tokens.LocationLI; - - /** - * Verifies a LocationLI 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 LocationLI message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -71487,14 +56943,6 @@ export namespace Tokens { */ public static encode(message: Tokens.ILocationII, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified LocationII message, length delimited. Does not implicitly {@link Tokens.LocationII.verify|verify} messages. - * @param message LocationII message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Tokens.ILocationII, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a LocationII message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -71505,22 +56953,6 @@ export namespace Tokens { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Tokens.LocationII; - /** - * Decodes a LocationII message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns LocationII - * @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)): Tokens.LocationII; - - /** - * Verifies a LocationII 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 LocationII message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -71584,14 +57016,6 @@ export namespace Tokens { */ public static encode(message: Tokens.ILocationB, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified LocationB message, length delimited. Does not implicitly {@link Tokens.LocationB.verify|verify} messages. - * @param message LocationB message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Tokens.ILocationB, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a LocationB message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -71602,22 +57026,6 @@ export namespace Tokens { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Tokens.LocationB; - /** - * Decodes a LocationB message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns LocationB - * @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)): Tokens.LocationB; - - /** - * Verifies a LocationB 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 LocationB message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -71687,14 +57095,6 @@ export namespace Tokens { */ public static encode(message: Tokens.ILocationLB, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified LocationLB message, length delimited. Does not implicitly {@link Tokens.LocationLB.verify|verify} messages. - * @param message LocationLB message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Tokens.ILocationLB, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a LocationLB message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -71705,22 +57105,6 @@ export namespace Tokens { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Tokens.LocationLB; - /** - * Decodes a LocationLB message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns LocationLB - * @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)): Tokens.LocationLB; - - /** - * Verifies a LocationLB 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 LocationLB message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -71790,14 +57174,6 @@ export namespace Tokens { */ public static encode(message: Tokens.ILocationBI, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified LocationBI message, length delimited. Does not implicitly {@link Tokens.LocationBI.verify|verify} messages. - * @param message LocationBI message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Tokens.ILocationBI, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a LocationBI message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -71808,22 +57184,6 @@ export namespace Tokens { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Tokens.LocationBI; - /** - * Decodes a LocationBI message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns LocationBI - * @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)): Tokens.LocationBI; - - /** - * Verifies a LocationBI 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 LocationBI message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -71893,14 +57253,6 @@ export namespace Tokens { */ public static encode(message: Tokens.ILocationLS, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified LocationLS message, length delimited. Does not implicitly {@link Tokens.LocationLS.verify|verify} messages. - * @param message LocationLS message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Tokens.ILocationLS, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a LocationLS message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -71911,22 +57263,6 @@ export namespace Tokens { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Tokens.LocationLS; - /** - * Decodes a LocationLS message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns LocationLS - * @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)): Tokens.LocationLS; - - /** - * Verifies a LocationLS 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 LocationLS message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -72002,14 +57338,6 @@ export namespace Tokens { */ public static encode(message: Tokens.IEnterpriseDataRoleTeamsPageToken, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified EnterpriseDataRoleTeamsPageToken message, length delimited. Does not implicitly {@link Tokens.EnterpriseDataRoleTeamsPageToken.verify|verify} messages. - * @param message EnterpriseDataRoleTeamsPageToken message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Tokens.IEnterpriseDataRoleTeamsPageToken, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes an EnterpriseDataRoleTeamsPageToken message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -72020,22 +57348,6 @@ export namespace Tokens { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Tokens.EnterpriseDataRoleTeamsPageToken; - /** - * Decodes an EnterpriseDataRoleTeamsPageToken message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns EnterpriseDataRoleTeamsPageToken - * @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)): Tokens.EnterpriseDataRoleTeamsPageToken; - - /** - * Verifies an EnterpriseDataRoleTeamsPageToken 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 EnterpriseDataRoleTeamsPageToken message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -72105,14 +57417,6 @@ export namespace Tokens { */ public static encode(message: Tokens.IEnterpriseDataTeamsPageToken, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified EnterpriseDataTeamsPageToken message, length delimited. Does not implicitly {@link Tokens.EnterpriseDataTeamsPageToken.verify|verify} messages. - * @param message EnterpriseDataTeamsPageToken message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Tokens.IEnterpriseDataTeamsPageToken, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes an EnterpriseDataTeamsPageToken message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -72123,22 +57427,6 @@ export namespace Tokens { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Tokens.EnterpriseDataTeamsPageToken; - /** - * Decodes an EnterpriseDataTeamsPageToken message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns EnterpriseDataTeamsPageToken - * @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)): Tokens.EnterpriseDataTeamsPageToken; - - /** - * Verifies an EnterpriseDataTeamsPageToken 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 EnterpriseDataTeamsPageToken message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -72214,14 +57502,6 @@ export namespace Tokens { */ public static encode(message: Tokens.IEnterpriseDataTeamUsersPageToken, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified EnterpriseDataTeamUsersPageToken message, length delimited. Does not implicitly {@link Tokens.EnterpriseDataTeamUsersPageToken.verify|verify} messages. - * @param message EnterpriseDataTeamUsersPageToken message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Tokens.IEnterpriseDataTeamUsersPageToken, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes an EnterpriseDataTeamUsersPageToken message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -72232,22 +57512,6 @@ export namespace Tokens { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Tokens.EnterpriseDataTeamUsersPageToken; - /** - * Decodes an EnterpriseDataTeamUsersPageToken message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns EnterpriseDataTeamUsersPageToken - * @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)): Tokens.EnterpriseDataTeamUsersPageToken; - - /** - * Verifies an EnterpriseDataTeamUsersPageToken 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 EnterpriseDataTeamUsersPageToken message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -72337,14 +57601,6 @@ export namespace Tokens { */ public static encode(message: Tokens.IEnterpriseBackupUnlockPair, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified EnterpriseBackupUnlockPair message, length delimited. Does not implicitly {@link Tokens.EnterpriseBackupUnlockPair.verify|verify} messages. - * @param message EnterpriseBackupUnlockPair message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Tokens.IEnterpriseBackupUnlockPair, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes an EnterpriseBackupUnlockPair message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -72355,22 +57611,6 @@ export namespace Tokens { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Tokens.EnterpriseBackupUnlockPair; - /** - * Decodes an EnterpriseBackupUnlockPair message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns EnterpriseBackupUnlockPair - * @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)): Tokens.EnterpriseBackupUnlockPair; - - /** - * Verifies an EnterpriseBackupUnlockPair 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 EnterpriseBackupUnlockPair message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -72458,14 +57698,6 @@ export namespace Tokens { */ public static encode(message: Tokens.IEnterpriseBackupContinuationToken, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified EnterpriseBackupContinuationToken message, length delimited. Does not implicitly {@link Tokens.EnterpriseBackupContinuationToken.verify|verify} messages. - * @param message EnterpriseBackupContinuationToken message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Tokens.IEnterpriseBackupContinuationToken, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes an EnterpriseBackupContinuationToken message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -72476,22 +57708,6 @@ export namespace Tokens { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Tokens.EnterpriseBackupContinuationToken; - /** - * Decodes an EnterpriseBackupContinuationToken message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns EnterpriseBackupContinuationToken - * @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)): Tokens.EnterpriseBackupContinuationToken; - - /** - * Verifies an EnterpriseBackupContinuationToken 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 EnterpriseBackupContinuationToken message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -72573,14 +57789,6 @@ export namespace Tokens { */ public static encode(message: Tokens.IVerificationToken, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified VerificationToken message, length delimited. Does not implicitly {@link Tokens.VerificationToken.verify|verify} messages. - * @param message VerificationToken message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Tokens.IVerificationToken, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a VerificationToken message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -72591,22 +57799,6 @@ export namespace Tokens { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Tokens.VerificationToken; - /** - * Decodes a VerificationToken message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns VerificationToken - * @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)): Tokens.VerificationToken; - - /** - * Verifies a VerificationToken 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 VerificationToken message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -72688,14 +57880,6 @@ export namespace Tokens { */ public static encode(message: Tokens.IComplianceDataContinuationToken, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified ComplianceDataContinuationToken message, length delimited. Does not implicitly {@link Tokens.ComplianceDataContinuationToken.verify|verify} messages. - * @param message ComplianceDataContinuationToken message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Tokens.IComplianceDataContinuationToken, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a ComplianceDataContinuationToken message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -72706,22 +57890,6 @@ export namespace Tokens { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Tokens.ComplianceDataContinuationToken; - /** - * Decodes a ComplianceDataContinuationToken message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ComplianceDataContinuationToken - * @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)): Tokens.ComplianceDataContinuationToken; - - /** - * Verifies a ComplianceDataContinuationToken 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 ComplianceDataContinuationToken message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -72863,14 +58031,6 @@ export namespace Tokens { */ public static encode(message: Tokens.IVaultSyncDownContinuationToken, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified VaultSyncDownContinuationToken message, length delimited. Does not implicitly {@link Tokens.VaultSyncDownContinuationToken.verify|verify} messages. - * @param message VaultSyncDownContinuationToken message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Tokens.IVaultSyncDownContinuationToken, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a VaultSyncDownContinuationToken message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -72881,22 +58041,6 @@ export namespace Tokens { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Tokens.VaultSyncDownContinuationToken; - /** - * Decodes a VaultSyncDownContinuationToken message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns VaultSyncDownContinuationToken - * @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)): Tokens.VaultSyncDownContinuationToken; - - /** - * Verifies a VaultSyncDownContinuationToken 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 VaultSyncDownContinuationToken message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -73050,14 +58194,6 @@ export namespace Tokens { */ public static encode(message: Tokens.IVaultSyncDownLocations, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified VaultSyncDownLocations message, length delimited. Does not implicitly {@link Tokens.VaultSyncDownLocations.verify|verify} messages. - * @param message VaultSyncDownLocations message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Tokens.IVaultSyncDownLocations, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a VaultSyncDownLocations message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -73068,22 +58204,6 @@ export namespace Tokens { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Tokens.VaultSyncDownLocations; - /** - * Decodes a VaultSyncDownLocations message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns VaultSyncDownLocations - * @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)): Tokens.VaultSyncDownLocations; - - /** - * Verifies a VaultSyncDownLocations 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 VaultSyncDownLocations message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -73153,14 +58273,6 @@ export namespace Tokens { */ public static encode(message: Tokens.IRecordLocation, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified RecordLocation message, length delimited. Does not implicitly {@link Tokens.RecordLocation.verify|verify} messages. - * @param message RecordLocation message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Tokens.IRecordLocation, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a RecordLocation message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -73171,22 +58283,6 @@ export namespace Tokens { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Tokens.RecordLocation; - /** - * Decodes a RecordLocation message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RecordLocation - * @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)): Tokens.RecordLocation; - - /** - * Verifies a RecordLocation 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 RecordLocation message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -73256,14 +58352,6 @@ export namespace Tokens { */ public static encode(message: Tokens.IFolderLocation, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified FolderLocation message, length delimited. Does not implicitly {@link Tokens.FolderLocation.verify|verify} messages. - * @param message FolderLocation message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Tokens.IFolderLocation, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a FolderLocation message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -73274,22 +58362,6 @@ export namespace Tokens { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Tokens.FolderLocation; - /** - * Decodes a FolderLocation message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns FolderLocation - * @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)): Tokens.FolderLocation; - - /** - * Verifies a FolderLocation 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 FolderLocation message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -73359,14 +58431,6 @@ export namespace Tokens { */ public static encode(message: Tokens.ISharedFolderLocation, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified SharedFolderLocation message, length delimited. Does not implicitly {@link Tokens.SharedFolderLocation.verify|verify} messages. - * @param message SharedFolderLocation message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Tokens.ISharedFolderLocation, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a SharedFolderLocation message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -73377,22 +58441,6 @@ export namespace Tokens { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Tokens.SharedFolderLocation; - /** - * Decodes a SharedFolderLocation message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SharedFolderLocation - * @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)): Tokens.SharedFolderLocation; - - /** - * Verifies a SharedFolderLocation 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 SharedFolderLocation message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -73474,14 +58522,6 @@ export namespace Tokens { */ public static encode(message: Tokens.ISharedFolderUserLocation, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified SharedFolderUserLocation message, length delimited. Does not implicitly {@link Tokens.SharedFolderUserLocation.verify|verify} messages. - * @param message SharedFolderUserLocation message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Tokens.ISharedFolderUserLocation, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a SharedFolderUserLocation message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -73492,22 +58532,6 @@ export namespace Tokens { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Tokens.SharedFolderUserLocation; - /** - * Decodes a SharedFolderUserLocation message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SharedFolderUserLocation - * @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)): Tokens.SharedFolderUserLocation; - - /** - * Verifies a SharedFolderUserLocation 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 SharedFolderUserLocation message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -73583,14 +58607,6 @@ export namespace Tokens { */ public static encode(message: Tokens.ISharedFolderTeamLocation, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified SharedFolderTeamLocation message, length delimited. Does not implicitly {@link Tokens.SharedFolderTeamLocation.verify|verify} messages. - * @param message SharedFolderTeamLocation message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Tokens.ISharedFolderTeamLocation, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a SharedFolderTeamLocation message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -73601,22 +58617,6 @@ export namespace Tokens { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Tokens.SharedFolderTeamLocation; - /** - * Decodes a SharedFolderTeamLocation message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SharedFolderTeamLocation - * @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)): Tokens.SharedFolderTeamLocation; - - /** - * Verifies a SharedFolderTeamLocation 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 SharedFolderTeamLocation message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -73692,14 +58692,6 @@ export namespace Tokens { */ public static encode(message: Tokens.ISharedFolderRecordLocation, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified SharedFolderRecordLocation message, length delimited. Does not implicitly {@link Tokens.SharedFolderRecordLocation.verify|verify} messages. - * @param message SharedFolderRecordLocation message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Tokens.ISharedFolderRecordLocation, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a SharedFolderRecordLocation message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -73710,22 +58702,6 @@ export namespace Tokens { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Tokens.SharedFolderRecordLocation; - /** - * Decodes a SharedFolderRecordLocation message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SharedFolderRecordLocation - * @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)): Tokens.SharedFolderRecordLocation; - - /** - * Verifies a SharedFolderRecordLocation 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 SharedFolderRecordLocation message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -73801,14 +58777,6 @@ export namespace Tokens { */ public static encode(message: Tokens.ISharedFolderFolderRecordLocation, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified SharedFolderFolderRecordLocation message, length delimited. Does not implicitly {@link Tokens.SharedFolderFolderRecordLocation.verify|verify} messages. - * @param message SharedFolderFolderRecordLocation message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Tokens.ISharedFolderFolderRecordLocation, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a SharedFolderFolderRecordLocation message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -73819,22 +58787,6 @@ export namespace Tokens { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Tokens.SharedFolderFolderRecordLocation; - /** - * Decodes a SharedFolderFolderRecordLocation message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SharedFolderFolderRecordLocation - * @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)): Tokens.SharedFolderFolderRecordLocation; - - /** - * Verifies a SharedFolderFolderRecordLocation 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 SharedFolderFolderRecordLocation message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -73904,14 +58856,6 @@ export namespace Tokens { */ public static encode(message: Tokens.ITeamLocation, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified TeamLocation message, length delimited. Does not implicitly {@link Tokens.TeamLocation.verify|verify} messages. - * @param message TeamLocation message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Tokens.ITeamLocation, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a TeamLocation message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -73922,22 +58866,6 @@ export namespace Tokens { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Tokens.TeamLocation; - /** - * Decodes a TeamLocation message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns TeamLocation - * @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)): Tokens.TeamLocation; - - /** - * Verifies a TeamLocation 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 TeamLocation message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -74007,14 +58935,6 @@ export namespace Tokens { */ public static encode(message: Tokens.IUserAuthHashLocation, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified UserAuthHashLocation message, length delimited. Does not implicitly {@link Tokens.UserAuthHashLocation.verify|verify} messages. - * @param message UserAuthHashLocation message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Tokens.IUserAuthHashLocation, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a UserAuthHashLocation message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -74025,22 +58945,6 @@ export namespace Tokens { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Tokens.UserAuthHashLocation; - /** - * Decodes a UserAuthHashLocation message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns UserAuthHashLocation - * @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)): Tokens.UserAuthHashLocation; - - /** - * Verifies a UserAuthHashLocation 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 UserAuthHashLocation message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -74116,14 +59020,6 @@ export namespace Tokens { */ public static encode(message: Tokens.IFolderRecordLocation, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified FolderRecordLocation message, length delimited. Does not implicitly {@link Tokens.FolderRecordLocation.verify|verify} messages. - * @param message FolderRecordLocation message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Tokens.IFolderRecordLocation, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a FolderRecordLocation message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -74134,22 +59030,6 @@ export namespace Tokens { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Tokens.FolderRecordLocation; - /** - * Decodes a FolderRecordLocation message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns FolderRecordLocation - * @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)): Tokens.FolderRecordLocation; - - /** - * Verifies a FolderRecordLocation 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 FolderRecordLocation message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -74225,14 +59105,6 @@ export namespace Tokens { */ public static encode(message: Tokens.IRecordLinkLocation, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified RecordLinkLocation message, length delimited. Does not implicitly {@link Tokens.RecordLinkLocation.verify|verify} messages. - * @param message RecordLinkLocation message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Tokens.IRecordLinkLocation, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a RecordLinkLocation message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -74243,22 +59115,6 @@ export namespace Tokens { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Tokens.RecordLinkLocation; - /** - * Decodes a RecordLinkLocation message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RecordLinkLocation - * @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)): Tokens.RecordLinkLocation; - - /** - * Verifies a RecordLinkLocation 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 RecordLinkLocation message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -74334,14 +59190,6 @@ export namespace Tokens { */ public static encode(message: Tokens.IKsmLocation, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified KsmLocation message, length delimited. Does not implicitly {@link Tokens.KsmLocation.verify|verify} messages. - * @param message KsmLocation message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Tokens.IKsmLocation, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a KsmLocation message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -74352,22 +59200,6 @@ export namespace Tokens { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Tokens.KsmLocation; - /** - * Decodes a KsmLocation message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns KsmLocation - * @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)): Tokens.KsmLocation; - - /** - * Verifies a KsmLocation 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 KsmLocation message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -74443,14 +59275,6 @@ export namespace Tokens { */ public static encode(message: Tokens.IFolderSharedFolderLocation, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified FolderSharedFolderLocation message, length delimited. Does not implicitly {@link Tokens.FolderSharedFolderLocation.verify|verify} messages. - * @param message FolderSharedFolderLocation message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Tokens.IFolderSharedFolderLocation, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a FolderSharedFolderLocation message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -74461,22 +59285,6 @@ export namespace Tokens { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Tokens.FolderSharedFolderLocation; - /** - * Decodes a FolderSharedFolderLocation message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns FolderSharedFolderLocation - * @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)): Tokens.FolderSharedFolderLocation; - - /** - * Verifies a FolderSharedFolderLocation 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 FolderSharedFolderLocation message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -74540,14 +59348,6 @@ export namespace Tokens { */ public static encode(message: Tokens.IShareInvitationLocation, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified ShareInvitationLocation message, length delimited. Does not implicitly {@link Tokens.ShareInvitationLocation.verify|verify} messages. - * @param message ShareInvitationLocation message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Tokens.IShareInvitationLocation, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a ShareInvitationLocation message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -74558,22 +59358,6 @@ export namespace Tokens { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Tokens.ShareInvitationLocation; - /** - * Decodes a ShareInvitationLocation message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ShareInvitationLocation - * @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)): Tokens.ShareInvitationLocation; - - /** - * Verifies a ShareInvitationLocation 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 ShareInvitationLocation message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -74637,14 +59421,6 @@ export namespace Tokens { */ public static encode(message: Tokens.IUserLocation, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified UserLocation message, length delimited. Does not implicitly {@link Tokens.UserLocation.verify|verify} messages. - * @param message UserLocation message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Tokens.IUserLocation, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a UserLocation message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -74655,22 +59431,6 @@ export namespace Tokens { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Tokens.UserLocation; - /** - * Decodes a UserLocation message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns UserLocation - * @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)): Tokens.UserLocation; - - /** - * Verifies a UserLocation 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 UserLocation message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -74740,14 +59500,6 @@ export namespace Tokens { */ public static encode(message: Tokens.IKeyCloakToken, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified KeyCloakToken message, length delimited. Does not implicitly {@link Tokens.KeyCloakToken.verify|verify} messages. - * @param message KeyCloakToken message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Tokens.IKeyCloakToken, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a KeyCloakToken message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -74758,22 +59510,6 @@ export namespace Tokens { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Tokens.KeyCloakToken; - /** - * Decodes a KeyCloakToken message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns KeyCloakToken - * @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)): Tokens.KeyCloakToken; - - /** - * Verifies a KeyCloakToken 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 KeyCloakToken message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -74837,14 +59573,6 @@ export namespace Tokens { */ public static encode(message: Tokens.IIPWhiteList, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified IPWhiteList message, length delimited. Does not implicitly {@link Tokens.IPWhiteList.verify|verify} messages. - * @param message IPWhiteList message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Tokens.IIPWhiteList, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a IPWhiteList message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -74855,22 +59583,6 @@ export namespace Tokens { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Tokens.IPWhiteList; - /** - * Decodes a IPWhiteList message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns IPWhiteList - * @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)): Tokens.IPWhiteList; - - /** - * Verifies a IPWhiteList 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 IPWhiteList message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -74946,14 +59658,6 @@ export namespace Tokens { */ public static encode(message: Tokens.IIncrementalSecurityDataContToken, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified IncrementalSecurityDataContToken message, length delimited. Does not implicitly {@link Tokens.IncrementalSecurityDataContToken.verify|verify} messages. - * @param message IncrementalSecurityDataContToken message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Tokens.IIncrementalSecurityDataContToken, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes an IncrementalSecurityDataContToken message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -74964,22 +59668,6 @@ export namespace Tokens { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Tokens.IncrementalSecurityDataContToken; - /** - * Decodes an IncrementalSecurityDataContToken message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns IncrementalSecurityDataContToken - * @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)): Tokens.IncrementalSecurityDataContToken; - - /** - * Verifies an IncrementalSecurityDataContToken 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 IncrementalSecurityDataContToken message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -75065,14 +59753,6 @@ export namespace ExternalService { */ public static encode(message: ExternalService.ISaveSettingsRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified SaveSettingsRequest message, length delimited. Does not implicitly {@link ExternalService.SaveSettingsRequest.verify|verify} messages. - * @param message SaveSettingsRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: ExternalService.ISaveSettingsRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a SaveSettingsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -75083,22 +59763,6 @@ export namespace ExternalService { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ExternalService.SaveSettingsRequest; - /** - * Decodes a SaveSettingsRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SaveSettingsRequest - * @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)): ExternalService.SaveSettingsRequest; - - /** - * Verifies a SaveSettingsRequest 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 SaveSettingsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -75168,14 +59832,6 @@ export namespace ExternalService { */ public static encode(message: ExternalService.IGetUsersRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified GetUsersRequest message, length delimited. Does not implicitly {@link ExternalService.GetUsersRequest.verify|verify} messages. - * @param message GetUsersRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: ExternalService.IGetUsersRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a GetUsersRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -75186,22 +59842,6 @@ export namespace ExternalService { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ExternalService.GetUsersRequest; - /** - * Decodes a GetUsersRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetUsersRequest - * @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)): ExternalService.GetUsersRequest; - - /** - * Verifies a GetUsersRequest 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 GetUsersRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -75298,14 +59938,6 @@ export namespace ExternalService { */ public static encode(message: ExternalService.IUser, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified User message, length delimited. Does not implicitly {@link ExternalService.User.verify|verify} messages. - * @param message User message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: ExternalService.IUser, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a User message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -75316,22 +59948,6 @@ export namespace ExternalService { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ExternalService.User; - /** - * Decodes a User message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns User - * @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)): ExternalService.User; - - /** - * Verifies a User 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 User message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -75395,14 +60011,6 @@ export namespace ExternalService { */ public static encode(message: ExternalService.IGetUsersResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified GetUsersResponse message, length delimited. Does not implicitly {@link ExternalService.GetUsersResponse.verify|verify} messages. - * @param message GetUsersResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: ExternalService.IGetUsersResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a GetUsersResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -75413,22 +60021,6 @@ export namespace ExternalService { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ExternalService.GetUsersResponse; - /** - * Decodes a GetUsersResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetUsersResponse - * @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)): ExternalService.GetUsersResponse; - - /** - * Verifies a GetUsersResponse 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 GetUsersResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -75508,14 +60100,6 @@ export namespace Push { */ public static encode(message: Push.IUserRegistrationRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified UserRegistrationRequest message, length delimited. Does not implicitly {@link Push.UserRegistrationRequest.verify|verify} messages. - * @param message UserRegistrationRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Push.IUserRegistrationRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a UserRegistrationRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -75526,22 +60110,6 @@ export namespace Push { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Push.UserRegistrationRequest; - /** - * Decodes a UserRegistrationRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns UserRegistrationRequest - * @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)): Push.UserRegistrationRequest; - - /** - * Verifies a UserRegistrationRequest 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 UserRegistrationRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -75649,14 +60217,6 @@ export namespace Push { */ public static encode(message: Push.IKAToPushServerRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified KAToPushServerRequest message, length delimited. Does not implicitly {@link Push.KAToPushServerRequest.verify|verify} messages. - * @param message KAToPushServerRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Push.IKAToPushServerRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a KAToPushServerRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -75667,22 +60227,6 @@ export namespace Push { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Push.KAToPushServerRequest; - /** - * Decodes a KAToPushServerRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns KAToPushServerRequest - * @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)): Push.KAToPushServerRequest; - - /** - * Verifies a KAToPushServerRequest 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 KAToPushServerRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -75758,14 +60302,6 @@ export namespace Push { */ public static encode(message: Push.IWssConnectionRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified WssConnectionRequest message, length delimited. Does not implicitly {@link Push.WssConnectionRequest.verify|verify} messages. - * @param message WssConnectionRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Push.IWssConnectionRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a WssConnectionRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -75776,22 +60312,6 @@ export namespace Push { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Push.WssConnectionRequest; - /** - * Decodes a WssConnectionRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns WssConnectionRequest - * @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)): Push.WssConnectionRequest; - - /** - * Verifies a WssConnectionRequest 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 WssConnectionRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -75861,14 +60381,6 @@ export namespace Push { */ public static encode(message: Push.IWssClientResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified WssClientResponse message, length delimited. Does not implicitly {@link Push.WssClientResponse.verify|verify} messages. - * @param message WssClientResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Push.IWssClientResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a WssClientResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -75879,22 +60391,6 @@ export namespace Push { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Push.WssClientResponse; - /** - * Decodes a WssClientResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns WssClientResponse - * @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)): Push.WssClientResponse; - - /** - * Verifies a WssClientResponse 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 WssClientResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -75976,14 +60472,6 @@ export namespace Push { */ public static encode(message: Push.IPushServerDeviceRegistrationRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified PushServerDeviceRegistrationRequest message, length delimited. Does not implicitly {@link Push.PushServerDeviceRegistrationRequest.verify|verify} messages. - * @param message PushServerDeviceRegistrationRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Push.IPushServerDeviceRegistrationRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a PushServerDeviceRegistrationRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -75994,22 +60482,6 @@ export namespace Push { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Push.PushServerDeviceRegistrationRequest; - /** - * Decodes a PushServerDeviceRegistrationRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns PushServerDeviceRegistrationRequest - * @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)): Push.PushServerDeviceRegistrationRequest; - - /** - * Verifies a PushServerDeviceRegistrationRequest 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 PushServerDeviceRegistrationRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -76079,14 +60551,6 @@ export namespace Push { */ public static encode(message: Push.ISnsMessage, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified SnsMessage message, length delimited. Does not implicitly {@link Push.SnsMessage.verify|verify} messages. - * @param message SnsMessage message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Push.ISnsMessage, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a SnsMessage message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -76097,22 +60561,6 @@ export namespace Push { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Push.SnsMessage; - /** - * Decodes a SnsMessage message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SnsMessage - * @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)): Push.SnsMessage; - - /** - * Verifies a SnsMessage 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 SnsMessage message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -76186,14 +60634,6 @@ export namespace ServiceLogger { */ public static encode(message: ServiceLogger.IIdRange, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified IdRange message, length delimited. Does not implicitly {@link ServiceLogger.IdRange.verify|verify} messages. - * @param message IdRange message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: ServiceLogger.IIdRange, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes an IdRange message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -76204,22 +60644,6 @@ export namespace ServiceLogger { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ServiceLogger.IdRange; - /** - * Decodes an IdRange message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns IdRange - * @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)): ServiceLogger.IdRange; - - /** - * Verifies an IdRange 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 IdRange message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -76295,14 +60719,6 @@ export namespace ServiceLogger { */ public static encode(message: ServiceLogger.IServiceInfoSpecifier, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified ServiceInfoSpecifier message, length delimited. Does not implicitly {@link ServiceLogger.ServiceInfoSpecifier.verify|verify} messages. - * @param message ServiceInfoSpecifier message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: ServiceLogger.IServiceInfoSpecifier, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a ServiceInfoSpecifier message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -76313,22 +60729,6 @@ export namespace ServiceLogger { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ServiceLogger.ServiceInfoSpecifier; - /** - * Decodes a ServiceInfoSpecifier message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ServiceInfoSpecifier - * @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)): ServiceLogger.ServiceInfoSpecifier; - - /** - * Verifies a ServiceInfoSpecifier 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 ServiceInfoSpecifier message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -76392,14 +60792,6 @@ export namespace ServiceLogger { */ public static encode(message: ServiceLogger.IServiceInfoRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified ServiceInfoRequest message, length delimited. Does not implicitly {@link ServiceLogger.ServiceInfoRequest.verify|verify} messages. - * @param message ServiceInfoRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: ServiceLogger.IServiceInfoRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a ServiceInfoRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -76410,22 +60802,6 @@ export namespace ServiceLogger { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ServiceLogger.ServiceInfoRequest; - /** - * Decodes a ServiceInfoRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ServiceInfoRequest - * @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)): ServiceLogger.ServiceInfoRequest; - - /** - * Verifies a ServiceInfoRequest 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 ServiceInfoRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -76513,14 +60889,6 @@ export namespace ServiceLogger { */ public static encode(message: ServiceLogger.IServiceInfoRecord, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified ServiceInfoRecord message, length delimited. Does not implicitly {@link ServiceLogger.ServiceInfoRecord.verify|verify} messages. - * @param message ServiceInfoRecord message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: ServiceLogger.IServiceInfoRecord, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a ServiceInfoRecord message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -76531,22 +60899,6 @@ export namespace ServiceLogger { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ServiceLogger.ServiceInfoRecord; - /** - * Decodes a ServiceInfoRecord message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ServiceInfoRecord - * @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)): ServiceLogger.ServiceInfoRecord; - - /** - * Verifies a ServiceInfoRecord 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 ServiceInfoRecord message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -76610,14 +60962,6 @@ export namespace ServiceLogger { */ public static encode(message: ServiceLogger.IServiceInfoResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified ServiceInfoResponse message, length delimited. Does not implicitly {@link ServiceLogger.ServiceInfoResponse.verify|verify} messages. - * @param message ServiceInfoResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: ServiceLogger.IServiceInfoResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a ServiceInfoResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -76628,22 +60972,6 @@ export namespace ServiceLogger { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ServiceLogger.ServiceInfoResponse; - /** - * Decodes a ServiceInfoResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ServiceInfoResponse - * @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)): ServiceLogger.ServiceInfoResponse; - - /** - * Verifies a ServiceInfoResponse 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 ServiceInfoResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -76707,14 +61035,6 @@ export namespace ServiceLogger { */ public static encode(message: ServiceLogger.IServiceInfoUpdateRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified ServiceInfoUpdateRequest message, length delimited. Does not implicitly {@link ServiceLogger.ServiceInfoUpdateRequest.verify|verify} messages. - * @param message ServiceInfoUpdateRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: ServiceLogger.IServiceInfoUpdateRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a ServiceInfoUpdateRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -76725,22 +61045,6 @@ export namespace ServiceLogger { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ServiceLogger.ServiceInfoUpdateRequest; - /** - * Decodes a ServiceInfoUpdateRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ServiceInfoUpdateRequest - * @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)): ServiceLogger.ServiceInfoUpdateRequest; - - /** - * Verifies a ServiceInfoUpdateRequest 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 ServiceInfoUpdateRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -76822,14 +61126,6 @@ export namespace ServiceLogger { */ public static encode(message: ServiceLogger.IServiceRuleSpecifier, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified ServiceRuleSpecifier message, length delimited. Does not implicitly {@link ServiceLogger.ServiceRuleSpecifier.verify|verify} messages. - * @param message ServiceRuleSpecifier message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: ServiceLogger.IServiceRuleSpecifier, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a ServiceRuleSpecifier message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -76840,22 +61136,6 @@ export namespace ServiceLogger { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ServiceLogger.ServiceRuleSpecifier; - /** - * Decodes a ServiceRuleSpecifier message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ServiceRuleSpecifier - * @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)): ServiceLogger.ServiceRuleSpecifier; - - /** - * Verifies a ServiceRuleSpecifier 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 ServiceRuleSpecifier message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -76919,14 +61199,6 @@ export namespace ServiceLogger { */ public static encode(message: ServiceLogger.IServiceRuleRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified ServiceRuleRequest message, length delimited. Does not implicitly {@link ServiceLogger.ServiceRuleRequest.verify|verify} messages. - * @param message ServiceRuleRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: ServiceLogger.IServiceRuleRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a ServiceRuleRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -76937,22 +61209,6 @@ export namespace ServiceLogger { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ServiceLogger.ServiceRuleRequest; - /** - * Decodes a ServiceRuleRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ServiceRuleRequest - * @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)): ServiceLogger.ServiceRuleRequest; - - /** - * Verifies a ServiceRuleRequest 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 ServiceRuleRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -77058,14 +61314,6 @@ export namespace ServiceLogger { */ public static encode(message: ServiceLogger.IServiceRuleRecord, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified ServiceRuleRecord message, length delimited. Does not implicitly {@link ServiceLogger.ServiceRuleRecord.verify|verify} messages. - * @param message ServiceRuleRecord message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: ServiceLogger.IServiceRuleRecord, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a ServiceRuleRecord message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -77076,22 +61324,6 @@ export namespace ServiceLogger { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ServiceLogger.ServiceRuleRecord; - /** - * Decodes a ServiceRuleRecord message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ServiceRuleRecord - * @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)): ServiceLogger.ServiceRuleRecord; - - /** - * Verifies a ServiceRuleRecord 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 ServiceRuleRecord message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -77155,14 +61387,6 @@ export namespace ServiceLogger { */ public static encode(message: ServiceLogger.IServiceRuleResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified ServiceRuleResponse message, length delimited. Does not implicitly {@link ServiceLogger.ServiceRuleResponse.verify|verify} messages. - * @param message ServiceRuleResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: ServiceLogger.IServiceRuleResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a ServiceRuleResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -77173,22 +61397,6 @@ export namespace ServiceLogger { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ServiceLogger.ServiceRuleResponse; - /** - * Decodes a ServiceRuleResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ServiceRuleResponse - * @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)): ServiceLogger.ServiceRuleResponse; - - /** - * Verifies a ServiceRuleResponse 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 ServiceRuleResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -77252,14 +61460,6 @@ export namespace ServiceLogger { */ public static encode(message: ServiceLogger.IServiceRuleUpdateRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified ServiceRuleUpdateRequest message, length delimited. Does not implicitly {@link ServiceLogger.ServiceRuleUpdateRequest.verify|verify} messages. - * @param message ServiceRuleUpdateRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: ServiceLogger.IServiceRuleUpdateRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a ServiceRuleUpdateRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -77270,22 +61470,6 @@ export namespace ServiceLogger { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ServiceLogger.ServiceRuleUpdateRequest; - /** - * Decodes a ServiceRuleUpdateRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ServiceRuleUpdateRequest - * @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)): ServiceLogger.ServiceRuleUpdateRequest; - - /** - * Verifies a ServiceRuleUpdateRequest 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 ServiceRuleUpdateRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -77379,14 +61563,6 @@ export namespace ServiceLogger { */ public static encode(message: ServiceLogger.IServiceLogSpecifier, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified ServiceLogSpecifier message, length delimited. Does not implicitly {@link ServiceLogger.ServiceLogSpecifier.verify|verify} messages. - * @param message ServiceLogSpecifier message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: ServiceLogger.IServiceLogSpecifier, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a ServiceLogSpecifier message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -77397,22 +61573,6 @@ export namespace ServiceLogger { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ServiceLogger.ServiceLogSpecifier; - /** - * Decodes a ServiceLogSpecifier message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ServiceLogSpecifier - * @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)): ServiceLogger.ServiceLogSpecifier; - - /** - * Verifies a ServiceLogSpecifier 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 ServiceLogSpecifier message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -77476,14 +61636,6 @@ export namespace ServiceLogger { */ public static encode(message: ServiceLogger.IServiceLogGetRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified ServiceLogGetRequest message, length delimited. Does not implicitly {@link ServiceLogger.ServiceLogGetRequest.verify|verify} messages. - * @param message ServiceLogGetRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: ServiceLogger.IServiceLogGetRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a ServiceLogGetRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -77494,22 +61646,6 @@ export namespace ServiceLogger { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ServiceLogger.ServiceLogGetRequest; - /** - * Decodes a ServiceLogGetRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ServiceLogGetRequest - * @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)): ServiceLogger.ServiceLogGetRequest; - - /** - * Verifies a ServiceLogGetRequest 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 ServiceLogGetRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -77615,14 +61751,6 @@ export namespace ServiceLogger { */ public static encode(message: ServiceLogger.IServiceLogRecord, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified ServiceLogRecord message, length delimited. Does not implicitly {@link ServiceLogger.ServiceLogRecord.verify|verify} messages. - * @param message ServiceLogRecord message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: ServiceLogger.IServiceLogRecord, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a ServiceLogRecord message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -77633,22 +61761,6 @@ export namespace ServiceLogger { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ServiceLogger.ServiceLogRecord; - /** - * Decodes a ServiceLogRecord message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ServiceLogRecord - * @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)): ServiceLogger.ServiceLogRecord; - - /** - * Verifies a ServiceLogRecord 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 ServiceLogRecord message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -77712,14 +61824,6 @@ export namespace ServiceLogger { */ public static encode(message: ServiceLogger.IServiceLogAddRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified ServiceLogAddRequest message, length delimited. Does not implicitly {@link ServiceLogger.ServiceLogAddRequest.verify|verify} messages. - * @param message ServiceLogAddRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: ServiceLogger.IServiceLogAddRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a ServiceLogAddRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -77730,22 +61834,6 @@ export namespace ServiceLogger { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ServiceLogger.ServiceLogAddRequest; - /** - * Decodes a ServiceLogAddRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ServiceLogAddRequest - * @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)): ServiceLogger.ServiceLogAddRequest; - - /** - * Verifies a ServiceLogAddRequest 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 ServiceLogAddRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -77809,14 +61897,6 @@ export namespace ServiceLogger { */ public static encode(message: ServiceLogger.IServiceLogResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified ServiceLogResponse message, length delimited. Does not implicitly {@link ServiceLogger.ServiceLogResponse.verify|verify} messages. - * @param message ServiceLogResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: ServiceLogger.IServiceLogResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a ServiceLogResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -77827,22 +61907,6 @@ export namespace ServiceLogger { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ServiceLogger.ServiceLogResponse; - /** - * Decodes a ServiceLogResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ServiceLogResponse - * @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)): ServiceLogger.ServiceLogResponse; - - /** - * Verifies a ServiceLogResponse 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 ServiceLogResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -77930,14 +61994,6 @@ export namespace ServiceLogger { */ public static encode(message: ServiceLogger.IServiceLogClearRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified ServiceLogClearRequest message, length delimited. Does not implicitly {@link ServiceLogger.ServiceLogClearRequest.verify|verify} messages. - * @param message ServiceLogClearRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: ServiceLogger.IServiceLogClearRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a ServiceLogClearRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -77948,22 +62004,6 @@ export namespace ServiceLogger { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ServiceLogger.ServiceLogClearRequest; - /** - * Decodes a ServiceLogClearRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ServiceLogClearRequest - * @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)): ServiceLogger.ServiceLogClearRequest; - - /** - * Verifies a ServiceLogClearRequest 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 ServiceLogClearRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -78051,14 +62091,6 @@ export namespace ServiceLogger { */ public static encode(message: ServiceLogger.IServiceLogClearResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified ServiceLogClearResponse message, length delimited. Does not implicitly {@link ServiceLogger.ServiceLogClearResponse.verify|verify} messages. - * @param message ServiceLogClearResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: ServiceLogger.IServiceLogClearResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a ServiceLogClearResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -78069,22 +62101,6 @@ export namespace ServiceLogger { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ServiceLogger.ServiceLogClearResponse; - /** - * Decodes a ServiceLogClearResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ServiceLogClearResponse - * @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)): ServiceLogger.ServiceLogClearResponse; - - /** - * Verifies a ServiceLogClearResponse 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 ServiceLogClearResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -78170,14 +62186,6 @@ export namespace Vault { */ public static encode(message: Vault.ISyncDownRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified SyncDownRequest message, length delimited. Does not implicitly {@link Vault.SyncDownRequest.verify|verify} messages. - * @param message SyncDownRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Vault.ISyncDownRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a SyncDownRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -78188,22 +62196,6 @@ export namespace Vault { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Vault.SyncDownRequest; - /** - * Decodes a SyncDownRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SyncDownRequest - * @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)): Vault.SyncDownRequest; - - /** - * Verifies a SyncDownRequest 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 SyncDownRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -78549,14 +62541,6 @@ export namespace Vault { */ public static encode(message: Vault.ISyncDownResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified SyncDownResponse message, length delimited. Does not implicitly {@link Vault.SyncDownResponse.verify|verify} messages. - * @param message SyncDownResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Vault.ISyncDownResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a SyncDownResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -78567,22 +62551,6 @@ export namespace Vault { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Vault.SyncDownResponse; - /** - * Decodes a SyncDownResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SyncDownResponse - * @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)): Vault.SyncDownResponse; - - /** - * Verifies a SyncDownResponse 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 SyncDownResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -78682,14 +62650,6 @@ export namespace Vault { */ public static encode(message: Vault.IDriveRecord, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified DriveRecord message, length delimited. Does not implicitly {@link Vault.DriveRecord.verify|verify} messages. - * @param message DriveRecord message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Vault.IDriveRecord, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a DriveRecord message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -78700,22 +62660,6 @@ export namespace Vault { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Vault.DriveRecord; - /** - * Decodes a DriveRecord message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns DriveRecord - * @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)): Vault.DriveRecord; - - /** - * Verifies a DriveRecord 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 DriveRecord message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -78791,14 +62735,6 @@ export namespace Vault { */ public static encode(message: Vault.IFolderSharingState, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified FolderSharingState message, length delimited. Does not implicitly {@link Vault.FolderSharingState.verify|verify} messages. - * @param message FolderSharingState message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Vault.IFolderSharingState, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a FolderSharingState message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -78809,22 +62745,6 @@ export namespace Vault { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Vault.FolderSharingState; - /** - * Decodes a FolderSharingState message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns FolderSharingState - * @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)): Vault.FolderSharingState; - - /** - * Verifies a FolderSharingState 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 FolderSharingState message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -79008,14 +62928,6 @@ export namespace Vault { */ public static encode(message: Vault.IKeeperDriveData, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified KeeperDriveData message, length delimited. Does not implicitly {@link Vault.KeeperDriveData.verify|verify} messages. - * @param message KeeperDriveData message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Vault.IKeeperDriveData, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a KeeperDriveData message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -79026,22 +62938,6 @@ export namespace Vault { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Vault.KeeperDriveData; - /** - * Decodes a KeeperDriveData message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns KeeperDriveData - * @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)): Vault.KeeperDriveData; - - /** - * Verifies a KeeperDriveData 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 KeeperDriveData message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -79135,14 +63031,6 @@ export namespace Vault { */ public static encode(message: Vault.IUserFolder, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified UserFolder message, length delimited. Does not implicitly {@link Vault.UserFolder.verify|verify} messages. - * @param message UserFolder message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Vault.IUserFolder, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a UserFolder message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -79153,22 +63041,6 @@ export namespace Vault { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Vault.UserFolder; - /** - * Decodes a UserFolder message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns UserFolder - * @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)): Vault.UserFolder; - - /** - * Verifies a UserFolder 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 UserFolder message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -79304,14 +63176,6 @@ export namespace Vault { */ public static encode(message: Vault.ISharedFolder, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified SharedFolder message, length delimited. Does not implicitly {@link Vault.SharedFolder.verify|verify} messages. - * @param message SharedFolder message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Vault.ISharedFolder, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a SharedFolder message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -79322,22 +63186,6 @@ export namespace Vault { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Vault.SharedFolder; - /** - * Decodes a SharedFolder message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SharedFolder - * @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)): Vault.SharedFolder; - - /** - * Verifies a SharedFolder 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 SharedFolder message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -79413,14 +63261,6 @@ export namespace Vault { */ public static encode(message: Vault.IUserFolderSharedFolder, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified UserFolderSharedFolder message, length delimited. Does not implicitly {@link Vault.UserFolderSharedFolder.verify|verify} messages. - * @param message UserFolderSharedFolder message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Vault.IUserFolderSharedFolder, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a UserFolderSharedFolder message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -79431,22 +63271,6 @@ export namespace Vault { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Vault.UserFolderSharedFolder; - /** - * Decodes a UserFolderSharedFolder message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns UserFolderSharedFolder - * @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)): Vault.UserFolderSharedFolder; - - /** - * Verifies a UserFolderSharedFolder 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 UserFolderSharedFolder message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -79546,14 +63370,6 @@ export namespace Vault { */ public static encode(message: Vault.ISharedFolderFolder, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified SharedFolderFolder message, length delimited. Does not implicitly {@link Vault.SharedFolderFolder.verify|verify} messages. - * @param message SharedFolderFolder message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Vault.ISharedFolderFolder, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a SharedFolderFolder message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -79564,22 +63380,6 @@ export namespace Vault { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Vault.SharedFolderFolder; - /** - * Decodes a SharedFolderFolder message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SharedFolderFolder - * @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)): Vault.SharedFolderFolder; - - /** - * Verifies a SharedFolderFolder 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 SharedFolderFolder message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -79655,14 +63455,6 @@ export namespace Vault { */ public static encode(message: Vault.ISharedFolderKey, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified SharedFolderKey message, length delimited. Does not implicitly {@link Vault.SharedFolderKey.verify|verify} messages. - * @param message SharedFolderKey message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Vault.ISharedFolderKey, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a SharedFolderKey message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -79673,22 +63465,6 @@ export namespace Vault { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Vault.SharedFolderKey; - /** - * Decodes a SharedFolderKey message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SharedFolderKey - * @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)): Vault.SharedFolderKey; - - /** - * Verifies a SharedFolderKey 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 SharedFolderKey message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -79818,14 +63594,6 @@ export namespace Vault { */ public static encode(message: Vault.ITeam, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified Team message, length delimited. Does not implicitly {@link Vault.Team.verify|verify} messages. - * @param message Team message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Vault.ITeam, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a Team message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -79836,22 +63604,6 @@ export namespace Vault { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Vault.Team; - /** - * Decodes a Team message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Team - * @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)): Vault.Team; - - /** - * Verifies a Team 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 Team message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -79969,14 +63721,6 @@ export namespace Vault { */ public static encode(message: Vault.IRecord, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified Record message, length delimited. Does not implicitly {@link Vault.Record.verify|verify} messages. - * @param message Record message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Vault.IRecord, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a Record message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -79987,22 +63731,6 @@ export namespace Vault { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Vault.Record; - /** - * Decodes a Record message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Record - * @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)): Vault.Record; - - /** - * Verifies a Record 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 Record message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -80084,14 +63812,6 @@ export namespace Vault { */ public static encode(message: Vault.IRecordLink, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified RecordLink message, length delimited. Does not implicitly {@link Vault.RecordLink.verify|verify} messages. - * @param message RecordLink message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Vault.IRecordLink, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a RecordLink message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -80102,22 +63822,6 @@ export namespace Vault { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Vault.RecordLink; - /** - * Decodes a RecordLink message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RecordLink - * @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)): Vault.RecordLink; - - /** - * Verifies a RecordLink 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 RecordLink message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -80193,14 +63897,6 @@ export namespace Vault { */ public static encode(message: Vault.IUserFolderRecord, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified UserFolderRecord message, length delimited. Does not implicitly {@link Vault.UserFolderRecord.verify|verify} messages. - * @param message UserFolderRecord message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Vault.IUserFolderRecord, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a UserFolderRecord message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -80211,22 +63907,6 @@ export namespace Vault { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Vault.UserFolderRecord; - /** - * Decodes a UserFolderRecord message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns UserFolderRecord - * @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)): Vault.UserFolderRecord; - - /** - * Verifies a UserFolderRecord 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 UserFolderRecord message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -80308,14 +63988,6 @@ export namespace Vault { */ public static encode(message: Vault.ISharedFolderFolderRecord, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified SharedFolderFolderRecord message, length delimited. Does not implicitly {@link Vault.SharedFolderFolderRecord.verify|verify} messages. - * @param message SharedFolderFolderRecord message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Vault.ISharedFolderFolderRecord, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a SharedFolderFolderRecord message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -80326,22 +63998,6 @@ export namespace Vault { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Vault.SharedFolderFolderRecord; - /** - * Decodes a SharedFolderFolderRecord message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SharedFolderFolderRecord - * @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)): Vault.SharedFolderFolderRecord; - - /** - * Verifies a SharedFolderFolderRecord 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 SharedFolderFolderRecord message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -80411,14 +64067,6 @@ export namespace Vault { */ public static encode(message: Vault.INonSharedData, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified NonSharedData message, length delimited. Does not implicitly {@link Vault.NonSharedData.verify|verify} messages. - * @param message NonSharedData message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Vault.INonSharedData, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a NonSharedData message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -80429,22 +64077,6 @@ export namespace Vault { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Vault.NonSharedData; - /** - * Decodes a NonSharedData message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns NonSharedData - * @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)): Vault.NonSharedData; - - /** - * Verifies a NonSharedData 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 NonSharedData message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -80562,14 +64194,6 @@ export namespace Vault { */ public static encode(message: Vault.IRecordMetaData, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified RecordMetaData message, length delimited. Does not implicitly {@link Vault.RecordMetaData.verify|verify} messages. - * @param message RecordMetaData message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Vault.IRecordMetaData, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a RecordMetaData message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -80580,22 +64204,6 @@ export namespace Vault { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Vault.RecordMetaData; - /** - * Decodes a RecordMetaData message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RecordMetaData - * @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)): Vault.RecordMetaData; - - /** - * Verifies a RecordMetaData 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 RecordMetaData message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -80665,14 +64273,6 @@ export namespace Vault { */ public static encode(message: Vault.ISharingChange, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified SharingChange message, length delimited. Does not implicitly {@link Vault.SharingChange.verify|verify} messages. - * @param message SharingChange message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Vault.ISharingChange, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a SharingChange message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -80683,22 +64283,6 @@ export namespace Vault { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Vault.SharingChange; - /** - * Decodes a SharingChange message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SharingChange - * @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)): Vault.SharingChange; - - /** - * Verifies a SharingChange 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 SharingChange message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -80774,14 +64358,6 @@ export namespace Vault { */ public static encode(message: Vault.IProfile, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified Profile message, length delimited. Does not implicitly {@link Vault.Profile.verify|verify} messages. - * @param message Profile message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Vault.IProfile, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a Profile message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -80792,22 +64368,6 @@ export namespace Vault { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Vault.Profile; - /** - * Decodes a Profile message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Profile - * @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)): Vault.Profile; - - /** - * Verifies a Profile 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 Profile message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -80877,14 +64437,6 @@ export namespace Vault { */ public static encode(message: Vault.IProfilePic, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified ProfilePic message, length delimited. Does not implicitly {@link Vault.ProfilePic.verify|verify} messages. - * @param message ProfilePic message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Vault.IProfilePic, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a ProfilePic message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -80895,22 +64447,6 @@ export namespace Vault { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Vault.ProfilePic; - /** - * Decodes a ProfilePic message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ProfilePic - * @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)): Vault.ProfilePic; - - /** - * Verifies a ProfilePic 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 ProfilePic message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -80992,14 +64528,6 @@ export namespace Vault { */ public static encode(message: Vault.IPendingTeamMember, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified PendingTeamMember message, length delimited. Does not implicitly {@link Vault.PendingTeamMember.verify|verify} messages. - * @param message PendingTeamMember message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Vault.IPendingTeamMember, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a PendingTeamMember message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -81010,22 +64538,6 @@ export namespace Vault { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Vault.PendingTeamMember; - /** - * Decodes a PendingTeamMember message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns PendingTeamMember - * @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)): Vault.PendingTeamMember; - - /** - * Verifies a PendingTeamMember 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 PendingTeamMember message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -81119,14 +64631,6 @@ export namespace Vault { */ public static encode(message: Vault.IBreachWatchRecord, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified BreachWatchRecord message, length delimited. Does not implicitly {@link Vault.BreachWatchRecord.verify|verify} messages. - * @param message BreachWatchRecord message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Vault.IBreachWatchRecord, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a BreachWatchRecord message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -81137,22 +64641,6 @@ export namespace Vault { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Vault.BreachWatchRecord; - /** - * Decodes a BreachWatchRecord message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns BreachWatchRecord - * @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)): Vault.BreachWatchRecord; - - /** - * Verifies a BreachWatchRecord 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 BreachWatchRecord message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -81258,14 +64746,6 @@ export namespace Vault { */ public static encode(message: Vault.IUserAuth, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified UserAuth message, length delimited. Does not implicitly {@link Vault.UserAuth.verify|verify} messages. - * @param message UserAuth message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Vault.IUserAuth, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a UserAuth message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -81276,22 +64756,6 @@ export namespace Vault { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Vault.UserAuth; - /** - * Decodes a UserAuth message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns UserAuth - * @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)): Vault.UserAuth; - - /** - * Verifies a UserAuth 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 UserAuth message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -81367,14 +64831,6 @@ export namespace Vault { */ public static encode(message: Vault.IBreachWatchSecurityData, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified BreachWatchSecurityData message, length delimited. Does not implicitly {@link Vault.BreachWatchSecurityData.verify|verify} messages. - * @param message BreachWatchSecurityData message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Vault.IBreachWatchSecurityData, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a BreachWatchSecurityData message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -81385,22 +64841,6 @@ export namespace Vault { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Vault.BreachWatchSecurityData; - /** - * Decodes a BreachWatchSecurityData message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns BreachWatchSecurityData - * @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)): Vault.BreachWatchSecurityData; - - /** - * Verifies a BreachWatchSecurityData 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 BreachWatchSecurityData message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -81470,14 +64910,6 @@ export namespace Vault { */ public static encode(message: Vault.IReusedPasswords, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified ReusedPasswords message, length delimited. Does not implicitly {@link Vault.ReusedPasswords.verify|verify} messages. - * @param message ReusedPasswords message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Vault.IReusedPasswords, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a ReusedPasswords message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -81488,22 +64920,6 @@ export namespace Vault { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Vault.ReusedPasswords; - /** - * Decodes a ReusedPasswords message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ReusedPasswords - * @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)): Vault.ReusedPasswords; - - /** - * Verifies a ReusedPasswords 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 ReusedPasswords message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -81627,14 +65043,6 @@ export namespace Vault { */ public static encode(message: Vault.ISharedFolderRecord, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified SharedFolderRecord message, length delimited. Does not implicitly {@link Vault.SharedFolderRecord.verify|verify} messages. - * @param message SharedFolderRecord message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Vault.ISharedFolderRecord, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a SharedFolderRecord message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -81645,22 +65053,6 @@ export namespace Vault { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Vault.SharedFolderRecord; - /** - * Decodes a SharedFolderRecord message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SharedFolderRecord - * @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)): Vault.SharedFolderRecord; - - /** - * Verifies a SharedFolderRecord 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 SharedFolderRecord message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -81766,14 +65158,6 @@ export namespace Vault { */ public static encode(message: Vault.ISharedFolderUser, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified SharedFolderUser message, length delimited. Does not implicitly {@link Vault.SharedFolderUser.verify|verify} messages. - * @param message SharedFolderUser message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Vault.ISharedFolderUser, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a SharedFolderUser message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -81784,22 +65168,6 @@ export namespace Vault { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Vault.SharedFolderUser; - /** - * Decodes a SharedFolderUser message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SharedFolderUser - * @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)): Vault.SharedFolderUser; - - /** - * Verifies a SharedFolderUser 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 SharedFolderUser message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -81905,14 +65273,6 @@ export namespace Vault { */ public static encode(message: Vault.ISharedFolderTeam, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified SharedFolderTeam message, length delimited. Does not implicitly {@link Vault.SharedFolderTeam.verify|verify} messages. - * @param message SharedFolderTeam message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Vault.ISharedFolderTeam, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a SharedFolderTeam message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -81923,22 +65283,6 @@ export namespace Vault { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Vault.SharedFolderTeam; - /** - * Decodes a SharedFolderTeam message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SharedFolderTeam - * @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)): Vault.SharedFolderTeam; - - /** - * Verifies a SharedFolderTeam 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 SharedFolderTeam message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -82026,14 +65370,6 @@ export namespace Vault { */ public static encode(message: Vault.IKsmChange, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified KsmChange message, length delimited. Does not implicitly {@link Vault.KsmChange.verify|verify} messages. - * @param message KsmChange message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Vault.IKsmChange, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a KsmChange message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -82044,22 +65380,6 @@ export namespace Vault { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Vault.KsmChange; - /** - * Decodes a KsmChange message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns KsmChange - * @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)): Vault.KsmChange; - - /** - * Verifies a KsmChange 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 KsmChange message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -82123,14 +65443,6 @@ export namespace Vault { */ public static encode(message: Vault.IShareInvitation, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified ShareInvitation message, length delimited. Does not implicitly {@link Vault.ShareInvitation.verify|verify} messages. - * @param message ShareInvitation message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Vault.IShareInvitation, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a ShareInvitation message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -82141,22 +65453,6 @@ export namespace Vault { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Vault.ShareInvitation; - /** - * Decodes a ShareInvitation message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ShareInvitation - * @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)): Vault.ShareInvitation; - - /** - * Verifies a ShareInvitation 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 ShareInvitation message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -82226,14 +65522,6 @@ export namespace Vault { */ public static encode(message: Vault.IUser, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified User message, length delimited. Does not implicitly {@link Vault.User.verify|verify} messages. - * @param message User message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Vault.IUser, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a User message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -82244,22 +65532,6 @@ export namespace Vault { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Vault.User; - /** - * Decodes a User message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns User - * @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)): Vault.User; - - /** - * Verifies a User 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 User message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -82347,14 +65619,6 @@ export namespace Vault { */ public static encode(message: Vault.ISyncDiagnostics, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified SyncDiagnostics message, length delimited. Does not implicitly {@link Vault.SyncDiagnostics.verify|verify} messages. - * @param message SyncDiagnostics message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Vault.ISyncDiagnostics, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a SyncDiagnostics message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -82365,22 +65629,6 @@ export namespace Vault { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Vault.SyncDiagnostics; - /** - * Decodes a SyncDiagnostics message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SyncDiagnostics - * @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)): Vault.SyncDiagnostics; - - /** - * Verifies a SyncDiagnostics 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 SyncDiagnostics message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -82500,14 +65748,6 @@ export namespace Vault { */ public static encode(message: Vault.IRecordRotation, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified RecordRotation message, length delimited. Does not implicitly {@link Vault.RecordRotation.verify|verify} messages. - * @param message RecordRotation message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Vault.IRecordRotation, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a RecordRotation message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -82518,22 +65758,6 @@ export namespace Vault { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Vault.RecordRotation; - /** - * Decodes a RecordRotation message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RecordRotation - * @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)): Vault.RecordRotation; - - /** - * Verifies a RecordRotation 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 RecordRotation message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -82609,14 +65833,6 @@ export namespace Vault { */ public static encode(message: Vault.ISecurityScoreData, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified SecurityScoreData message, length delimited. Does not implicitly {@link Vault.SecurityScoreData.verify|verify} messages. - * @param message SecurityScoreData message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Vault.ISecurityScoreData, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a SecurityScoreData message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -82627,22 +65843,6 @@ export namespace Vault { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Vault.SecurityScoreData; - /** - * Decodes a SecurityScoreData message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SecurityScoreData - * @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)): Vault.SecurityScoreData; - - /** - * Verifies a SecurityScoreData 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 SecurityScoreData message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -82706,14 +65906,6 @@ export namespace Vault { */ public static encode(message: Vault.IBreachWatchGetSyncDataRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified BreachWatchGetSyncDataRequest message, length delimited. Does not implicitly {@link Vault.BreachWatchGetSyncDataRequest.verify|verify} messages. - * @param message BreachWatchGetSyncDataRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Vault.IBreachWatchGetSyncDataRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a BreachWatchGetSyncDataRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -82724,22 +65916,6 @@ export namespace Vault { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Vault.BreachWatchGetSyncDataRequest; - /** - * Decodes a BreachWatchGetSyncDataRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns BreachWatchGetSyncDataRequest - * @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)): Vault.BreachWatchGetSyncDataRequest; - - /** - * Verifies a BreachWatchGetSyncDataRequest 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 BreachWatchGetSyncDataRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -82815,14 +65991,6 @@ export namespace Vault { */ public static encode(message: Vault.IBreachWatchGetSyncDataResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified BreachWatchGetSyncDataResponse message, length delimited. Does not implicitly {@link Vault.BreachWatchGetSyncDataResponse.verify|verify} messages. - * @param message BreachWatchGetSyncDataResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Vault.IBreachWatchGetSyncDataResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a BreachWatchGetSyncDataResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -82833,22 +66001,6 @@ export namespace Vault { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Vault.BreachWatchGetSyncDataResponse; - /** - * Decodes a BreachWatchGetSyncDataResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns BreachWatchGetSyncDataResponse - * @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)): Vault.BreachWatchGetSyncDataResponse; - - /** - * Verifies a BreachWatchGetSyncDataResponse 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 BreachWatchGetSyncDataResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -82912,14 +66064,6 @@ export namespace Vault { */ public static encode(message: Vault.IGetAccountUidMapResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified GetAccountUidMapResponse message, length delimited. Does not implicitly {@link Vault.GetAccountUidMapResponse.verify|verify} messages. - * @param message GetAccountUidMapResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Vault.IGetAccountUidMapResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a GetAccountUidMapResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -82930,22 +66074,6 @@ export namespace Vault { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Vault.GetAccountUidMapResponse; - /** - * Decodes a GetAccountUidMapResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetAccountUidMapResponse - * @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)): Vault.GetAccountUidMapResponse; - - /** - * Verifies a GetAccountUidMapResponse 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 GetAccountUidMapResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -83075,14 +66203,6 @@ export namespace NotificationCenter { */ public static encode(message: NotificationCenter.IEncryptedData, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified EncryptedData message, length delimited. Does not implicitly {@link NotificationCenter.EncryptedData.verify|verify} messages. - * @param message EncryptedData message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: NotificationCenter.IEncryptedData, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes an EncryptedData message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -83093,22 +66213,6 @@ export namespace NotificationCenter { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): NotificationCenter.EncryptedData; - /** - * Decodes an EncryptedData message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns EncryptedData - * @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)): NotificationCenter.EncryptedData; - - /** - * Verifies an EncryptedData 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 EncryptedData message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -83178,14 +66282,6 @@ export namespace NotificationCenter { */ public static encode(message: NotificationCenter.INotificationParameter, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified NotificationParameter message, length delimited. Does not implicitly {@link NotificationCenter.NotificationParameter.verify|verify} messages. - * @param message NotificationParameter message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: NotificationCenter.INotificationParameter, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a NotificationParameter message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -83196,22 +66292,6 @@ export namespace NotificationCenter { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): NotificationCenter.NotificationParameter; - /** - * Decodes a NotificationParameter message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns NotificationParameter - * @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)): NotificationCenter.NotificationParameter; - - /** - * Verifies a NotificationParameter 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 NotificationParameter message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -83317,14 +66397,6 @@ export namespace NotificationCenter { */ public static encode(message: NotificationCenter.INotification, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified Notification message, length delimited. Does not implicitly {@link NotificationCenter.Notification.verify|verify} messages. - * @param message Notification message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: NotificationCenter.INotification, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a Notification message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -83335,22 +66407,6 @@ export namespace NotificationCenter { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): NotificationCenter.Notification; - /** - * Decodes a Notification message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Notification - * @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)): NotificationCenter.Notification; - - /** - * Verifies a Notification 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 Notification message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -83432,14 +66488,6 @@ export namespace NotificationCenter { */ public static encode(message: NotificationCenter.INotificationReadMark, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified NotificationReadMark message, length delimited. Does not implicitly {@link NotificationCenter.NotificationReadMark.verify|verify} messages. - * @param message NotificationReadMark message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: NotificationCenter.INotificationReadMark, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a NotificationReadMark message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -83450,22 +66498,6 @@ export namespace NotificationCenter { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): NotificationCenter.NotificationReadMark; - /** - * Decodes a NotificationReadMark message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns NotificationReadMark - * @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)): NotificationCenter.NotificationReadMark; - - /** - * Verifies a NotificationReadMark 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 NotificationReadMark message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -83562,14 +66594,6 @@ export namespace NotificationCenter { */ public static encode(message: NotificationCenter.INotificationContent, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified NotificationContent message, length delimited. Does not implicitly {@link NotificationCenter.NotificationContent.verify|verify} messages. - * @param message NotificationContent message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: NotificationCenter.INotificationContent, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a NotificationContent message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -83580,22 +66604,6 @@ export namespace NotificationCenter { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): NotificationCenter.NotificationContent; - /** - * Decodes a NotificationContent message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns NotificationContent - * @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)): NotificationCenter.NotificationContent; - - /** - * Verifies a NotificationContent 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 NotificationContent message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -83671,14 +66679,6 @@ export namespace NotificationCenter { */ public static encode(message: NotificationCenter.INotificationWrapper, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified NotificationWrapper message, length delimited. Does not implicitly {@link NotificationCenter.NotificationWrapper.verify|verify} messages. - * @param message NotificationWrapper message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: NotificationCenter.INotificationWrapper, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a NotificationWrapper message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -83689,22 +66689,6 @@ export namespace NotificationCenter { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): NotificationCenter.NotificationWrapper; - /** - * Decodes a NotificationWrapper message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns NotificationWrapper - * @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)): NotificationCenter.NotificationWrapper; - - /** - * Verifies a NotificationWrapper 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 NotificationWrapper message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -83780,14 +66764,6 @@ export namespace NotificationCenter { */ public static encode(message: NotificationCenter.INotificationSync, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified NotificationSync message, length delimited. Does not implicitly {@link NotificationCenter.NotificationSync.verify|verify} messages. - * @param message NotificationSync message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: NotificationCenter.INotificationSync, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a NotificationSync message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -83798,22 +66774,6 @@ export namespace NotificationCenter { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): NotificationCenter.NotificationSync; - /** - * Decodes a NotificationSync message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns NotificationSync - * @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)): NotificationCenter.NotificationSync; - - /** - * Verifies a NotificationSync 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 NotificationSync message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -83883,14 +66843,6 @@ export namespace NotificationCenter { */ public static encode(message: NotificationCenter.IReadStatusUpdate, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified ReadStatusUpdate message, length delimited. Does not implicitly {@link NotificationCenter.ReadStatusUpdate.verify|verify} messages. - * @param message ReadStatusUpdate message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: NotificationCenter.IReadStatusUpdate, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a ReadStatusUpdate message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -83901,22 +66853,6 @@ export namespace NotificationCenter { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): NotificationCenter.ReadStatusUpdate; - /** - * Decodes a ReadStatusUpdate message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ReadStatusUpdate - * @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)): NotificationCenter.ReadStatusUpdate; - - /** - * Verifies a ReadStatusUpdate 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 ReadStatusUpdate message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -83986,14 +66922,6 @@ export namespace NotificationCenter { */ public static encode(message: NotificationCenter.IApprovalStatusUpdate, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified ApprovalStatusUpdate message, length delimited. Does not implicitly {@link NotificationCenter.ApprovalStatusUpdate.verify|verify} messages. - * @param message ApprovalStatusUpdate message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: NotificationCenter.IApprovalStatusUpdate, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes an ApprovalStatusUpdate message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -84004,22 +66932,6 @@ export namespace NotificationCenter { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): NotificationCenter.ApprovalStatusUpdate; - /** - * Decodes an ApprovalStatusUpdate message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ApprovalStatusUpdate - * @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)): NotificationCenter.ApprovalStatusUpdate; - - /** - * Verifies an ApprovalStatusUpdate 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 ApprovalStatusUpdate message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -84083,14 +66995,6 @@ export namespace NotificationCenter { */ public static encode(message: NotificationCenter.IProcessMarkReadEventsRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified ProcessMarkReadEventsRequest message, length delimited. Does not implicitly {@link NotificationCenter.ProcessMarkReadEventsRequest.verify|verify} messages. - * @param message ProcessMarkReadEventsRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: NotificationCenter.IProcessMarkReadEventsRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a ProcessMarkReadEventsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -84101,22 +67005,6 @@ export namespace NotificationCenter { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): NotificationCenter.ProcessMarkReadEventsRequest; - /** - * Decodes a ProcessMarkReadEventsRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ProcessMarkReadEventsRequest - * @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)): NotificationCenter.ProcessMarkReadEventsRequest; - - /** - * Verifies a ProcessMarkReadEventsRequest 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 ProcessMarkReadEventsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -84204,14 +67092,6 @@ export namespace NotificationCenter { */ public static encode(message: NotificationCenter.INotificationSendRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified NotificationSendRequest message, length delimited. Does not implicitly {@link NotificationCenter.NotificationSendRequest.verify|verify} messages. - * @param message NotificationSendRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: NotificationCenter.INotificationSendRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a NotificationSendRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -84222,22 +67102,6 @@ export namespace NotificationCenter { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): NotificationCenter.NotificationSendRequest; - /** - * Decodes a NotificationSendRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns NotificationSendRequest - * @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)): NotificationCenter.NotificationSendRequest; - - /** - * Verifies a NotificationSendRequest 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 NotificationSendRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -84301,14 +67165,6 @@ export namespace NotificationCenter { */ public static encode(message: NotificationCenter.INotificationsSendRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified NotificationsSendRequest message, length delimited. Does not implicitly {@link NotificationCenter.NotificationsSendRequest.verify|verify} messages. - * @param message NotificationsSendRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: NotificationCenter.INotificationsSendRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a NotificationsSendRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -84319,22 +67175,6 @@ export namespace NotificationCenter { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): NotificationCenter.NotificationsSendRequest; - /** - * Decodes a NotificationsSendRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns NotificationsSendRequest - * @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)): NotificationCenter.NotificationsSendRequest; - - /** - * Verifies a NotificationsSendRequest 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 NotificationsSendRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -84398,14 +67238,6 @@ export namespace NotificationCenter { */ public static encode(message: NotificationCenter.INotificationSyncRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified NotificationSyncRequest message, length delimited. Does not implicitly {@link NotificationCenter.NotificationSyncRequest.verify|verify} messages. - * @param message NotificationSyncRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: NotificationCenter.INotificationSyncRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a NotificationSyncRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -84416,22 +67248,6 @@ export namespace NotificationCenter { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): NotificationCenter.NotificationSyncRequest; - /** - * Decodes a NotificationSyncRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns NotificationSyncRequest - * @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)): NotificationCenter.NotificationSyncRequest; - - /** - * Verifies a NotificationSyncRequest 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 NotificationSyncRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -84501,14 +67317,6 @@ export namespace NotificationCenter { */ public static encode(message: NotificationCenter.ISentNotification, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified SentNotification message, length delimited. Does not implicitly {@link NotificationCenter.SentNotification.verify|verify} messages. - * @param message SentNotification message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: NotificationCenter.ISentNotification, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a SentNotification message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -84519,22 +67327,6 @@ export namespace NotificationCenter { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): NotificationCenter.SentNotification; - /** - * Decodes a SentNotification message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SentNotification - * @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)): NotificationCenter.SentNotification; - - /** - * Verifies a SentNotification 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 SentNotification message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -84604,14 +67396,6 @@ export namespace NotificationCenter { */ public static encode(message: NotificationCenter.INotificationsApprovalStatusUpdateRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified NotificationsApprovalStatusUpdateRequest message, length delimited. Does not implicitly {@link NotificationCenter.NotificationsApprovalStatusUpdateRequest.verify|verify} messages. - * @param message NotificationsApprovalStatusUpdateRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: NotificationCenter.INotificationsApprovalStatusUpdateRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a NotificationsApprovalStatusUpdateRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -84622,22 +67406,6 @@ export namespace NotificationCenter { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): NotificationCenter.NotificationsApprovalStatusUpdateRequest; - /** - * Decodes a NotificationsApprovalStatusUpdateRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns NotificationsApprovalStatusUpdateRequest - * @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)): NotificationCenter.NotificationsApprovalStatusUpdateRequest; - - /** - * Verifies a NotificationsApprovalStatusUpdateRequest 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 NotificationsApprovalStatusUpdateRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -84740,14 +67508,6 @@ export namespace GraphSync { */ public static encode(message: GraphSync.IGraphSyncRef, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified GraphSyncRef message, length delimited. Does not implicitly {@link GraphSync.GraphSyncRef.verify|verify} messages. - * @param message GraphSyncRef message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: GraphSync.IGraphSyncRef, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a GraphSyncRef message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -84758,22 +67518,6 @@ export namespace GraphSync { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): GraphSync.GraphSyncRef; - /** - * Decodes a GraphSyncRef message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GraphSyncRef - * @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)): GraphSync.GraphSyncRef; - - /** - * Verifies a GraphSyncRef 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 GraphSyncRef message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -84871,14 +67615,6 @@ export namespace GraphSync { */ public static encode(message: GraphSync.IGraphSyncActor, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified GraphSyncActor message, length delimited. Does not implicitly {@link GraphSync.GraphSyncActor.verify|verify} messages. - * @param message GraphSyncActor message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: GraphSync.IGraphSyncActor, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a GraphSyncActor message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -84889,22 +67625,6 @@ export namespace GraphSync { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): GraphSync.GraphSyncActor; - /** - * Decodes a GraphSyncActor message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GraphSyncActor - * @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)): GraphSync.GraphSyncActor; - - /** - * Verifies a GraphSyncActor 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 GraphSyncActor message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -84992,14 +67712,6 @@ export namespace GraphSync { */ public static encode(message: GraphSync.IGraphSyncData, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified GraphSyncData message, length delimited. Does not implicitly {@link GraphSync.GraphSyncData.verify|verify} messages. - * @param message GraphSyncData message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: GraphSync.IGraphSyncData, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a GraphSyncData message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -85010,22 +67722,6 @@ export namespace GraphSync { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): GraphSync.GraphSyncData; - /** - * Decodes a GraphSyncData message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GraphSyncData - * @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)): GraphSync.GraphSyncData; - - /** - * Verifies a GraphSyncData 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 GraphSyncData message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -85101,14 +67797,6 @@ export namespace GraphSync { */ public static encode(message: GraphSync.IGraphSyncDataPlus, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified GraphSyncDataPlus message, length delimited. Does not implicitly {@link GraphSync.GraphSyncDataPlus.verify|verify} messages. - * @param message GraphSyncDataPlus message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: GraphSync.IGraphSyncDataPlus, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a GraphSyncDataPlus message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -85119,22 +67807,6 @@ export namespace GraphSync { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): GraphSync.GraphSyncDataPlus; - /** - * Decodes a GraphSyncDataPlus message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GraphSyncDataPlus - * @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)): GraphSync.GraphSyncDataPlus; - - /** - * Verifies a GraphSyncDataPlus 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 GraphSyncDataPlus message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -85216,14 +67888,6 @@ export namespace GraphSync { */ public static encode(message: GraphSync.IGraphSyncQuery, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified GraphSyncQuery message, length delimited. Does not implicitly {@link GraphSync.GraphSyncQuery.verify|verify} messages. - * @param message GraphSyncQuery message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: GraphSync.IGraphSyncQuery, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a GraphSyncQuery message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -85234,22 +67898,6 @@ export namespace GraphSync { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): GraphSync.GraphSyncQuery; - /** - * Decodes a GraphSyncQuery message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GraphSyncQuery - * @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)): GraphSync.GraphSyncQuery; - - /** - * Verifies a GraphSyncQuery 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 GraphSyncQuery message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -85331,14 +67979,6 @@ export namespace GraphSync { */ public static encode(message: GraphSync.IGraphSyncResult, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified GraphSyncResult message, length delimited. Does not implicitly {@link GraphSync.GraphSyncResult.verify|verify} messages. - * @param message GraphSyncResult message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: GraphSync.IGraphSyncResult, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a GraphSyncResult message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -85349,22 +67989,6 @@ export namespace GraphSync { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): GraphSync.GraphSyncResult; - /** - * Decodes a GraphSyncResult message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GraphSyncResult - * @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)): GraphSync.GraphSyncResult; - - /** - * Verifies a GraphSyncResult 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 GraphSyncResult message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -85428,14 +68052,6 @@ export namespace GraphSync { */ public static encode(message: GraphSync.IGraphSyncMultiQuery, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified GraphSyncMultiQuery message, length delimited. Does not implicitly {@link GraphSync.GraphSyncMultiQuery.verify|verify} messages. - * @param message GraphSyncMultiQuery message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: GraphSync.IGraphSyncMultiQuery, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a GraphSyncMultiQuery message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -85446,22 +68062,6 @@ export namespace GraphSync { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): GraphSync.GraphSyncMultiQuery; - /** - * Decodes a GraphSyncMultiQuery message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GraphSyncMultiQuery - * @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)): GraphSync.GraphSyncMultiQuery; - - /** - * Verifies a GraphSyncMultiQuery 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 GraphSyncMultiQuery message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -85525,14 +68125,6 @@ export namespace GraphSync { */ public static encode(message: GraphSync.IGraphSyncMultiResult, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified GraphSyncMultiResult message, length delimited. Does not implicitly {@link GraphSync.GraphSyncMultiResult.verify|verify} messages. - * @param message GraphSyncMultiResult message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: GraphSync.IGraphSyncMultiResult, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a GraphSyncMultiResult message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -85543,22 +68135,6 @@ export namespace GraphSync { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): GraphSync.GraphSyncMultiResult; - /** - * Decodes a GraphSyncMultiResult message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GraphSyncMultiResult - * @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)): GraphSync.GraphSyncMultiResult; - - /** - * Verifies a GraphSyncMultiResult 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 GraphSyncMultiResult message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -85628,14 +68204,6 @@ export namespace GraphSync { */ public static encode(message: GraphSync.IGraphSyncAddDataRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified GraphSyncAddDataRequest message, length delimited. Does not implicitly {@link GraphSync.GraphSyncAddDataRequest.verify|verify} messages. - * @param message GraphSyncAddDataRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: GraphSync.IGraphSyncAddDataRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a GraphSyncAddDataRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -85646,22 +68214,6 @@ export namespace GraphSync { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): GraphSync.GraphSyncAddDataRequest; - /** - * Decodes a GraphSyncAddDataRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GraphSyncAddDataRequest - * @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)): GraphSync.GraphSyncAddDataRequest; - - /** - * Verifies a GraphSyncAddDataRequest 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 GraphSyncAddDataRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -85725,14 +68277,6 @@ export namespace GraphSync { */ public static encode(message: GraphSync.IGraphSyncLeafsQuery, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified GraphSyncLeafsQuery message, length delimited. Does not implicitly {@link GraphSync.GraphSyncLeafsQuery.verify|verify} messages. - * @param message GraphSyncLeafsQuery message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: GraphSync.IGraphSyncLeafsQuery, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a GraphSyncLeafsQuery message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -85743,22 +68287,6 @@ export namespace GraphSync { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): GraphSync.GraphSyncLeafsQuery; - /** - * Decodes a GraphSyncLeafsQuery message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GraphSyncLeafsQuery - * @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)): GraphSync.GraphSyncLeafsQuery; - - /** - * Verifies a GraphSyncLeafsQuery 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 GraphSyncLeafsQuery message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -85822,14 +68350,6 @@ export namespace GraphSync { */ public static encode(message: GraphSync.IGraphSyncRefsResult, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified GraphSyncRefsResult message, length delimited. Does not implicitly {@link GraphSync.GraphSyncRefsResult.verify|verify} messages. - * @param message GraphSyncRefsResult message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: GraphSync.IGraphSyncRefsResult, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a GraphSyncRefsResult message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -85840,22 +68360,6 @@ export namespace GraphSync { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): GraphSync.GraphSyncRefsResult; - /** - * Decodes a GraphSyncRefsResult message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GraphSyncRefsResult - * @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)): GraphSync.GraphSyncRefsResult; - - /** - * Verifies a GraphSyncRefsResult 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 GraphSyncRefsResult message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -85960,14 +68464,6 @@ export namespace Dag { */ public static encode(message: Dag.IRef, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified Ref message, length delimited. Does not implicitly {@link Dag.Ref.verify|verify} messages. - * @param message Ref message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Dag.IRef, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a Ref message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -85978,22 +68474,6 @@ export namespace Dag { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Dag.Ref; - /** - * Decodes a Ref message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Ref - * @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)): Dag.Ref; - - /** - * Verifies a Ref 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 Ref message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -86081,14 +68561,6 @@ export namespace Dag { */ public static encode(message: Dag.IData, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified Data message, length delimited. Does not implicitly {@link Dag.Data.verify|verify} messages. - * @param message Data message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Dag.IData, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a Data message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -86099,22 +68571,6 @@ export namespace Dag { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Dag.Data; - /** - * Decodes a Data message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Data - * @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)): Dag.Data; - - /** - * Verifies a Data 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 Data message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -86190,14 +68646,6 @@ export namespace Dag { */ public static encode(message: Dag.ISyncData, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified SyncData message, length delimited. Does not implicitly {@link Dag.SyncData.verify|verify} messages. - * @param message SyncData message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Dag.ISyncData, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a SyncData message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -86208,22 +68656,6 @@ export namespace Dag { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Dag.SyncData; - /** - * Decodes a SyncData message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SyncData - * @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)): Dag.SyncData; - - /** - * Verifies a SyncData 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 SyncData message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -86305,14 +68737,6 @@ export namespace Dag { */ public static encode(message: Dag.IDebugData, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified DebugData message, length delimited. Does not implicitly {@link Dag.DebugData.verify|verify} messages. - * @param message DebugData message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Dag.IDebugData, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a DebugData message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -86323,22 +68747,6 @@ export namespace Dag { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Dag.DebugData; - /** - * Decodes a DebugData message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns DebugData - * @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)): Dag.DebugData; - - /** - * Verifies a DebugData 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 DebugData message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -86408,14 +68816,6 @@ export namespace Dag { */ public static encode(message: Dag.IDebugRefInfo, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified DebugRefInfo message, length delimited. Does not implicitly {@link Dag.DebugRefInfo.verify|verify} messages. - * @param message DebugRefInfo message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Dag.IDebugRefInfo, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a DebugRefInfo message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -86426,22 +68826,6 @@ export namespace Dag { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Dag.DebugRefInfo; - /** - * Decodes a DebugRefInfo message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns DebugRefInfo - * @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)): Dag.DebugRefInfo; - - /** - * Verifies a DebugRefInfo 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 DebugRefInfo message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -86597,14 +68981,6 @@ export namespace record { */ public static encode(message: record.v3.sharing.IRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified Request message, length delimited. Does not implicitly {@link record.v3.sharing.Request.verify|verify} messages. - * @param message Request message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: record.v3.sharing.IRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a Request message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -86615,22 +68991,6 @@ export namespace record { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): record.v3.sharing.Request; - /** - * Decodes a Request message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Request - * @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.sharing.Request; - - /** - * Verifies a Request 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 Request message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -86724,14 +69084,6 @@ export namespace record { */ public static encode(message: record.v3.sharing.IPermissions, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified Permissions message, length delimited. Does not implicitly {@link record.v3.sharing.Permissions.verify|verify} messages. - * @param message Permissions message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: record.v3.sharing.IPermissions, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a Permissions message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -86742,22 +69094,6 @@ export namespace record { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): record.v3.sharing.Permissions; - /** - * Decodes a Permissions message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Permissions - * @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.sharing.Permissions; - - /** - * Verifies a Permissions 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 Permissions message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -86833,14 +69169,6 @@ export namespace record { */ public static encode(message: record.v3.sharing.IResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified Response message, length delimited. Does not implicitly {@link record.v3.sharing.Response.verify|verify} messages. - * @param message Response message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: record.v3.sharing.IResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a Response message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -86851,22 +69179,6 @@ export namespace record { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): record.v3.sharing.Response; - /** - * Decodes a Response message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Response - * @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.sharing.Response; - - /** - * Verifies a Response 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 Response message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -86948,14 +69260,6 @@ export namespace record { */ public static encode(message: record.v3.sharing.IStatus, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified Status message, length delimited. Does not implicitly {@link record.v3.sharing.Status.verify|verify} messages. - * @param message Status message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: record.v3.sharing.IStatus, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a Status message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -86966,22 +69270,6 @@ export namespace record { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): record.v3.sharing.Status; - /** - * Decodes a Status message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Status - * @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.sharing.Status; - - /** - * Verifies a Status 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 Status message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -87062,14 +69350,6 @@ export namespace record { */ public static encode(message: record.v3.sharing.IRevokedAccess, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified RevokedAccess message, length delimited. Does not implicitly {@link record.v3.sharing.RevokedAccess.verify|verify} messages. - * @param message RevokedAccess message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: record.v3.sharing.IRevokedAccess, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a RevokedAccess message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -87080,22 +69360,6 @@ export namespace record { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): record.v3.sharing.RevokedAccess; - /** - * Decodes a RevokedAccess message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RevokedAccess - * @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.sharing.RevokedAccess; - - /** - * Verifies a RevokedAccess 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 RevokedAccess message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -87185,14 +69449,6 @@ export namespace record { */ public static encode(message: record.v3.sharing.IRecordSharingState, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified RecordSharingState message, length delimited. Does not implicitly {@link record.v3.sharing.RecordSharingState.verify|verify} messages. - * @param message RecordSharingState message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: record.v3.sharing.IRecordSharingState, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a RecordSharingState message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -87203,22 +69459,6 @@ export namespace record { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): record.v3.sharing.RecordSharingState; - /** - * Decodes a RecordSharingState message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RecordSharingState - * @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.sharing.RecordSharingState; - - /** - * Verifies a RecordSharingState 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 RecordSharingState message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -87295,14 +69535,6 @@ export namespace record { */ 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 @@ -87313,22 +69545,6 @@ export namespace record { */ 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 @@ -87464,14 +69680,6 @@ export namespace record { */ 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 @@ -87482,22 +69690,6 @@ export namespace record { */ 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 @@ -87584,14 +69776,6 @@ export namespace Upsell { */ public static encode(message: Upsell.IUpsellRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified UpsellRequest message, length delimited. Does not implicitly {@link Upsell.UpsellRequest.verify|verify} messages. - * @param message UpsellRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Upsell.IUpsellRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes an UpsellRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -87602,22 +69786,6 @@ export namespace Upsell { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Upsell.UpsellRequest; - /** - * Decodes an UpsellRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns UpsellRequest - * @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)): Upsell.UpsellRequest; - - /** - * Verifies an UpsellRequest 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 UpsellRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -87681,14 +69849,6 @@ export namespace Upsell { */ public static encode(message: Upsell.IUpsellResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified UpsellResponse message, length delimited. Does not implicitly {@link Upsell.UpsellResponse.verify|verify} messages. - * @param message UpsellResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Upsell.IUpsellResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes an UpsellResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -87699,22 +69859,6 @@ export namespace Upsell { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Upsell.UpsellResponse; - /** - * Decodes an UpsellResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns UpsellResponse - * @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)): Upsell.UpsellResponse; - - /** - * Verifies an UpsellResponse 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 UpsellResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -87814,14 +69958,6 @@ export namespace Upsell { */ public static encode(message: Upsell.IUpsellBanner, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified UpsellBanner message, length delimited. Does not implicitly {@link Upsell.UpsellBanner.verify|verify} messages. - * @param message UpsellBanner message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Upsell.IUpsellBanner, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes an UpsellBanner message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -87832,22 +69968,6 @@ export namespace Upsell { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Upsell.UpsellBanner; - /** - * Decodes an UpsellBanner message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns UpsellBanner - * @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)): Upsell.UpsellBanner; - - /** - * Verifies an UpsellBanner 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 UpsellBanner message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -87956,14 +70076,6 @@ export namespace BI { */ public static encode(message: BI.IValidateSessionTokenRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified ValidateSessionTokenRequest message, length delimited. Does not implicitly {@link BI.ValidateSessionTokenRequest.verify|verify} messages. - * @param message ValidateSessionTokenRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: BI.IValidateSessionTokenRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a ValidateSessionTokenRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -87974,22 +70086,6 @@ export namespace BI { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.ValidateSessionTokenRequest; - /** - * Decodes a ValidateSessionTokenRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ValidateSessionTokenRequest - * @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)): BI.ValidateSessionTokenRequest; - - /** - * Verifies a ValidateSessionTokenRequest 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 ValidateSessionTokenRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -88095,14 +70191,6 @@ export namespace BI { */ public static encode(message: BI.IValidateSessionTokenResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified ValidateSessionTokenResponse message, length delimited. Does not implicitly {@link BI.ValidateSessionTokenResponse.verify|verify} messages. - * @param message ValidateSessionTokenResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: BI.IValidateSessionTokenResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a ValidateSessionTokenResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -88113,22 +70201,6 @@ export namespace BI { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.ValidateSessionTokenResponse; - /** - * Decodes a ValidateSessionTokenResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ValidateSessionTokenResponse - * @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)): BI.ValidateSessionTokenResponse; - - /** - * Verifies a ValidateSessionTokenResponse 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 ValidateSessionTokenResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -88198,14 +70270,6 @@ export namespace BI { */ public static encode(message: BI.ISubscriptionStatusRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified SubscriptionStatusRequest message, length delimited. Does not implicitly {@link BI.SubscriptionStatusRequest.verify|verify} messages. - * @param message SubscriptionStatusRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: BI.ISubscriptionStatusRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a SubscriptionStatusRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -88216,22 +70280,6 @@ export namespace BI { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.SubscriptionStatusRequest; - /** - * Decodes a SubscriptionStatusRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SubscriptionStatusRequest - * @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)): BI.SubscriptionStatusRequest; - - /** - * Verifies a SubscriptionStatusRequest 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 SubscriptionStatusRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -88379,14 +70427,6 @@ export namespace BI { */ public static encode(message: BI.ISubscriptionStatusResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified SubscriptionStatusResponse message, length delimited. Does not implicitly {@link BI.SubscriptionStatusResponse.verify|verify} messages. - * @param message SubscriptionStatusResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: BI.ISubscriptionStatusResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a SubscriptionStatusResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -88397,22 +70437,6 @@ export namespace BI { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.SubscriptionStatusResponse; - /** - * Decodes a SubscriptionStatusResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SubscriptionStatusResponse - * @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)): BI.SubscriptionStatusResponse; - - /** - * Verifies a SubscriptionStatusResponse 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 SubscriptionStatusResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -88500,14 +70524,6 @@ export namespace BI { */ public static encode(message: BI.IKsmBilling, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified KsmBilling message, length delimited. Does not implicitly {@link BI.KsmBilling.verify|verify} messages. - * @param message KsmBilling message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: BI.IKsmBilling, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a KsmBilling message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -88518,22 +70534,6 @@ export namespace BI { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.KsmBilling; - /** - * Decodes a KsmBilling message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns KsmBilling - * @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)): BI.KsmBilling; - - /** - * Verifies a KsmBilling 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 KsmBilling message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -88627,14 +70627,6 @@ export namespace BI { */ public static encode(message: BI.INhiBilling, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified NhiBilling message, length delimited. Does not implicitly {@link BI.NhiBilling.verify|verify} messages. - * @param message NhiBilling message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: BI.INhiBilling, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a NhiBilling message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -88645,22 +70637,6 @@ export namespace BI { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.NhiBilling; - /** - * Decodes a NhiBilling message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns NhiBilling - * @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)): BI.NhiBilling; - - /** - * Verifies a NhiBilling 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 NhiBilling message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -88730,14 +70706,6 @@ export namespace BI { */ public static encode(message: BI.INhiBillingPeriod, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified NhiBillingPeriod message, length delimited. Does not implicitly {@link BI.NhiBillingPeriod.verify|verify} messages. - * @param message NhiBillingPeriod message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: BI.INhiBillingPeriod, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a NhiBillingPeriod message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -88748,22 +70716,6 @@ export namespace BI { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.NhiBillingPeriod; - /** - * Decodes a NhiBillingPeriod message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns NhiBillingPeriod - * @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)): BI.NhiBillingPeriod; - - /** - * Verifies a NhiBillingPeriod 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 NhiBillingPeriod message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -88839,14 +70791,6 @@ export namespace BI { */ public static encode(message: BI.ILicenseStats, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified LicenseStats message, length delimited. Does not implicitly {@link BI.LicenseStats.verify|verify} messages. - * @param message LicenseStats message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: BI.ILicenseStats, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a LicenseStats message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -88857,22 +70801,6 @@ export namespace BI { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.LicenseStats; - /** - * Decodes a LicenseStats message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns LicenseStats - * @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)): BI.LicenseStats; - - /** - * Verifies a LicenseStats 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 LicenseStats message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -88964,14 +70892,6 @@ export namespace BI { */ public static encode(message: BI.IAutoRenewal, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified AutoRenewal message, length delimited. Does not implicitly {@link BI.AutoRenewal.verify|verify} messages. - * @param message AutoRenewal message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: BI.IAutoRenewal, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes an AutoRenewal message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -88982,22 +70902,6 @@ export namespace BI { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.AutoRenewal; - /** - * Decodes an AutoRenewal message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns AutoRenewal - * @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)): BI.AutoRenewal; - - /** - * Verifies an AutoRenewal 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 AutoRenewal message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -89097,14 +71001,6 @@ export namespace BI { */ public static encode(message: BI.IPaymentMethod, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified PaymentMethod message, length delimited. Does not implicitly {@link BI.PaymentMethod.verify|verify} messages. - * @param message PaymentMethod message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: BI.IPaymentMethod, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a PaymentMethod message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -89115,22 +71011,6 @@ export namespace BI { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.PaymentMethod; - /** - * Decodes a PaymentMethod message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns PaymentMethod - * @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)): BI.PaymentMethod; - - /** - * Verifies a PaymentMethod 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 PaymentMethod message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -89212,14 +71092,6 @@ export namespace BI { */ public static encode(message: BI.PaymentMethod.ICard, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified Card message, length delimited. Does not implicitly {@link BI.PaymentMethod.Card.verify|verify} messages. - * @param message Card message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: BI.PaymentMethod.ICard, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a Card message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -89230,22 +71102,6 @@ export namespace BI { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.PaymentMethod.Card; - /** - * Decodes a Card message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Card - * @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)): BI.PaymentMethod.Card; - - /** - * Verifies a Card 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 Card message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -89315,14 +71171,6 @@ export namespace BI { */ public static encode(message: BI.PaymentMethod.ISepa, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified Sepa message, length delimited. Does not implicitly {@link BI.PaymentMethod.Sepa.verify|verify} messages. - * @param message Sepa message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: BI.PaymentMethod.ISepa, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a Sepa message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -89333,22 +71181,6 @@ export namespace BI { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.PaymentMethod.Sepa; - /** - * Decodes a Sepa message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Sepa - * @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)): BI.PaymentMethod.Sepa; - - /** - * Verifies a Sepa 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 Sepa message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -89406,14 +71238,6 @@ export namespace BI { */ public static encode(message: BI.PaymentMethod.IPaypal, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified Paypal message, length delimited. Does not implicitly {@link BI.PaymentMethod.Paypal.verify|verify} messages. - * @param message Paypal message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: BI.PaymentMethod.IPaypal, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a Paypal message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -89424,22 +71248,6 @@ export namespace BI { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.PaymentMethod.Paypal; - /** - * Decodes a Paypal message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Paypal - * @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)): BI.PaymentMethod.Paypal; - - /** - * Verifies a Paypal 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 Paypal message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -89503,14 +71311,6 @@ export namespace BI { */ public static encode(message: BI.PaymentMethod.IVendor, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified Vendor message, length delimited. Does not implicitly {@link BI.PaymentMethod.Vendor.verify|verify} messages. - * @param message Vendor message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: BI.PaymentMethod.IVendor, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a Vendor message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -89521,22 +71321,6 @@ export namespace BI { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.PaymentMethod.Vendor; - /** - * Decodes a Vendor message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Vendor - * @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)): BI.PaymentMethod.Vendor; - - /** - * Verifies a Vendor 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 Vendor message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -89600,14 +71384,6 @@ export namespace BI { */ public static encode(message: BI.PaymentMethod.IPurchaseOrder, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified PurchaseOrder message, length delimited. Does not implicitly {@link BI.PaymentMethod.PurchaseOrder.verify|verify} messages. - * @param message PurchaseOrder message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: BI.PaymentMethod.IPurchaseOrder, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a PurchaseOrder message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -89618,22 +71394,6 @@ export namespace BI { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.PaymentMethod.PurchaseOrder; - /** - * Decodes a PurchaseOrder message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns PurchaseOrder - * @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)): BI.PaymentMethod.PurchaseOrder; - - /** - * Verifies a PurchaseOrder 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 PurchaseOrder message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -89692,14 +71452,6 @@ export namespace BI { */ public static encode(message: BI.ISubscriptionMspPricingRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified SubscriptionMspPricingRequest message, length delimited. Does not implicitly {@link BI.SubscriptionMspPricingRequest.verify|verify} messages. - * @param message SubscriptionMspPricingRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: BI.ISubscriptionMspPricingRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a SubscriptionMspPricingRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -89710,22 +71462,6 @@ export namespace BI { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.SubscriptionMspPricingRequest; - /** - * Decodes a SubscriptionMspPricingRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SubscriptionMspPricingRequest - * @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)): BI.SubscriptionMspPricingRequest; - - /** - * Verifies a SubscriptionMspPricingRequest 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 SubscriptionMspPricingRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -89795,14 +71531,6 @@ export namespace BI { */ public static encode(message: BI.ISubscriptionMspPricingResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified SubscriptionMspPricingResponse message, length delimited. Does not implicitly {@link BI.SubscriptionMspPricingResponse.verify|verify} messages. - * @param message SubscriptionMspPricingResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: BI.ISubscriptionMspPricingResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a SubscriptionMspPricingResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -89813,22 +71541,6 @@ export namespace BI { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.SubscriptionMspPricingResponse; - /** - * Decodes a SubscriptionMspPricingResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SubscriptionMspPricingResponse - * @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)): BI.SubscriptionMspPricingResponse; - - /** - * Verifies a SubscriptionMspPricingResponse 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 SubscriptionMspPricingResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -89886,14 +71598,6 @@ export namespace BI { */ public static encode(message: BI.ISubscriptionMcPricingRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified SubscriptionMcPricingRequest message, length delimited. Does not implicitly {@link BI.SubscriptionMcPricingRequest.verify|verify} messages. - * @param message SubscriptionMcPricingRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: BI.ISubscriptionMcPricingRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a SubscriptionMcPricingRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -89904,22 +71608,6 @@ export namespace BI { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.SubscriptionMcPricingRequest; - /** - * Decodes a SubscriptionMcPricingRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SubscriptionMcPricingRequest - * @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)): BI.SubscriptionMcPricingRequest; - - /** - * Verifies a SubscriptionMcPricingRequest 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 SubscriptionMcPricingRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -89995,14 +71683,6 @@ export namespace BI { */ public static encode(message: BI.ISubscriptionMcPricingResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified SubscriptionMcPricingResponse message, length delimited. Does not implicitly {@link BI.SubscriptionMcPricingResponse.verify|verify} messages. - * @param message SubscriptionMcPricingResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: BI.ISubscriptionMcPricingResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a SubscriptionMcPricingResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -90013,22 +71693,6 @@ export namespace BI { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.SubscriptionMcPricingResponse; - /** - * Decodes a SubscriptionMcPricingResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SubscriptionMcPricingResponse - * @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)): BI.SubscriptionMcPricingResponse; - - /** - * Verifies a SubscriptionMcPricingResponse 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 SubscriptionMcPricingResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -90098,14 +71762,6 @@ export namespace BI { */ public static encode(message: BI.IBasePlan, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified BasePlan message, length delimited. Does not implicitly {@link BI.BasePlan.verify|verify} messages. - * @param message BasePlan message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: BI.IBasePlan, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a BasePlan message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -90116,22 +71772,6 @@ export namespace BI { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.BasePlan; - /** - * Decodes a BasePlan message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns BasePlan - * @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)): BI.BasePlan; - - /** - * Verifies a BasePlan 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 BasePlan message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -90207,14 +71847,6 @@ export namespace BI { */ public static encode(message: BI.IAddon, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified Addon message, length delimited. Does not implicitly {@link BI.Addon.verify|verify} messages. - * @param message Addon message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: BI.IAddon, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes an Addon message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -90225,22 +71857,6 @@ export namespace BI { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.Addon; - /** - * Decodes an Addon message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Addon - * @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)): BI.Addon; - - /** - * Verifies an Addon 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 Addon message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -90310,14 +71926,6 @@ export namespace BI { */ public static encode(message: BI.IFilePlan, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified FilePlan message, length delimited. Does not implicitly {@link BI.FilePlan.verify|verify} messages. - * @param message FilePlan message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: BI.IFilePlan, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a FilePlan message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -90328,22 +71936,6 @@ export namespace BI { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.FilePlan; - /** - * Decodes a FilePlan message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns FilePlan - * @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)): BI.FilePlan; - - /** - * Verifies a FilePlan 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 FilePlan message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -90425,14 +72017,6 @@ export namespace BI { */ public static encode(message: BI.ICost, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified Cost message, length delimited. Does not implicitly {@link BI.Cost.verify|verify} messages. - * @param message Cost message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: BI.ICost, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a Cost message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -90443,22 +72027,6 @@ export namespace BI { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.Cost; - /** - * Decodes a Cost message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Cost - * @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)): BI.Cost; - - /** - * Verifies a Cost 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 Cost message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -90550,14 +72118,6 @@ export namespace BI { */ public static encode(message: BI.IInvoiceSearchRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified InvoiceSearchRequest message, length delimited. Does not implicitly {@link BI.InvoiceSearchRequest.verify|verify} messages. - * @param message InvoiceSearchRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: BI.IInvoiceSearchRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes an InvoiceSearchRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -90568,22 +72128,6 @@ export namespace BI { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.InvoiceSearchRequest; - /** - * Decodes an InvoiceSearchRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns InvoiceSearchRequest - * @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)): BI.InvoiceSearchRequest; - - /** - * Verifies an InvoiceSearchRequest 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 InvoiceSearchRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -90647,14 +72191,6 @@ export namespace BI { */ public static encode(message: BI.IInvoiceSearchResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified InvoiceSearchResponse message, length delimited. Does not implicitly {@link BI.InvoiceSearchResponse.verify|verify} messages. - * @param message InvoiceSearchResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: BI.IInvoiceSearchResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes an InvoiceSearchResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -90665,22 +72201,6 @@ export namespace BI { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.InvoiceSearchResponse; - /** - * Decodes an InvoiceSearchResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns InvoiceSearchResponse - * @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)): BI.InvoiceSearchResponse; - - /** - * Verifies an InvoiceSearchResponse 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 InvoiceSearchResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -90774,14 +72294,6 @@ export namespace BI { */ public static encode(message: BI.IInvoice, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified Invoice message, length delimited. Does not implicitly {@link BI.Invoice.verify|verify} messages. - * @param message Invoice message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: BI.IInvoice, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes an Invoice message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -90792,22 +72304,6 @@ export namespace BI { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.Invoice; - /** - * Decodes an Invoice message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Invoice - * @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)): BI.Invoice; - - /** - * Verifies an Invoice 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 Invoice message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -90879,14 +72375,6 @@ export namespace BI { */ public static encode(message: BI.Invoice.ICost, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified Cost message, length delimited. Does not implicitly {@link BI.Invoice.Cost.verify|verify} messages. - * @param message Cost message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: BI.Invoice.ICost, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a Cost message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -90897,22 +72385,6 @@ export namespace BI { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.Invoice.Cost; - /** - * Decodes a Cost message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Cost - * @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)): BI.Invoice.Cost; - - /** - * Verifies a Cost 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 Cost message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -90982,14 +72454,6 @@ export namespace BI { */ public static encode(message: BI.IVaultInvoicesListRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified VaultInvoicesListRequest message, length delimited. Does not implicitly {@link BI.VaultInvoicesListRequest.verify|verify} messages. - * @param message VaultInvoicesListRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: BI.IVaultInvoicesListRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a VaultInvoicesListRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -91000,22 +72464,6 @@ export namespace BI { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.VaultInvoicesListRequest; - /** - * Decodes a VaultInvoicesListRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns VaultInvoicesListRequest - * @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)): BI.VaultInvoicesListRequest; - - /** - * Verifies a VaultInvoicesListRequest 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 VaultInvoicesListRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -91079,14 +72527,6 @@ export namespace BI { */ public static encode(message: BI.IVaultInvoicesListResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified VaultInvoicesListResponse message, length delimited. Does not implicitly {@link BI.VaultInvoicesListResponse.verify|verify} messages. - * @param message VaultInvoicesListResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: BI.IVaultInvoicesListResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a VaultInvoicesListResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -91097,22 +72537,6 @@ export namespace BI { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.VaultInvoicesListResponse; - /** - * Decodes a VaultInvoicesListResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns VaultInvoicesListResponse - * @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)): BI.VaultInvoicesListResponse; - - /** - * Verifies a VaultInvoicesListResponse 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 VaultInvoicesListResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -91200,14 +72624,6 @@ export namespace BI { */ public static encode(message: BI.IVaultInvoice, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified VaultInvoice message, length delimited. Does not implicitly {@link BI.VaultInvoice.verify|verify} messages. - * @param message VaultInvoice message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: BI.IVaultInvoice, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a VaultInvoice message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -91218,22 +72634,6 @@ export namespace BI { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.VaultInvoice; - /** - * Decodes a VaultInvoice message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns VaultInvoice - * @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)): BI.VaultInvoice; - - /** - * Verifies a VaultInvoice 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 VaultInvoice message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -91297,14 +72697,6 @@ export namespace BI { */ public static encode(message: BI.IInvoiceDownloadRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified InvoiceDownloadRequest message, length delimited. Does not implicitly {@link BI.InvoiceDownloadRequest.verify|verify} messages. - * @param message InvoiceDownloadRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: BI.IInvoiceDownloadRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes an InvoiceDownloadRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -91315,22 +72707,6 @@ export namespace BI { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.InvoiceDownloadRequest; - /** - * Decodes an InvoiceDownloadRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns InvoiceDownloadRequest - * @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)): BI.InvoiceDownloadRequest; - - /** - * Verifies an InvoiceDownloadRequest 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 InvoiceDownloadRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -91400,14 +72776,6 @@ export namespace BI { */ public static encode(message: BI.IInvoiceDownloadResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified InvoiceDownloadResponse message, length delimited. Does not implicitly {@link BI.InvoiceDownloadResponse.verify|verify} messages. - * @param message InvoiceDownloadResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: BI.IInvoiceDownloadResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes an InvoiceDownloadResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -91418,22 +72786,6 @@ export namespace BI { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.InvoiceDownloadResponse; - /** - * Decodes an InvoiceDownloadResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns InvoiceDownloadResponse - * @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)): BI.InvoiceDownloadResponse; - - /** - * Verifies an InvoiceDownloadResponse 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 InvoiceDownloadResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -91497,14 +72849,6 @@ export namespace BI { */ public static encode(message: BI.IVaultInvoiceDownloadLinkRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified VaultInvoiceDownloadLinkRequest message, length delimited. Does not implicitly {@link BI.VaultInvoiceDownloadLinkRequest.verify|verify} messages. - * @param message VaultInvoiceDownloadLinkRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: BI.IVaultInvoiceDownloadLinkRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a VaultInvoiceDownloadLinkRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -91515,22 +72859,6 @@ export namespace BI { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.VaultInvoiceDownloadLinkRequest; - /** - * Decodes a VaultInvoiceDownloadLinkRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns VaultInvoiceDownloadLinkRequest - * @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)): BI.VaultInvoiceDownloadLinkRequest; - - /** - * Verifies a VaultInvoiceDownloadLinkRequest 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 VaultInvoiceDownloadLinkRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -91600,14 +72928,6 @@ export namespace BI { */ public static encode(message: BI.IVaultInvoiceDownloadLinkResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified VaultInvoiceDownloadLinkResponse message, length delimited. Does not implicitly {@link BI.VaultInvoiceDownloadLinkResponse.verify|verify} messages. - * @param message VaultInvoiceDownloadLinkResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: BI.IVaultInvoiceDownloadLinkResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a VaultInvoiceDownloadLinkResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -91618,22 +72938,6 @@ export namespace BI { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.VaultInvoiceDownloadLinkResponse; - /** - * Decodes a VaultInvoiceDownloadLinkResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns VaultInvoiceDownloadLinkResponse - * @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)): BI.VaultInvoiceDownloadLinkResponse; - - /** - * Verifies a VaultInvoiceDownloadLinkResponse 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 VaultInvoiceDownloadLinkResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -91703,14 +73007,6 @@ export namespace BI { */ public static encode(message: BI.IReportingDailySnapshotRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified ReportingDailySnapshotRequest message, length delimited. Does not implicitly {@link BI.ReportingDailySnapshotRequest.verify|verify} messages. - * @param message ReportingDailySnapshotRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: BI.IReportingDailySnapshotRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a ReportingDailySnapshotRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -91721,22 +73017,6 @@ export namespace BI { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.ReportingDailySnapshotRequest; - /** - * Decodes a ReportingDailySnapshotRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ReportingDailySnapshotRequest - * @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)): BI.ReportingDailySnapshotRequest; - - /** - * Verifies a ReportingDailySnapshotRequest 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 ReportingDailySnapshotRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -91806,14 +73086,6 @@ export namespace BI { */ public static encode(message: BI.IReportingDailySnapshotResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified ReportingDailySnapshotResponse message, length delimited. Does not implicitly {@link BI.ReportingDailySnapshotResponse.verify|verify} messages. - * @param message ReportingDailySnapshotResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: BI.IReportingDailySnapshotResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a ReportingDailySnapshotResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -91824,22 +73096,6 @@ export namespace BI { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.ReportingDailySnapshotResponse; - /** - * Decodes a ReportingDailySnapshotResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ReportingDailySnapshotResponse - * @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)): BI.ReportingDailySnapshotResponse; - - /** - * Verifies a ReportingDailySnapshotResponse 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 ReportingDailySnapshotResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -91933,14 +73189,6 @@ export namespace BI { */ public static encode(message: BI.ISnapshotRecord, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified SnapshotRecord message, length delimited. Does not implicitly {@link BI.SnapshotRecord.verify|verify} messages. - * @param message SnapshotRecord message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: BI.ISnapshotRecord, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a SnapshotRecord message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -91951,22 +73199,6 @@ export namespace BI { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.SnapshotRecord; - /** - * Decodes a SnapshotRecord message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SnapshotRecord - * @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)): BI.SnapshotRecord; - - /** - * Verifies a SnapshotRecord 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 SnapshotRecord message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -92038,14 +73270,6 @@ export namespace BI { */ public static encode(message: BI.SnapshotRecord.IAddon, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified Addon message, length delimited. Does not implicitly {@link BI.SnapshotRecord.Addon.verify|verify} messages. - * @param message Addon message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: BI.SnapshotRecord.IAddon, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes an Addon message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -92056,22 +73280,6 @@ export namespace BI { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.SnapshotRecord.Addon; - /** - * Decodes an Addon message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Addon - * @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)): BI.SnapshotRecord.Addon; - - /** - * Verifies an Addon 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 Addon message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -92142,14 +73350,6 @@ export namespace BI { */ public static encode(message: BI.ISnapshotMcEnterprise, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified SnapshotMcEnterprise message, length delimited. Does not implicitly {@link BI.SnapshotMcEnterprise.verify|verify} messages. - * @param message SnapshotMcEnterprise message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: BI.ISnapshotMcEnterprise, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a SnapshotMcEnterprise message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -92160,22 +73360,6 @@ export namespace BI { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.SnapshotMcEnterprise; - /** - * Decodes a SnapshotMcEnterprise message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SnapshotMcEnterprise - * @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)): BI.SnapshotMcEnterprise; - - /** - * Verifies a SnapshotMcEnterprise 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 SnapshotMcEnterprise message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -92233,14 +73417,6 @@ export namespace BI { */ public static encode(message: BI.IMappingAddonsRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified MappingAddonsRequest message, length delimited. Does not implicitly {@link BI.MappingAddonsRequest.verify|verify} messages. - * @param message MappingAddonsRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: BI.IMappingAddonsRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a MappingAddonsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -92251,22 +73427,6 @@ export namespace BI { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.MappingAddonsRequest; - /** - * Decodes a MappingAddonsRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns MappingAddonsRequest - * @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)): BI.MappingAddonsRequest; - - /** - * Verifies a MappingAddonsRequest 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 MappingAddonsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -92336,14 +73496,6 @@ export namespace BI { */ public static encode(message: BI.IMappingAddonsResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified MappingAddonsResponse message, length delimited. Does not implicitly {@link BI.MappingAddonsResponse.verify|verify} messages. - * @param message MappingAddonsResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: BI.IMappingAddonsResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a MappingAddonsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -92354,22 +73506,6 @@ export namespace BI { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.MappingAddonsResponse; - /** - * Decodes a MappingAddonsResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns MappingAddonsResponse - * @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)): BI.MappingAddonsResponse; - - /** - * Verifies a MappingAddonsResponse 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 MappingAddonsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -92439,14 +73575,6 @@ export namespace BI { */ public static encode(message: BI.IMappingItem, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified MappingItem message, length delimited. Does not implicitly {@link BI.MappingItem.verify|verify} messages. - * @param message MappingItem message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: BI.IMappingItem, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a MappingItem message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -92457,22 +73585,6 @@ export namespace BI { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.MappingItem; - /** - * Decodes a MappingItem message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns MappingItem - * @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)): BI.MappingItem; - - /** - * Verifies a MappingItem 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 MappingItem message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -92536,14 +73648,6 @@ export namespace BI { */ public static encode(message: BI.IGradientValidateKeyRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified GradientValidateKeyRequest message, length delimited. Does not implicitly {@link BI.GradientValidateKeyRequest.verify|verify} messages. - * @param message GradientValidateKeyRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: BI.IGradientValidateKeyRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a GradientValidateKeyRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -92554,22 +73658,6 @@ export namespace BI { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.GradientValidateKeyRequest; - /** - * Decodes a GradientValidateKeyRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GradientValidateKeyRequest - * @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)): BI.GradientValidateKeyRequest; - - /** - * Verifies a GradientValidateKeyRequest 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 GradientValidateKeyRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -92639,14 +73727,6 @@ export namespace BI { */ public static encode(message: BI.IGradientValidateKeyResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified GradientValidateKeyResponse message, length delimited. Does not implicitly {@link BI.GradientValidateKeyResponse.verify|verify} messages. - * @param message GradientValidateKeyResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: BI.IGradientValidateKeyResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a GradientValidateKeyResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -92657,22 +73737,6 @@ export namespace BI { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.GradientValidateKeyResponse; - /** - * Decodes a GradientValidateKeyResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GradientValidateKeyResponse - * @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)): BI.GradientValidateKeyResponse; - - /** - * Verifies a GradientValidateKeyResponse 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 GradientValidateKeyResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -92742,14 +73806,6 @@ export namespace BI { */ public static encode(message: BI.IGradientSaveRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified GradientSaveRequest message, length delimited. Does not implicitly {@link BI.GradientSaveRequest.verify|verify} messages. - * @param message GradientSaveRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: BI.IGradientSaveRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a GradientSaveRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -92760,22 +73816,6 @@ export namespace BI { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.GradientSaveRequest; - /** - * Decodes a GradientSaveRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GradientSaveRequest - * @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)): BI.GradientSaveRequest; - - /** - * Verifies a GradientSaveRequest 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 GradientSaveRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -92851,14 +73891,6 @@ export namespace BI { */ public static encode(message: BI.IGradientSaveResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified GradientSaveResponse message, length delimited. Does not implicitly {@link BI.GradientSaveResponse.verify|verify} messages. - * @param message GradientSaveResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: BI.IGradientSaveResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a GradientSaveResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -92869,22 +73901,6 @@ export namespace BI { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.GradientSaveResponse; - /** - * Decodes a GradientSaveResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GradientSaveResponse - * @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)): BI.GradientSaveResponse; - - /** - * Verifies a GradientSaveResponse 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 GradientSaveResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -92948,14 +73964,6 @@ export namespace BI { */ public static encode(message: BI.IGradientRemoveRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified GradientRemoveRequest message, length delimited. Does not implicitly {@link BI.GradientRemoveRequest.verify|verify} messages. - * @param message GradientRemoveRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: BI.IGradientRemoveRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a GradientRemoveRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -92966,22 +73974,6 @@ export namespace BI { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.GradientRemoveRequest; - /** - * Decodes a GradientRemoveRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GradientRemoveRequest - * @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)): BI.GradientRemoveRequest; - - /** - * Verifies a GradientRemoveRequest 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 GradientRemoveRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -93051,14 +74043,6 @@ export namespace BI { */ public static encode(message: BI.IGradientRemoveResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified GradientRemoveResponse message, length delimited. Does not implicitly {@link BI.GradientRemoveResponse.verify|verify} messages. - * @param message GradientRemoveResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: BI.IGradientRemoveResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a GradientRemoveResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -93069,22 +74053,6 @@ export namespace BI { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.GradientRemoveResponse; - /** - * Decodes a GradientRemoveResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GradientRemoveResponse - * @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)): BI.GradientRemoveResponse; - - /** - * Verifies a GradientRemoveResponse 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 GradientRemoveResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -93148,14 +74116,6 @@ export namespace BI { */ public static encode(message: BI.IGradientSyncRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified GradientSyncRequest message, length delimited. Does not implicitly {@link BI.GradientSyncRequest.verify|verify} messages. - * @param message GradientSyncRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: BI.IGradientSyncRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a GradientSyncRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -93166,22 +74126,6 @@ export namespace BI { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.GradientSyncRequest; - /** - * Decodes a GradientSyncRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GradientSyncRequest - * @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)): BI.GradientSyncRequest; - - /** - * Verifies a GradientSyncRequest 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 GradientSyncRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -93257,14 +74201,6 @@ export namespace BI { */ public static encode(message: BI.IGradientSyncResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified GradientSyncResponse message, length delimited. Does not implicitly {@link BI.GradientSyncResponse.verify|verify} messages. - * @param message GradientSyncResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: BI.IGradientSyncResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a GradientSyncResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -93275,22 +74211,6 @@ export namespace BI { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.GradientSyncResponse; - /** - * Decodes a GradientSyncResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GradientSyncResponse - * @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)): BI.GradientSyncResponse; - - /** - * Verifies a GradientSyncResponse 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 GradientSyncResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -93368,14 +74288,6 @@ export namespace BI { */ public static encode(message: BI.INetPromoterScoreSurveySubmissionRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified NetPromoterScoreSurveySubmissionRequest message, length delimited. Does not implicitly {@link BI.NetPromoterScoreSurveySubmissionRequest.verify|verify} messages. - * @param message NetPromoterScoreSurveySubmissionRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: BI.INetPromoterScoreSurveySubmissionRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a NetPromoterScoreSurveySubmissionRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -93386,22 +74298,6 @@ export namespace BI { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.NetPromoterScoreSurveySubmissionRequest; - /** - * Decodes a NetPromoterScoreSurveySubmissionRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns NetPromoterScoreSurveySubmissionRequest - * @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)): BI.NetPromoterScoreSurveySubmissionRequest; - - /** - * Verifies a NetPromoterScoreSurveySubmissionRequest 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 NetPromoterScoreSurveySubmissionRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -93459,14 +74355,6 @@ export namespace BI { */ public static encode(message: BI.INetPromoterScoreSurveySubmissionResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified NetPromoterScoreSurveySubmissionResponse message, length delimited. Does not implicitly {@link BI.NetPromoterScoreSurveySubmissionResponse.verify|verify} messages. - * @param message NetPromoterScoreSurveySubmissionResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: BI.INetPromoterScoreSurveySubmissionResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a NetPromoterScoreSurveySubmissionResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -93477,22 +74365,6 @@ export namespace BI { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.NetPromoterScoreSurveySubmissionResponse; - /** - * Decodes a NetPromoterScoreSurveySubmissionResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns NetPromoterScoreSurveySubmissionResponse - * @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)): BI.NetPromoterScoreSurveySubmissionResponse; - - /** - * Verifies a NetPromoterScoreSurveySubmissionResponse 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 NetPromoterScoreSurveySubmissionResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -93550,14 +74422,6 @@ export namespace BI { */ public static encode(message: BI.INetPromoterScorePopupScheduleRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified NetPromoterScorePopupScheduleRequest message, length delimited. Does not implicitly {@link BI.NetPromoterScorePopupScheduleRequest.verify|verify} messages. - * @param message NetPromoterScorePopupScheduleRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: BI.INetPromoterScorePopupScheduleRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a NetPromoterScorePopupScheduleRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -93568,22 +74432,6 @@ export namespace BI { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.NetPromoterScorePopupScheduleRequest; - /** - * Decodes a NetPromoterScorePopupScheduleRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns NetPromoterScorePopupScheduleRequest - * @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)): BI.NetPromoterScorePopupScheduleRequest; - - /** - * Verifies a NetPromoterScorePopupScheduleRequest 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 NetPromoterScorePopupScheduleRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -93647,14 +74495,6 @@ export namespace BI { */ public static encode(message: BI.INetPromoterScorePopupScheduleResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified NetPromoterScorePopupScheduleResponse message, length delimited. Does not implicitly {@link BI.NetPromoterScorePopupScheduleResponse.verify|verify} messages. - * @param message NetPromoterScorePopupScheduleResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: BI.INetPromoterScorePopupScheduleResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a NetPromoterScorePopupScheduleResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -93665,22 +74505,6 @@ export namespace BI { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.NetPromoterScorePopupScheduleResponse; - /** - * Decodes a NetPromoterScorePopupScheduleResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns NetPromoterScorePopupScheduleResponse - * @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)): BI.NetPromoterScorePopupScheduleResponse; - - /** - * Verifies a NetPromoterScorePopupScheduleResponse 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 NetPromoterScorePopupScheduleResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -93738,14 +74562,6 @@ export namespace BI { */ public static encode(message: BI.INetPromoterScorePopupDismissalRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified NetPromoterScorePopupDismissalRequest message, length delimited. Does not implicitly {@link BI.NetPromoterScorePopupDismissalRequest.verify|verify} messages. - * @param message NetPromoterScorePopupDismissalRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: BI.INetPromoterScorePopupDismissalRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a NetPromoterScorePopupDismissalRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -93756,22 +74572,6 @@ export namespace BI { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.NetPromoterScorePopupDismissalRequest; - /** - * Decodes a NetPromoterScorePopupDismissalRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns NetPromoterScorePopupDismissalRequest - * @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)): BI.NetPromoterScorePopupDismissalRequest; - - /** - * Verifies a NetPromoterScorePopupDismissalRequest 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 NetPromoterScorePopupDismissalRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -93829,14 +74629,6 @@ export namespace BI { */ public static encode(message: BI.INetPromoterScorePopupDismissalResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified NetPromoterScorePopupDismissalResponse message, length delimited. Does not implicitly {@link BI.NetPromoterScorePopupDismissalResponse.verify|verify} messages. - * @param message NetPromoterScorePopupDismissalResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: BI.INetPromoterScorePopupDismissalResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a NetPromoterScorePopupDismissalResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -93847,22 +74639,6 @@ export namespace BI { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.NetPromoterScorePopupDismissalResponse; - /** - * Decodes a NetPromoterScorePopupDismissalResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns NetPromoterScorePopupDismissalResponse - * @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)): BI.NetPromoterScorePopupDismissalResponse; - - /** - * Verifies a NetPromoterScorePopupDismissalResponse 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 NetPromoterScorePopupDismissalResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -93926,14 +74702,6 @@ export namespace BI { */ public static encode(message: BI.IKCMLicenseRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified KCMLicenseRequest message, length delimited. Does not implicitly {@link BI.KCMLicenseRequest.verify|verify} messages. - * @param message KCMLicenseRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: BI.IKCMLicenseRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a KCMLicenseRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -93944,22 +74712,6 @@ export namespace BI { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.KCMLicenseRequest; - /** - * Decodes a KCMLicenseRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns KCMLicenseRequest - * @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)): BI.KCMLicenseRequest; - - /** - * Verifies a KCMLicenseRequest 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 KCMLicenseRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -94023,14 +74775,6 @@ export namespace BI { */ public static encode(message: BI.IKCMLicenseResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified KCMLicenseResponse message, length delimited. Does not implicitly {@link BI.KCMLicenseResponse.verify|verify} messages. - * @param message KCMLicenseResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: BI.IKCMLicenseResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a KCMLicenseResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -94041,22 +74785,6 @@ export namespace BI { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.KCMLicenseResponse; - /** - * Decodes a KCMLicenseResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns KCMLicenseResponse - * @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)): BI.KCMLicenseResponse; - - /** - * Verifies a KCMLicenseResponse 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 KCMLicenseResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -94150,14 +74878,6 @@ export namespace BI { */ public static encode(message: BI.IEventRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified EventRequest message, length delimited. Does not implicitly {@link BI.EventRequest.verify|verify} messages. - * @param message EventRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: BI.IEventRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes an EventRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -94168,22 +74888,6 @@ export namespace BI { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.EventRequest; - /** - * Decodes an EventRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns EventRequest - * @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)): BI.EventRequest; - - /** - * Verifies an EventRequest 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 EventRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -94247,14 +74951,6 @@ export namespace BI { */ public static encode(message: BI.IEventsRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified EventsRequest message, length delimited. Does not implicitly {@link BI.EventsRequest.verify|verify} messages. - * @param message EventsRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: BI.IEventsRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes an EventsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -94265,22 +74961,6 @@ export namespace BI { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.EventsRequest; - /** - * Decodes an EventsRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns EventsRequest - * @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)): BI.EventsRequest; - - /** - * Verifies an EventsRequest 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 EventsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -94350,14 +75030,6 @@ export namespace BI { */ public static encode(message: BI.IEventResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified EventResponse message, length delimited. Does not implicitly {@link BI.EventResponse.verify|verify} messages. - * @param message EventResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: BI.IEventResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes an EventResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -94368,22 +75040,6 @@ export namespace BI { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.EventResponse; - /** - * Decodes an EventResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns EventResponse - * @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)): BI.EventResponse; - - /** - * Verifies an EventResponse 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 EventResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -94447,14 +75103,6 @@ export namespace BI { */ public static encode(message: BI.IEventsResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified EventsResponse message, length delimited. Does not implicitly {@link BI.EventsResponse.verify|verify} messages. - * @param message EventsResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: BI.IEventsResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes an EventsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -94465,22 +75113,6 @@ export namespace BI { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.EventsResponse; - /** - * Decodes an EventsResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns EventsResponse - * @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)): BI.EventsResponse; - - /** - * Verifies an EventsResponse 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 EventsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -94592,14 +75224,6 @@ export namespace BI { */ public static encode(message: BI.ICustomerCaptureRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified CustomerCaptureRequest message, length delimited. Does not implicitly {@link BI.CustomerCaptureRequest.verify|verify} messages. - * @param message CustomerCaptureRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: BI.ICustomerCaptureRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a CustomerCaptureRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -94610,22 +75234,6 @@ export namespace BI { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.CustomerCaptureRequest; - /** - * Decodes a CustomerCaptureRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns CustomerCaptureRequest - * @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)): BI.CustomerCaptureRequest; - - /** - * Verifies a CustomerCaptureRequest 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 CustomerCaptureRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -94683,14 +75291,6 @@ export namespace BI { */ public static encode(message: BI.ICustomerCaptureResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified CustomerCaptureResponse message, length delimited. Does not implicitly {@link BI.CustomerCaptureResponse.verify|verify} messages. - * @param message CustomerCaptureResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: BI.ICustomerCaptureResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a CustomerCaptureResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -94701,22 +75301,6 @@ export namespace BI { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.CustomerCaptureResponse; - /** - * Decodes a CustomerCaptureResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns CustomerCaptureResponse - * @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)): BI.CustomerCaptureResponse; - - /** - * Verifies a CustomerCaptureResponse 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 CustomerCaptureResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -94808,14 +75392,6 @@ export namespace BI { */ public static encode(message: BI.IError, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified Error message, length delimited. Does not implicitly {@link BI.Error.verify|verify} messages. - * @param message Error message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: BI.IError, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes an Error message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -94826,22 +75402,6 @@ export namespace BI { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.Error; - /** - * Decodes an Error message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Error - * @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)): BI.Error; - - /** - * Verifies an Error 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 Error message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -94935,14 +75495,6 @@ export namespace BI { */ public static encode(message: BI.IQuotePurchase, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified QuotePurchase message, length delimited. Does not implicitly {@link BI.QuotePurchase.verify|verify} messages. - * @param message QuotePurchase message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: BI.IQuotePurchase, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a QuotePurchase message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -94953,22 +75505,6 @@ export namespace BI { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.QuotePurchase; - /** - * Decodes a QuotePurchase message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns QuotePurchase - * @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)): BI.QuotePurchase; - - /** - * Verifies a QuotePurchase 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 QuotePurchase message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -95038,14 +75574,6 @@ export namespace BI { */ public static encode(message: BI.IPurchaseOptions, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified PurchaseOptions message, length delimited. Does not implicitly {@link BI.PurchaseOptions.verify|verify} messages. - * @param message PurchaseOptions message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: BI.IPurchaseOptions, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a PurchaseOptions message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -95056,22 +75584,6 @@ export namespace BI { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.PurchaseOptions; - /** - * Decodes a PurchaseOptions message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns PurchaseOptions - * @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)): BI.PurchaseOptions; - - /** - * Verifies a PurchaseOptions 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 PurchaseOptions message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -95207,14 +75719,6 @@ export namespace BI { */ public static encode(message: BI.IAddonPurchaseOptions, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified AddonPurchaseOptions message, length delimited. Does not implicitly {@link BI.AddonPurchaseOptions.verify|verify} messages. - * @param message AddonPurchaseOptions message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: BI.IAddonPurchaseOptions, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes an AddonPurchaseOptions message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -95225,22 +75729,6 @@ export namespace BI { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.AddonPurchaseOptions; - /** - * Decodes an AddonPurchaseOptions message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns AddonPurchaseOptions - * @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)): BI.AddonPurchaseOptions; - - /** - * Verifies an AddonPurchaseOptions 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 AddonPurchaseOptions message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -95316,14 +75804,6 @@ export namespace BI { */ public static encode(message: BI.IAvailablePurchaseOptions, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified AvailablePurchaseOptions message, length delimited. Does not implicitly {@link BI.AvailablePurchaseOptions.verify|verify} messages. - * @param message AvailablePurchaseOptions message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: BI.IAvailablePurchaseOptions, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes an AvailablePurchaseOptions message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -95334,22 +75814,6 @@ export namespace BI { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.AvailablePurchaseOptions; - /** - * Decodes an AvailablePurchaseOptions message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns AvailablePurchaseOptions - * @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)): BI.AvailablePurchaseOptions; - - /** - * Verifies an AvailablePurchaseOptions 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 AvailablePurchaseOptions message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -95407,14 +75871,6 @@ export namespace BI { */ public static encode(message: BI.IUpgradeLicenseStatusRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified UpgradeLicenseStatusRequest message, length delimited. Does not implicitly {@link BI.UpgradeLicenseStatusRequest.verify|verify} messages. - * @param message UpgradeLicenseStatusRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: BI.IUpgradeLicenseStatusRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes an UpgradeLicenseStatusRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -95425,22 +75881,6 @@ export namespace BI { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.UpgradeLicenseStatusRequest; - /** - * Decodes an UpgradeLicenseStatusRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns UpgradeLicenseStatusRequest - * @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)): BI.UpgradeLicenseStatusRequest; - - /** - * Verifies an UpgradeLicenseStatusRequest 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 UpgradeLicenseStatusRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -95516,14 +75956,6 @@ export namespace BI { */ public static encode(message: BI.IUpgradeLicenseStatusResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified UpgradeLicenseStatusResponse message, length delimited. Does not implicitly {@link BI.UpgradeLicenseStatusResponse.verify|verify} messages. - * @param message UpgradeLicenseStatusResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: BI.IUpgradeLicenseStatusResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes an UpgradeLicenseStatusResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -95534,22 +75966,6 @@ export namespace BI { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.UpgradeLicenseStatusResponse; - /** - * Decodes an UpgradeLicenseStatusResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns UpgradeLicenseStatusResponse - * @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)): BI.UpgradeLicenseStatusResponse; - - /** - * Verifies an UpgradeLicenseStatusResponse 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 UpgradeLicenseStatusResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -95625,14 +76041,6 @@ export namespace BI { */ public static encode(message: BI.IUpgradeLicenseQuotePurchaseRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified UpgradeLicenseQuotePurchaseRequest message, length delimited. Does not implicitly {@link BI.UpgradeLicenseQuotePurchaseRequest.verify|verify} messages. - * @param message UpgradeLicenseQuotePurchaseRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: BI.IUpgradeLicenseQuotePurchaseRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes an UpgradeLicenseQuotePurchaseRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -95643,22 +76051,6 @@ export namespace BI { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.UpgradeLicenseQuotePurchaseRequest; - /** - * Decodes an UpgradeLicenseQuotePurchaseRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns UpgradeLicenseQuotePurchaseRequest - * @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)): BI.UpgradeLicenseQuotePurchaseRequest; - - /** - * Verifies an UpgradeLicenseQuotePurchaseRequest 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 UpgradeLicenseQuotePurchaseRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -95740,14 +76132,6 @@ export namespace BI { */ public static encode(message: BI.IUpgradeLicenseQuotePurchaseResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified UpgradeLicenseQuotePurchaseResponse message, length delimited. Does not implicitly {@link BI.UpgradeLicenseQuotePurchaseResponse.verify|verify} messages. - * @param message UpgradeLicenseQuotePurchaseResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: BI.IUpgradeLicenseQuotePurchaseResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes an UpgradeLicenseQuotePurchaseResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -95758,22 +76142,6 @@ export namespace BI { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.UpgradeLicenseQuotePurchaseResponse; - /** - * Decodes an UpgradeLicenseQuotePurchaseResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns UpgradeLicenseQuotePurchaseResponse - * @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)): BI.UpgradeLicenseQuotePurchaseResponse; - - /** - * Verifies an UpgradeLicenseQuotePurchaseResponse 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 UpgradeLicenseQuotePurchaseResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -95855,14 +76223,6 @@ export namespace BI { */ public static encode(message: BI.IUpgradeLicenseCompletePurchaseRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified UpgradeLicenseCompletePurchaseRequest message, length delimited. Does not implicitly {@link BI.UpgradeLicenseCompletePurchaseRequest.verify|verify} messages. - * @param message UpgradeLicenseCompletePurchaseRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: BI.IUpgradeLicenseCompletePurchaseRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes an UpgradeLicenseCompletePurchaseRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -95873,22 +76233,6 @@ export namespace BI { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.UpgradeLicenseCompletePurchaseRequest; - /** - * Decodes an UpgradeLicenseCompletePurchaseRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns UpgradeLicenseCompletePurchaseRequest - * @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)): BI.UpgradeLicenseCompletePurchaseRequest; - - /** - * Verifies an UpgradeLicenseCompletePurchaseRequest 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 UpgradeLicenseCompletePurchaseRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -95970,14 +76314,6 @@ export namespace BI { */ public static encode(message: BI.IUpgradeLicenseCompletePurchaseResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified UpgradeLicenseCompletePurchaseResponse message, length delimited. Does not implicitly {@link BI.UpgradeLicenseCompletePurchaseResponse.verify|verify} messages. - * @param message UpgradeLicenseCompletePurchaseResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: BI.IUpgradeLicenseCompletePurchaseResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes an UpgradeLicenseCompletePurchaseResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -95988,22 +76324,6 @@ export namespace BI { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.UpgradeLicenseCompletePurchaseResponse; - /** - * Decodes an UpgradeLicenseCompletePurchaseResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns UpgradeLicenseCompletePurchaseResponse - * @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)): BI.UpgradeLicenseCompletePurchaseResponse; - - /** - * Verifies an UpgradeLicenseCompletePurchaseResponse 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 UpgradeLicenseCompletePurchaseResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -96073,14 +76393,6 @@ export namespace BI { */ public static encode(message: BI.IEnterpriseBasePlan, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified EnterpriseBasePlan message, length delimited. Does not implicitly {@link BI.EnterpriseBasePlan.verify|verify} messages. - * @param message EnterpriseBasePlan message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: BI.IEnterpriseBasePlan, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes an EnterpriseBasePlan message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -96091,22 +76403,6 @@ export namespace BI { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.EnterpriseBasePlan; - /** - * Decodes an EnterpriseBasePlan message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns EnterpriseBasePlan - * @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)): BI.EnterpriseBasePlan; - - /** - * Verifies an EnterpriseBasePlan 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 EnterpriseBasePlan message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -96175,14 +76471,6 @@ export namespace BI { */ public static encode(message: BI.ISubscriptionEnterprisePricingRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified SubscriptionEnterprisePricingRequest message, length delimited. Does not implicitly {@link BI.SubscriptionEnterprisePricingRequest.verify|verify} messages. - * @param message SubscriptionEnterprisePricingRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: BI.ISubscriptionEnterprisePricingRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a SubscriptionEnterprisePricingRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -96193,22 +76481,6 @@ export namespace BI { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.SubscriptionEnterprisePricingRequest; - /** - * Decodes a SubscriptionEnterprisePricingRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SubscriptionEnterprisePricingRequest - * @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)): BI.SubscriptionEnterprisePricingRequest; - - /** - * Verifies a SubscriptionEnterprisePricingRequest 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 SubscriptionEnterprisePricingRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -96296,14 +76568,6 @@ export namespace BI { */ public static encode(message: BI.INhiTierPlan, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified NhiTierPlan message, length delimited. Does not implicitly {@link BI.NhiTierPlan.verify|verify} messages. - * @param message NhiTierPlan message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: BI.INhiTierPlan, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a NhiTierPlan message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -96314,22 +76578,6 @@ export namespace BI { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.NhiTierPlan; - /** - * Decodes a NhiTierPlan message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns NhiTierPlan - * @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)): BI.NhiTierPlan; - - /** - * Verifies a NhiTierPlan 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 NhiTierPlan message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -96411,14 +76659,6 @@ export namespace BI { */ public static encode(message: BI.ISubscriptionEnterprisePricingResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified SubscriptionEnterprisePricingResponse message, length delimited. Does not implicitly {@link BI.SubscriptionEnterprisePricingResponse.verify|verify} messages. - * @param message SubscriptionEnterprisePricingResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: BI.ISubscriptionEnterprisePricingResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a SubscriptionEnterprisePricingResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -96429,22 +76669,6 @@ export namespace BI { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.SubscriptionEnterprisePricingResponse; - /** - * Decodes a SubscriptionEnterprisePricingResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SubscriptionEnterprisePricingResponse - * @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)): BI.SubscriptionEnterprisePricingResponse; - - /** - * Verifies a SubscriptionEnterprisePricingResponse 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 SubscriptionEnterprisePricingResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -96527,14 +76751,6 @@ export namespace BI { */ public static encode(message: BI.ISingularDeviceIdentifier, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified SingularDeviceIdentifier message, length delimited. Does not implicitly {@link BI.SingularDeviceIdentifier.verify|verify} messages. - * @param message SingularDeviceIdentifier message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: BI.ISingularDeviceIdentifier, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a SingularDeviceIdentifier message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -96545,22 +76761,6 @@ export namespace BI { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.SingularDeviceIdentifier; - /** - * Decodes a SingularDeviceIdentifier message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SingularDeviceIdentifier - * @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)): BI.SingularDeviceIdentifier; - - /** - * Verifies a SingularDeviceIdentifier 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 SingularDeviceIdentifier message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -96666,14 +76866,6 @@ export namespace BI { */ public static encode(message: BI.ISingularSharedData, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified SingularSharedData message, length delimited. Does not implicitly {@link BI.SingularSharedData.verify|verify} messages. - * @param message SingularSharedData message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: BI.ISingularSharedData, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a SingularSharedData message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -96684,22 +76876,6 @@ export namespace BI { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.SingularSharedData; - /** - * Decodes a SingularSharedData message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SingularSharedData - * @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)): BI.SingularSharedData; - - /** - * Verifies a SingularSharedData 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 SingularSharedData message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -96841,14 +77017,6 @@ export namespace BI { */ public static encode(message: BI.ISingularSessionRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified SingularSessionRequest message, length delimited. Does not implicitly {@link BI.SingularSessionRequest.verify|verify} messages. - * @param message SingularSessionRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: BI.ISingularSessionRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a SingularSessionRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -96859,22 +77027,6 @@ export namespace BI { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.SingularSessionRequest; - /** - * Decodes a SingularSessionRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SingularSessionRequest - * @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)): BI.SingularSessionRequest; - - /** - * Verifies a SingularSessionRequest 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 SingularSessionRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -96950,14 +77102,6 @@ export namespace BI { */ public static encode(message: BI.ISingularEventRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified SingularEventRequest message, length delimited. Does not implicitly {@link BI.SingularEventRequest.verify|verify} messages. - * @param message SingularEventRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: BI.ISingularEventRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a SingularEventRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -96968,22 +77112,6 @@ export namespace BI { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.SingularEventRequest; - /** - * Decodes a SingularEventRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SingularEventRequest - * @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)): BI.SingularEventRequest; - - /** - * Verifies a SingularEventRequest 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 SingularEventRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -97047,14 +77175,6 @@ export namespace BI { */ public static encode(message: BI.IActivePamCountRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified ActivePamCountRequest message, length delimited. Does not implicitly {@link BI.ActivePamCountRequest.verify|verify} messages. - * @param message ActivePamCountRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: BI.IActivePamCountRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes an ActivePamCountRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -97065,22 +77185,6 @@ export namespace BI { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.ActivePamCountRequest; - /** - * Decodes an ActivePamCountRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ActivePamCountRequest - * @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)): BI.ActivePamCountRequest; - - /** - * Verifies an ActivePamCountRequest 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 ActivePamCountRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -97144,14 +77248,6 @@ export namespace BI { */ public static encode(message: BI.IActivePamCountResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified ActivePamCountResponse message, length delimited. Does not implicitly {@link BI.ActivePamCountResponse.verify|verify} messages. - * @param message ActivePamCountResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: BI.IActivePamCountResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes an ActivePamCountResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -97162,22 +77258,6 @@ export namespace BI { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.ActivePamCountResponse; - /** - * Decodes an ActivePamCountResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ActivePamCountResponse - * @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)): BI.ActivePamCountResponse; - - /** - * Verifies an ActivePamCountResponse 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 ActivePamCountResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -97253,14 +77333,6 @@ export namespace BI { */ public static encode(message: BI.INhiEnterpriseRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified NhiEnterpriseRequest message, length delimited. Does not implicitly {@link BI.NhiEnterpriseRequest.verify|verify} messages. - * @param message NhiEnterpriseRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: BI.INhiEnterpriseRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a NhiEnterpriseRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -97271,22 +77343,6 @@ export namespace BI { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.NhiEnterpriseRequest; - /** - * Decodes a NhiEnterpriseRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns NhiEnterpriseRequest - * @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)): BI.NhiEnterpriseRequest; - - /** - * Verifies a NhiEnterpriseRequest 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 NhiEnterpriseRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -97368,14 +77424,6 @@ export namespace BI { */ public static encode(message: BI.INhiMetricsRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified NhiMetricsRequest message, length delimited. Does not implicitly {@link BI.NhiMetricsRequest.verify|verify} messages. - * @param message NhiMetricsRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: BI.INhiMetricsRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a NhiMetricsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -97386,22 +77434,6 @@ export namespace BI { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.NhiMetricsRequest; - /** - * Decodes a NhiMetricsRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns NhiMetricsRequest - * @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)): BI.NhiMetricsRequest; - - /** - * Verifies a NhiMetricsRequest 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 NhiMetricsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -97472,14 +77504,6 @@ export namespace google { */ public static encode(message: google.api.IHttp, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified Http message, length delimited. Does not implicitly {@link google.api.Http.verify|verify} messages. - * @param message Http message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.api.IHttp, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a Http message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -97490,22 +77514,6 @@ export namespace google { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.Http; - /** - * Decodes a Http message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Http - * @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.api.Http; - - /** - * Verifies a Http 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 Http message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -97620,14 +77628,6 @@ export namespace google { */ public static encode(message: google.api.IHttpRule, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified HttpRule message, length delimited. Does not implicitly {@link google.api.HttpRule.verify|verify} messages. - * @param message HttpRule message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.api.IHttpRule, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a HttpRule message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -97638,22 +77638,6 @@ export namespace google { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.HttpRule; - /** - * Decodes a HttpRule message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns HttpRule - * @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.api.HttpRule; - - /** - * Verifies a HttpRule 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 HttpRule message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -97723,14 +77707,6 @@ export namespace google { */ public static encode(message: google.api.ICustomHttpPattern, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified CustomHttpPattern message, length delimited. Does not implicitly {@link google.api.CustomHttpPattern.verify|verify} messages. - * @param message CustomHttpPattern message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.api.ICustomHttpPattern, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a CustomHttpPattern message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -97741,22 +77717,6 @@ export namespace google { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.CustomHttpPattern; - /** - * Decodes a CustomHttpPattern message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns CustomHttpPattern - * @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.api.CustomHttpPattern; - - /** - * Verifies a CustomHttpPattern 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 CustomHttpPattern message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -97824,14 +77784,6 @@ export namespace google { */ public static encode(message: google.protobuf.IFileDescriptorSet, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified FileDescriptorSet message, length delimited. Does not implicitly {@link google.protobuf.FileDescriptorSet.verify|verify} messages. - * @param message FileDescriptorSet message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.protobuf.IFileDescriptorSet, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a FileDescriptorSet message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -97842,22 +77794,6 @@ export namespace google { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FileDescriptorSet; - /** - * Decodes a FileDescriptorSet message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns FileDescriptorSet - * @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.FileDescriptorSet; - - /** - * Verifies a FileDescriptorSet 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 FileDescriptorSet message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -98015,14 +77951,6 @@ export namespace google { */ public static encode(message: google.protobuf.IFileDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified FileDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.FileDescriptorProto.verify|verify} messages. - * @param message FileDescriptorProto message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.protobuf.IFileDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a FileDescriptorProto message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -98033,22 +77961,6 @@ export namespace google { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FileDescriptorProto; - /** - * Decodes a FileDescriptorProto message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns FileDescriptorProto - * @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.FileDescriptorProto; - - /** - * Verifies a FileDescriptorProto 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 FileDescriptorProto message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -98172,14 +78084,6 @@ export namespace google { */ public static encode(message: google.protobuf.IDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified DescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.verify|verify} messages. - * @param message DescriptorProto message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.protobuf.IDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a DescriptorProto message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -98190,22 +78094,6 @@ export namespace google { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.DescriptorProto; - /** - * Decodes a DescriptorProto message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns DescriptorProto - * @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.DescriptorProto; - - /** - * Verifies a DescriptorProto 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 DescriptorProto message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -98283,14 +78171,6 @@ export namespace google { */ public static encode(message: google.protobuf.DescriptorProto.IExtensionRange, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified ExtensionRange message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.ExtensionRange.verify|verify} messages. - * @param message ExtensionRange message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.protobuf.DescriptorProto.IExtensionRange, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes an ExtensionRange message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -98301,22 +78181,6 @@ export namespace google { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.DescriptorProto.ExtensionRange; - /** - * Decodes an ExtensionRange message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ExtensionRange - * @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.DescriptorProto.ExtensionRange; - - /** - * Verifies an ExtensionRange 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 ExtensionRange message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -98386,14 +78250,6 @@ export namespace google { */ public static encode(message: google.protobuf.DescriptorProto.IReservedRange, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified ReservedRange message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.ReservedRange.verify|verify} messages. - * @param message ReservedRange message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.protobuf.DescriptorProto.IReservedRange, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a ReservedRange message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -98404,22 +78260,6 @@ export namespace google { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.DescriptorProto.ReservedRange; - /** - * Decodes a ReservedRange message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ReservedRange - * @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.DescriptorProto.ReservedRange; - - /** - * Verifies a ReservedRange 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 ReservedRange message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -98502,14 +78342,6 @@ export namespace google { */ 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 @@ -98520,22 +78352,6 @@ export namespace google { */ 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 @@ -98625,14 +78441,6 @@ export namespace google { */ 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 @@ -98643,22 +78451,6 @@ export namespace google { */ 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 @@ -98789,14 +78581,6 @@ export namespace google { */ public static encode(message: google.protobuf.IFieldDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified FieldDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.FieldDescriptorProto.verify|verify} messages. - * @param message FieldDescriptorProto message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.protobuf.IFieldDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a FieldDescriptorProto message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -98807,22 +78591,6 @@ export namespace google { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FieldDescriptorProto; - /** - * Decodes a FieldDescriptorProto message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns FieldDescriptorProto - * @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.FieldDescriptorProto; - - /** - * Verifies a FieldDescriptorProto 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 FieldDescriptorProto message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -98924,14 +78692,6 @@ export namespace google { */ public static encode(message: google.protobuf.IOneofDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified OneofDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.OneofDescriptorProto.verify|verify} messages. - * @param message OneofDescriptorProto message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.protobuf.IOneofDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes an OneofDescriptorProto message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -98942,22 +78702,6 @@ export namespace google { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.OneofDescriptorProto; - /** - * Decodes an OneofDescriptorProto message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns OneofDescriptorProto - * @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.OneofDescriptorProto; - - /** - * Verifies an OneofDescriptorProto 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 OneofDescriptorProto message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -99051,14 +78795,6 @@ export namespace google { */ public static encode(message: google.protobuf.IEnumDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified EnumDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.EnumDescriptorProto.verify|verify} messages. - * @param message EnumDescriptorProto message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.protobuf.IEnumDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes an EnumDescriptorProto message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -99069,22 +78805,6 @@ export namespace google { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumDescriptorProto; - /** - * Decodes an EnumDescriptorProto message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns EnumDescriptorProto - * @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; - - /** - * Verifies an EnumDescriptorProto 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 EnumDescriptorProto message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -99156,14 +78876,6 @@ export namespace google { */ 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 @@ -99174,22 +78886,6 @@ export namespace google { */ 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 @@ -99266,14 +78962,6 @@ export namespace google { */ public static encode(message: google.protobuf.IEnumValueDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified EnumValueDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.EnumValueDescriptorProto.verify|verify} messages. - * @param message EnumValueDescriptorProto message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.protobuf.IEnumValueDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes an EnumValueDescriptorProto message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -99284,22 +78972,6 @@ export namespace google { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumValueDescriptorProto; - /** - * Decodes an EnumValueDescriptorProto message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns EnumValueDescriptorProto - * @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.EnumValueDescriptorProto; - - /** - * Verifies an EnumValueDescriptorProto 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 EnumValueDescriptorProto message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -99375,14 +79047,6 @@ export namespace google { */ public static encode(message: google.protobuf.IServiceDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified ServiceDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.ServiceDescriptorProto.verify|verify} messages. - * @param message ServiceDescriptorProto message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.protobuf.IServiceDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a ServiceDescriptorProto message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -99393,22 +79057,6 @@ export namespace google { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.ServiceDescriptorProto; - /** - * Decodes a ServiceDescriptorProto message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ServiceDescriptorProto - * @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.ServiceDescriptorProto; - - /** - * Verifies a ServiceDescriptorProto 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 ServiceDescriptorProto message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -99502,14 +79150,6 @@ export namespace google { */ public static encode(message: google.protobuf.IMethodDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified MethodDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.MethodDescriptorProto.verify|verify} messages. - * @param message MethodDescriptorProto message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.protobuf.IMethodDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a MethodDescriptorProto message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -99520,22 +79160,6 @@ export namespace google { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.MethodDescriptorProto; - /** - * Decodes a MethodDescriptorProto message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns MethodDescriptorProto - * @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.MethodDescriptorProto; - - /** - * Verifies a MethodDescriptorProto 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 MethodDescriptorProto message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -99719,14 +79343,6 @@ export namespace google { */ public static encode(message: google.protobuf.IFileOptions, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified FileOptions message, length delimited. Does not implicitly {@link google.protobuf.FileOptions.verify|verify} messages. - * @param message FileOptions message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.protobuf.IFileOptions, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a FileOptions message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -99737,22 +79353,6 @@ export namespace google { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FileOptions; - /** - * Decodes a FileOptions message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns FileOptions - * @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.FileOptions; - - /** - * Verifies a FileOptions 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 FileOptions message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -99862,14 +79462,6 @@ export namespace google { */ public static encode(message: google.protobuf.IMessageOptions, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified MessageOptions message, length delimited. Does not implicitly {@link google.protobuf.MessageOptions.verify|verify} messages. - * @param message MessageOptions message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.protobuf.IMessageOptions, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a MessageOptions message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -99880,22 +79472,6 @@ export namespace google { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.MessageOptions; - /** - * Decodes a MessageOptions message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns MessageOptions - * @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.MessageOptions; - - /** - * Verifies a MessageOptions 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 MessageOptions message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -100037,14 +79613,6 @@ export namespace google { */ public static encode(message: google.protobuf.IFieldOptions, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified FieldOptions message, length delimited. Does not implicitly {@link google.protobuf.FieldOptions.verify|verify} messages. - * @param message FieldOptions message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.protobuf.IFieldOptions, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a FieldOptions message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -100055,22 +79623,6 @@ export namespace google { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FieldOptions; - /** - * Decodes a FieldOptions message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns FieldOptions - * @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; - - /** - * Verifies a FieldOptions 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 FieldOptions message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -100177,14 +79729,6 @@ export namespace google { */ 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 @@ -100195,22 +79739,6 @@ export namespace google { */ 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 @@ -100292,14 +79820,6 @@ export namespace google { */ 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 @@ -100310,22 +79830,6 @@ export namespace google { */ 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 @@ -100396,14 +79900,6 @@ export namespace google { */ public static encode(message: google.protobuf.IOneofOptions, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified OneofOptions message, length delimited. Does not implicitly {@link google.protobuf.OneofOptions.verify|verify} messages. - * @param message OneofOptions message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.protobuf.IOneofOptions, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes an OneofOptions message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -100414,22 +79910,6 @@ export namespace google { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.OneofOptions; - /** - * Decodes an OneofOptions message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns OneofOptions - * @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.OneofOptions; - - /** - * Verifies an OneofOptions 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 OneofOptions message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -100517,14 +79997,6 @@ export namespace google { */ public static encode(message: google.protobuf.IEnumOptions, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified EnumOptions message, length delimited. Does not implicitly {@link google.protobuf.EnumOptions.verify|verify} messages. - * @param message EnumOptions message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.protobuf.IEnumOptions, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes an EnumOptions message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -100535,22 +80007,6 @@ export namespace google { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumOptions; - /** - * Decodes an EnumOptions message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns EnumOptions - * @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.EnumOptions; - - /** - * Verifies an EnumOptions 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 EnumOptions message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -100638,14 +80094,6 @@ export namespace google { */ public static encode(message: google.protobuf.IEnumValueOptions, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified EnumValueOptions message, length delimited. Does not implicitly {@link google.protobuf.EnumValueOptions.verify|verify} messages. - * @param message EnumValueOptions message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.protobuf.IEnumValueOptions, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes an EnumValueOptions message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -100656,22 +80104,6 @@ export namespace google { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumValueOptions; - /** - * Decodes an EnumValueOptions message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns EnumValueOptions - * @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.EnumValueOptions; - - /** - * Verifies an EnumValueOptions 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 EnumValueOptions message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -100747,14 +80179,6 @@ export namespace google { */ public static encode(message: google.protobuf.IServiceOptions, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified ServiceOptions message, length delimited. Does not implicitly {@link google.protobuf.ServiceOptions.verify|verify} messages. - * @param message ServiceOptions message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.protobuf.IServiceOptions, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a ServiceOptions message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -100765,22 +80189,6 @@ export namespace google { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.ServiceOptions; - /** - * Decodes a ServiceOptions message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ServiceOptions - * @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.ServiceOptions; - - /** - * Verifies a ServiceOptions 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 ServiceOptions message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -100865,14 +80273,6 @@ export namespace google { */ public static encode(message: google.protobuf.IMethodOptions, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified MethodOptions message, length delimited. Does not implicitly {@link google.protobuf.MethodOptions.verify|verify} messages. - * @param message MethodOptions message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.protobuf.IMethodOptions, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a MethodOptions message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -100883,22 +80283,6 @@ export namespace google { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.MethodOptions; - /** - * Decodes a MethodOptions message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns MethodOptions - * @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.MethodOptions; - - /** - * Verifies a MethodOptions 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 MethodOptions message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -101008,14 +80392,6 @@ export namespace google { */ public static encode(message: google.protobuf.IUninterpretedOption, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified UninterpretedOption message, length delimited. Does not implicitly {@link google.protobuf.UninterpretedOption.verify|verify} messages. - * @param message UninterpretedOption message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.protobuf.IUninterpretedOption, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes an UninterpretedOption message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -101026,22 +80402,6 @@ export namespace google { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.UninterpretedOption; - /** - * Decodes an UninterpretedOption message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns UninterpretedOption - * @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.UninterpretedOption; - - /** - * Verifies an UninterpretedOption 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 UninterpretedOption message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -101113,14 +80473,6 @@ export namespace google { */ public static encode(message: google.protobuf.UninterpretedOption.INamePart, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified NamePart message, length delimited. Does not implicitly {@link google.protobuf.UninterpretedOption.NamePart.verify|verify} messages. - * @param message NamePart message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.protobuf.UninterpretedOption.INamePart, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a NamePart message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -101131,22 +80483,6 @@ export namespace google { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.UninterpretedOption.NamePart; - /** - * Decodes a NamePart message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns NamePart - * @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.UninterpretedOption.NamePart; - - /** - * Verifies a NamePart 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 NamePart message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -101253,14 +80589,6 @@ export namespace google { */ 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 @@ -101271,22 +80599,6 @@ export namespace google { */ 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 @@ -101396,14 +80708,6 @@ export namespace google { */ 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 @@ -101414,22 +80718,6 @@ export namespace google { */ 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 @@ -101518,14 +80806,6 @@ export namespace google { */ 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 @@ -101536,22 +80816,6 @@ export namespace google { */ 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 @@ -101629,14 +80893,6 @@ export namespace google { */ 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 @@ -101647,22 +80903,6 @@ export namespace google { */ 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 @@ -101727,14 +80967,6 @@ export namespace google { */ public static encode(message: google.protobuf.ISourceCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified SourceCodeInfo message, length delimited. Does not implicitly {@link google.protobuf.SourceCodeInfo.verify|verify} messages. - * @param message SourceCodeInfo message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.protobuf.ISourceCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a SourceCodeInfo message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -101745,22 +80977,6 @@ export namespace google { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.SourceCodeInfo; - /** - * Decodes a SourceCodeInfo message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SourceCodeInfo - * @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.SourceCodeInfo; - - /** - * Verifies a SourceCodeInfo 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 SourceCodeInfo message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -101850,14 +81066,6 @@ export namespace google { */ public static encode(message: google.protobuf.SourceCodeInfo.ILocation, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified Location message, length delimited. Does not implicitly {@link google.protobuf.SourceCodeInfo.Location.verify|verify} messages. - * @param message Location message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.protobuf.SourceCodeInfo.ILocation, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a Location message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -101868,22 +81076,6 @@ export namespace google { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.SourceCodeInfo.Location; - /** - * Decodes a Location message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Location - * @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.SourceCodeInfo.Location; - - /** - * Verifies a Location 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 Location message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -101948,14 +81140,6 @@ export namespace google { */ public static encode(message: google.protobuf.IGeneratedCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified GeneratedCodeInfo message, length delimited. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.verify|verify} messages. - * @param message GeneratedCodeInfo message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.protobuf.IGeneratedCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a GeneratedCodeInfo message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -101966,22 +81150,6 @@ export namespace google { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.GeneratedCodeInfo; - /** - * Decodes a GeneratedCodeInfo message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GeneratedCodeInfo - * @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.GeneratedCodeInfo; - - /** - * Verifies a GeneratedCodeInfo 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 GeneratedCodeInfo message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -102071,14 +81239,6 @@ export namespace google { */ public static encode(message: google.protobuf.GeneratedCodeInfo.IAnnotation, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified Annotation message, length delimited. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.Annotation.verify|verify} messages. - * @param message Annotation message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.protobuf.GeneratedCodeInfo.IAnnotation, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes an Annotation message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -102089,22 +81249,6 @@ export namespace google { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.GeneratedCodeInfo.Annotation; - /** - * Decodes an Annotation message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Annotation - * @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.GeneratedCodeInfo.Annotation; - - /** - * Verifies an Annotation 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 Annotation message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -102186,14 +81330,6 @@ export namespace google { */ public static encode(message: google.protobuf.IStruct, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified Struct message, length delimited. Does not implicitly {@link google.protobuf.Struct.verify|verify} messages. - * @param message Struct message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.protobuf.IStruct, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a Struct message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -102204,22 +81340,6 @@ export namespace google { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Struct; - /** - * Decodes a Struct message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Struct - * @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.Struct; - - /** - * Verifies a Struct 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 Struct message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -102316,14 +81436,6 @@ export namespace google { */ public static encode(message: google.protobuf.IValue, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified Value message, length delimited. Does not implicitly {@link google.protobuf.Value.verify|verify} messages. - * @param message Value message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.protobuf.IValue, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a Value message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -102334,22 +81446,6 @@ export namespace google { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Value; - /** - * Decodes a Value message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Value - * @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.Value; - - /** - * Verifies a Value 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 Value message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -102418,14 +81514,6 @@ export namespace google { */ public static encode(message: google.protobuf.IListValue, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified ListValue message, length delimited. Does not implicitly {@link google.protobuf.ListValue.verify|verify} messages. - * @param message ListValue message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.protobuf.IListValue, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a ListValue message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -102436,22 +81524,6 @@ export namespace google { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.ListValue; - /** - * Decodes a ListValue message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ListValue - * @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.ListValue; - - /** - * Verifies a ListValue 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 ListValue message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -102546,14 +81618,6 @@ export namespace Router { */ public static encode(message: Router.IRouterResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified RouterResponse message, length delimited. Does not implicitly {@link Router.RouterResponse.verify|verify} messages. - * @param message RouterResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Router.IRouterResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a RouterResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -102564,22 +81628,6 @@ export namespace Router { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Router.RouterResponse; - /** - * Decodes a RouterResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RouterResponse - * @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)): Router.RouterResponse; - - /** - * Verifies a RouterResponse 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 RouterResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -102673,14 +81721,6 @@ export namespace Router { */ public static encode(message: Router.IRouterControllerMessage, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified RouterControllerMessage message, length delimited. Does not implicitly {@link Router.RouterControllerMessage.verify|verify} messages. - * @param message RouterControllerMessage message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Router.IRouterControllerMessage, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a RouterControllerMessage message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -102691,22 +81731,6 @@ export namespace Router { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Router.RouterControllerMessage; - /** - * Decodes a RouterControllerMessage message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RouterControllerMessage - * @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)): Router.RouterControllerMessage; - - /** - * Verifies a RouterControllerMessage 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 RouterControllerMessage message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -102836,14 +81860,6 @@ export namespace Router { */ public static encode(message: Router.IRouterUserAuth, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified RouterUserAuth message, length delimited. Does not implicitly {@link Router.RouterUserAuth.verify|verify} messages. - * @param message RouterUserAuth message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Router.IRouterUserAuth, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a RouterUserAuth message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -102854,22 +81870,6 @@ export namespace Router { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Router.RouterUserAuth; - /** - * Decodes a RouterUserAuth message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RouterUserAuth - * @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)): Router.RouterUserAuth; - - /** - * Verifies a RouterUserAuth 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 RouterUserAuth message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -103005,14 +82005,6 @@ export namespace Router { */ public static encode(message: Router.IRouterDeviceAuth, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified RouterDeviceAuth message, length delimited. Does not implicitly {@link Router.RouterDeviceAuth.verify|verify} messages. - * @param message RouterDeviceAuth message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Router.IRouterDeviceAuth, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a RouterDeviceAuth message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -103023,22 +82015,6 @@ export namespace Router { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Router.RouterDeviceAuth; - /** - * Decodes a RouterDeviceAuth message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RouterDeviceAuth - * @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)): Router.RouterDeviceAuth; - - /** - * Verifies a RouterDeviceAuth 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 RouterDeviceAuth message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -103126,14 +82102,6 @@ export namespace Router { */ public static encode(message: Router.IRouterRecordRotation, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified RouterRecordRotation message, length delimited. Does not implicitly {@link Router.RouterRecordRotation.verify|verify} messages. - * @param message RouterRecordRotation message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Router.IRouterRecordRotation, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a RouterRecordRotation message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -103144,22 +82112,6 @@ export namespace Router { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Router.RouterRecordRotation; - /** - * Decodes a RouterRecordRotation message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RouterRecordRotation - * @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)): Router.RouterRecordRotation; - - /** - * Verifies a RouterRecordRotation 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 RouterRecordRotation message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -103229,14 +82181,6 @@ export namespace Router { */ public static encode(message: Router.IRouterRecordRotationsRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified RouterRecordRotationsRequest message, length delimited. Does not implicitly {@link Router.RouterRecordRotationsRequest.verify|verify} messages. - * @param message RouterRecordRotationsRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Router.IRouterRecordRotationsRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a RouterRecordRotationsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -103247,22 +82191,6 @@ export namespace Router { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Router.RouterRecordRotationsRequest; - /** - * Decodes a RouterRecordRotationsRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RouterRecordRotationsRequest - * @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)): Router.RouterRecordRotationsRequest; - - /** - * Verifies a RouterRecordRotationsRequest 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 RouterRecordRotationsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -103332,14 +82260,6 @@ export namespace Router { */ public static encode(message: Router.IRouterRecordRotationsResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified RouterRecordRotationsResponse message, length delimited. Does not implicitly {@link Router.RouterRecordRotationsResponse.verify|verify} messages. - * @param message RouterRecordRotationsResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Router.IRouterRecordRotationsResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a RouterRecordRotationsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -103350,22 +82270,6 @@ export namespace Router { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Router.RouterRecordRotationsResponse; - /** - * Decodes a RouterRecordRotationsResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RouterRecordRotationsResponse - * @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)): Router.RouterRecordRotationsResponse; - - /** - * Verifies a RouterRecordRotationsResponse 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 RouterRecordRotationsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -103485,14 +82389,6 @@ export namespace Router { */ public static encode(message: Router.IRouterRotationInfo, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified RouterRotationInfo message, length delimited. Does not implicitly {@link Router.RouterRotationInfo.verify|verify} messages. - * @param message RouterRotationInfo message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Router.IRouterRotationInfo, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a RouterRotationInfo message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -103503,22 +82399,6 @@ export namespace Router { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Router.RouterRotationInfo; - /** - * Decodes a RouterRotationInfo message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RouterRotationInfo - * @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)): Router.RouterRotationInfo; - - /** - * Verifies a RouterRotationInfo 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 RouterRotationInfo message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -103660,14 +82540,6 @@ export namespace Router { */ public static encode(message: Router.IRouterRecordRotationRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified RouterRecordRotationRequest message, length delimited. Does not implicitly {@link Router.RouterRecordRotationRequest.verify|verify} messages. - * @param message RouterRecordRotationRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Router.IRouterRecordRotationRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a RouterRecordRotationRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -103678,22 +82550,6 @@ export namespace Router { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Router.RouterRecordRotationRequest; - /** - * Decodes a RouterRecordRotationRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RouterRecordRotationRequest - * @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)): Router.RouterRecordRotationRequest; - - /** - * Verifies a RouterRecordRotationRequest 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 RouterRecordRotationRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -103763,14 +82619,6 @@ export namespace Router { */ public static encode(message: Router.IUserRecordAccessRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified UserRecordAccessRequest message, length delimited. Does not implicitly {@link Router.UserRecordAccessRequest.verify|verify} messages. - * @param message UserRecordAccessRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Router.IUserRecordAccessRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a UserRecordAccessRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -103781,22 +82629,6 @@ export namespace Router { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Router.UserRecordAccessRequest; - /** - * Decodes a UserRecordAccessRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns UserRecordAccessRequest - * @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)): Router.UserRecordAccessRequest; - - /** - * Verifies a UserRecordAccessRequest 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 UserRecordAccessRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -103882,14 +82714,6 @@ export namespace Router { */ public static encode(message: Router.IUserRecordAccessResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified UserRecordAccessResponse message, length delimited. Does not implicitly {@link Router.UserRecordAccessResponse.verify|verify} messages. - * @param message UserRecordAccessResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Router.IUserRecordAccessResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a UserRecordAccessResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -103900,22 +82724,6 @@ export namespace Router { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Router.UserRecordAccessResponse; - /** - * Decodes a UserRecordAccessResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns UserRecordAccessResponse - * @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)): Router.UserRecordAccessResponse; - - /** - * Verifies a UserRecordAccessResponse 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 UserRecordAccessResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -103979,14 +82787,6 @@ export namespace Router { */ public static encode(message: Router.IUserRecordAccessRequests, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified UserRecordAccessRequests message, length delimited. Does not implicitly {@link Router.UserRecordAccessRequests.verify|verify} messages. - * @param message UserRecordAccessRequests message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Router.IUserRecordAccessRequests, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a UserRecordAccessRequests message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -103997,22 +82797,6 @@ export namespace Router { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Router.UserRecordAccessRequests; - /** - * Decodes a UserRecordAccessRequests message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns UserRecordAccessRequests - * @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)): Router.UserRecordAccessRequests; - - /** - * Verifies a UserRecordAccessRequests 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 UserRecordAccessRequests message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -104076,14 +82860,6 @@ export namespace Router { */ public static encode(message: Router.IUserRecordAccessResponses, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified UserRecordAccessResponses message, length delimited. Does not implicitly {@link Router.UserRecordAccessResponses.verify|verify} messages. - * @param message UserRecordAccessResponses message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Router.IUserRecordAccessResponses, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a UserRecordAccessResponses message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -104094,22 +82870,6 @@ export namespace Router { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Router.UserRecordAccessResponses; - /** - * Decodes a UserRecordAccessResponses message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns UserRecordAccessResponses - * @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)): Router.UserRecordAccessResponses; - - /** - * Verifies a UserRecordAccessResponses 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 UserRecordAccessResponses message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -104179,14 +82939,6 @@ export namespace Router { */ public static encode(message: Router.IUserSharedFolderAccessRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified UserSharedFolderAccessRequest message, length delimited. Does not implicitly {@link Router.UserSharedFolderAccessRequest.verify|verify} messages. - * @param message UserSharedFolderAccessRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Router.IUserSharedFolderAccessRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a UserSharedFolderAccessRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -104197,22 +82949,6 @@ export namespace Router { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Router.UserSharedFolderAccessRequest; - /** - * Decodes a UserSharedFolderAccessRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns UserSharedFolderAccessRequest - * @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)): Router.UserSharedFolderAccessRequest; - - /** - * Verifies a UserSharedFolderAccessRequest 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 UserSharedFolderAccessRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -104282,14 +83018,6 @@ export namespace Router { */ public static encode(message: Router.IUserSharedFolderAccessResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified UserSharedFolderAccessResponse message, length delimited. Does not implicitly {@link Router.UserSharedFolderAccessResponse.verify|verify} messages. - * @param message UserSharedFolderAccessResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Router.IUserSharedFolderAccessResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a UserSharedFolderAccessResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -104300,22 +83028,6 @@ export namespace Router { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Router.UserSharedFolderAccessResponse; - /** - * Decodes a UserSharedFolderAccessResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns UserSharedFolderAccessResponse - * @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)): Router.UserSharedFolderAccessResponse; - - /** - * Verifies a UserSharedFolderAccessResponse 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 UserSharedFolderAccessResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -104379,14 +83091,6 @@ export namespace Router { */ public static encode(message: Router.IUserSharedFolderAccessResponses, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified UserSharedFolderAccessResponses message, length delimited. Does not implicitly {@link Router.UserSharedFolderAccessResponses.verify|verify} messages. - * @param message UserSharedFolderAccessResponses message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Router.IUserSharedFolderAccessResponses, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a UserSharedFolderAccessResponses message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -104397,22 +83101,6 @@ export namespace Router { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Router.UserSharedFolderAccessResponses; - /** - * Decodes a UserSharedFolderAccessResponses message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns UserSharedFolderAccessResponses - * @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)): Router.UserSharedFolderAccessResponses; - - /** - * Verifies a UserSharedFolderAccessResponses 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 UserSharedFolderAccessResponses message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -104482,14 +83170,6 @@ export namespace Router { */ public static encode(message: Router.IUserFolderPermissionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified UserFolderPermissionsRequest message, length delimited. Does not implicitly {@link Router.UserFolderPermissionsRequest.verify|verify} messages. - * @param message UserFolderPermissionsRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Router.IUserFolderPermissionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a UserFolderPermissionsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -104500,22 +83180,6 @@ export namespace Router { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Router.UserFolderPermissionsRequest; - /** - * Decodes a UserFolderPermissionsRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns UserFolderPermissionsRequest - * @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)): Router.UserFolderPermissionsRequest; - - /** - * Verifies a UserFolderPermissionsRequest 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 UserFolderPermissionsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -104585,14 +83249,6 @@ export namespace Router { */ public static encode(message: Router.IUserFolderPermissionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified UserFolderPermissionsResponse message, length delimited. Does not implicitly {@link Router.UserFolderPermissionsResponse.verify|verify} messages. - * @param message UserFolderPermissionsResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Router.IUserFolderPermissionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a UserFolderPermissionsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -104603,22 +83259,6 @@ export namespace Router { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Router.UserFolderPermissionsResponse; - /** - * Decodes a UserFolderPermissionsResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns UserFolderPermissionsResponse - * @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)): Router.UserFolderPermissionsResponse; - - /** - * Verifies a UserFolderPermissionsResponse 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 UserFolderPermissionsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -104682,14 +83322,6 @@ export namespace Router { */ public static encode(message: Router.IUserFolderPermissionsResponses, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified UserFolderPermissionsResponses message, length delimited. Does not implicitly {@link Router.UserFolderPermissionsResponses.verify|verify} messages. - * @param message UserFolderPermissionsResponses message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Router.IUserFolderPermissionsResponses, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a UserFolderPermissionsResponses message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -104700,22 +83332,6 @@ export namespace Router { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Router.UserFolderPermissionsResponses; - /** - * Decodes a UserFolderPermissionsResponses message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns UserFolderPermissionsResponses - * @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)): Router.UserFolderPermissionsResponses; - - /** - * Verifies a UserFolderPermissionsResponses 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 UserFolderPermissionsResponses message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -104785,14 +83401,6 @@ export namespace Router { */ public static encode(message: Router.IRotationSchedule, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified RotationSchedule message, length delimited. Does not implicitly {@link Router.RotationSchedule.verify|verify} messages. - * @param message RotationSchedule message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Router.IRotationSchedule, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a RotationSchedule message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -104803,22 +83411,6 @@ export namespace Router { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Router.RotationSchedule; - /** - * Decodes a RotationSchedule message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RotationSchedule - * @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)): Router.RotationSchedule; - - /** - * Verifies a RotationSchedule 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 RotationSchedule message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -104907,14 +83499,6 @@ export namespace Router { */ public static encode(message: Router.IApiCallbackRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified ApiCallbackRequest message, length delimited. Does not implicitly {@link Router.ApiCallbackRequest.verify|verify} messages. - * @param message ApiCallbackRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Router.IApiCallbackRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes an ApiCallbackRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -104925,22 +83509,6 @@ export namespace Router { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Router.ApiCallbackRequest; - /** - * Decodes an ApiCallbackRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ApiCallbackRequest - * @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)): Router.ApiCallbackRequest; - - /** - * Verifies an ApiCallbackRequest 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 ApiCallbackRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -105010,14 +83578,6 @@ export namespace Router { */ public static encode(message: Router.IApiCallbackSchedule, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified ApiCallbackSchedule message, length delimited. Does not implicitly {@link Router.ApiCallbackSchedule.verify|verify} messages. - * @param message ApiCallbackSchedule message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Router.IApiCallbackSchedule, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes an ApiCallbackSchedule message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -105028,22 +83588,6 @@ export namespace Router { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Router.ApiCallbackSchedule; - /** - * Decodes an ApiCallbackSchedule message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ApiCallbackSchedule - * @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)): Router.ApiCallbackSchedule; - - /** - * Verifies an ApiCallbackSchedule 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 ApiCallbackSchedule message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -105113,14 +83657,6 @@ export namespace Router { */ public static encode(message: Router.IRouterScheduledActions, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified RouterScheduledActions message, length delimited. Does not implicitly {@link Router.RouterScheduledActions.verify|verify} messages. - * @param message RouterScheduledActions message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Router.IRouterScheduledActions, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a RouterScheduledActions message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -105131,22 +83667,6 @@ export namespace Router { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Router.RouterScheduledActions; - /** - * Decodes a RouterScheduledActions message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RouterScheduledActions - * @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)): Router.RouterScheduledActions; - - /** - * Verifies a RouterScheduledActions 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 RouterScheduledActions message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -105210,14 +83730,6 @@ export namespace Router { */ public static encode(message: Router.IRouterRecordsRotationRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified RouterRecordsRotationRequest message, length delimited. Does not implicitly {@link Router.RouterRecordsRotationRequest.verify|verify} messages. - * @param message RouterRecordsRotationRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Router.IRouterRecordsRotationRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a RouterRecordsRotationRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -105228,22 +83740,6 @@ export namespace Router { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Router.RouterRecordsRotationRequest; - /** - * Decodes a RouterRecordsRotationRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RouterRecordsRotationRequest - * @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)): Router.RouterRecordsRotationRequest; - - /** - * Verifies a RouterRecordsRotationRequest 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 RouterRecordsRotationRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -105331,14 +83827,6 @@ export namespace Router { */ public static encode(message: Router.IConnectionParameters, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified ConnectionParameters message, length delimited. Does not implicitly {@link Router.ConnectionParameters.verify|verify} messages. - * @param message ConnectionParameters message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Router.IConnectionParameters, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a ConnectionParameters message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -105349,22 +83837,6 @@ export namespace Router { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Router.ConnectionParameters; - /** - * Decodes a ConnectionParameters message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ConnectionParameters - * @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)): Router.ConnectionParameters; - - /** - * Verifies a ConnectionParameters 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 ConnectionParameters message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -105428,14 +83900,6 @@ export namespace Router { */ public static encode(message: Router.IValidateConnectionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified ValidateConnectionsRequest message, length delimited. Does not implicitly {@link Router.ValidateConnectionsRequest.verify|verify} messages. - * @param message ValidateConnectionsRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Router.IValidateConnectionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a ValidateConnectionsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -105446,22 +83910,6 @@ export namespace Router { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Router.ValidateConnectionsRequest; - /** - * Decodes a ValidateConnectionsRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ValidateConnectionsRequest - * @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)): Router.ValidateConnectionsRequest; - - /** - * Verifies a ValidateConnectionsRequest 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 ValidateConnectionsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -105531,14 +83979,6 @@ export namespace Router { */ public static encode(message: Router.IConnectionValidationFailure, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified ConnectionValidationFailure message, length delimited. Does not implicitly {@link Router.ConnectionValidationFailure.verify|verify} messages. - * @param message ConnectionValidationFailure message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Router.IConnectionValidationFailure, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a ConnectionValidationFailure message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -105549,22 +83989,6 @@ export namespace Router { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Router.ConnectionValidationFailure; - /** - * Decodes a ConnectionValidationFailure message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ConnectionValidationFailure - * @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)): Router.ConnectionValidationFailure; - - /** - * Verifies a ConnectionValidationFailure 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 ConnectionValidationFailure message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -105628,14 +84052,6 @@ export namespace Router { */ public static encode(message: Router.IValidateConnectionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified ValidateConnectionsResponse message, length delimited. Does not implicitly {@link Router.ValidateConnectionsResponse.verify|verify} messages. - * @param message ValidateConnectionsResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Router.IValidateConnectionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a ValidateConnectionsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -105646,22 +84062,6 @@ export namespace Router { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Router.ValidateConnectionsResponse; - /** - * Decodes a ValidateConnectionsResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ValidateConnectionsResponse - * @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)): Router.ValidateConnectionsResponse; - - /** - * Verifies a ValidateConnectionsResponse 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 ValidateConnectionsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -105725,14 +84125,6 @@ export namespace Router { */ public static encode(message: Router.IGetEnforcementRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified GetEnforcementRequest message, length delimited. Does not implicitly {@link Router.GetEnforcementRequest.verify|verify} messages. - * @param message GetEnforcementRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Router.IGetEnforcementRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a GetEnforcementRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -105743,22 +84135,6 @@ export namespace Router { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Router.GetEnforcementRequest; - /** - * Decodes a GetEnforcementRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetEnforcementRequest - * @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)): Router.GetEnforcementRequest; - - /** - * Verifies a GetEnforcementRequest 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 GetEnforcementRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -105828,14 +84204,6 @@ export namespace Router { */ public static encode(message: Router.IEnforcementType, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified EnforcementType message, length delimited. Does not implicitly {@link Router.EnforcementType.verify|verify} messages. - * @param message EnforcementType message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Router.IEnforcementType, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes an EnforcementType message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -105846,22 +84214,6 @@ export namespace Router { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Router.EnforcementType; - /** - * Decodes an EnforcementType message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns EnforcementType - * @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)): Router.EnforcementType; - - /** - * Verifies an EnforcementType 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 EnforcementType message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -105937,14 +84289,6 @@ export namespace Router { */ public static encode(message: Router.IGetEnforcementResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified GetEnforcementResponse message, length delimited. Does not implicitly {@link Router.GetEnforcementResponse.verify|verify} messages. - * @param message GetEnforcementResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Router.IGetEnforcementResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a GetEnforcementResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -105955,22 +84299,6 @@ export namespace Router { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Router.GetEnforcementResponse; - /** - * Decodes a GetEnforcementResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetEnforcementResponse - * @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)): Router.GetEnforcementResponse; - - /** - * Verifies a GetEnforcementResponse 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 GetEnforcementResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -106046,14 +84374,6 @@ export namespace Router { */ public static encode(message: Router.IPEDMTOTPValidateRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified PEDMTOTPValidateRequest message, length delimited. Does not implicitly {@link Router.PEDMTOTPValidateRequest.verify|verify} messages. - * @param message PEDMTOTPValidateRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Router.IPEDMTOTPValidateRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a PEDMTOTPValidateRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -106064,22 +84384,6 @@ export namespace Router { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Router.PEDMTOTPValidateRequest; - /** - * Decodes a PEDMTOTPValidateRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns PEDMTOTPValidateRequest - * @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)): Router.PEDMTOTPValidateRequest; - - /** - * Verifies a PEDMTOTPValidateRequest 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 PEDMTOTPValidateRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -106149,14 +84453,6 @@ export namespace Router { */ public static encode(message: Router.IGetPEDMAdminInfoResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified GetPEDMAdminInfoResponse message, length delimited. Does not implicitly {@link Router.GetPEDMAdminInfoResponse.verify|verify} messages. - * @param message GetPEDMAdminInfoResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Router.IGetPEDMAdminInfoResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a GetPEDMAdminInfoResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -106167,22 +84463,6 @@ export namespace Router { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Router.GetPEDMAdminInfoResponse; - /** - * Decodes a GetPEDMAdminInfoResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetPEDMAdminInfoResponse - * @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)): Router.GetPEDMAdminInfoResponse; - - /** - * Verifies a GetPEDMAdminInfoResponse 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 GetPEDMAdminInfoResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -106258,14 +84538,6 @@ export namespace Router { */ public static encode(message: Router.IPAMNetworkSettings, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified PAMNetworkSettings message, length delimited. Does not implicitly {@link Router.PAMNetworkSettings.verify|verify} messages. - * @param message PAMNetworkSettings message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Router.IPAMNetworkSettings, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a PAMNetworkSettings message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -106276,22 +84548,6 @@ export namespace Router { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Router.PAMNetworkSettings; - /** - * Decodes a PAMNetworkSettings message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns PAMNetworkSettings - * @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)): Router.PAMNetworkSettings; - - /** - * Verifies a PAMNetworkSettings 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 PAMNetworkSettings message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -106373,14 +84629,6 @@ export namespace Router { */ public static encode(message: Router.IPAMNetworkConfigurationRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified PAMNetworkConfigurationRequest message, length delimited. Does not implicitly {@link Router.PAMNetworkConfigurationRequest.verify|verify} messages. - * @param message PAMNetworkConfigurationRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Router.IPAMNetworkConfigurationRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a PAMNetworkConfigurationRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -106391,22 +84639,6 @@ export namespace Router { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Router.PAMNetworkConfigurationRequest; - /** - * Decodes a PAMNetworkConfigurationRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns PAMNetworkConfigurationRequest - * @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)): Router.PAMNetworkConfigurationRequest; - - /** - * Verifies a PAMNetworkConfigurationRequest 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 PAMNetworkConfigurationRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -106482,14 +84714,6 @@ export namespace Router { */ public static encode(message: Router.IPAMDiscoveryRulesSetRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified PAMDiscoveryRulesSetRequest message, length delimited. Does not implicitly {@link Router.PAMDiscoveryRulesSetRequest.verify|verify} messages. - * @param message PAMDiscoveryRulesSetRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Router.IPAMDiscoveryRulesSetRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a PAMDiscoveryRulesSetRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -106500,22 +84724,6 @@ export namespace Router { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Router.PAMDiscoveryRulesSetRequest; - /** - * Decodes a PAMDiscoveryRulesSetRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns PAMDiscoveryRulesSetRequest - * @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)): Router.PAMDiscoveryRulesSetRequest; - - /** - * Verifies a PAMDiscoveryRulesSetRequest 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 PAMDiscoveryRulesSetRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -106591,14 +84799,6 @@ export namespace Router { */ public static encode(message: Router.IRouter2FAValidateRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified Router2FAValidateRequest message, length delimited. Does not implicitly {@link Router.Router2FAValidateRequest.verify|verify} messages. - * @param message Router2FAValidateRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Router.IRouter2FAValidateRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a Router2FAValidateRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -106609,22 +84809,6 @@ export namespace Router { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Router.Router2FAValidateRequest; - /** - * Decodes a Router2FAValidateRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Router2FAValidateRequest - * @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)): Router.Router2FAValidateRequest; - - /** - * Verifies a Router2FAValidateRequest 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 Router2FAValidateRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -106700,14 +84884,6 @@ export namespace Router { */ public static encode(message: Router.IRouter2FASendPushRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified Router2FASendPushRequest message, length delimited. Does not implicitly {@link Router.Router2FASendPushRequest.verify|verify} messages. - * @param message Router2FASendPushRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Router.IRouter2FASendPushRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a Router2FASendPushRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -106718,22 +84894,6 @@ export namespace Router { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Router.Router2FASendPushRequest; - /** - * Decodes a Router2FASendPushRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Router2FASendPushRequest - * @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)): Router.Router2FASendPushRequest; - - /** - * Verifies a Router2FASendPushRequest 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 Router2FASendPushRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -106803,14 +84963,6 @@ export namespace Router { */ public static encode(message: Router.IRouter2FAGetWebAuthnChallengeRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified Router2FAGetWebAuthnChallengeRequest message, length delimited. Does not implicitly {@link Router.Router2FAGetWebAuthnChallengeRequest.verify|verify} messages. - * @param message Router2FAGetWebAuthnChallengeRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Router.IRouter2FAGetWebAuthnChallengeRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a Router2FAGetWebAuthnChallengeRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -106821,22 +84973,6 @@ export namespace Router { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Router.Router2FAGetWebAuthnChallengeRequest; - /** - * Decodes a Router2FAGetWebAuthnChallengeRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Router2FAGetWebAuthnChallengeRequest - * @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)): Router.Router2FAGetWebAuthnChallengeRequest; - - /** - * Verifies a Router2FAGetWebAuthnChallengeRequest 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 Router2FAGetWebAuthnChallengeRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -106906,14 +85042,6 @@ export namespace Router { */ public static encode(message: Router.IRouter2FAGetWebAuthnChallengeResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified Router2FAGetWebAuthnChallengeResponse message, length delimited. Does not implicitly {@link Router.Router2FAGetWebAuthnChallengeResponse.verify|verify} messages. - * @param message Router2FAGetWebAuthnChallengeResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Router.IRouter2FAGetWebAuthnChallengeResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a Router2FAGetWebAuthnChallengeResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -106924,22 +85052,6 @@ export namespace Router { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Router.Router2FAGetWebAuthnChallengeResponse; - /** - * Decodes a Router2FAGetWebAuthnChallengeResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Router2FAGetWebAuthnChallengeResponse - * @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)): Router.Router2FAGetWebAuthnChallengeResponse; - - /** - * Verifies a Router2FAGetWebAuthnChallengeResponse 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 Router2FAGetWebAuthnChallengeResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -107015,14 +85127,6 @@ export namespace Router { */ public static encode(message: Router.ICreateEphemeralSecretRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified CreateEphemeralSecretRequest message, length delimited. Does not implicitly {@link Router.CreateEphemeralSecretRequest.verify|verify} messages. - * @param message CreateEphemeralSecretRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: Router.ICreateEphemeralSecretRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a CreateEphemeralSecretRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -107033,22 +85137,6 @@ export namespace Router { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Router.CreateEphemeralSecretRequest; - /** - * Decodes a CreateEphemeralSecretRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns CreateEphemeralSecretRequest - * @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)): Router.CreateEphemeralSecretRequest; - - /** - * Verifies a CreateEphemeralSecretRequest 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 CreateEphemeralSecretRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -107140,14 +85228,6 @@ export namespace PAM { */ public static encode(message: PAM.IPAMRotationSchedule, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified PAMRotationSchedule message, length delimited. Does not implicitly {@link PAM.PAMRotationSchedule.verify|verify} messages. - * @param message PAMRotationSchedule message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: PAM.IPAMRotationSchedule, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a PAMRotationSchedule message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -107158,22 +85238,6 @@ export namespace PAM { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): PAM.PAMRotationSchedule; - /** - * Decodes a PAMRotationSchedule message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns PAMRotationSchedule - * @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)): PAM.PAMRotationSchedule; - - /** - * Verifies a PAMRotationSchedule 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 PAMRotationSchedule message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -107237,14 +85301,6 @@ export namespace PAM { */ public static encode(message: PAM.IPAMRotationSchedulesResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified PAMRotationSchedulesResponse message, length delimited. Does not implicitly {@link PAM.PAMRotationSchedulesResponse.verify|verify} messages. - * @param message PAMRotationSchedulesResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: PAM.IPAMRotationSchedulesResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a PAMRotationSchedulesResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -107255,22 +85311,6 @@ export namespace PAM { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): PAM.PAMRotationSchedulesResponse; - /** - * Decodes a PAMRotationSchedulesResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns PAMRotationSchedulesResponse - * @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)): PAM.PAMRotationSchedulesResponse; - - /** - * Verifies a PAMRotationSchedulesResponse 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 PAMRotationSchedulesResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -107358,14 +85398,6 @@ export namespace PAM { */ public static encode(message: PAM.IPAMOnlineController, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified PAMOnlineController message, length delimited. Does not implicitly {@link PAM.PAMOnlineController.verify|verify} messages. - * @param message PAMOnlineController message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: PAM.IPAMOnlineController, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a PAMOnlineController message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -107376,22 +85408,6 @@ export namespace PAM { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): PAM.PAMOnlineController; - /** - * Decodes a PAMOnlineController message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns PAMOnlineController - * @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)): PAM.PAMOnlineController; - - /** - * Verifies a PAMOnlineController 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 PAMOnlineController message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -107500,14 +85516,6 @@ export namespace PAM { */ public static encode(message: PAM.IPAMWebRtcConnection, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified PAMWebRtcConnection message, length delimited. Does not implicitly {@link PAM.PAMWebRtcConnection.verify|verify} messages. - * @param message PAMWebRtcConnection message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: PAM.IPAMWebRtcConnection, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a PAMWebRtcConnection message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -107518,22 +85526,6 @@ export namespace PAM { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): PAM.PAMWebRtcConnection; - /** - * Decodes a PAMWebRtcConnection message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns PAMWebRtcConnection - * @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)): PAM.PAMWebRtcConnection; - - /** - * Verifies a PAMWebRtcConnection 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 PAMWebRtcConnection message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -107603,14 +85595,6 @@ export namespace PAM { */ public static encode(message: PAM.IPAMOnlineControllers, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified PAMOnlineControllers message, length delimited. Does not implicitly {@link PAM.PAMOnlineControllers.verify|verify} messages. - * @param message PAMOnlineControllers message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: PAM.IPAMOnlineControllers, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a PAMOnlineControllers message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -107621,22 +85605,6 @@ export namespace PAM { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): PAM.PAMOnlineControllers; - /** - * Decodes a PAMOnlineControllers message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns PAMOnlineControllers - * @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)): PAM.PAMOnlineControllers; - - /** - * Verifies a PAMOnlineControllers 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 PAMOnlineControllers message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -107706,14 +85674,6 @@ export namespace PAM { */ public static encode(message: PAM.IPAMRotateRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified PAMRotateRequest message, length delimited. Does not implicitly {@link PAM.PAMRotateRequest.verify|verify} messages. - * @param message PAMRotateRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: PAM.IPAMRotateRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a PAMRotateRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -107724,22 +85684,6 @@ export namespace PAM { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): PAM.PAMRotateRequest; - /** - * Decodes a PAMRotateRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns PAMRotateRequest - * @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)): PAM.PAMRotateRequest; - - /** - * Verifies a PAMRotateRequest 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 PAMRotateRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -107803,14 +85747,6 @@ export namespace PAM { */ public static encode(message: PAM.IPAMControllersResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified PAMControllersResponse message, length delimited. Does not implicitly {@link PAM.PAMControllersResponse.verify|verify} messages. - * @param message PAMControllersResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: PAM.IPAMControllersResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a PAMControllersResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -107821,22 +85757,6 @@ export namespace PAM { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): PAM.PAMControllersResponse; - /** - * Decodes a PAMControllersResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns PAMControllersResponse - * @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)): PAM.PAMControllersResponse; - - /** - * Verifies a PAMControllersResponse 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 PAMControllersResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -107906,14 +85826,6 @@ export namespace PAM { */ public static encode(message: PAM.IPAMRemoveController, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified PAMRemoveController message, length delimited. Does not implicitly {@link PAM.PAMRemoveController.verify|verify} messages. - * @param message PAMRemoveController message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: PAM.IPAMRemoveController, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a PAMRemoveController message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -107924,22 +85836,6 @@ export namespace PAM { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): PAM.PAMRemoveController; - /** - * Decodes a PAMRemoveController message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns PAMRemoveController - * @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)): PAM.PAMRemoveController; - - /** - * Verifies a PAMRemoveController 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 PAMRemoveController message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -108003,14 +85899,6 @@ export namespace PAM { */ public static encode(message: PAM.IPAMRemoveControllerResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified PAMRemoveControllerResponse message, length delimited. Does not implicitly {@link PAM.PAMRemoveControllerResponse.verify|verify} messages. - * @param message PAMRemoveControllerResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: PAM.IPAMRemoveControllerResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a PAMRemoveControllerResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -108021,22 +85909,6 @@ export namespace PAM { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): PAM.PAMRemoveControllerResponse; - /** - * Decodes a PAMRemoveControllerResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns PAMRemoveControllerResponse - * @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)): PAM.PAMRemoveControllerResponse; - - /** - * Verifies a PAMRemoveControllerResponse 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 PAMRemoveControllerResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -108100,14 +85972,6 @@ export namespace PAM { */ public static encode(message: PAM.IPAMModifyRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified PAMModifyRequest message, length delimited. Does not implicitly {@link PAM.PAMModifyRequest.verify|verify} messages. - * @param message PAMModifyRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: PAM.IPAMModifyRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a PAMModifyRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -108118,22 +85982,6 @@ export namespace PAM { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): PAM.PAMModifyRequest; - /** - * Decodes a PAMModifyRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns PAMModifyRequest - * @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)): PAM.PAMModifyRequest; - - /** - * Verifies a PAMModifyRequest 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 PAMModifyRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -108209,14 +86057,6 @@ export namespace PAM { */ public static encode(message: PAM.IPAMDataOperation, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified PAMDataOperation message, length delimited. Does not implicitly {@link PAM.PAMDataOperation.verify|verify} messages. - * @param message PAMDataOperation message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: PAM.IPAMDataOperation, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a PAMDataOperation message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -108227,22 +86067,6 @@ export namespace PAM { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): PAM.PAMDataOperation; - /** - * Decodes a PAMDataOperation message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns PAMDataOperation - * @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)): PAM.PAMDataOperation; - - /** - * Verifies a PAMDataOperation 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 PAMDataOperation message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -108332,14 +86156,6 @@ export namespace PAM { */ public static encode(message: PAM.IPAMConfigurationData, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified PAMConfigurationData message, length delimited. Does not implicitly {@link PAM.PAMConfigurationData.verify|verify} messages. - * @param message PAMConfigurationData message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: PAM.IPAMConfigurationData, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a PAMConfigurationData message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -108350,22 +86166,6 @@ export namespace PAM { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): PAM.PAMConfigurationData; - /** - * Decodes a PAMConfigurationData message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns PAMConfigurationData - * @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)): PAM.PAMConfigurationData; - - /** - * Verifies a PAMConfigurationData 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 PAMConfigurationData message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -108441,14 +86241,6 @@ export namespace PAM { */ public static encode(message: PAM.IPAMElementData, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified PAMElementData message, length delimited. Does not implicitly {@link PAM.PAMElementData.verify|verify} messages. - * @param message PAMElementData message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: PAM.IPAMElementData, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a PAMElementData message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -108459,22 +86251,6 @@ export namespace PAM { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): PAM.PAMElementData; - /** - * Decodes a PAMElementData message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns PAMElementData - * @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)): PAM.PAMElementData; - - /** - * Verifies a PAMElementData 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 PAMElementData message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -108558,14 +86334,6 @@ export namespace PAM { */ public static encode(message: PAM.IPAMElementOperationResult, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified PAMElementOperationResult message, length delimited. Does not implicitly {@link PAM.PAMElementOperationResult.verify|verify} messages. - * @param message PAMElementOperationResult message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: PAM.IPAMElementOperationResult, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a PAMElementOperationResult message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -108576,22 +86344,6 @@ export namespace PAM { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): PAM.PAMElementOperationResult; - /** - * Decodes a PAMElementOperationResult message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns PAMElementOperationResult - * @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)): PAM.PAMElementOperationResult; - - /** - * Verifies a PAMElementOperationResult 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 PAMElementOperationResult message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -108655,14 +86407,6 @@ export namespace PAM { */ public static encode(message: PAM.IPAMModifyResult, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified PAMModifyResult message, length delimited. Does not implicitly {@link PAM.PAMModifyResult.verify|verify} messages. - * @param message PAMModifyResult message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: PAM.IPAMModifyResult, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a PAMModifyResult message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -108673,22 +86417,6 @@ export namespace PAM { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): PAM.PAMModifyResult; - /** - * Decodes a PAMModifyResult message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns PAMModifyResult - * @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)): PAM.PAMModifyResult; - - /** - * Verifies a PAMModifyResult 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 PAMModifyResult message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -108776,14 +86504,6 @@ export namespace PAM { */ public static encode(message: PAM.IPAMElement, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified PAMElement message, length delimited. Does not implicitly {@link PAM.PAMElement.verify|verify} messages. - * @param message PAMElement message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: PAM.IPAMElement, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a PAMElement message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -108794,22 +86514,6 @@ export namespace PAM { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): PAM.PAMElement; - /** - * Decodes a PAMElement message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns PAMElement - * @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)): PAM.PAMElement; - - /** - * Verifies a PAMElement 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 PAMElement message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -108873,14 +86577,6 @@ export namespace PAM { */ public static encode(message: PAM.IPAMGenericUidRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified PAMGenericUidRequest message, length delimited. Does not implicitly {@link PAM.PAMGenericUidRequest.verify|verify} messages. - * @param message PAMGenericUidRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: PAM.IPAMGenericUidRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a PAMGenericUidRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -108891,22 +86587,6 @@ export namespace PAM { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): PAM.PAMGenericUidRequest; - /** - * Decodes a PAMGenericUidRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns PAMGenericUidRequest - * @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)): PAM.PAMGenericUidRequest; - - /** - * Verifies a PAMGenericUidRequest 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 PAMGenericUidRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -108970,14 +86650,6 @@ export namespace PAM { */ public static encode(message: PAM.IPAMGenericUidsRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified PAMGenericUidsRequest message, length delimited. Does not implicitly {@link PAM.PAMGenericUidsRequest.verify|verify} messages. - * @param message PAMGenericUidsRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: PAM.IPAMGenericUidsRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a PAMGenericUidsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -108988,22 +86660,6 @@ export namespace PAM { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): PAM.PAMGenericUidsRequest; - /** - * Decodes a PAMGenericUidsRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns PAMGenericUidsRequest - * @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)): PAM.PAMGenericUidsRequest; - - /** - * Verifies a PAMGenericUidsRequest 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 PAMGenericUidsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -109103,14 +86759,6 @@ export namespace PAM { */ public static encode(message: PAM.IPAMConfiguration, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified PAMConfiguration message, length delimited. Does not implicitly {@link PAM.PAMConfiguration.verify|verify} messages. - * @param message PAMConfiguration message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: PAM.IPAMConfiguration, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a PAMConfiguration message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -109121,22 +86769,6 @@ export namespace PAM { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): PAM.PAMConfiguration; - /** - * Decodes a PAMConfiguration message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns PAMConfiguration - * @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)): PAM.PAMConfiguration; - - /** - * Verifies a PAMConfiguration 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 PAMConfiguration message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -109200,14 +86832,6 @@ export namespace PAM { */ public static encode(message: PAM.IPAMConfigurations, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified PAMConfigurations message, length delimited. Does not implicitly {@link PAM.PAMConfigurations.verify|verify} messages. - * @param message PAMConfigurations message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: PAM.IPAMConfigurations, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a PAMConfigurations message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -109218,22 +86842,6 @@ export namespace PAM { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): PAM.PAMConfigurations; - /** - * Decodes a PAMConfigurations message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns PAMConfigurations - * @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)): PAM.PAMConfigurations; - - /** - * Verifies a PAMConfigurations 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 PAMConfigurations message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -109351,14 +86959,6 @@ export namespace PAM { */ public static encode(message: PAM.IPAMController, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified PAMController message, length delimited. Does not implicitly {@link PAM.PAMController.verify|verify} messages. - * @param message PAMController message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: PAM.IPAMController, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a PAMController message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -109369,22 +86969,6 @@ export namespace PAM { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): PAM.PAMController; - /** - * Decodes a PAMController message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns PAMController - * @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)): PAM.PAMController; - - /** - * Verifies a PAMController 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 PAMController message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -109454,14 +87038,6 @@ export namespace PAM { */ public static encode(message: PAM.IPAMSetMaxInstanceCountRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified PAMSetMaxInstanceCountRequest message, length delimited. Does not implicitly {@link PAM.PAMSetMaxInstanceCountRequest.verify|verify} messages. - * @param message PAMSetMaxInstanceCountRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: PAM.IPAMSetMaxInstanceCountRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a PAMSetMaxInstanceCountRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -109472,22 +87048,6 @@ export namespace PAM { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): PAM.PAMSetMaxInstanceCountRequest; - /** - * Decodes a PAMSetMaxInstanceCountRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns PAMSetMaxInstanceCountRequest - * @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)): PAM.PAMSetMaxInstanceCountRequest; - - /** - * Verifies a PAMSetMaxInstanceCountRequest 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 PAMSetMaxInstanceCountRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -109564,14 +87124,6 @@ export namespace PAM { */ public static encode(message: PAM.IControllerResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified ControllerResponse message, length delimited. Does not implicitly {@link PAM.ControllerResponse.verify|verify} messages. - * @param message ControllerResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: PAM.IControllerResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a ControllerResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -109582,22 +87134,6 @@ export namespace PAM { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): PAM.ControllerResponse; - /** - * Decodes a ControllerResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ControllerResponse - * @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)): PAM.ControllerResponse; - - /** - * Verifies a ControllerResponse 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 ControllerResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -109667,14 +87203,6 @@ export namespace PAM { */ public static encode(message: PAM.IPAMConfigurationController, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified PAMConfigurationController message, length delimited. Does not implicitly {@link PAM.PAMConfigurationController.verify|verify} messages. - * @param message PAMConfigurationController message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: PAM.IPAMConfigurationController, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a PAMConfigurationController message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -109685,22 +87213,6 @@ export namespace PAM { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): PAM.PAMConfigurationController; - /** - * Decodes a PAMConfigurationController message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns PAMConfigurationController - * @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)): PAM.PAMConfigurationController; - - /** - * Verifies a PAMConfigurationController 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 PAMConfigurationController message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -109788,14 +87300,6 @@ export namespace PAM { */ public static encode(message: PAM.IConfigurationAddRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified ConfigurationAddRequest message, length delimited. Does not implicitly {@link PAM.ConfigurationAddRequest.verify|verify} messages. - * @param message ConfigurationAddRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: PAM.IConfigurationAddRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a ConfigurationAddRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -109806,22 +87310,6 @@ export namespace PAM { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): PAM.ConfigurationAddRequest; - /** - * Decodes a ConfigurationAddRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ConfigurationAddRequest - * @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)): PAM.ConfigurationAddRequest; - - /** - * Verifies a ConfigurationAddRequest 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 ConfigurationAddRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -109897,14 +87385,6 @@ export namespace PAM { */ public static encode(message: PAM.IRelayAccessCreds, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified RelayAccessCreds message, length delimited. Does not implicitly {@link PAM.RelayAccessCreds.verify|verify} messages. - * @param message RelayAccessCreds message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: PAM.IRelayAccessCreds, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a RelayAccessCreds message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -109915,22 +87395,6 @@ export namespace PAM { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): PAM.RelayAccessCreds; - /** - * Decodes a RelayAccessCreds message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RelayAccessCreds - * @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)): PAM.RelayAccessCreds; - - /** - * Verifies a RelayAccessCreds 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 RelayAccessCreds message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -110053,14 +87517,6 @@ export namespace PAM { */ public static encode(message: PAM.IPAMRecordingsRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified PAMRecordingsRequest message, length delimited. Does not implicitly {@link PAM.PAMRecordingsRequest.verify|verify} messages. - * @param message PAMRecordingsRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: PAM.IPAMRecordingsRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a PAMRecordingsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -110071,22 +87527,6 @@ export namespace PAM { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): PAM.PAMRecordingsRequest; - /** - * Decodes a PAMRecordingsRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns PAMRecordingsRequest - * @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)): PAM.PAMRecordingsRequest; - - /** - * Verifies a PAMRecordingsRequest 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 PAMRecordingsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -110222,14 +87662,6 @@ export namespace PAM { */ public static encode(message: PAM.IPAMRecording, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified PAMRecording message, length delimited. Does not implicitly {@link PAM.PAMRecording.verify|verify} messages. - * @param message PAMRecording message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: PAM.IPAMRecording, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a PAMRecording message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -110240,22 +87672,6 @@ export namespace PAM { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): PAM.PAMRecording; - /** - * Decodes a PAMRecording message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns PAMRecording - * @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)): PAM.PAMRecording; - - /** - * Verifies a PAMRecording 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 PAMRecording message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -110325,14 +87741,6 @@ export namespace PAM { */ public static encode(message: PAM.IPAMRecordingsResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified PAMRecordingsResponse message, length delimited. Does not implicitly {@link PAM.PAMRecordingsResponse.verify|verify} messages. - * @param message PAMRecordingsResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: PAM.IPAMRecordingsResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a PAMRecordingsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -110343,22 +87751,6 @@ export namespace PAM { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): PAM.PAMRecordingsResponse; - /** - * Decodes a PAMRecordingsResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns PAMRecordingsResponse - * @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)): PAM.PAMRecordingsResponse; - - /** - * Verifies a PAMRecordingsResponse 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 PAMRecordingsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -110428,14 +87820,6 @@ export namespace PAM { */ public static encode(message: PAM.IPAMData, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified PAMData message, length delimited. Does not implicitly {@link PAM.PAMData.verify|verify} messages. - * @param message PAMData message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: PAM.IPAMData, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a PAMData message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -110446,22 +87830,6 @@ export namespace PAM { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): PAM.PAMData; - /** - * Decodes a PAMData message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns PAMData - * @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)): PAM.PAMData; - - /** - * Verifies a PAMData 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 PAMData message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -110525,14 +87893,6 @@ export namespace PAM { */ public static encode(message: PAM.IUidList, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified UidList message, length delimited. Does not implicitly {@link PAM.UidList.verify|verify} messages. - * @param message UidList message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: PAM.IUidList, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes an UidList message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -110543,22 +87903,6 @@ export namespace PAM { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): PAM.UidList; - /** - * Decodes an UidList message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns UidList - * @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)): PAM.UidList; - - /** - * Verifies an UidList 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 UidList message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -110676,14 +88020,6 @@ export namespace PAM { */ public static encode(message: PAM.IPAMResourceConfig, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified PAMResourceConfig message, length delimited. Does not implicitly {@link PAM.PAMResourceConfig.verify|verify} messages. - * @param message PAMResourceConfig message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: PAM.IPAMResourceConfig, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a PAMResourceConfig message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -110694,22 +88030,6 @@ export namespace PAM { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): PAM.PAMResourceConfig; - /** - * Decodes a PAMResourceConfig message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns PAMResourceConfig - * @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)): PAM.PAMResourceConfig; - - /** - * Verifies a PAMResourceConfig 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 PAMResourceConfig message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -110773,14 +88093,6 @@ export namespace PAM { */ public static encode(message: PAM.IPAMUniversalSyncFolder, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified PAMUniversalSyncFolder message, length delimited. Does not implicitly {@link PAM.PAMUniversalSyncFolder.verify|verify} messages. - * @param message PAMUniversalSyncFolder message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: PAM.IPAMUniversalSyncFolder, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a PAMUniversalSyncFolder message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -110791,22 +88103,6 @@ export namespace PAM { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): PAM.PAMUniversalSyncFolder; - /** - * Decodes a PAMUniversalSyncFolder message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns PAMUniversalSyncFolder - * @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)): PAM.PAMUniversalSyncFolder; - - /** - * Verifies a PAMUniversalSyncFolder 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 PAMUniversalSyncFolder message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -110900,14 +88196,6 @@ export namespace PAM { */ public static encode(message: PAM.IPAMUniversalSyncConfig, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified PAMUniversalSyncConfig message, length delimited. Does not implicitly {@link PAM.PAMUniversalSyncConfig.verify|verify} messages. - * @param message PAMUniversalSyncConfig message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: PAM.IPAMUniversalSyncConfig, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a PAMUniversalSyncConfig message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -110918,22 +88206,6 @@ export namespace PAM { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): PAM.PAMUniversalSyncConfig; - /** - * Decodes a PAMUniversalSyncConfig message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns PAMUniversalSyncConfig - * @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)): PAM.PAMUniversalSyncConfig; - - /** - * Verifies a PAMUniversalSyncConfig 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 PAMUniversalSyncConfig message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -111003,14 +88275,6 @@ export namespace PAM { */ public static encode(message: PAM.INhiMetricsRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified NhiMetricsRequest message, length delimited. Does not implicitly {@link PAM.NhiMetricsRequest.verify|verify} messages. - * @param message NhiMetricsRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: PAM.INhiMetricsRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a NhiMetricsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -111021,22 +88285,6 @@ export namespace PAM { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): PAM.NhiMetricsRequest; - /** - * Decodes a NhiMetricsRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns NhiMetricsRequest - * @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)): PAM.NhiMetricsRequest; - - /** - * Verifies a NhiMetricsRequest 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 NhiMetricsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -111148,14 +88396,6 @@ export namespace PAM { */ public static encode(message: PAM.IPamUsageByUser, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified PamUsageByUser message, length delimited. Does not implicitly {@link PAM.PamUsageByUser.verify|verify} messages. - * @param message PamUsageByUser message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: PAM.IPamUsageByUser, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a PamUsageByUser message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -111166,22 +88406,6 @@ export namespace PAM { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): PAM.PamUsageByUser; - /** - * Decodes a PamUsageByUser message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns PamUsageByUser - * @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)): PAM.PamUsageByUser; - - /** - * Verifies a PamUsageByUser 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 PamUsageByUser message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -111269,14 +88493,6 @@ export namespace PAM { */ public static encode(message: PAM.INhiUsageByUser, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified NhiUsageByUser message, length delimited. Does not implicitly {@link PAM.NhiUsageByUser.verify|verify} messages. - * @param message NhiUsageByUser message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: PAM.INhiUsageByUser, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a NhiUsageByUser message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -111287,22 +88503,6 @@ export namespace PAM { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): PAM.NhiUsageByUser; - /** - * Decodes a NhiUsageByUser message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns NhiUsageByUser - * @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)): PAM.NhiUsageByUser; - - /** - * Verifies a NhiUsageByUser 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 NhiUsageByUser message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -111414,14 +88614,6 @@ export namespace PAM { */ public static encode(message: PAM.INhiMetricsResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified NhiMetricsResponse message, length delimited. Does not implicitly {@link PAM.NhiMetricsResponse.verify|verify} messages. - * @param message NhiMetricsResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: PAM.INhiMetricsResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a NhiMetricsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -111432,22 +88624,6 @@ export namespace PAM { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): PAM.NhiMetricsResponse; - /** - * Decodes a NhiMetricsResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns NhiMetricsResponse - * @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)): PAM.NhiMetricsResponse; - - /** - * Verifies a NhiMetricsResponse 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 NhiMetricsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -111511,14 +88687,6 @@ export namespace PAM { */ public static encode(message: PAM.INhiBulkMetricsResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified NhiBulkMetricsResponse message, length delimited. Does not implicitly {@link PAM.NhiBulkMetricsResponse.verify|verify} messages. - * @param message NhiBulkMetricsResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: PAM.INhiBulkMetricsResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a NhiBulkMetricsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -111529,22 +88697,6 @@ export namespace PAM { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): PAM.NhiBulkMetricsResponse; - /** - * Decodes a NhiBulkMetricsResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns NhiBulkMetricsResponse - * @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)): PAM.NhiBulkMetricsResponse; - - /** - * Verifies a NhiBulkMetricsResponse 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 NhiBulkMetricsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -111629,14 +88781,6 @@ export namespace PAM { */ public static encode(message: PAM.INhiUidEntry, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified NhiUidEntry message, length delimited. Does not implicitly {@link PAM.NhiUidEntry.verify|verify} messages. - * @param message NhiUidEntry message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: PAM.INhiUidEntry, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a NhiUidEntry message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -111647,22 +88791,6 @@ export namespace PAM { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): PAM.NhiUidEntry; - /** - * Decodes a NhiUidEntry message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns NhiUidEntry - * @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)): PAM.NhiUidEntry; - - /** - * Verifies a NhiUidEntry 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 NhiUidEntry message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -111732,14 +88860,6 @@ export namespace PAM { */ public static encode(message: PAM.IGetNhiUidsRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified GetNhiUidsRequest message, length delimited. Does not implicitly {@link PAM.GetNhiUidsRequest.verify|verify} messages. - * @param message GetNhiUidsRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: PAM.IGetNhiUidsRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a GetNhiUidsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -111750,22 +88870,6 @@ export namespace PAM { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): PAM.GetNhiUidsRequest; - /** - * Decodes a GetNhiUidsRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetNhiUidsRequest - * @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)): PAM.GetNhiUidsRequest; - - /** - * Verifies a GetNhiUidsRequest 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 GetNhiUidsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -111829,14 +88933,6 @@ export namespace PAM { */ public static encode(message: PAM.IGetNhiUidsResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified GetNhiUidsResponse message, length delimited. Does not implicitly {@link PAM.GetNhiUidsResponse.verify|verify} messages. - * @param message GetNhiUidsResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: PAM.IGetNhiUidsResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a GetNhiUidsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -111847,22 +88943,6 @@ export namespace PAM { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): PAM.GetNhiUidsResponse; - /** - * Decodes a GetNhiUidsResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetNhiUidsResponse - * @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)): PAM.GetNhiUidsResponse; - - /** - * Verifies a GetNhiUidsResponse 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 GetNhiUidsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -111932,14 +89012,6 @@ export namespace PAM { */ public static encode(message: PAM.IPAMUniversalSyncPreCheckRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified PAMUniversalSyncPreCheckRequest message, length delimited. Does not implicitly {@link PAM.PAMUniversalSyncPreCheckRequest.verify|verify} messages. - * @param message PAMUniversalSyncPreCheckRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: PAM.IPAMUniversalSyncPreCheckRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a PAMUniversalSyncPreCheckRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -111950,22 +89022,6 @@ export namespace PAM { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): PAM.PAMUniversalSyncPreCheckRequest; - /** - * Decodes a PAMUniversalSyncPreCheckRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns PAMUniversalSyncPreCheckRequest - * @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)): PAM.PAMUniversalSyncPreCheckRequest; - - /** - * Verifies a PAMUniversalSyncPreCheckRequest 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 PAMUniversalSyncPreCheckRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -112035,14 +89091,6 @@ export namespace PAM { */ public static encode(message: PAM.IPAMUniversalSyncPreCheckResult, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified PAMUniversalSyncPreCheckResult message, length delimited. Does not implicitly {@link PAM.PAMUniversalSyncPreCheckResult.verify|verify} messages. - * @param message PAMUniversalSyncPreCheckResult message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: PAM.IPAMUniversalSyncPreCheckResult, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a PAMUniversalSyncPreCheckResult message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -112053,22 +89101,6 @@ export namespace PAM { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): PAM.PAMUniversalSyncPreCheckResult; - /** - * Decodes a PAMUniversalSyncPreCheckResult message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns PAMUniversalSyncPreCheckResult - * @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)): PAM.PAMUniversalSyncPreCheckResult; - - /** - * Verifies a PAMUniversalSyncPreCheckResult 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 PAMUniversalSyncPreCheckResult message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -112132,14 +89164,6 @@ export namespace PAM { */ public static encode(message: PAM.IPAMUniversalSyncPreCheckResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified PAMUniversalSyncPreCheckResponse message, length delimited. Does not implicitly {@link PAM.PAMUniversalSyncPreCheckResponse.verify|verify} messages. - * @param message PAMUniversalSyncPreCheckResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: PAM.IPAMUniversalSyncPreCheckResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a PAMUniversalSyncPreCheckResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -112150,22 +89174,6 @@ export namespace PAM { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): PAM.PAMUniversalSyncPreCheckResponse; - /** - * Decodes a PAMUniversalSyncPreCheckResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns PAMUniversalSyncPreCheckResponse - * @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)): PAM.PAMUniversalSyncPreCheckResponse; - - /** - * Verifies a PAMUniversalSyncPreCheckResponse 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 PAMUniversalSyncPreCheckResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -112393,14 +89401,6 @@ export namespace folder { */ public static encode(message: folder.v3.remove.IRecordRemoval, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified RecordRemoval message, length delimited. Does not implicitly {@link folder.v3.remove.RecordRemoval.verify|verify} messages. - * @param message RecordRemoval message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: folder.v3.remove.IRecordRemoval, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a RecordRemoval message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -112411,22 +89411,6 @@ export namespace folder { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): folder.v3.remove.RecordRemoval; - /** - * Decodes a RecordRemoval message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RecordRemoval - * @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)): folder.v3.remove.RecordRemoval; - - /** - * Verifies a RecordRemoval 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 RecordRemoval message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -112496,14 +89480,6 @@ export namespace folder { */ public static encode(message: folder.v3.remove.IFolderRemoval, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified FolderRemoval message, length delimited. Does not implicitly {@link folder.v3.remove.FolderRemoval.verify|verify} messages. - * @param message FolderRemoval message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: folder.v3.remove.IFolderRemoval, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a FolderRemoval message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -112514,22 +89490,6 @@ export namespace folder { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): folder.v3.remove.FolderRemoval; - /** - * Decodes a FolderRemoval message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns FolderRemoval - * @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)): folder.v3.remove.FolderRemoval; - - /** - * Verifies a FolderRemoval 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 FolderRemoval message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -112605,14 +89565,6 @@ export namespace folder { */ public static encode(message: folder.v3.remove.IRemoveRecordRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified RemoveRecordRequest message, length delimited. Does not implicitly {@link folder.v3.remove.RemoveRecordRequest.verify|verify} messages. - * @param message RemoveRecordRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: folder.v3.remove.IRemoveRecordRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a RemoveRecordRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -112623,22 +89575,6 @@ export namespace folder { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): folder.v3.remove.RemoveRecordRequest; - /** - * Decodes a RemoveRecordRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RemoveRecordRequest - * @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)): folder.v3.remove.RemoveRecordRequest; - - /** - * Verifies a RemoveRecordRequest 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 RemoveRecordRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -112714,14 +89650,6 @@ export namespace folder { */ public static encode(message: folder.v3.remove.IRemoveFolderRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified RemoveFolderRequest message, length delimited. Does not implicitly {@link folder.v3.remove.RemoveFolderRequest.verify|verify} messages. - * @param message RemoveFolderRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: folder.v3.remove.IRemoveFolderRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a RemoveFolderRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -112732,22 +89660,6 @@ export namespace folder { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): folder.v3.remove.RemoveFolderRequest; - /** - * Decodes a RemoveFolderRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RemoveFolderRequest - * @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)): folder.v3.remove.RemoveFolderRequest; - - /** - * Verifies a RemoveFolderRequest 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 RemoveFolderRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -112834,14 +89746,6 @@ export namespace folder { */ public static encode(message: folder.v3.remove.IRemoveResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified RemoveResponse message, length delimited. Does not implicitly {@link folder.v3.remove.RemoveResponse.verify|verify} messages. - * @param message RemoveResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: folder.v3.remove.IRemoveResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a RemoveResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -112852,22 +89756,6 @@ export namespace folder { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): folder.v3.remove.RemoveResponse; - /** - * Decodes a RemoveResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RemoveResponse - * @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)): folder.v3.remove.RemoveResponse; - - /** - * Verifies a RemoveResponse 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 RemoveResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -112955,14 +89843,6 @@ export namespace folder { */ public static encode(message: folder.v3.remove.IRemoveResult, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified RemoveResult message, length delimited. Does not implicitly {@link folder.v3.remove.RemoveResult.verify|verify} messages. - * @param message RemoveResult message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: folder.v3.remove.IRemoveResult, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a RemoveResult message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -112973,22 +89853,6 @@ export namespace folder { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): folder.v3.remove.RemoveResult; - /** - * Decodes a RemoveResult message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RemoveResult - * @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)): folder.v3.remove.RemoveResult; - - /** - * Verifies a RemoveResult 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 RemoveResult message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -113082,14 +89946,6 @@ export namespace folder { */ public static encode(message: folder.v3.remove.IImpact, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified Impact message, length delimited. Does not implicitly {@link folder.v3.remove.Impact.verify|verify} messages. - * @param message Impact message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: folder.v3.remove.IImpact, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes an Impact message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -113100,22 +89956,6 @@ export namespace folder { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): folder.v3.remove.Impact; - /** - * Decodes an Impact message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Impact - * @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)): folder.v3.remove.Impact; - - /** - * Verifies an Impact 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 Impact message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -113188,14 +90028,6 @@ export namespace folder { */ public static encode(message: folder.v3.remove.IRecordInfo, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified RecordInfo message, length delimited. Does not implicitly {@link folder.v3.remove.RecordInfo.verify|verify} messages. - * @param message RecordInfo message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: folder.v3.remove.IRecordInfo, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a RecordInfo message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -113206,22 +90038,6 @@ export namespace folder { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): folder.v3.remove.RecordInfo; - /** - * Decodes a RecordInfo message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RecordInfo - * @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)): folder.v3.remove.RecordInfo; - - /** - * Verifies a RecordInfo 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 RecordInfo message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -113291,14 +90107,6 @@ export namespace folder { */ public static encode(message: folder.v3.remove.IItemError, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified ItemError message, length delimited. Does not implicitly {@link folder.v3.remove.ItemError.verify|verify} messages. - * @param message ItemError message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: folder.v3.remove.IItemError, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes an ItemError message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -113309,22 +90117,6 @@ export namespace folder { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): folder.v3.remove.ItemError; - /** - * Decodes an ItemError message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ItemError - * @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)): folder.v3.remove.ItemError; - - /** - * Verifies an ItemError 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 ItemError message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -113412,14 +90204,6 @@ export namespace folder { */ public static encode(message: folder.v3.remove.IRemovalTokenPayload, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified RemovalTokenPayload message, length delimited. Does not implicitly {@link folder.v3.remove.RemovalTokenPayload.verify|verify} messages. - * @param message RemovalTokenPayload message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: folder.v3.remove.IRemovalTokenPayload, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a RemovalTokenPayload message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -113430,22 +90214,6 @@ export namespace folder { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): folder.v3.remove.RemovalTokenPayload; - /** - * Decodes a RemovalTokenPayload message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RemovalTokenPayload - * @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)): folder.v3.remove.RemovalTokenPayload; - - /** - * Verifies a RemovalTokenPayload 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 RemovalTokenPayload message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -113524,14 +90292,6 @@ export namespace folder { */ public static encode(message: folder.v3.remove.IItemFingerprint, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified ItemFingerprint message, length delimited. Does not implicitly {@link folder.v3.remove.ItemFingerprint.verify|verify} messages. - * @param message ItemFingerprint message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: folder.v3.remove.IItemFingerprint, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes an ItemFingerprint message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -113542,22 +90302,6 @@ export namespace folder { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): folder.v3.remove.ItemFingerprint; - /** - * Decodes an ItemFingerprint message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ItemFingerprint - * @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)): folder.v3.remove.ItemFingerprint; - - /** - * Verifies an ItemFingerprint 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 ItemFingerprint message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -113633,14 +90377,6 @@ export namespace folder { */ public static encode(message: folder.v3.remove.IRecordTarget, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified RecordTarget message, length delimited. Does not implicitly {@link folder.v3.remove.RecordTarget.verify|verify} messages. - * @param message RecordTarget message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: folder.v3.remove.IRecordTarget, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a RecordTarget message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -113651,22 +90387,6 @@ export namespace folder { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): folder.v3.remove.RecordTarget; - /** - * Decodes a RecordTarget message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RecordTarget - * @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)): folder.v3.remove.RecordTarget; - - /** - * Verifies a RecordTarget 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 RecordTarget message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -113736,14 +90456,6 @@ export namespace folder { */ public static encode(message: folder.v3.remove.IFolderTarget, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified FolderTarget message, length delimited. Does not implicitly {@link folder.v3.remove.FolderTarget.verify|verify} messages. - * @param message FolderTarget message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: folder.v3.remove.IFolderTarget, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a FolderTarget message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -113754,22 +90466,6 @@ export namespace folder { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): folder.v3.remove.FolderTarget; - /** - * Decodes a FolderTarget message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns FolderTarget - * @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)): folder.v3.remove.FolderTarget; - - /** - * Verifies a FolderTarget 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 FolderTarget message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -113869,14 +90565,6 @@ export namespace folder { */ public static encode(message: folder.v3.remove.IRestoreResult, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified RestoreResult message, length delimited. Does not implicitly {@link folder.v3.remove.RestoreResult.verify|verify} messages. - * @param message RestoreResult message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: folder.v3.remove.IRestoreResult, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a RestoreResult message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -113887,22 +90575,6 @@ export namespace folder { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): folder.v3.remove.RestoreResult; - /** - * Decodes a RestoreResult message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RestoreResult - * @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)): folder.v3.remove.RestoreResult; - - /** - * Verifies a RestoreResult 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 RestoreResult message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -113972,14 +90644,6 @@ export namespace folder { */ public static encode(message: folder.v3.remove.ITrashcanRestoreResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified TrashcanRestoreResponse message, length delimited. Does not implicitly {@link folder.v3.remove.TrashcanRestoreResponse.verify|verify} messages. - * @param message TrashcanRestoreResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: folder.v3.remove.ITrashcanRestoreResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a TrashcanRestoreResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -113990,22 +90654,6 @@ export namespace folder { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): folder.v3.remove.TrashcanRestoreResponse; - /** - * Decodes a TrashcanRestoreResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns TrashcanRestoreResponse - * @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)): folder.v3.remove.TrashcanRestoreResponse; - - /** - * Verifies a TrashcanRestoreResponse 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 TrashcanRestoreResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -114081,14 +90729,6 @@ export namespace folder { */ public static encode(message: folder.v3.remove.IRestoreRecord, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified RestoreRecord message, length delimited. Does not implicitly {@link folder.v3.remove.RestoreRecord.verify|verify} messages. - * @param message RestoreRecord message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: folder.v3.remove.IRestoreRecord, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a RestoreRecord message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -114099,22 +90739,6 @@ export namespace folder { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): folder.v3.remove.RestoreRecord; - /** - * Decodes a RestoreRecord message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RestoreRecord - * @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)): folder.v3.remove.RestoreRecord; - - /** - * Verifies a RestoreRecord 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 RestoreRecord message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -114184,14 +90808,6 @@ export namespace folder { */ public static encode(message: folder.v3.remove.IRestoreFolder, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified RestoreFolder message, length delimited. Does not implicitly {@link folder.v3.remove.RestoreFolder.verify|verify} messages. - * @param message RestoreFolder message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: folder.v3.remove.IRestoreFolder, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a RestoreFolder message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -114202,22 +90818,6 @@ export namespace folder { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): folder.v3.remove.RestoreFolder; - /** - * Decodes a RestoreFolder message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RestoreFolder - * @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)): folder.v3.remove.RestoreFolder; - - /** - * Verifies a RestoreFolder 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 RestoreFolder message from a plain object. Also converts values to their respective internal types. * @param object Plain object @@ -114293,14 +90893,6 @@ export namespace folder { */ public static encode(message: folder.v3.remove.ITrashcanRestoreRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified TrashcanRestoreRequest message, length delimited. Does not implicitly {@link folder.v3.remove.TrashcanRestoreRequest.verify|verify} messages. - * @param message TrashcanRestoreRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: folder.v3.remove.ITrashcanRestoreRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** * Decodes a TrashcanRestoreRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from @@ -114311,22 +90903,6 @@ export namespace folder { */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): folder.v3.remove.TrashcanRestoreRequest; - /** - * Decodes a TrashcanRestoreRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns TrashcanRestoreRequest - * @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)): folder.v3.remove.TrashcanRestoreRequest; - - /** - * Verifies a TrashcanRestoreRequest 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 TrashcanRestoreRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object diff --git a/keeperapi/src/proto.js b/keeperapi/src/proto.js index 91c6444c..fe55d7cb 100644 --- a/keeperapi/src/proto.js +++ b/keeperapi/src/proto.js @@ -321,19 +321,6 @@ export const Authentication = $root.Authentication = (() => { return writer; }; - /** - * Encodes the specified QrcMessageKey message, length delimited. Does not implicitly {@link Authentication.QrcMessageKey.verify|verify} messages. - * @function encodeDelimited - * @memberof Authentication.QrcMessageKey - * @static - * @param {Authentication.IQrcMessageKey} message QrcMessageKey message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - QrcMessageKey.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a QrcMessageKey message from the specified reader or buffer. * @function decode @@ -386,55 +373,6 @@ export const Authentication = $root.Authentication = (() => { return message; }; - /** - * Decodes a QrcMessageKey message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Authentication.QrcMessageKey - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Authentication.QrcMessageKey} QrcMessageKey - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - QrcMessageKey.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a QrcMessageKey message. - * @function verify - * @memberof Authentication.QrcMessageKey - * @static - * @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) { - if (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"; - if (message.mlKemEncapsulatedKey != null && message.hasOwnProperty("mlKemEncapsulatedKey")) - if (!(message.mlKemEncapsulatedKey && typeof message.mlKemEncapsulatedKey.length === "number" || $util.isString(message.mlKemEncapsulatedKey))) - return "mlKemEncapsulatedKey: buffer 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.msgVersion != null && message.hasOwnProperty("msgVersion")) - if (!$util.isInteger(message.msgVersion)) - return "msgVersion: integer expected"; - if (message.ecKeyId != null && message.hasOwnProperty("ecKeyId")) - if (!$util.isInteger(message.ecKeyId)) - return "ecKeyId: integer expected"; - return null; - }; - /** * Creates a QrcMessageKey message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -446,6 +384,8 @@ export const Authentication = $root.Authentication = (() => { QrcMessageKey.fromObject = function fromObject(object, long) { if (object instanceof $root.Authentication.QrcMessageKey) return object; + if (!$util.isObject(object)) + throw TypeError(".Authentication.QrcMessageKey: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -515,15 +455,15 @@ export const Authentication = $root.Authentication = (() => { object.msgVersion = 0; object.ecKeyId = 0; } - if (message.clientEcPublicKey != null && message.hasOwnProperty("clientEcPublicKey")) + if (message.clientEcPublicKey != null && Object.hasOwnProperty.call(message, "clientEcPublicKey")) object.clientEcPublicKey = options.bytes === String ? $util.base64.encode(message.clientEcPublicKey, 0, message.clientEcPublicKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.clientEcPublicKey) : message.clientEcPublicKey; - if (message.mlKemEncapsulatedKey != null && message.hasOwnProperty("mlKemEncapsulatedKey")) + if (message.mlKemEncapsulatedKey != null && Object.hasOwnProperty.call(message, "mlKemEncapsulatedKey")) object.mlKemEncapsulatedKey = options.bytes === String ? $util.base64.encode(message.mlKemEncapsulatedKey, 0, message.mlKemEncapsulatedKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.mlKemEncapsulatedKey) : message.mlKemEncapsulatedKey; - if (message.data != null && message.hasOwnProperty("data")) + if (message.data != null && Object.hasOwnProperty.call(message, "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.msgVersion != null && message.hasOwnProperty("msgVersion")) + if (message.msgVersion != null && Object.hasOwnProperty.call(message, "msgVersion")) object.msgVersion = message.msgVersion; - if (message.ecKeyId != null && message.hasOwnProperty("ecKeyId")) + if (message.ecKeyId != null && Object.hasOwnProperty.call(message, "ecKeyId")) object.ecKeyId = message.ecKeyId; return object; }; @@ -699,19 +639,6 @@ export const Authentication = $root.Authentication = (() => { return writer; }; - /** - * Encodes the specified ApiRequest message, length delimited. Does not implicitly {@link Authentication.ApiRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof Authentication.ApiRequest - * @static - * @param {Authentication.IApiRequest} message ApiRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ApiRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes an ApiRequest message from the specified reader or buffer. * @function decode @@ -776,66 +703,6 @@ export const Authentication = $root.Authentication = (() => { return message; }; - /** - * Decodes an ApiRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Authentication.ApiRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Authentication.ApiRequest} ApiRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ApiRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an ApiRequest message. - * @function verify - * @memberof Authentication.ApiRequest - * @static - * @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) { - if (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"; - if (message.publicKeyId != null && message.hasOwnProperty("publicKeyId")) - if (!$util.isInteger(message.publicKeyId)) - return "publicKeyId: integer expected"; - if (message.locale != null && message.hasOwnProperty("locale")) - if (!$util.isString(message.locale)) - return "locale: string expected"; - if (message.encryptedPayload != null && message.hasOwnProperty("encryptedPayload")) - if (!(message.encryptedPayload && typeof message.encryptedPayload.length === "number" || $util.isString(message.encryptedPayload))) - return "encryptedPayload: buffer expected"; - if (message.encryptionType != null && message.hasOwnProperty("encryptionType")) - if (!$util.isInteger(message.encryptionType)) - return "encryptionType: integer expected"; - if (message.recaptcha != null && message.hasOwnProperty("recaptcha")) - if (!$util.isString(message.recaptcha)) - return "recaptcha: string expected"; - if (message.subEnvironment != null && message.hasOwnProperty("subEnvironment")) - 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); - if (error) - return "qrcMessageKey." + error; - } - return null; - }; - /** * Creates an ApiRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -847,6 +714,8 @@ export const Authentication = $root.Authentication = (() => { ApiRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.Authentication.ApiRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".Authentication.ApiRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -873,7 +742,7 @@ export const Authentication = $root.Authentication = (() => { if (object.subEnvironment != null) message.subEnvironment = String(object.subEnvironment); if (object.qrcMessageKey != null) { - if (typeof object.qrcMessageKey !== "object") + if (!$util.isObject(object.qrcMessageKey)) throw TypeError(".Authentication.ApiRequest.qrcMessageKey: object expected"); message.qrcMessageKey = $root.Authentication.QrcMessageKey.fromObject(object.qrcMessageKey, long + 1); } @@ -919,21 +788,21 @@ export const Authentication = $root.Authentication = (() => { object.subEnvironment = ""; object.qrcMessageKey = null; } - if (message.encryptedTransmissionKey != null && message.hasOwnProperty("encryptedTransmissionKey")) + if (message.encryptedTransmissionKey != null && Object.hasOwnProperty.call(message, "encryptedTransmissionKey")) object.encryptedTransmissionKey = options.bytes === String ? $util.base64.encode(message.encryptedTransmissionKey, 0, message.encryptedTransmissionKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedTransmissionKey) : message.encryptedTransmissionKey; - if (message.publicKeyId != null && message.hasOwnProperty("publicKeyId")) + if (message.publicKeyId != null && Object.hasOwnProperty.call(message, "publicKeyId")) object.publicKeyId = message.publicKeyId; - if (message.locale != null && message.hasOwnProperty("locale")) + if (message.locale != null && Object.hasOwnProperty.call(message, "locale")) object.locale = message.locale; - if (message.encryptedPayload != null && message.hasOwnProperty("encryptedPayload")) + if (message.encryptedPayload != null && Object.hasOwnProperty.call(message, "encryptedPayload")) object.encryptedPayload = options.bytes === String ? $util.base64.encode(message.encryptedPayload, 0, message.encryptedPayload.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedPayload) : message.encryptedPayload; - if (message.encryptionType != null && message.hasOwnProperty("encryptionType")) + if (message.encryptionType != null && Object.hasOwnProperty.call(message, "encryptionType")) object.encryptionType = message.encryptionType; - if (message.recaptcha != null && message.hasOwnProperty("recaptcha")) + if (message.recaptcha != null && Object.hasOwnProperty.call(message, "recaptcha")) object.recaptcha = message.recaptcha; - if (message.subEnvironment != null && message.hasOwnProperty("subEnvironment")) + if (message.subEnvironment != null && Object.hasOwnProperty.call(message, "subEnvironment")) object.subEnvironment = message.subEnvironment; - if (message.qrcMessageKey != null && message.hasOwnProperty("qrcMessageKey")) + if (message.qrcMessageKey != null && Object.hasOwnProperty.call(message, "qrcMessageKey")) object.qrcMessageKey = $root.Authentication.QrcMessageKey.toObject(message.qrcMessageKey, options, q + 1); return object; }; @@ -1065,19 +934,6 @@ export const Authentication = $root.Authentication = (() => { return writer; }; - /** - * Encodes the specified ApiRequestPayload message, length delimited. Does not implicitly {@link Authentication.ApiRequestPayload.verify|verify} messages. - * @function encodeDelimited - * @memberof Authentication.ApiRequestPayload - * @static - * @param {Authentication.IApiRequestPayload} message ApiRequestPayload message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ApiRequestPayload.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes an ApiRequestPayload message from the specified reader or buffer. * @function decode @@ -1126,52 +982,6 @@ export const Authentication = $root.Authentication = (() => { return message; }; - /** - * Decodes an ApiRequestPayload message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Authentication.ApiRequestPayload - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Authentication.ApiRequestPayload} ApiRequestPayload - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ApiRequestPayload.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an ApiRequestPayload message. - * @function verify - * @memberof Authentication.ApiRequestPayload - * @static - * @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) { - if (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"; - if (message.encryptedSessionToken != null && message.hasOwnProperty("encryptedSessionToken")) - if (!(message.encryptedSessionToken && typeof message.encryptedSessionToken.length === "number" || $util.isString(message.encryptedSessionToken))) - return "encryptedSessionToken: buffer expected"; - if (message.timeToken != null && message.hasOwnProperty("timeToken")) - if (!(message.timeToken && typeof message.timeToken.length === "number" || $util.isString(message.timeToken))) - return "timeToken: buffer expected"; - if (message.apiVersion != null && message.hasOwnProperty("apiVersion")) - if (!$util.isInteger(message.apiVersion)) - return "apiVersion: integer expected"; - return null; - }; - /** * Creates an ApiRequestPayload message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -1183,6 +993,8 @@ export const Authentication = $root.Authentication = (() => { ApiRequestPayload.fromObject = function fromObject(object, long) { if (object instanceof $root.Authentication.ApiRequestPayload) return object; + if (!$util.isObject(object)) + throw TypeError(".Authentication.ApiRequestPayload: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -1249,13 +1061,13 @@ export const Authentication = $root.Authentication = (() => { } object.apiVersion = 0; } - if (message.payload != null && message.hasOwnProperty("payload")) + if (message.payload != null && Object.hasOwnProperty.call(message, "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.encryptedSessionToken != null && message.hasOwnProperty("encryptedSessionToken")) + if (message.encryptedSessionToken != null && Object.hasOwnProperty.call(message, "encryptedSessionToken")) object.encryptedSessionToken = options.bytes === String ? $util.base64.encode(message.encryptedSessionToken, 0, message.encryptedSessionToken.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedSessionToken) : message.encryptedSessionToken; - if (message.timeToken != null && message.hasOwnProperty("timeToken")) + if (message.timeToken != null && Object.hasOwnProperty.call(message, "timeToken")) object.timeToken = options.bytes === String ? $util.base64.encode(message.timeToken, 0, message.timeToken.length) : options.bytes === Array ? Array.prototype.slice.call(message.timeToken) : message.timeToken; - if (message.apiVersion != null && message.hasOwnProperty("apiVersion")) + if (message.apiVersion != null && Object.hasOwnProperty.call(message, "apiVersion")) object.apiVersion = message.apiVersion; return object; }; @@ -1365,19 +1177,6 @@ export const Authentication = $root.Authentication = (() => { return writer; }; - /** - * Encodes the specified Transform message, length delimited. Does not implicitly {@link Authentication.Transform.verify|verify} messages. - * @function encodeDelimited - * @memberof Authentication.Transform - * @static - * @param {Authentication.ITransform} message Transform message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Transform.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a Transform message from the specified reader or buffer. * @function decode @@ -1418,46 +1217,6 @@ export const Authentication = $root.Authentication = (() => { return message; }; - /** - * Decodes a Transform message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Authentication.Transform - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Authentication.Transform} Transform - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Transform.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a Transform message. - * @function verify - * @memberof Authentication.Transform - * @static - * @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) { - if (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"; - if (message.encryptedDeviceToken != null && message.hasOwnProperty("encryptedDeviceToken")) - if (!(message.encryptedDeviceToken && typeof message.encryptedDeviceToken.length === "number" || $util.isString(message.encryptedDeviceToken))) - return "encryptedDeviceToken: buffer expected"; - return null; - }; - /** * Creates a Transform message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -1469,6 +1228,8 @@ export const Authentication = $root.Authentication = (() => { Transform.fromObject = function fromObject(object, long) { if (object instanceof $root.Authentication.Transform) return object; + if (!$util.isObject(object)) + throw TypeError(".Authentication.Transform: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -1520,9 +1281,9 @@ export const Authentication = $root.Authentication = (() => { object.encryptedDeviceToken = $util.newBuffer(object.encryptedDeviceToken); } } - if (message.key != null && message.hasOwnProperty("key")) + if (message.key != null && Object.hasOwnProperty.call(message, "key")) object.key = options.bytes === String ? $util.base64.encode(message.key, 0, message.key.length) : options.bytes === Array ? Array.prototype.slice.call(message.key) : message.key; - if (message.encryptedDeviceToken != null && message.hasOwnProperty("encryptedDeviceToken")) + if (message.encryptedDeviceToken != null && Object.hasOwnProperty.call(message, "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; return object; }; @@ -1665,19 +1426,6 @@ export const Authentication = $root.Authentication = (() => { return writer; }; - /** - * Encodes the specified DeviceRequest message, length delimited. Does not implicitly {@link Authentication.DeviceRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof Authentication.DeviceRequest - * @static - * @param {Authentication.IDeviceRequest} message DeviceRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - DeviceRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a DeviceRequest message from the specified reader or buffer. * @function decode @@ -1730,62 +1478,6 @@ export const Authentication = $root.Authentication = (() => { return message; }; - /** - * Decodes a DeviceRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Authentication.DeviceRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Authentication.DeviceRequest} DeviceRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - DeviceRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a DeviceRequest message. - * @function verify - * @memberof Authentication.DeviceRequest - * @static - * @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) { - if (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"; - if (message.deviceName != null && message.hasOwnProperty("deviceName")) - if (!$util.isString(message.deviceName)) - return "deviceName: string expected"; - if (message.devicePlatform != null && message.hasOwnProperty("devicePlatform")) - if (!$util.isString(message.devicePlatform)) - return "devicePlatform: string expected"; - if (message.clientFormFactor != null && message.hasOwnProperty("clientFormFactor")) - switch (message.clientFormFactor) { - default: - return "clientFormFactor: enum value expected"; - case 0: - case 1: - case 2: - case 3: - break; - } - if (message.username != null && message.hasOwnProperty("username")) - if (!$util.isString(message.username)) - return "username: string expected"; - return null; - }; - /** * Creates a DeviceRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -1797,6 +1489,8 @@ export const Authentication = $root.Authentication = (() => { DeviceRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.Authentication.DeviceRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".Authentication.DeviceRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -1861,15 +1555,15 @@ export const Authentication = $root.Authentication = (() => { object.clientFormFactor = options.enums === String ? "FF_EMPTY" : 0; object.username = ""; } - if (message.clientVersion != null && message.hasOwnProperty("clientVersion")) + if (message.clientVersion != null && Object.hasOwnProperty.call(message, "clientVersion")) object.clientVersion = message.clientVersion; - if (message.deviceName != null && message.hasOwnProperty("deviceName")) + if (message.deviceName != null && Object.hasOwnProperty.call(message, "deviceName")) object.deviceName = message.deviceName; - if (message.devicePlatform != null && message.hasOwnProperty("devicePlatform")) + if (message.devicePlatform != null && Object.hasOwnProperty.call(message, "devicePlatform")) object.devicePlatform = message.devicePlatform; - if (message.clientFormFactor != null && message.hasOwnProperty("clientFormFactor")) + if (message.clientFormFactor != null && Object.hasOwnProperty.call(message, "clientFormFactor")) object.clientFormFactor = options.enums === String ? $root.Authentication.ClientFormFactor[message.clientFormFactor] === undefined ? message.clientFormFactor : $root.Authentication.ClientFormFactor[message.clientFormFactor] : message.clientFormFactor; - if (message.username != null && message.hasOwnProperty("username")) + if (message.username != null && Object.hasOwnProperty.call(message, "username")) object.username = message.username; return object; }; @@ -1990,19 +1684,6 @@ export const Authentication = $root.Authentication = (() => { return writer; }; - /** - * Encodes the specified AuthRequest message, length delimited. Does not implicitly {@link Authentication.AuthRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof Authentication.AuthRequest - * @static - * @param {Authentication.IAuthRequest} message AuthRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - AuthRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes an AuthRequest message from the specified reader or buffer. * @function decode @@ -2047,49 +1728,6 @@ export const Authentication = $root.Authentication = (() => { return message; }; - /** - * Decodes an AuthRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Authentication.AuthRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Authentication.AuthRequest} AuthRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - AuthRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an AuthRequest message. - * @function verify - * @memberof Authentication.AuthRequest - * @static - * @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) { - if (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"; - if (message.username != null && message.hasOwnProperty("username")) - if (!$util.isString(message.username)) - return "username: string expected"; - if (message.encryptedDeviceToken != null && message.hasOwnProperty("encryptedDeviceToken")) - if (!(message.encryptedDeviceToken && typeof message.encryptedDeviceToken.length === "number" || $util.isString(message.encryptedDeviceToken))) - return "encryptedDeviceToken: buffer expected"; - return null; - }; - /** * Creates an AuthRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -2101,6 +1739,8 @@ export const Authentication = $root.Authentication = (() => { AuthRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.Authentication.AuthRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".Authentication.AuthRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -2146,11 +1786,11 @@ export const Authentication = $root.Authentication = (() => { object.encryptedDeviceToken = $util.newBuffer(object.encryptedDeviceToken); } } - if (message.clientVersion != null && message.hasOwnProperty("clientVersion")) + if (message.clientVersion != null && Object.hasOwnProperty.call(message, "clientVersion")) object.clientVersion = message.clientVersion; - if (message.username != null && message.hasOwnProperty("username")) + if (message.username != null && Object.hasOwnProperty.call(message, "username")) object.username = message.username; - if (message.encryptedDeviceToken != null && message.hasOwnProperty("encryptedDeviceToken")) + if (message.encryptedDeviceToken != null && Object.hasOwnProperty.call(message, "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; return object; }; @@ -2308,19 +1948,6 @@ export const Authentication = $root.Authentication = (() => { return writer; }; - /** - * Encodes the specified NewUserMinimumParams message, length delimited. Does not implicitly {@link Authentication.NewUserMinimumParams.verify|verify} messages. - * @function encodeDelimited - * @memberof Authentication.NewUserMinimumParams - * @static - * @param {Authentication.INewUserMinimumParams} message NewUserMinimumParams message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - NewUserMinimumParams.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a NewUserMinimumParams message from the specified reader or buffer. * @function decode @@ -2381,66 +2008,6 @@ export const Authentication = $root.Authentication = (() => { return message; }; - /** - * Decodes a NewUserMinimumParams message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Authentication.NewUserMinimumParams - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Authentication.NewUserMinimumParams} NewUserMinimumParams - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - NewUserMinimumParams.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a NewUserMinimumParams message. - * @function verify - * @memberof Authentication.NewUserMinimumParams - * @static - * @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) { - if (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"; - if (message.passwordMatchRegex != null && message.hasOwnProperty("passwordMatchRegex")) { - if (!Array.isArray(message.passwordMatchRegex)) - return "passwordMatchRegex: array expected"; - for (let i = 0; i < message.passwordMatchRegex.length; ++i) - if (!$util.isString(message.passwordMatchRegex[i])) - return "passwordMatchRegex: string[] expected"; - } - if (message.passwordMatchDescription != null && message.hasOwnProperty("passwordMatchDescription")) { - if (!Array.isArray(message.passwordMatchDescription)) - return "passwordMatchDescription: array expected"; - for (let i = 0; i < message.passwordMatchDescription.length; ++i) - if (!$util.isString(message.passwordMatchDescription[i])) - return "passwordMatchDescription: string[] expected"; - } - if (message.isEnterpriseDomain != null && message.hasOwnProperty("isEnterpriseDomain")) - if (typeof message.isEnterpriseDomain !== "boolean") - return "isEnterpriseDomain: boolean expected"; - if (message.enterpriseEccPublicKey != null && message.hasOwnProperty("enterpriseEccPublicKey")) - if (!(message.enterpriseEccPublicKey && typeof message.enterpriseEccPublicKey.length === "number" || $util.isString(message.enterpriseEccPublicKey))) - return "enterpriseEccPublicKey: buffer expected"; - if (message.forbidKeyType2 != null && message.hasOwnProperty("forbidKeyType2")) - if (typeof message.forbidKeyType2 !== "boolean") - return "forbidKeyType2: boolean expected"; - return null; - }; - /** * Creates a NewUserMinimumParams message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -2452,6 +2019,8 @@ export const Authentication = $root.Authentication = (() => { NewUserMinimumParams.fromObject = function fromObject(object, long) { if (object instanceof $root.Authentication.NewUserMinimumParams) return object; + if (!$util.isObject(object)) + throw TypeError(".Authentication.NewUserMinimumParams: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -2518,7 +2087,7 @@ export const Authentication = $root.Authentication = (() => { } object.forbidKeyType2 = false; } - if (message.minimumIterations != null && message.hasOwnProperty("minimumIterations")) + if (message.minimumIterations != null && Object.hasOwnProperty.call(message, "minimumIterations")) object.minimumIterations = message.minimumIterations; if (message.passwordMatchRegex && message.passwordMatchRegex.length) { object.passwordMatchRegex = []; @@ -2530,11 +2099,11 @@ export const Authentication = $root.Authentication = (() => { for (let j = 0; j < message.passwordMatchDescription.length; ++j) object.passwordMatchDescription[j] = message.passwordMatchDescription[j]; } - if (message.isEnterpriseDomain != null && message.hasOwnProperty("isEnterpriseDomain")) + if (message.isEnterpriseDomain != null && Object.hasOwnProperty.call(message, "isEnterpriseDomain")) object.isEnterpriseDomain = message.isEnterpriseDomain; - if (message.enterpriseEccPublicKey != null && message.hasOwnProperty("enterpriseEccPublicKey")) + if (message.enterpriseEccPublicKey != null && Object.hasOwnProperty.call(message, "enterpriseEccPublicKey")) object.enterpriseEccPublicKey = options.bytes === String ? $util.base64.encode(message.enterpriseEccPublicKey, 0, message.enterpriseEccPublicKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.enterpriseEccPublicKey) : message.enterpriseEccPublicKey; - if (message.forbidKeyType2 != null && message.hasOwnProperty("forbidKeyType2")) + if (message.forbidKeyType2 != null && Object.hasOwnProperty.call(message, "forbidKeyType2")) object.forbidKeyType2 = message.forbidKeyType2; return object; }; @@ -2655,19 +2224,6 @@ export const Authentication = $root.Authentication = (() => { return writer; }; - /** - * Encodes the specified PreLoginRequest message, length delimited. Does not implicitly {@link Authentication.PreLoginRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof Authentication.PreLoginRequest - * @static - * @param {Authentication.IPreLoginRequest} message PreLoginRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - PreLoginRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a PreLoginRequest message from the specified reader or buffer. * @function decode @@ -2712,61 +2268,6 @@ export const Authentication = $root.Authentication = (() => { return message; }; - /** - * Decodes a PreLoginRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Authentication.PreLoginRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Authentication.PreLoginRequest} PreLoginRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - PreLoginRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a PreLoginRequest message. - * @function verify - * @memberof Authentication.PreLoginRequest - * @static - * @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) { - if (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); - if (error) - return "authRequest." + error; - } - if (message.loginType != null && message.hasOwnProperty("loginType")) - switch (message.loginType) { - default: - return "loginType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - break; - } - if (message.twoFactorToken != null && message.hasOwnProperty("twoFactorToken")) - if (!(message.twoFactorToken && typeof message.twoFactorToken.length === "number" || $util.isString(message.twoFactorToken))) - return "twoFactorToken: buffer expected"; - return null; - }; - /** * Creates a PreLoginRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -2778,13 +2279,15 @@ export const Authentication = $root.Authentication = (() => { PreLoginRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.Authentication.PreLoginRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".Authentication.PreLoginRequest: object expected"); 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") + if (!$util.isObject(object.authRequest)) throw TypeError(".Authentication.PreLoginRequest.authRequest: object expected"); message.authRequest = $root.Authentication.AuthRequest.fromObject(object.authRequest, long + 1); } @@ -2860,11 +2363,11 @@ export const Authentication = $root.Authentication = (() => { object.twoFactorToken = $util.newBuffer(object.twoFactorToken); } } - if (message.authRequest != null && message.hasOwnProperty("authRequest")) + if (message.authRequest != null && Object.hasOwnProperty.call(message, "authRequest")) object.authRequest = $root.Authentication.AuthRequest.toObject(message.authRequest, options, q + 1); - if (message.loginType != null && message.hasOwnProperty("loginType")) + if (message.loginType != null && Object.hasOwnProperty.call(message, "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")) + if (message.twoFactorToken != null && Object.hasOwnProperty.call(message, "twoFactorToken")) object.twoFactorToken = options.bytes === String ? $util.base64.encode(message.twoFactorToken, 0, message.twoFactorToken.length) : options.bytes === Array ? Array.prototype.slice.call(message.twoFactorToken) : message.twoFactorToken; return object; }; @@ -3040,19 +2543,6 @@ export const Authentication = $root.Authentication = (() => { return writer; }; - /** - * Encodes the specified LoginRequest message, length delimited. Does not implicitly {@link Authentication.LoginRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof Authentication.LoginRequest - * @static - * @param {Authentication.ILoginRequest} message LoginRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - LoginRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a LoginRequest message from the specified reader or buffer. * @function decode @@ -3117,76 +2607,6 @@ export const Authentication = $root.Authentication = (() => { return message; }; - /** - * Decodes a LoginRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Authentication.LoginRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Authentication.LoginRequest} LoginRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - LoginRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a LoginRequest message. - * @function verify - * @memberof Authentication.LoginRequest - * @static - * @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) { - if (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); - if (error) - return "authRequest." + error; - } - if (message.loginType != null && message.hasOwnProperty("loginType")) - switch (message.loginType) { - default: - return "loginType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - break; - } - if (message.authenticationHashPrime != null && message.hasOwnProperty("authenticationHashPrime")) - if (!(message.authenticationHashPrime && typeof message.authenticationHashPrime.length === "number" || $util.isString(message.authenticationHashPrime))) - return "authenticationHashPrime: buffer expected"; - if (message.encryptedLoginToken != null && message.hasOwnProperty("encryptedLoginToken")) - if (!(message.encryptedLoginToken && typeof message.encryptedLoginToken.length === "number" || $util.isString(message.encryptedLoginToken))) - return "encryptedLoginToken: buffer expected"; - if (message.authResponse != null && message.hasOwnProperty("authResponse")) - if (!(message.authResponse && typeof message.authResponse.length === "number" || $util.isString(message.authResponse))) - return "authResponse: buffer expected"; - if (message.mcEnterpriseId != null && message.hasOwnProperty("mcEnterpriseId")) - if (!$util.isInteger(message.mcEnterpriseId)) - return "mcEnterpriseId: integer expected"; - if (message.pushToken != null && message.hasOwnProperty("pushToken")) - if (!$util.isString(message.pushToken)) - return "pushToken: string expected"; - if (message.platform != null && message.hasOwnProperty("platform")) - if (!$util.isString(message.platform)) - return "platform: string expected"; - return null; - }; - /** * Creates a LoginRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -3198,13 +2618,15 @@ export const Authentication = $root.Authentication = (() => { LoginRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.Authentication.LoginRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".Authentication.LoginRequest: object expected"); 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") + if (!$util.isObject(object.authRequest)) throw TypeError(".Authentication.LoginRequest.authRequest: object expected"); message.authRequest = $root.Authentication.AuthRequest.fromObject(object.authRequest, long + 1); } @@ -3313,21 +2735,21 @@ export const Authentication = $root.Authentication = (() => { object.pushToken = ""; object.platform = ""; } - if (message.authRequest != null && message.hasOwnProperty("authRequest")) + if (message.authRequest != null && Object.hasOwnProperty.call(message, "authRequest")) object.authRequest = $root.Authentication.AuthRequest.toObject(message.authRequest, options, q + 1); - if (message.loginType != null && message.hasOwnProperty("loginType")) + if (message.loginType != null && Object.hasOwnProperty.call(message, "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")) + if (message.authenticationHashPrime != null && Object.hasOwnProperty.call(message, "authenticationHashPrime")) object.authenticationHashPrime = options.bytes === String ? $util.base64.encode(message.authenticationHashPrime, 0, message.authenticationHashPrime.length) : options.bytes === Array ? Array.prototype.slice.call(message.authenticationHashPrime) : message.authenticationHashPrime; - if (message.encryptedLoginToken != null && message.hasOwnProperty("encryptedLoginToken")) + if (message.encryptedLoginToken != null && Object.hasOwnProperty.call(message, "encryptedLoginToken")) object.encryptedLoginToken = options.bytes === String ? $util.base64.encode(message.encryptedLoginToken, 0, message.encryptedLoginToken.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedLoginToken) : message.encryptedLoginToken; - if (message.authResponse != null && message.hasOwnProperty("authResponse")) + if (message.authResponse != null && Object.hasOwnProperty.call(message, "authResponse")) object.authResponse = options.bytes === String ? $util.base64.encode(message.authResponse, 0, message.authResponse.length) : options.bytes === Array ? Array.prototype.slice.call(message.authResponse) : message.authResponse; - if (message.mcEnterpriseId != null && message.hasOwnProperty("mcEnterpriseId")) + if (message.mcEnterpriseId != null && Object.hasOwnProperty.call(message, "mcEnterpriseId")) object.mcEnterpriseId = message.mcEnterpriseId; - if (message.pushToken != null && message.hasOwnProperty("pushToken")) + if (message.pushToken != null && Object.hasOwnProperty.call(message, "pushToken")) object.pushToken = message.pushToken; - if (message.platform != null && message.hasOwnProperty("platform")) + if (message.platform != null && Object.hasOwnProperty.call(message, "platform")) object.platform = message.platform; return object; }; @@ -3437,19 +2859,6 @@ export const Authentication = $root.Authentication = (() => { return writer; }; - /** - * Encodes the specified DeviceResponse message, length delimited. Does not implicitly {@link Authentication.DeviceResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof Authentication.DeviceResponse - * @static - * @param {Authentication.IDeviceResponse} message DeviceResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - DeviceResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a DeviceResponse message from the specified reader or buffer. * @function decode @@ -3490,53 +2899,6 @@ export const Authentication = $root.Authentication = (() => { return message; }; - /** - * Decodes a DeviceResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Authentication.DeviceResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Authentication.DeviceResponse} DeviceResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - DeviceResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a DeviceResponse message. - * @function verify - * @memberof Authentication.DeviceResponse - * @static - * @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) { - if (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"; - if (message.status != null && message.hasOwnProperty("status")) - switch (message.status) { - default: - return "status: enum value expected"; - case 0: - case 1: - case 2: - case 3: - break; - } - return null; - }; - /** * Creates a DeviceResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -3548,6 +2910,8 @@ export const Authentication = $root.Authentication = (() => { DeviceResponse.fromObject = function fromObject(object, long) { if (object instanceof $root.Authentication.DeviceResponse) return object; + if (!$util.isObject(object)) + throw TypeError(".Authentication.DeviceResponse: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -3612,9 +2976,9 @@ export const Authentication = $root.Authentication = (() => { } object.status = options.enums === String ? "DEVICE_NEEDS_APPROVAL" : 0; } - if (message.encryptedDeviceToken != null && message.hasOwnProperty("encryptedDeviceToken")) + if (message.encryptedDeviceToken != null && Object.hasOwnProperty.call(message, "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.status != null && message.hasOwnProperty("status")) + if (message.status != null && Object.hasOwnProperty.call(message, "status")) object.status = options.enums === String ? $root.Authentication.DeviceStatus[message.status] === undefined ? message.status : $root.Authentication.DeviceStatus[message.status] : message.status; return object; }; @@ -3757,19 +3121,6 @@ export const Authentication = $root.Authentication = (() => { return writer; }; - /** - * Encodes the specified Salt message, length delimited. Does not implicitly {@link Authentication.Salt.verify|verify} messages. - * @function encodeDelimited - * @memberof Authentication.Salt - * @static - * @param {Authentication.ISalt} message Salt message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Salt.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a Salt message from the specified reader or buffer. * @function decode @@ -3822,55 +3173,6 @@ export const Authentication = $root.Authentication = (() => { return message; }; - /** - * Decodes a Salt message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Authentication.Salt - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Authentication.Salt} Salt - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Salt.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a Salt message. - * @function verify - * @memberof Authentication.Salt - * @static - * @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) { - if (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"; - if (message.salt != null && message.hasOwnProperty("salt")) - if (!(message.salt && typeof message.salt.length === "number" || $util.isString(message.salt))) - return "salt: buffer expected"; - if (message.algorithm != null && message.hasOwnProperty("algorithm")) - if (!$util.isInteger(message.algorithm)) - return "algorithm: integer expected"; - 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.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - return null; - }; - /** * Creates a Salt message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -3882,6 +3184,8 @@ export const Authentication = $root.Authentication = (() => { Salt.fromObject = function fromObject(object, long) { if (object instanceof $root.Authentication.Salt) return object; + if (!$util.isObject(object)) + throw TypeError(".Authentication.Salt: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -3942,15 +3246,15 @@ export const Authentication = $root.Authentication = (() => { } object.name = ""; } - if (message.iterations != null && message.hasOwnProperty("iterations")) + if (message.iterations != null && Object.hasOwnProperty.call(message, "iterations")) object.iterations = message.iterations; - if (message.salt != null && message.hasOwnProperty("salt")) + if (message.salt != null && Object.hasOwnProperty.call(message, "salt")) object.salt = options.bytes === String ? $util.base64.encode(message.salt, 0, message.salt.length) : options.bytes === Array ? Array.prototype.slice.call(message.salt) : message.salt; - if (message.algorithm != null && message.hasOwnProperty("algorithm")) + if (message.algorithm != null && Object.hasOwnProperty.call(message, "algorithm")) object.algorithm = message.algorithm; - if (message.uid != null && message.hasOwnProperty("uid")) + if (message.uid != null && Object.hasOwnProperty.call(message, "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.name != null && message.hasOwnProperty("name")) + if (message.name != null && Object.hasOwnProperty.call(message, "name")) object.name = message.name; return object; }; @@ -4049,19 +3353,6 @@ export const Authentication = $root.Authentication = (() => { return writer; }; - /** - * Encodes the specified TwoFactorChannel message, length delimited. Does not implicitly {@link Authentication.TwoFactorChannel.verify|verify} messages. - * @function encodeDelimited - * @memberof Authentication.TwoFactorChannel - * @static - * @param {Authentication.ITwoFactorChannel} message TwoFactorChannel message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TwoFactorChannel.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a TwoFactorChannel message from the specified reader or buffer. * @function decode @@ -4098,43 +3389,6 @@ export const Authentication = $root.Authentication = (() => { return message; }; - /** - * Decodes a TwoFactorChannel message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Authentication.TwoFactorChannel - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Authentication.TwoFactorChannel} TwoFactorChannel - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TwoFactorChannel.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a TwoFactorChannel message. - * @function verify - * @memberof Authentication.TwoFactorChannel - * @static - * @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) { - if (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"; - return null; - }; - /** * Creates a TwoFactorChannel message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -4146,6 +3400,8 @@ export const Authentication = $root.Authentication = (() => { TwoFactorChannel.fromObject = function fromObject(object, long) { if (object instanceof $root.Authentication.TwoFactorChannel) return object; + if (!$util.isObject(object)) + throw TypeError(".Authentication.TwoFactorChannel: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -4175,7 +3431,7 @@ export const Authentication = $root.Authentication = (() => { let object = {}; if (options.defaults) object.type = 0; - if (message.type != null && message.hasOwnProperty("type")) + if (message.type != null && Object.hasOwnProperty.call(message, "type")) object.type = message.type; return object; }; @@ -4502,19 +3758,6 @@ export const Authentication = $root.Authentication = (() => { return writer; }; - /** - * Encodes the specified StartLoginRequest message, length delimited. Does not implicitly {@link Authentication.StartLoginRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof Authentication.StartLoginRequest - * @static - * @param {Authentication.IStartLoginRequest} message StartLoginRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - StartLoginRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a StartLoginRequest message from the specified reader or buffer. * @function decode @@ -4599,97 +3842,6 @@ export const Authentication = $root.Authentication = (() => { return message; }; - /** - * Decodes a StartLoginRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Authentication.StartLoginRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Authentication.StartLoginRequest} StartLoginRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - StartLoginRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a StartLoginRequest message. - * @function verify - * @memberof Authentication.StartLoginRequest - * @static - * @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) { - if (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"; - if (message.username != null && message.hasOwnProperty("username")) - if (!$util.isString(message.username)) - return "username: string expected"; - if (message.clientVersion != null && message.hasOwnProperty("clientVersion")) - if (!$util.isString(message.clientVersion)) - return "clientVersion: string expected"; - if (message.messageSessionUid != null && message.hasOwnProperty("messageSessionUid")) - if (!(message.messageSessionUid && typeof message.messageSessionUid.length === "number" || $util.isString(message.messageSessionUid))) - return "messageSessionUid: buffer expected"; - if (message.encryptedLoginToken != null && message.hasOwnProperty("encryptedLoginToken")) - if (!(message.encryptedLoginToken && typeof message.encryptedLoginToken.length === "number" || $util.isString(message.encryptedLoginToken))) - return "encryptedLoginToken: buffer expected"; - if (message.loginType != null && message.hasOwnProperty("loginType")) - switch (message.loginType) { - default: - return "loginType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - break; - } - if (message.mcEnterpriseId != null && message.hasOwnProperty("mcEnterpriseId")) - if (!$util.isInteger(message.mcEnterpriseId)) - return "mcEnterpriseId: integer expected"; - if (message.loginMethod != null && message.hasOwnProperty("loginMethod")) - switch (message.loginMethod) { - default: - return "loginMethod: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - break; - } - if (message.forceNewLogin != null && message.hasOwnProperty("forceNewLogin")) - if (typeof message.forceNewLogin !== "boolean") - return "forceNewLogin: boolean expected"; - if (message.cloneCode != null && message.hasOwnProperty("cloneCode")) - if (!(message.cloneCode && typeof message.cloneCode.length === "number" || $util.isString(message.cloneCode))) - return "cloneCode: buffer expected"; - if (message.v2TwoFactorToken != null && message.hasOwnProperty("v2TwoFactorToken")) - if (!$util.isString(message.v2TwoFactorToken)) - return "v2TwoFactorToken: string expected"; - if (message.accountUid != null && message.hasOwnProperty("accountUid")) - if (!(message.accountUid && typeof message.accountUid.length === "number" || $util.isString(message.accountUid))) - return "accountUid: buffer expected"; - if (message.fromSessionToken != null && message.hasOwnProperty("fromSessionToken")) - if (!(message.fromSessionToken && typeof message.fromSessionToken.length === "number" || $util.isString(message.fromSessionToken))) - return "fromSessionToken: buffer expected"; - return null; - }; - /** * Creates a StartLoginRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -4701,6 +3853,8 @@ export const Authentication = $root.Authentication = (() => { StartLoginRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.Authentication.StartLoginRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".Authentication.StartLoginRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -4881,31 +4035,31 @@ export const Authentication = $root.Authentication = (() => { object.fromSessionToken = $util.newBuffer(object.fromSessionToken); } } - if (message.encryptedDeviceToken != null && message.hasOwnProperty("encryptedDeviceToken")) + if (message.encryptedDeviceToken != null && Object.hasOwnProperty.call(message, "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.username != null && message.hasOwnProperty("username")) + if (message.username != null && Object.hasOwnProperty.call(message, "username")) object.username = message.username; - if (message.clientVersion != null && message.hasOwnProperty("clientVersion")) + if (message.clientVersion != null && Object.hasOwnProperty.call(message, "clientVersion")) object.clientVersion = message.clientVersion; - if (message.messageSessionUid != null && message.hasOwnProperty("messageSessionUid")) + if (message.messageSessionUid != null && Object.hasOwnProperty.call(message, "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.encryptedLoginToken != null && message.hasOwnProperty("encryptedLoginToken")) + if (message.encryptedLoginToken != null && Object.hasOwnProperty.call(message, "encryptedLoginToken")) object.encryptedLoginToken = options.bytes === String ? $util.base64.encode(message.encryptedLoginToken, 0, message.encryptedLoginToken.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedLoginToken) : message.encryptedLoginToken; - if (message.loginType != null && message.hasOwnProperty("loginType")) + if (message.loginType != null && Object.hasOwnProperty.call(message, "loginType")) object.loginType = options.enums === String ? $root.Authentication.LoginType[message.loginType] === undefined ? message.loginType : $root.Authentication.LoginType[message.loginType] : message.loginType; - if (message.mcEnterpriseId != null && message.hasOwnProperty("mcEnterpriseId")) + if (message.mcEnterpriseId != null && Object.hasOwnProperty.call(message, "mcEnterpriseId")) object.mcEnterpriseId = message.mcEnterpriseId; - if (message.loginMethod != null && message.hasOwnProperty("loginMethod")) + if (message.loginMethod != null && Object.hasOwnProperty.call(message, "loginMethod")) object.loginMethod = options.enums === String ? $root.Authentication.LoginMethod[message.loginMethod] === undefined ? message.loginMethod : $root.Authentication.LoginMethod[message.loginMethod] : message.loginMethod; - if (message.forceNewLogin != null && message.hasOwnProperty("forceNewLogin")) + if (message.forceNewLogin != null && Object.hasOwnProperty.call(message, "forceNewLogin")) object.forceNewLogin = message.forceNewLogin; - if (message.cloneCode != null && message.hasOwnProperty("cloneCode")) + if (message.cloneCode != null && Object.hasOwnProperty.call(message, "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; - if (message.v2TwoFactorToken != null && message.hasOwnProperty("v2TwoFactorToken")) + if (message.v2TwoFactorToken != null && Object.hasOwnProperty.call(message, "v2TwoFactorToken")) object.v2TwoFactorToken = message.v2TwoFactorToken; - if (message.accountUid != null && message.hasOwnProperty("accountUid")) + if (message.accountUid != null && Object.hasOwnProperty.call(message, "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.fromSessionToken != null && message.hasOwnProperty("fromSessionToken")) + if (message.fromSessionToken != null && Object.hasOwnProperty.call(message, "fromSessionToken")) object.fromSessionToken = options.bytes === String ? $util.base64.encode(message.fromSessionToken, 0, message.fromSessionToken.length) : options.bytes === Array ? Array.prototype.slice.call(message.fromSessionToken) : message.fromSessionToken; return object; }; @@ -5070,19 +4224,6 @@ export const Authentication = $root.Authentication = (() => { return writer; }; - /** - * Encodes the specified KeysInfo message, length delimited. Does not implicitly {@link Authentication.KeysInfo.verify|verify} messages. - * @function encodeDelimited - * @memberof Authentication.KeysInfo - * @static - * @param {Authentication.IKeysInfo} message KeysInfo message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - KeysInfo.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a KeysInfo message from the specified reader or buffer. * @function decode @@ -5143,61 +4284,6 @@ export const Authentication = $root.Authentication = (() => { return message; }; - /** - * Decodes a KeysInfo message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Authentication.KeysInfo - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Authentication.KeysInfo} KeysInfo - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - KeysInfo.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a KeysInfo message. - * @function verify - * @memberof Authentication.KeysInfo - * @static - * @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) { - if (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"; - if (message.encryptedDataKey != null && message.hasOwnProperty("encryptedDataKey")) - if (!(message.encryptedDataKey && typeof message.encryptedDataKey.length === "number" || $util.isString(message.encryptedDataKey))) - return "encryptedDataKey: buffer expected"; - if (message.dataKeyBackupDate != null && message.hasOwnProperty("dataKeyBackupDate")) - if (typeof message.dataKeyBackupDate !== "number") - return "dataKeyBackupDate: number expected"; - if (message.userAuthUid != null && message.hasOwnProperty("userAuthUid")) - if (!(message.userAuthUid && typeof message.userAuthUid.length === "number" || $util.isString(message.userAuthUid))) - return "userAuthUid: buffer expected"; - if (message.encryptedPrivateKey != null && message.hasOwnProperty("encryptedPrivateKey")) - if (!(message.encryptedPrivateKey && typeof message.encryptedPrivateKey.length === "number" || $util.isString(message.encryptedPrivateKey))) - return "encryptedPrivateKey: buffer expected"; - if (message.encryptedEccPrivateKey != null && message.hasOwnProperty("encryptedEccPrivateKey")) - if (!(message.encryptedEccPrivateKey && typeof message.encryptedEccPrivateKey.length === "number" || $util.isString(message.encryptedEccPrivateKey))) - return "encryptedEccPrivateKey: buffer expected"; - if (message.eccPublicKey != null && message.hasOwnProperty("eccPublicKey")) - if (!(message.eccPublicKey && typeof message.eccPublicKey.length === "number" || $util.isString(message.eccPublicKey))) - return "eccPublicKey: buffer expected"; - return null; - }; - /** * Creates a KeysInfo message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -5209,6 +4295,8 @@ export const Authentication = $root.Authentication = (() => { KeysInfo.fromObject = function fromObject(object, long) { if (object instanceof $root.Authentication.KeysInfo) return object; + if (!$util.isObject(object)) + throw TypeError(".Authentication.KeysInfo: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -5311,19 +4399,19 @@ export const Authentication = $root.Authentication = (() => { object.eccPublicKey = $util.newBuffer(object.eccPublicKey); } } - if (message.encryptionParams != null && message.hasOwnProperty("encryptionParams")) + if (message.encryptionParams != null && Object.hasOwnProperty.call(message, "encryptionParams")) object.encryptionParams = options.bytes === String ? $util.base64.encode(message.encryptionParams, 0, message.encryptionParams.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptionParams) : message.encryptionParams; - if (message.encryptedDataKey != null && message.hasOwnProperty("encryptedDataKey")) + if (message.encryptedDataKey != null && Object.hasOwnProperty.call(message, "encryptedDataKey")) object.encryptedDataKey = options.bytes === String ? $util.base64.encode(message.encryptedDataKey, 0, message.encryptedDataKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedDataKey) : message.encryptedDataKey; - if (message.dataKeyBackupDate != null && message.hasOwnProperty("dataKeyBackupDate")) + if (message.dataKeyBackupDate != null && Object.hasOwnProperty.call(message, "dataKeyBackupDate")) object.dataKeyBackupDate = options.json && !isFinite(message.dataKeyBackupDate) ? String(message.dataKeyBackupDate) : message.dataKeyBackupDate; - if (message.userAuthUid != null && message.hasOwnProperty("userAuthUid")) + if (message.userAuthUid != null && Object.hasOwnProperty.call(message, "userAuthUid")) object.userAuthUid = options.bytes === String ? $util.base64.encode(message.userAuthUid, 0, message.userAuthUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.userAuthUid) : message.userAuthUid; - if (message.encryptedPrivateKey != null && message.hasOwnProperty("encryptedPrivateKey")) + if (message.encryptedPrivateKey != null && Object.hasOwnProperty.call(message, "encryptedPrivateKey")) object.encryptedPrivateKey = options.bytes === String ? $util.base64.encode(message.encryptedPrivateKey, 0, message.encryptedPrivateKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedPrivateKey) : message.encryptedPrivateKey; - if (message.encryptedEccPrivateKey != null && message.hasOwnProperty("encryptedEccPrivateKey")) + if (message.encryptedEccPrivateKey != null && Object.hasOwnProperty.call(message, "encryptedEccPrivateKey")) object.encryptedEccPrivateKey = options.bytes === String ? $util.base64.encode(message.encryptedEccPrivateKey, 0, message.encryptedEccPrivateKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedEccPrivateKey) : message.encryptedEccPrivateKey; - if (message.eccPublicKey != null && message.hasOwnProperty("eccPublicKey")) + if (message.eccPublicKey != null && Object.hasOwnProperty.call(message, "eccPublicKey")) object.eccPublicKey = options.bytes === String ? $util.base64.encode(message.eccPublicKey, 0, message.eccPublicKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.eccPublicKey) : message.eccPublicKey; return object; }; @@ -5613,19 +4701,6 @@ export const Authentication = $root.Authentication = (() => { return writer; }; - /** - * Encodes the specified LoginResponse message, length delimited. Does not implicitly {@link Authentication.LoginResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof Authentication.LoginResponse - * @static - * @param {Authentication.ILoginResponse} message LoginResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - LoginResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a LoginResponse message from the specified reader or buffer. * @function decode @@ -5734,157 +4809,6 @@ export const Authentication = $root.Authentication = (() => { return message; }; - /** - * Decodes a LoginResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Authentication.LoginResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Authentication.LoginResponse} LoginResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - LoginResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a LoginResponse message. - * @function verify - * @memberof Authentication.LoginResponse - * @static - * @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) { - if (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: - return "loginState: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: - case 9: - case 10: - case 12: - case 13: - case 14: - case 15: - case 16: - case 17: - case 18: - case 19: - case 20: - case 21: - case 22: - case 99: - break; - } - if (message.accountUid != null && message.hasOwnProperty("accountUid")) - if (!(message.accountUid && typeof message.accountUid.length === "number" || $util.isString(message.accountUid))) - return "accountUid: buffer expected"; - if (message.primaryUsername != null && message.hasOwnProperty("primaryUsername")) - if (!$util.isString(message.primaryUsername)) - return "primaryUsername: string expected"; - if (message.encryptedDataKey != null && message.hasOwnProperty("encryptedDataKey")) - if (!(message.encryptedDataKey && typeof message.encryptedDataKey.length === "number" || $util.isString(message.encryptedDataKey))) - return "encryptedDataKey: buffer expected"; - if (message.encryptedDataKeyType != null && message.hasOwnProperty("encryptedDataKeyType")) - switch (message.encryptedDataKeyType) { - default: - return "encryptedDataKeyType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - break; - } - if (message.encryptedLoginToken != null && message.hasOwnProperty("encryptedLoginToken")) - if (!(message.encryptedLoginToken && typeof message.encryptedLoginToken.length === "number" || $util.isString(message.encryptedLoginToken))) - return "encryptedLoginToken: buffer expected"; - if (message.encryptedSessionToken != null && message.hasOwnProperty("encryptedSessionToken")) - if (!(message.encryptedSessionToken && typeof message.encryptedSessionToken.length === "number" || $util.isString(message.encryptedSessionToken))) - return "encryptedSessionToken: buffer expected"; - if (message.sessionTokenType != null && message.hasOwnProperty("sessionTokenType")) - switch (message.sessionTokenType) { - default: - return "sessionTokenType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: - case 9: - case 10: - case 11: - break; - } - if (message.message != null && message.hasOwnProperty("message")) - if (!$util.isString(message.message)) - return "message: string expected"; - if (message.url != null && message.hasOwnProperty("url")) - if (!$util.isString(message.url)) - return "url: string expected"; - 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); - if (error) - return "channels." + error; - } - } - if (message.salt != null && message.hasOwnProperty("salt")) { - 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); - if (error) - return "salt." + error; - } - } - if (message.cloneCode != null && message.hasOwnProperty("cloneCode")) - if (!(message.cloneCode && typeof message.cloneCode.length === "number" || $util.isString(message.cloneCode))) - return "cloneCode: buffer expected"; - if (message.stateSpecificValue != null && message.hasOwnProperty("stateSpecificValue")) - if (!$util.isString(message.stateSpecificValue)) - return "stateSpecificValue: string expected"; - if (message.ssoClientVersion != null && message.hasOwnProperty("ssoClientVersion")) - if (!$util.isString(message.ssoClientVersion)) - return "ssoClientVersion: string expected"; - if (message.sessionTokenTypeModifier != null && message.hasOwnProperty("sessionTokenTypeModifier")) - if (!$util.isString(message.sessionTokenTypeModifier)) - return "sessionTokenTypeModifier: string expected"; - if (message.keysInfo != null && message.hasOwnProperty("keysInfo")) { - let error = $root.Authentication.KeysInfo.verify(message.keysInfo, long + 1); - if (error) - return "keysInfo." + error; - } - if (message.clientKey != null && message.hasOwnProperty("clientKey")) - if (!(message.clientKey && typeof message.clientKey.length === "number" || $util.isString(message.clientKey))) - return "clientKey: buffer expected"; - return null; - }; - /** * Creates a LoginResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -5896,6 +4820,8 @@ export const Authentication = $root.Authentication = (() => { LoginResponse.fromObject = function fromObject(object, long) { if (object instanceof $root.Authentication.LoginResponse) return object; + if (!$util.isObject(object)) + throw TypeError(".Authentication.LoginResponse: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -6116,7 +5042,7 @@ export const Authentication = $root.Authentication = (() => { throw TypeError(".Authentication.LoginResponse.channels: array expected"); message.channels = []; for (let i = 0; i < object.channels.length; ++i) { - if (typeof object.channels[i] !== "object") + if (!$util.isObject(object.channels[i])) throw TypeError(".Authentication.LoginResponse.channels: object expected"); message.channels[i] = $root.Authentication.TwoFactorChannelInfo.fromObject(object.channels[i], long + 1); } @@ -6126,7 +5052,7 @@ export const Authentication = $root.Authentication = (() => { throw TypeError(".Authentication.LoginResponse.salt: array expected"); message.salt = []; for (let i = 0; i < object.salt.length; ++i) { - if (typeof object.salt[i] !== "object") + if (!$util.isObject(object.salt[i])) throw TypeError(".Authentication.LoginResponse.salt: object expected"); message.salt[i] = $root.Authentication.Salt.fromObject(object.salt[i], long + 1); } @@ -6143,7 +5069,7 @@ export const Authentication = $root.Authentication = (() => { if (object.sessionTokenTypeModifier != null) message.sessionTokenTypeModifier = String(object.sessionTokenTypeModifier); if (object.keysInfo != null) { - if (typeof object.keysInfo !== "object") + if (!$util.isObject(object.keysInfo)) throw TypeError(".Authentication.LoginResponse.keysInfo: object expected"); message.keysInfo = $root.Authentication.KeysInfo.fromObject(object.keysInfo, long + 1); } @@ -6230,25 +5156,25 @@ export const Authentication = $root.Authentication = (() => { object.clientKey = $util.newBuffer(object.clientKey); } } - if (message.loginState != null && message.hasOwnProperty("loginState")) + if (message.loginState != null && Object.hasOwnProperty.call(message, "loginState")) object.loginState = options.enums === String ? $root.Authentication.LoginState[message.loginState] === undefined ? message.loginState : $root.Authentication.LoginState[message.loginState] : message.loginState; - if (message.accountUid != null && message.hasOwnProperty("accountUid")) + if (message.accountUid != null && Object.hasOwnProperty.call(message, "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.primaryUsername != null && message.hasOwnProperty("primaryUsername")) + if (message.primaryUsername != null && Object.hasOwnProperty.call(message, "primaryUsername")) object.primaryUsername = message.primaryUsername; - if (message.encryptedDataKey != null && message.hasOwnProperty("encryptedDataKey")) + if (message.encryptedDataKey != null && Object.hasOwnProperty.call(message, "encryptedDataKey")) object.encryptedDataKey = options.bytes === String ? $util.base64.encode(message.encryptedDataKey, 0, message.encryptedDataKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedDataKey) : message.encryptedDataKey; - if (message.encryptedDataKeyType != null && message.hasOwnProperty("encryptedDataKeyType")) + if (message.encryptedDataKeyType != null && Object.hasOwnProperty.call(message, "encryptedDataKeyType")) object.encryptedDataKeyType = options.enums === String ? $root.Authentication.EncryptedDataKeyType[message.encryptedDataKeyType] === undefined ? message.encryptedDataKeyType : $root.Authentication.EncryptedDataKeyType[message.encryptedDataKeyType] : message.encryptedDataKeyType; - if (message.encryptedLoginToken != null && message.hasOwnProperty("encryptedLoginToken")) + if (message.encryptedLoginToken != null && Object.hasOwnProperty.call(message, "encryptedLoginToken")) object.encryptedLoginToken = options.bytes === String ? $util.base64.encode(message.encryptedLoginToken, 0, message.encryptedLoginToken.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedLoginToken) : message.encryptedLoginToken; - if (message.encryptedSessionToken != null && message.hasOwnProperty("encryptedSessionToken")) + if (message.encryptedSessionToken != null && Object.hasOwnProperty.call(message, "encryptedSessionToken")) object.encryptedSessionToken = options.bytes === String ? $util.base64.encode(message.encryptedSessionToken, 0, message.encryptedSessionToken.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedSessionToken) : message.encryptedSessionToken; - if (message.sessionTokenType != null && message.hasOwnProperty("sessionTokenType")) + if (message.sessionTokenType != null && Object.hasOwnProperty.call(message, "sessionTokenType")) object.sessionTokenType = options.enums === String ? $root.Authentication.SessionTokenType[message.sessionTokenType] === undefined ? message.sessionTokenType : $root.Authentication.SessionTokenType[message.sessionTokenType] : message.sessionTokenType; - if (message.message != null && message.hasOwnProperty("message")) + if (message.message != null && Object.hasOwnProperty.call(message, "message")) object.message = message.message; - if (message.url != null && message.hasOwnProperty("url")) + if (message.url != null && Object.hasOwnProperty.call(message, "url")) object.url = message.url; if (message.channels && message.channels.length) { object.channels = []; @@ -6260,17 +5186,17 @@ export const Authentication = $root.Authentication = (() => { for (let j = 0; j < message.salt.length; ++j) object.salt[j] = $root.Authentication.Salt.toObject(message.salt[j], options, q + 1); } - if (message.cloneCode != null && message.hasOwnProperty("cloneCode")) + if (message.cloneCode != null && Object.hasOwnProperty.call(message, "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; - if (message.stateSpecificValue != null && message.hasOwnProperty("stateSpecificValue")) + if (message.stateSpecificValue != null && Object.hasOwnProperty.call(message, "stateSpecificValue")) object.stateSpecificValue = message.stateSpecificValue; - if (message.ssoClientVersion != null && message.hasOwnProperty("ssoClientVersion")) + if (message.ssoClientVersion != null && Object.hasOwnProperty.call(message, "ssoClientVersion")) object.ssoClientVersion = message.ssoClientVersion; - if (message.sessionTokenTypeModifier != null && message.hasOwnProperty("sessionTokenTypeModifier")) + if (message.sessionTokenTypeModifier != null && Object.hasOwnProperty.call(message, "sessionTokenTypeModifier")) object.sessionTokenTypeModifier = message.sessionTokenTypeModifier; - if (message.keysInfo != null && message.hasOwnProperty("keysInfo")) + if (message.keysInfo != null && Object.hasOwnProperty.call(message, "keysInfo")) object.keysInfo = $root.Authentication.KeysInfo.toObject(message.keysInfo, options, q + 1); - if (message.clientKey != null && message.hasOwnProperty("clientKey")) + if (message.clientKey != null && Object.hasOwnProperty.call(message, "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; return object; }; @@ -6413,19 +5339,6 @@ export const Authentication = $root.Authentication = (() => { return writer; }; - /** - * Encodes the specified SwitchListElement message, length delimited. Does not implicitly {@link Authentication.SwitchListElement.verify|verify} messages. - * @function encodeDelimited - * @memberof Authentication.SwitchListElement - * @static - * @param {Authentication.ISwitchListElement} message SwitchListElement message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SwitchListElement.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a SwitchListElement message from the specified reader or buffer. * @function decode @@ -6478,55 +5391,6 @@ export const Authentication = $root.Authentication = (() => { return message; }; - /** - * Decodes a SwitchListElement message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Authentication.SwitchListElement - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Authentication.SwitchListElement} SwitchListElement - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SwitchListElement.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a SwitchListElement message. - * @function verify - * @memberof Authentication.SwitchListElement - * @static - * @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) { - if (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"; - if (message.fullName != null && message.hasOwnProperty("fullName")) - if (!$util.isString(message.fullName)) - return "fullName: string expected"; - if (message.authRequired != null && message.hasOwnProperty("authRequired")) - if (typeof message.authRequired !== "boolean") - return "authRequired: boolean expected"; - if (message.isLinked != null && message.hasOwnProperty("isLinked")) - if (typeof message.isLinked !== "boolean") - return "isLinked: boolean expected"; - if (message.profilePicUrl != null && message.hasOwnProperty("profilePicUrl")) - if (!$util.isString(message.profilePicUrl)) - return "profilePicUrl: string expected"; - return null; - }; - /** * Creates a SwitchListElement message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -6538,6 +5402,8 @@ export const Authentication = $root.Authentication = (() => { SwitchListElement.fromObject = function fromObject(object, long) { if (object instanceof $root.Authentication.SwitchListElement) return object; + if (!$util.isObject(object)) + throw TypeError(".Authentication.SwitchListElement: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -6580,15 +5446,15 @@ export const Authentication = $root.Authentication = (() => { object.isLinked = false; object.profilePicUrl = ""; } - if (message.username != null && message.hasOwnProperty("username")) + if (message.username != null && Object.hasOwnProperty.call(message, "username")) object.username = message.username; - if (message.fullName != null && message.hasOwnProperty("fullName")) + if (message.fullName != null && Object.hasOwnProperty.call(message, "fullName")) object.fullName = message.fullName; - if (message.authRequired != null && message.hasOwnProperty("authRequired")) + if (message.authRequired != null && Object.hasOwnProperty.call(message, "authRequired")) object.authRequired = message.authRequired; - if (message.isLinked != null && message.hasOwnProperty("isLinked")) + if (message.isLinked != null && Object.hasOwnProperty.call(message, "isLinked")) object.isLinked = message.isLinked; - if (message.profilePicUrl != null && message.hasOwnProperty("profilePicUrl")) + if (message.profilePicUrl != null && Object.hasOwnProperty.call(message, "profilePicUrl")) object.profilePicUrl = message.profilePicUrl; return object; }; @@ -6689,19 +5555,6 @@ export const Authentication = $root.Authentication = (() => { return writer; }; - /** - * Encodes the specified SwitchListResponse message, length delimited. Does not implicitly {@link Authentication.SwitchListResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof Authentication.SwitchListResponse - * @static - * @param {Authentication.ISwitchListResponse} message SwitchListResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SwitchListResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a SwitchListResponse message from the specified reader or buffer. * @function decode @@ -6740,49 +5593,6 @@ export const Authentication = $root.Authentication = (() => { return message; }; - /** - * Decodes a SwitchListResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Authentication.SwitchListResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Authentication.SwitchListResponse} SwitchListResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SwitchListResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a SwitchListResponse message. - * @function verify - * @memberof Authentication.SwitchListResponse - * @static - * @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) { - if (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); - if (error) - return "elements." + error; - } - } - return null; - }; - /** * Creates a SwitchListResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -6794,6 +5604,8 @@ export const Authentication = $root.Authentication = (() => { SwitchListResponse.fromObject = function fromObject(object, long) { if (object instanceof $root.Authentication.SwitchListResponse) return object; + if (!$util.isObject(object)) + throw TypeError(".Authentication.SwitchListResponse: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -6804,7 +5616,7 @@ export const Authentication = $root.Authentication = (() => { throw TypeError(".Authentication.SwitchListResponse.elements: array expected"); message.elements = []; for (let i = 0; i < object.elements.length; ++i) { - if (typeof object.elements[i] !== "object") + if (!$util.isObject(object.elements[i])) throw TypeError(".Authentication.SwitchListResponse.elements: object expected"); message.elements[i] = $root.Authentication.SwitchListElement.fromObject(object.elements[i], long + 1); } @@ -6988,19 +5800,6 @@ export const Authentication = $root.Authentication = (() => { return writer; }; - /** - * Encodes the specified SsoUserInfo message, length delimited. Does not implicitly {@link Authentication.SsoUserInfo.verify|verify} messages. - * @function encodeDelimited - * @memberof Authentication.SsoUserInfo - * @static - * @param {Authentication.ISsoUserInfo} message SsoUserInfo message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SsoUserInfo.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a SsoUserInfo message from the specified reader or buffer. * @function decode @@ -7057,58 +5856,6 @@ export const Authentication = $root.Authentication = (() => { return message; }; - /** - * Decodes a SsoUserInfo message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Authentication.SsoUserInfo - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Authentication.SsoUserInfo} SsoUserInfo - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SsoUserInfo.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a SsoUserInfo message. - * @function verify - * @memberof Authentication.SsoUserInfo - * @static - * @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) { - if (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"; - if (message.samlRequest != null && message.hasOwnProperty("samlRequest")) - if (!$util.isString(message.samlRequest)) - return "samlRequest: string expected"; - if (message.samlRequestType != null && message.hasOwnProperty("samlRequestType")) - if (!$util.isString(message.samlRequestType)) - return "samlRequestType: string expected"; - if (message.ssoDomainName != null && message.hasOwnProperty("ssoDomainName")) - if (!$util.isString(message.ssoDomainName)) - return "ssoDomainName: string expected"; - if (message.loginUrl != null && message.hasOwnProperty("loginUrl")) - if (!$util.isString(message.loginUrl)) - return "loginUrl: string expected"; - if (message.logoutUrl != null && message.hasOwnProperty("logoutUrl")) - if (!$util.isString(message.logoutUrl)) - return "logoutUrl: string expected"; - return null; - }; - /** * Creates a SsoUserInfo message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -7120,6 +5867,8 @@ export const Authentication = $root.Authentication = (() => { SsoUserInfo.fromObject = function fromObject(object, long) { if (object instanceof $root.Authentication.SsoUserInfo) return object; + if (!$util.isObject(object)) + throw TypeError(".Authentication.SsoUserInfo: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -7165,17 +5914,17 @@ export const Authentication = $root.Authentication = (() => { object.loginUrl = ""; object.logoutUrl = ""; } - if (message.companyName != null && message.hasOwnProperty("companyName")) + if (message.companyName != null && Object.hasOwnProperty.call(message, "companyName")) object.companyName = message.companyName; - if (message.samlRequest != null && message.hasOwnProperty("samlRequest")) + if (message.samlRequest != null && Object.hasOwnProperty.call(message, "samlRequest")) object.samlRequest = message.samlRequest; - if (message.samlRequestType != null && message.hasOwnProperty("samlRequestType")) + if (message.samlRequestType != null && Object.hasOwnProperty.call(message, "samlRequestType")) object.samlRequestType = message.samlRequestType; - if (message.ssoDomainName != null && message.hasOwnProperty("ssoDomainName")) + if (message.ssoDomainName != null && Object.hasOwnProperty.call(message, "ssoDomainName")) object.ssoDomainName = message.ssoDomainName; - if (message.loginUrl != null && message.hasOwnProperty("loginUrl")) + if (message.loginUrl != null && Object.hasOwnProperty.call(message, "loginUrl")) object.loginUrl = message.loginUrl; - if (message.logoutUrl != null && message.hasOwnProperty("logoutUrl")) + if (message.logoutUrl != null && Object.hasOwnProperty.call(message, "logoutUrl")) object.logoutUrl = message.logoutUrl; return object; }; @@ -7311,19 +6060,6 @@ export const Authentication = $root.Authentication = (() => { return writer; }; - /** - * Encodes the specified PreLoginResponse message, length delimited. Does not implicitly {@link Authentication.PreLoginResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof Authentication.PreLoginResponse - * @static - * @param {Authentication.IPreLoginResponse} message PreLoginResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - PreLoginResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a PreLoginResponse message from the specified reader or buffer. * @function decode @@ -7376,73 +6112,6 @@ export const Authentication = $root.Authentication = (() => { return message; }; - /** - * Decodes a PreLoginResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Authentication.PreLoginResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Authentication.PreLoginResponse} PreLoginResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - PreLoginResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a PreLoginResponse message. - * @function verify - * @memberof Authentication.PreLoginResponse - * @static - * @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) { - if (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: - return "deviceStatus: enum value expected"; - case 0: - case 1: - case 2: - case 3: - break; - } - if (message.salt != null && message.hasOwnProperty("salt")) { - 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); - if (error) - return "salt." + error; - } - } - if (message.OBSOLETE_FIELD != null && message.hasOwnProperty("OBSOLETE_FIELD")) { - 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); - if (error) - return "OBSOLETE_FIELD." + error; - } - } - if (message.ssoUserInfo != null && message.hasOwnProperty("ssoUserInfo")) { - let error = $root.Authentication.SsoUserInfo.verify(message.ssoUserInfo, long + 1); - if (error) - return "ssoUserInfo." + error; - } - return null; - }; - /** * Creates a PreLoginResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -7454,6 +6123,8 @@ export const Authentication = $root.Authentication = (() => { PreLoginResponse.fromObject = function fromObject(object, long) { if (object instanceof $root.Authentication.PreLoginResponse) return object; + if (!$util.isObject(object)) + throw TypeError(".Authentication.PreLoginResponse: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -7488,7 +6159,7 @@ export const Authentication = $root.Authentication = (() => { throw TypeError(".Authentication.PreLoginResponse.salt: array expected"); message.salt = []; for (let i = 0; i < object.salt.length; ++i) { - if (typeof object.salt[i] !== "object") + if (!$util.isObject(object.salt[i])) throw TypeError(".Authentication.PreLoginResponse.salt: object expected"); message.salt[i] = $root.Authentication.Salt.fromObject(object.salt[i], long + 1); } @@ -7498,13 +6169,13 @@ export const Authentication = $root.Authentication = (() => { throw TypeError(".Authentication.PreLoginResponse.OBSOLETE_FIELD: array expected"); message.OBSOLETE_FIELD = []; for (let i = 0; i < object.OBSOLETE_FIELD.length; ++i) { - if (typeof object.OBSOLETE_FIELD[i] !== "object") + if (!$util.isObject(object.OBSOLETE_FIELD[i])) throw TypeError(".Authentication.PreLoginResponse.OBSOLETE_FIELD: object expected"); message.OBSOLETE_FIELD[i] = $root.Authentication.TwoFactorChannel.fromObject(object.OBSOLETE_FIELD[i], long + 1); } } if (object.ssoUserInfo != null) { - if (typeof object.ssoUserInfo !== "object") + if (!$util.isObject(object.ssoUserInfo)) throw TypeError(".Authentication.PreLoginResponse.ssoUserInfo: object expected"); message.ssoUserInfo = $root.Authentication.SsoUserInfo.fromObject(object.ssoUserInfo, long + 1); } @@ -7536,7 +6207,7 @@ export const Authentication = $root.Authentication = (() => { object.deviceStatus = options.enums === String ? "DEVICE_NEEDS_APPROVAL" : 0; object.ssoUserInfo = null; } - if (message.deviceStatus != null && message.hasOwnProperty("deviceStatus")) + if (message.deviceStatus != null && Object.hasOwnProperty.call(message, "deviceStatus")) object.deviceStatus = options.enums === String ? $root.Authentication.DeviceStatus[message.deviceStatus] === undefined ? message.deviceStatus : $root.Authentication.DeviceStatus[message.deviceStatus] : message.deviceStatus; if (message.salt && message.salt.length) { object.salt = []; @@ -7548,7 +6219,7 @@ export const Authentication = $root.Authentication = (() => { 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); } - if (message.ssoUserInfo != null && message.hasOwnProperty("ssoUserInfo")) + if (message.ssoUserInfo != null && Object.hasOwnProperty.call(message, "ssoUserInfo")) object.ssoUserInfo = $root.Authentication.SsoUserInfo.toObject(message.ssoUserInfo, options, q + 1); return object; }; @@ -7647,19 +6318,6 @@ export const Authentication = $root.Authentication = (() => { return writer; }; - /** - * Encodes the specified LoginAsUserRequest message, length delimited. Does not implicitly {@link Authentication.LoginAsUserRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof Authentication.LoginAsUserRequest - * @static - * @param {Authentication.ILoginAsUserRequest} message LoginAsUserRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - LoginAsUserRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a LoginAsUserRequest message from the specified reader or buffer. * @function decode @@ -7696,43 +6354,6 @@ export const Authentication = $root.Authentication = (() => { return message; }; - /** - * Decodes a LoginAsUserRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Authentication.LoginAsUserRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Authentication.LoginAsUserRequest} LoginAsUserRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - LoginAsUserRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a LoginAsUserRequest message. - * @function verify - * @memberof Authentication.LoginAsUserRequest - * @static - * @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) { - if (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"; - return null; - }; - /** * Creates a LoginAsUserRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -7744,6 +6365,8 @@ export const Authentication = $root.Authentication = (() => { LoginAsUserRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.Authentication.LoginAsUserRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".Authentication.LoginAsUserRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -7773,7 +6396,7 @@ export const Authentication = $root.Authentication = (() => { let object = {}; if (options.defaults) object.username = ""; - if (message.username != null && message.hasOwnProperty("username")) + if (message.username != null && Object.hasOwnProperty.call(message, "username")) object.username = message.username; return object; }; @@ -7883,19 +6506,6 @@ export const Authentication = $root.Authentication = (() => { return writer; }; - /** - * Encodes the specified LoginAsUserResponse message, length delimited. Does not implicitly {@link Authentication.LoginAsUserResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof Authentication.LoginAsUserResponse - * @static - * @param {Authentication.ILoginAsUserResponse} message LoginAsUserResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - LoginAsUserResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a LoginAsUserResponse message from the specified reader or buffer. * @function decode @@ -7936,46 +6546,6 @@ export const Authentication = $root.Authentication = (() => { return message; }; - /** - * Decodes a LoginAsUserResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Authentication.LoginAsUserResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Authentication.LoginAsUserResponse} LoginAsUserResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - LoginAsUserResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a LoginAsUserResponse message. - * @function verify - * @memberof Authentication.LoginAsUserResponse - * @static - * @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) { - if (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"; - if (message.encryptedSharedAccountKey != null && message.hasOwnProperty("encryptedSharedAccountKey")) - if (!(message.encryptedSharedAccountKey && typeof message.encryptedSharedAccountKey.length === "number" || $util.isString(message.encryptedSharedAccountKey))) - return "encryptedSharedAccountKey: buffer expected"; - return null; - }; - /** * Creates a LoginAsUserResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -7987,6 +6557,8 @@ export const Authentication = $root.Authentication = (() => { LoginAsUserResponse.fromObject = function fromObject(object, long) { if (object instanceof $root.Authentication.LoginAsUserResponse) return object; + if (!$util.isObject(object)) + throw TypeError(".Authentication.LoginAsUserResponse: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -8038,9 +6610,9 @@ export const Authentication = $root.Authentication = (() => { object.encryptedSharedAccountKey = $util.newBuffer(object.encryptedSharedAccountKey); } } - if (message.encryptedSessionToken != null && message.hasOwnProperty("encryptedSessionToken")) + if (message.encryptedSessionToken != null && Object.hasOwnProperty.call(message, "encryptedSessionToken")) object.encryptedSessionToken = options.bytes === String ? $util.base64.encode(message.encryptedSessionToken, 0, message.encryptedSessionToken.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedSessionToken) : message.encryptedSessionToken; - if (message.encryptedSharedAccountKey != null && message.hasOwnProperty("encryptedSharedAccountKey")) + if (message.encryptedSharedAccountKey != null && Object.hasOwnProperty.call(message, "encryptedSharedAccountKey")) object.encryptedSharedAccountKey = options.bytes === String ? $util.base64.encode(message.encryptedSharedAccountKey, 0, message.encryptedSharedAccountKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedSharedAccountKey) : message.encryptedSharedAccountKey; return object; }; @@ -8175,19 +6747,6 @@ export const Authentication = $root.Authentication = (() => { return writer; }; - /** - * Encodes the specified ValidateAuthHashRequest message, length delimited. Does not implicitly {@link Authentication.ValidateAuthHashRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof Authentication.ValidateAuthHashRequest - * @static - * @param {Authentication.IValidateAuthHashRequest} message ValidateAuthHashRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ValidateAuthHashRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a ValidateAuthHashRequest message from the specified reader or buffer. * @function decode @@ -8232,54 +6791,6 @@ export const Authentication = $root.Authentication = (() => { return message; }; - /** - * Decodes a ValidateAuthHashRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Authentication.ValidateAuthHashRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Authentication.ValidateAuthHashRequest} ValidateAuthHashRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ValidateAuthHashRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a ValidateAuthHashRequest message. - * @function verify - * @memberof Authentication.ValidateAuthHashRequest - * @static - * @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) { - if (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: - return "passwordMethod: enum value expected"; - case 0: - case 1: - break; - } - if (message.authResponse != null && message.hasOwnProperty("authResponse")) - if (!(message.authResponse && typeof message.authResponse.length === "number" || $util.isString(message.authResponse))) - return "authResponse: buffer expected"; - if (message.encryptedLoginToken != null && message.hasOwnProperty("encryptedLoginToken")) - if (!(message.encryptedLoginToken && typeof message.encryptedLoginToken.length === "number" || $util.isString(message.encryptedLoginToken))) - return "encryptedLoginToken: buffer expected"; - return null; - }; - /** * Creates a ValidateAuthHashRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -8291,6 +6802,8 @@ export const Authentication = $root.Authentication = (() => { ValidateAuthHashRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.Authentication.ValidateAuthHashRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".Authentication.ValidateAuthHashRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -8359,11 +6872,11 @@ export const Authentication = $root.Authentication = (() => { object.encryptedLoginToken = $util.newBuffer(object.encryptedLoginToken); } } - if (message.passwordMethod != null && message.hasOwnProperty("passwordMethod")) + if (message.passwordMethod != null && Object.hasOwnProperty.call(message, "passwordMethod")) object.passwordMethod = options.enums === String ? $root.Authentication.PasswordMethod[message.passwordMethod] === undefined ? message.passwordMethod : $root.Authentication.PasswordMethod[message.passwordMethod] : message.passwordMethod; - if (message.authResponse != null && message.hasOwnProperty("authResponse")) + if (message.authResponse != null && Object.hasOwnProperty.call(message, "authResponse")) object.authResponse = options.bytes === String ? $util.base64.encode(message.authResponse, 0, message.authResponse.length) : options.bytes === Array ? Array.prototype.slice.call(message.authResponse) : message.authResponse; - if (message.encryptedLoginToken != null && message.hasOwnProperty("encryptedLoginToken")) + if (message.encryptedLoginToken != null && Object.hasOwnProperty.call(message, "encryptedLoginToken")) object.encryptedLoginToken = options.bytes === String ? $util.base64.encode(message.encryptedLoginToken, 0, message.encryptedLoginToken.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedLoginToken) : message.encryptedLoginToken; return object; }; @@ -8632,19 +7145,6 @@ export const Authentication = $root.Authentication = (() => { return writer; }; - /** - * Encodes the specified TwoFactorChannelInfo message, length delimited. Does not implicitly {@link Authentication.TwoFactorChannelInfo.verify|verify} messages. - * @function encodeDelimited - * @memberof Authentication.TwoFactorChannelInfo - * @static - * @param {Authentication.ITwoFactorChannelInfo} message TwoFactorChannelInfo message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TwoFactorChannelInfo.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a TwoFactorChannelInfo message from the specified reader or buffer. * @function decode @@ -8715,102 +7215,6 @@ export const Authentication = $root.Authentication = (() => { return message; }; - /** - * Decodes a TwoFactorChannelInfo message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Authentication.TwoFactorChannelInfo - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Authentication.TwoFactorChannelInfo} TwoFactorChannelInfo - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TwoFactorChannelInfo.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a TwoFactorChannelInfo message. - * @function verify - * @memberof Authentication.TwoFactorChannelInfo - * @static - * @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) { - if (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: - return "channelType: 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.channelUid != null && message.hasOwnProperty("channelUid")) - if (!(message.channelUid && typeof message.channelUid.length === "number" || $util.isString(message.channelUid))) - return "channelUid: buffer expected"; - if (message.channelName != null && message.hasOwnProperty("channelName")) - if (!$util.isString(message.channelName)) - return "channelName: string expected"; - if (message.challenge != null && message.hasOwnProperty("challenge")) - if (!$util.isString(message.challenge)) - return "challenge: string expected"; - if (message.capabilities != null && message.hasOwnProperty("capabilities")) { - if (!Array.isArray(message.capabilities)) - return "capabilities: array expected"; - for (let i = 0; i < message.capabilities.length; ++i) - if (!$util.isString(message.capabilities[i])) - return "capabilities: string[] expected"; - } - if (message.phoneNumber != null && message.hasOwnProperty("phoneNumber")) - if (!$util.isString(message.phoneNumber)) - return "phoneNumber: string expected"; - if (message.maxExpiration != null && message.hasOwnProperty("maxExpiration")) - switch (message.maxExpiration) { - default: - return "maxExpiration: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - break; - } - if (message.createdOn != null && message.hasOwnProperty("createdOn")) - if (!$util.isInteger(message.createdOn) && !(message.createdOn && $util.isInteger(message.createdOn.low) && $util.isInteger(message.createdOn.high))) - return "createdOn: integer|Long expected"; - if (message.lastFrequency != null && message.hasOwnProperty("lastFrequency")) - switch (message.lastFrequency) { - default: - return "lastFrequency: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - break; - } - return null; - }; - /** * Creates a TwoFactorChannelInfo message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -8822,6 +7226,8 @@ export const Authentication = $root.Authentication = (() => { TwoFactorChannelInfo.fromObject = function fromObject(object, long) { if (object instanceof $root.Authentication.TwoFactorChannelInfo) return object; + if (!$util.isObject(object)) + throw TypeError(".Authentication.TwoFactorChannelInfo: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -9008,31 +7414,31 @@ export const Authentication = $root.Authentication = (() => { object.createdOn = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; object.lastFrequency = options.enums === String ? "TWO_FA_EXP_IMMEDIATELY" : 0; } - if (message.channelType != null && message.hasOwnProperty("channelType")) + if (message.channelType != null && Object.hasOwnProperty.call(message, "channelType")) object.channelType = options.enums === String ? $root.Authentication.TwoFactorChannelType[message.channelType] === undefined ? message.channelType : $root.Authentication.TwoFactorChannelType[message.channelType] : message.channelType; - if (message.channelUid != null && message.hasOwnProperty("channelUid")) + if (message.channelUid != null && Object.hasOwnProperty.call(message, "channelUid")) object.channelUid = options.bytes === String ? $util.base64.encode(message.channelUid, 0, message.channelUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.channelUid) : message.channelUid; - if (message.channelName != null && message.hasOwnProperty("channelName")) + if (message.channelName != null && Object.hasOwnProperty.call(message, "channelName")) object.channelName = message.channelName; - if (message.challenge != null && message.hasOwnProperty("challenge")) + if (message.challenge != null && Object.hasOwnProperty.call(message, "challenge")) object.challenge = message.challenge; if (message.capabilities && message.capabilities.length) { object.capabilities = []; for (let j = 0; j < message.capabilities.length; ++j) object.capabilities[j] = message.capabilities[j]; } - if (message.phoneNumber != null && message.hasOwnProperty("phoneNumber")) + if (message.phoneNumber != null && Object.hasOwnProperty.call(message, "phoneNumber")) object.phoneNumber = message.phoneNumber; - if (message.maxExpiration != null && message.hasOwnProperty("maxExpiration")) + if (message.maxExpiration != null && Object.hasOwnProperty.call(message, "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 (message.createdOn != null && Object.hasOwnProperty.call(message, "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") 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.lastFrequency != null && message.hasOwnProperty("lastFrequency")) + if (message.lastFrequency != null && Object.hasOwnProperty.call(message, "lastFrequency")) object.lastFrequency = options.enums === String ? $root.Authentication.TwoFactorExpiration[message.lastFrequency] === undefined ? message.lastFrequency : $root.Authentication.TwoFactorExpiration[message.lastFrequency] : message.lastFrequency; return object; }; @@ -9188,19 +7594,6 @@ export const Authentication = $root.Authentication = (() => { return writer; }; - /** - * Encodes the specified TwoFactorDuoStatus message, length delimited. Does not implicitly {@link Authentication.TwoFactorDuoStatus.verify|verify} messages. - * @function encodeDelimited - * @memberof Authentication.TwoFactorDuoStatus - * @static - * @param {Authentication.ITwoFactorDuoStatus} message TwoFactorDuoStatus message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TwoFactorDuoStatus.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a TwoFactorDuoStatus message from the specified reader or buffer. * @function decode @@ -9251,56 +7644,6 @@ export const Authentication = $root.Authentication = (() => { return message; }; - /** - * Decodes a TwoFactorDuoStatus message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Authentication.TwoFactorDuoStatus - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Authentication.TwoFactorDuoStatus} TwoFactorDuoStatus - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TwoFactorDuoStatus.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a TwoFactorDuoStatus message. - * @function verify - * @memberof Authentication.TwoFactorDuoStatus - * @static - * @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) { - if (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"; - for (let i = 0; i < message.capabilities.length; ++i) - if (!$util.isString(message.capabilities[i])) - return "capabilities: string[] expected"; - } - if (message.phoneNumber != null && message.hasOwnProperty("phoneNumber")) - if (!$util.isString(message.phoneNumber)) - return "phoneNumber: string expected"; - if (message.enrollUrl != null && message.hasOwnProperty("enrollUrl")) - if (!$util.isString(message.enrollUrl)) - return "enrollUrl: string expected"; - if (message.message != null && message.hasOwnProperty("message")) - if (!$util.isString(message.message)) - return "message: string expected"; - return null; - }; - /** * Creates a TwoFactorDuoStatus message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -9312,6 +7655,8 @@ export const Authentication = $root.Authentication = (() => { TwoFactorDuoStatus.fromObject = function fromObject(object, long) { if (object instanceof $root.Authentication.TwoFactorDuoStatus) return object; + if (!$util.isObject(object)) + throw TypeError(".Authentication.TwoFactorDuoStatus: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -9362,11 +7707,11 @@ export const Authentication = $root.Authentication = (() => { for (let j = 0; j < message.capabilities.length; ++j) object.capabilities[j] = message.capabilities[j]; } - if (message.phoneNumber != null && message.hasOwnProperty("phoneNumber")) + if (message.phoneNumber != null && Object.hasOwnProperty.call(message, "phoneNumber")) object.phoneNumber = message.phoneNumber; - if (message.enrollUrl != null && message.hasOwnProperty("enrollUrl")) + if (message.enrollUrl != null && Object.hasOwnProperty.call(message, "enrollUrl")) object.enrollUrl = message.enrollUrl; - if (message.message != null && message.hasOwnProperty("message")) + if (message.message != null && Object.hasOwnProperty.call(message, "message")) object.message = message.message; return object; }; @@ -9509,19 +7854,6 @@ export const Authentication = $root.Authentication = (() => { return writer; }; - /** - * Encodes the specified TwoFactorAddRequest message, length delimited. Does not implicitly {@link Authentication.TwoFactorAddRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof Authentication.TwoFactorAddRequest - * @static - * @param {Authentication.ITwoFactorAddRequest} message TwoFactorAddRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TwoFactorAddRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a TwoFactorAddRequest message from the specified reader or buffer. * @function decode @@ -9574,78 +7906,6 @@ export const Authentication = $root.Authentication = (() => { return message; }; - /** - * Decodes a TwoFactorAddRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Authentication.TwoFactorAddRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Authentication.TwoFactorAddRequest} TwoFactorAddRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TwoFactorAddRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a TwoFactorAddRequest message. - * @function verify - * @memberof Authentication.TwoFactorAddRequest - * @static - * @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) { - if (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: - return "channelType: 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.channelUid != null && message.hasOwnProperty("channelUid")) - if (!(message.channelUid && typeof message.channelUid.length === "number" || $util.isString(message.channelUid))) - return "channelUid: buffer expected"; - if (message.channelName != null && message.hasOwnProperty("channelName")) - if (!$util.isString(message.channelName)) - return "channelName: string expected"; - if (message.phoneNumber != null && message.hasOwnProperty("phoneNumber")) - if (!$util.isString(message.phoneNumber)) - return "phoneNumber: string expected"; - if (message.duoPushType != null && message.hasOwnProperty("duoPushType")) - switch (message.duoPushType) { - default: - return "duoPushType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - break; - } - return null; - }; - /** * Creates a TwoFactorAddRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -9657,6 +7917,8 @@ export const Authentication = $root.Authentication = (() => { TwoFactorAddRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.Authentication.TwoFactorAddRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".Authentication.TwoFactorAddRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -9788,15 +8050,15 @@ export const Authentication = $root.Authentication = (() => { object.phoneNumber = ""; object.duoPushType = options.enums === String ? "TWO_FA_PUSH_NONE" : 0; } - if (message.channelType != null && message.hasOwnProperty("channelType")) + if (message.channelType != null && Object.hasOwnProperty.call(message, "channelType")) object.channelType = options.enums === String ? $root.Authentication.TwoFactorChannelType[message.channelType] === undefined ? message.channelType : $root.Authentication.TwoFactorChannelType[message.channelType] : message.channelType; - if (message.channelUid != null && message.hasOwnProperty("channelUid")) + if (message.channelUid != null && Object.hasOwnProperty.call(message, "channelUid")) object.channelUid = options.bytes === String ? $util.base64.encode(message.channelUid, 0, message.channelUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.channelUid) : message.channelUid; - if (message.channelName != null && message.hasOwnProperty("channelName")) + if (message.channelName != null && Object.hasOwnProperty.call(message, "channelName")) object.channelName = message.channelName; - if (message.phoneNumber != null && message.hasOwnProperty("phoneNumber")) + if (message.phoneNumber != null && Object.hasOwnProperty.call(message, "phoneNumber")) object.phoneNumber = message.phoneNumber; - if (message.duoPushType != null && message.hasOwnProperty("duoPushType")) + if (message.duoPushType != null && Object.hasOwnProperty.call(message, "duoPushType")) object.duoPushType = options.enums === String ? $root.Authentication.TwoFactorPushType[message.duoPushType] === undefined ? message.duoPushType : $root.Authentication.TwoFactorPushType[message.duoPushType] : message.duoPushType; return object; }; @@ -9906,19 +8168,6 @@ export const Authentication = $root.Authentication = (() => { return writer; }; - /** - * Encodes the specified TwoFactorRenameRequest message, length delimited. Does not implicitly {@link Authentication.TwoFactorRenameRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof Authentication.TwoFactorRenameRequest - * @static - * @param {Authentication.ITwoFactorRenameRequest} message TwoFactorRenameRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TwoFactorRenameRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a TwoFactorRenameRequest message from the specified reader or buffer. * @function decode @@ -9959,46 +8208,6 @@ export const Authentication = $root.Authentication = (() => { return message; }; - /** - * Decodes a TwoFactorRenameRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Authentication.TwoFactorRenameRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Authentication.TwoFactorRenameRequest} TwoFactorRenameRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TwoFactorRenameRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a TwoFactorRenameRequest message. - * @function verify - * @memberof Authentication.TwoFactorRenameRequest - * @static - * @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) { - if (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"; - if (message.channelName != null && message.hasOwnProperty("channelName")) - if (!$util.isString(message.channelName)) - return "channelName: string expected"; - return null; - }; - /** * Creates a TwoFactorRenameRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -10010,6 +8219,8 @@ export const Authentication = $root.Authentication = (() => { TwoFactorRenameRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.Authentication.TwoFactorRenameRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".Authentication.TwoFactorRenameRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -10052,9 +8263,9 @@ export const Authentication = $root.Authentication = (() => { } object.channelName = ""; } - if (message.channelUid != null && message.hasOwnProperty("channelUid")) + if (message.channelUid != null && Object.hasOwnProperty.call(message, "channelUid")) object.channelUid = options.bytes === String ? $util.base64.encode(message.channelUid, 0, message.channelUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.channelUid) : message.channelUid; - if (message.channelName != null && message.hasOwnProperty("channelName")) + if (message.channelName != null && Object.hasOwnProperty.call(message, "channelName")) object.channelName = message.channelName; return object; }; @@ -10166,19 +8377,6 @@ export const Authentication = $root.Authentication = (() => { return writer; }; - /** - * Encodes the specified TwoFactorAddResponse message, length delimited. Does not implicitly {@link Authentication.TwoFactorAddResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof Authentication.TwoFactorAddResponse - * @static - * @param {Authentication.ITwoFactorAddResponse} message TwoFactorAddResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TwoFactorAddResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a TwoFactorAddResponse message from the specified reader or buffer. * @function decode @@ -10221,50 +8419,6 @@ export const Authentication = $root.Authentication = (() => { return message; }; - /** - * Decodes a TwoFactorAddResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Authentication.TwoFactorAddResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Authentication.TwoFactorAddResponse} TwoFactorAddResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TwoFactorAddResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a TwoFactorAddResponse message. - * @function verify - * @memberof Authentication.TwoFactorAddResponse - * @static - * @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) { - if (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"; - if (message.backupKeys != null && message.hasOwnProperty("backupKeys")) { - if (!Array.isArray(message.backupKeys)) - return "backupKeys: array expected"; - for (let i = 0; i < message.backupKeys.length; ++i) - if (!$util.isString(message.backupKeys[i])) - return "backupKeys: string[] expected"; - } - return null; - }; - /** * Creates a TwoFactorAddResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -10276,6 +8430,8 @@ export const Authentication = $root.Authentication = (() => { TwoFactorAddResponse.fromObject = function fromObject(object, long) { if (object instanceof $root.Authentication.TwoFactorAddResponse) return object; + if (!$util.isObject(object)) + throw TypeError(".Authentication.TwoFactorAddResponse: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -10314,7 +8470,7 @@ export const Authentication = $root.Authentication = (() => { object.backupKeys = []; if (options.defaults) object.challenge = ""; - if (message.challenge != null && message.hasOwnProperty("challenge")) + if (message.challenge != null && Object.hasOwnProperty.call(message, "challenge")) object.challenge = message.challenge; if (message.backupKeys && message.backupKeys.length) { object.backupKeys = []; @@ -10418,19 +8574,6 @@ export const Authentication = $root.Authentication = (() => { return writer; }; - /** - * Encodes the specified TwoFactorDeleteRequest message, length delimited. Does not implicitly {@link Authentication.TwoFactorDeleteRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof Authentication.TwoFactorDeleteRequest - * @static - * @param {Authentication.ITwoFactorDeleteRequest} message TwoFactorDeleteRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TwoFactorDeleteRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a TwoFactorDeleteRequest message from the specified reader or buffer. * @function decode @@ -10467,43 +8610,6 @@ export const Authentication = $root.Authentication = (() => { return message; }; - /** - * Decodes a TwoFactorDeleteRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Authentication.TwoFactorDeleteRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Authentication.TwoFactorDeleteRequest} TwoFactorDeleteRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TwoFactorDeleteRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a TwoFactorDeleteRequest message. - * @function verify - * @memberof Authentication.TwoFactorDeleteRequest - * @static - * @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) { - if (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"; - return null; - }; - /** * Creates a TwoFactorDeleteRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -10515,6 +8621,8 @@ export const Authentication = $root.Authentication = (() => { TwoFactorDeleteRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.Authentication.TwoFactorDeleteRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".Authentication.TwoFactorDeleteRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -10553,7 +8661,7 @@ export const Authentication = $root.Authentication = (() => { if (options.bytes !== Array) object.channelUid = $util.newBuffer(object.channelUid); } - if (message.channelUid != null && message.hasOwnProperty("channelUid")) + if (message.channelUid != null && Object.hasOwnProperty.call(message, "channelUid")) object.channelUid = options.bytes === String ? $util.base64.encode(message.channelUid, 0, message.channelUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.channelUid) : message.channelUid; return object; }; @@ -10665,19 +8773,6 @@ export const Authentication = $root.Authentication = (() => { return writer; }; - /** - * Encodes the specified TwoFactorListResponse message, length delimited. Does not implicitly {@link Authentication.TwoFactorListResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof Authentication.TwoFactorListResponse - * @static - * @param {Authentication.ITwoFactorListResponse} message TwoFactorListResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TwoFactorListResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a TwoFactorListResponse message from the specified reader or buffer. * @function decode @@ -10720,52 +8815,6 @@ export const Authentication = $root.Authentication = (() => { return message; }; - /** - * Decodes a TwoFactorListResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Authentication.TwoFactorListResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Authentication.TwoFactorListResponse} TwoFactorListResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TwoFactorListResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a TwoFactorListResponse message. - * @function verify - * @memberof Authentication.TwoFactorListResponse - * @static - * @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) { - if (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); - if (error) - return "channels." + error; - } - } - if (message.expireOn != null && message.hasOwnProperty("expireOn")) - if (!$util.isInteger(message.expireOn) && !(message.expireOn && $util.isInteger(message.expireOn.low) && $util.isInteger(message.expireOn.high))) - return "expireOn: integer|Long expected"; - return null; - }; - /** * Creates a TwoFactorListResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -10777,6 +8826,8 @@ export const Authentication = $root.Authentication = (() => { TwoFactorListResponse.fromObject = function fromObject(object, long) { if (object instanceof $root.Authentication.TwoFactorListResponse) return object; + if (!$util.isObject(object)) + throw TypeError(".Authentication.TwoFactorListResponse: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -10787,7 +8838,7 @@ export const Authentication = $root.Authentication = (() => { throw TypeError(".Authentication.TwoFactorListResponse.channels: array expected"); message.channels = []; for (let i = 0; i < object.channels.length; ++i) { - if (typeof object.channels[i] !== "object") + if (!$util.isObject(object.channels[i])) throw TypeError(".Authentication.TwoFactorListResponse.channels: object expected"); message.channels[i] = $root.Authentication.TwoFactorChannelInfo.fromObject(object.channels[i], long + 1); } @@ -10834,7 +8885,7 @@ export const Authentication = $root.Authentication = (() => { for (let j = 0; j < message.channels.length; ++j) object.channels[j] = $root.Authentication.TwoFactorChannelInfo.toObject(message.channels[j], options, q + 1); } - if (message.expireOn != null && message.hasOwnProperty("expireOn")) + if (message.expireOn != null && Object.hasOwnProperty.call(message, "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") @@ -10938,19 +8989,6 @@ export const Authentication = $root.Authentication = (() => { return writer; }; - /** - * Encodes the specified TwoFactorUpdateExpirationRequest message, length delimited. Does not implicitly {@link Authentication.TwoFactorUpdateExpirationRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof Authentication.TwoFactorUpdateExpirationRequest - * @static - * @param {Authentication.ITwoFactorUpdateExpirationRequest} message TwoFactorUpdateExpirationRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TwoFactorUpdateExpirationRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a TwoFactorUpdateExpirationRequest message from the specified reader or buffer. * @function decode @@ -10987,52 +9025,6 @@ export const Authentication = $root.Authentication = (() => { return message; }; - /** - * Decodes a TwoFactorUpdateExpirationRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Authentication.TwoFactorUpdateExpirationRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Authentication.TwoFactorUpdateExpirationRequest} TwoFactorUpdateExpirationRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TwoFactorUpdateExpirationRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a TwoFactorUpdateExpirationRequest message. - * @function verify - * @memberof Authentication.TwoFactorUpdateExpirationRequest - * @static - * @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) { - if (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: - return "expireIn: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - break; - } - return null; - }; - /** * Creates a TwoFactorUpdateExpirationRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -11044,6 +9036,8 @@ export const Authentication = $root.Authentication = (() => { TwoFactorUpdateExpirationRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.Authentication.TwoFactorUpdateExpirationRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".Authentication.TwoFactorUpdateExpirationRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -11103,7 +9097,7 @@ export const Authentication = $root.Authentication = (() => { let object = {}; if (options.defaults) object.expireIn = options.enums === String ? "TWO_FA_EXP_IMMEDIATELY" : 0; - if (message.expireIn != null && message.hasOwnProperty("expireIn")) + if (message.expireIn != null && Object.hasOwnProperty.call(message, "expireIn")) object.expireIn = options.enums === String ? $root.Authentication.TwoFactorExpiration[message.expireIn] === undefined ? message.expireIn : $root.Authentication.TwoFactorExpiration[message.expireIn] : message.expireIn; return object; }; @@ -11246,19 +9240,6 @@ export const Authentication = $root.Authentication = (() => { return writer; }; - /** - * Encodes the specified TwoFactorValidateRequest message, length delimited. Does not implicitly {@link Authentication.TwoFactorValidateRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof Authentication.TwoFactorValidateRequest - * @static - * @param {Authentication.ITwoFactorValidateRequest} message TwoFactorValidateRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TwoFactorValidateRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a TwoFactorValidateRequest message from the specified reader or buffer. * @function decode @@ -11311,75 +9292,6 @@ export const Authentication = $root.Authentication = (() => { return message; }; - /** - * Decodes a TwoFactorValidateRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Authentication.TwoFactorValidateRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Authentication.TwoFactorValidateRequest} TwoFactorValidateRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TwoFactorValidateRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a TwoFactorValidateRequest message. - * @function verify - * @memberof Authentication.TwoFactorValidateRequest - * @static - * @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) { - if (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"; - if (message.valueType != null && message.hasOwnProperty("valueType")) - switch (message.valueType) { - default: - return "valueType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - break; - } - if (message.value != null && message.hasOwnProperty("value")) - if (!$util.isString(message.value)) - return "value: string expected"; - if (message.channelUid != null && message.hasOwnProperty("channelUid")) - if (!(message.channelUid && typeof message.channelUid.length === "number" || $util.isString(message.channelUid))) - return "channelUid: buffer expected"; - if (message.expireIn != null && message.hasOwnProperty("expireIn")) - switch (message.expireIn) { - default: - return "expireIn: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - break; - } - return null; - }; - /** * Creates a TwoFactorValidateRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -11391,6 +9303,8 @@ export const Authentication = $root.Authentication = (() => { TwoFactorValidateRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.Authentication.TwoFactorValidateRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".Authentication.TwoFactorValidateRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -11519,15 +9433,15 @@ export const Authentication = $root.Authentication = (() => { } object.expireIn = options.enums === String ? "TWO_FA_EXP_IMMEDIATELY" : 0; } - if (message.encryptedLoginToken != null && message.hasOwnProperty("encryptedLoginToken")) + if (message.encryptedLoginToken != null && Object.hasOwnProperty.call(message, "encryptedLoginToken")) object.encryptedLoginToken = options.bytes === String ? $util.base64.encode(message.encryptedLoginToken, 0, message.encryptedLoginToken.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedLoginToken) : message.encryptedLoginToken; - if (message.valueType != null && message.hasOwnProperty("valueType")) + if (message.valueType != null && Object.hasOwnProperty.call(message, "valueType")) object.valueType = options.enums === String ? $root.Authentication.TwoFactorValueType[message.valueType] === undefined ? message.valueType : $root.Authentication.TwoFactorValueType[message.valueType] : message.valueType; - if (message.value != null && message.hasOwnProperty("value")) + if (message.value != null && Object.hasOwnProperty.call(message, "value")) object.value = message.value; - if (message.channelUid != null && message.hasOwnProperty("channelUid")) + if (message.channelUid != null && Object.hasOwnProperty.call(message, "channelUid")) object.channelUid = options.bytes === String ? $util.base64.encode(message.channelUid, 0, message.channelUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.channelUid) : message.channelUid; - if (message.expireIn != null && message.hasOwnProperty("expireIn")) + if (message.expireIn != null && Object.hasOwnProperty.call(message, "expireIn")) object.expireIn = options.enums === String ? $root.Authentication.TwoFactorExpiration[message.expireIn] === undefined ? message.expireIn : $root.Authentication.TwoFactorExpiration[message.expireIn] : message.expireIn; return object; }; @@ -11626,19 +9540,6 @@ export const Authentication = $root.Authentication = (() => { return writer; }; - /** - * Encodes the specified TwoFactorValidateResponse message, length delimited. Does not implicitly {@link Authentication.TwoFactorValidateResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof Authentication.TwoFactorValidateResponse - * @static - * @param {Authentication.ITwoFactorValidateResponse} message TwoFactorValidateResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TwoFactorValidateResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a TwoFactorValidateResponse message from the specified reader or buffer. * @function decode @@ -11675,43 +9576,6 @@ export const Authentication = $root.Authentication = (() => { return message; }; - /** - * Decodes a TwoFactorValidateResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Authentication.TwoFactorValidateResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Authentication.TwoFactorValidateResponse} TwoFactorValidateResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TwoFactorValidateResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a TwoFactorValidateResponse message. - * @function verify - * @memberof Authentication.TwoFactorValidateResponse - * @static - * @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) { - if (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"; - return null; - }; - /** * Creates a TwoFactorValidateResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -11723,6 +9587,8 @@ export const Authentication = $root.Authentication = (() => { TwoFactorValidateResponse.fromObject = function fromObject(object, long) { if (object instanceof $root.Authentication.TwoFactorValidateResponse) return object; + if (!$util.isObject(object)) + throw TypeError(".Authentication.TwoFactorValidateResponse: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -11761,7 +9627,7 @@ export const Authentication = $root.Authentication = (() => { if (options.bytes !== Array) object.encryptedLoginToken = $util.newBuffer(object.encryptedLoginToken); } - if (message.encryptedLoginToken != null && message.hasOwnProperty("encryptedLoginToken")) + if (message.encryptedLoginToken != null && Object.hasOwnProperty.call(message, "encryptedLoginToken")) object.encryptedLoginToken = options.bytes === String ? $util.base64.encode(message.encryptedLoginToken, 0, message.encryptedLoginToken.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedLoginToken) : message.encryptedLoginToken; return object; }; @@ -11893,19 +9759,6 @@ export const Authentication = $root.Authentication = (() => { return writer; }; - /** - * Encodes the specified TwoFactorSendPushRequest message, length delimited. Does not implicitly {@link Authentication.TwoFactorSendPushRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof Authentication.TwoFactorSendPushRequest - * @static - * @param {Authentication.ITwoFactorSendPushRequest} message TwoFactorSendPushRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TwoFactorSendPushRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a TwoFactorSendPushRequest message from the specified reader or buffer. * @function decode @@ -11954,71 +9807,6 @@ export const Authentication = $root.Authentication = (() => { return message; }; - /** - * Decodes a TwoFactorSendPushRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Authentication.TwoFactorSendPushRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Authentication.TwoFactorSendPushRequest} TwoFactorSendPushRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TwoFactorSendPushRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a TwoFactorSendPushRequest message. - * @function verify - * @memberof Authentication.TwoFactorSendPushRequest - * @static - * @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) { - if (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"; - if (message.pushType != null && message.hasOwnProperty("pushType")) - switch (message.pushType) { - default: - return "pushType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - break; - } - if (message.channelUid != null && message.hasOwnProperty("channelUid")) - if (!(message.channelUid && typeof message.channelUid.length === "number" || $util.isString(message.channelUid))) - return "channelUid: buffer expected"; - if (message.expireIn != null && message.hasOwnProperty("expireIn")) - switch (message.expireIn) { - default: - return "expireIn: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - break; - } - return null; - }; - /** * Creates a TwoFactorSendPushRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -12030,6 +9818,8 @@ export const Authentication = $root.Authentication = (() => { TwoFactorSendPushRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.Authentication.TwoFactorSendPushRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".Authentication.TwoFactorSendPushRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -12151,13 +9941,13 @@ export const Authentication = $root.Authentication = (() => { } object.expireIn = options.enums === String ? "TWO_FA_EXP_IMMEDIATELY" : 0; } - if (message.encryptedLoginToken != null && message.hasOwnProperty("encryptedLoginToken")) + if (message.encryptedLoginToken != null && Object.hasOwnProperty.call(message, "encryptedLoginToken")) object.encryptedLoginToken = options.bytes === String ? $util.base64.encode(message.encryptedLoginToken, 0, message.encryptedLoginToken.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedLoginToken) : message.encryptedLoginToken; - if (message.pushType != null && message.hasOwnProperty("pushType")) + if (message.pushType != null && Object.hasOwnProperty.call(message, "pushType")) object.pushType = options.enums === String ? $root.Authentication.TwoFactorPushType[message.pushType] === undefined ? message.pushType : $root.Authentication.TwoFactorPushType[message.pushType] : message.pushType; - if (message.channelUid != null && message.hasOwnProperty("channelUid")) + if (message.channelUid != null && Object.hasOwnProperty.call(message, "channelUid")) object.channelUid = options.bytes === String ? $util.base64.encode(message.channelUid, 0, message.channelUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.channelUid) : message.channelUid; - if (message.expireIn != null && message.hasOwnProperty("expireIn")) + if (message.expireIn != null && Object.hasOwnProperty.call(message, "expireIn")) object.expireIn = options.enums === String ? $root.Authentication.TwoFactorExpiration[message.expireIn] === undefined ? message.expireIn : $root.Authentication.TwoFactorExpiration[message.expireIn] : message.expireIn; return object; }; @@ -12300,19 +10090,6 @@ export const Authentication = $root.Authentication = (() => { return writer; }; - /** - * Encodes the specified License message, length delimited. Does not implicitly {@link Authentication.License.verify|verify} messages. - * @function encodeDelimited - * @memberof Authentication.License - * @static - * @param {Authentication.ILicense} message License message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - License.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a License message from the specified reader or buffer. * @function decode @@ -12365,62 +10142,6 @@ export const Authentication = $root.Authentication = (() => { return message; }; - /** - * Decodes a License message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Authentication.License - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Authentication.License} License - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - License.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a License message. - * @function verify - * @memberof Authentication.License - * @static - * @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) { - if (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"; - 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"; - if (message.licenseStatus != null && message.hasOwnProperty("licenseStatus")) - switch (message.licenseStatus) { - default: - return "licenseStatus: enum value expected"; - case 0: - case 1: - case 2: - case 3: - break; - } - if (message.paid != null && message.hasOwnProperty("paid")) - if (typeof message.paid !== "boolean") - return "paid: boolean expected"; - if (message.message != null && message.hasOwnProperty("message")) - if (!$util.isString(message.message)) - return "message: string expected"; - return null; - }; - /** * Creates a License message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -12432,6 +10153,8 @@ export const Authentication = $root.Authentication = (() => { License.fromObject = function fromObject(object, long) { if (object instanceof $root.Authentication.License) return object; + if (!$util.isObject(object)) + throw TypeError(".Authentication.License: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -12518,25 +10241,25 @@ export const Authentication = $root.Authentication = (() => { object.paid = false; object.message = ""; } - if (message.created != null && message.hasOwnProperty("created")) + if (message.created != null && Object.hasOwnProperty.call(message, "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") 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 (message.expiration != null && Object.hasOwnProperty.call(message, "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") 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.licenseStatus != null && message.hasOwnProperty("licenseStatus")) + if (message.licenseStatus != null && Object.hasOwnProperty.call(message, "licenseStatus")) object.licenseStatus = options.enums === String ? $root.Authentication.LicenseStatus[message.licenseStatus] === undefined ? message.licenseStatus : $root.Authentication.LicenseStatus[message.licenseStatus] : message.licenseStatus; - if (message.paid != null && message.hasOwnProperty("paid")) + if (message.paid != null && Object.hasOwnProperty.call(message, "paid")) object.paid = message.paid; - if (message.message != null && message.hasOwnProperty("message")) + if (message.message != null && Object.hasOwnProperty.call(message, "message")) object.message = message.message; return object; }; @@ -12675,19 +10398,6 @@ export const Authentication = $root.Authentication = (() => { return writer; }; - /** - * Encodes the specified OwnerlessRecord message, length delimited. Does not implicitly {@link Authentication.OwnerlessRecord.verify|verify} messages. - * @function encodeDelimited - * @memberof Authentication.OwnerlessRecord - * @static - * @param {Authentication.IOwnerlessRecord} message OwnerlessRecord message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - OwnerlessRecord.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes an OwnerlessRecord message from the specified reader or buffer. * @function decode @@ -12732,49 +10442,6 @@ export const Authentication = $root.Authentication = (() => { return message; }; - /** - * Decodes an OwnerlessRecord message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Authentication.OwnerlessRecord - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Authentication.OwnerlessRecord} OwnerlessRecord - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - OwnerlessRecord.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an OwnerlessRecord message. - * @function verify - * @memberof Authentication.OwnerlessRecord - * @static - * @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) { - if (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.recordKey != null && message.hasOwnProperty("recordKey")) - if (!(message.recordKey && typeof message.recordKey.length === "number" || $util.isString(message.recordKey))) - return "recordKey: buffer expected"; - if (message.status != null && message.hasOwnProperty("status")) - if (!$util.isInteger(message.status)) - return "status: integer expected"; - return null; - }; - /** * Creates an OwnerlessRecord message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -12786,6 +10453,8 @@ export const Authentication = $root.Authentication = (() => { OwnerlessRecord.fromObject = function fromObject(object, long) { if (object instanceof $root.Authentication.OwnerlessRecord) return object; + if (!$util.isObject(object)) + throw TypeError(".Authentication.OwnerlessRecord: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -12840,11 +10509,11 @@ export const Authentication = $root.Authentication = (() => { } object.status = 0; } - if (message.recordUid != null && message.hasOwnProperty("recordUid")) + if (message.recordUid != null && Object.hasOwnProperty.call(message, "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")) + if (message.recordKey != null && Object.hasOwnProperty.call(message, "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.status != null && message.hasOwnProperty("status")) + if (message.status != null && Object.hasOwnProperty.call(message, "status")) object.status = message.status; return object; }; @@ -12945,19 +10614,6 @@ export const Authentication = $root.Authentication = (() => { return writer; }; - /** - * Encodes the specified OwnerlessRecords message, length delimited. Does not implicitly {@link Authentication.OwnerlessRecords.verify|verify} messages. - * @function encodeDelimited - * @memberof Authentication.OwnerlessRecords - * @static - * @param {Authentication.IOwnerlessRecords} message OwnerlessRecords message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - OwnerlessRecords.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes an OwnerlessRecords message from the specified reader or buffer. * @function decode @@ -12996,49 +10652,6 @@ export const Authentication = $root.Authentication = (() => { return message; }; - /** - * Decodes an OwnerlessRecords message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Authentication.OwnerlessRecords - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Authentication.OwnerlessRecords} OwnerlessRecords - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - OwnerlessRecords.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an OwnerlessRecords message. - * @function verify - * @memberof Authentication.OwnerlessRecords - * @static - * @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) { - if (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); - if (error) - return "ownerlessRecord." + error; - } - } - return null; - }; - /** * Creates an OwnerlessRecords message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -13050,6 +10663,8 @@ export const Authentication = $root.Authentication = (() => { OwnerlessRecords.fromObject = function fromObject(object, long) { if (object instanceof $root.Authentication.OwnerlessRecords) return object; + if (!$util.isObject(object)) + throw TypeError(".Authentication.OwnerlessRecords: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -13060,7 +10675,7 @@ export const Authentication = $root.Authentication = (() => { throw TypeError(".Authentication.OwnerlessRecords.ownerlessRecord: array expected"); message.ownerlessRecord = []; for (let i = 0; i < object.ownerlessRecord.length; ++i) { - if (typeof object.ownerlessRecord[i] !== "object") + if (!$util.isObject(object.ownerlessRecord[i])) throw TypeError(".Authentication.OwnerlessRecords.ownerlessRecord: object expected"); message.ownerlessRecord[i] = $root.Authentication.OwnerlessRecord.fromObject(object.ownerlessRecord[i], long + 1); } @@ -13277,19 +10892,6 @@ export const Authentication = $root.Authentication = (() => { return writer; }; - /** - * Encodes the specified UserAuthRequest message, length delimited. Does not implicitly {@link Authentication.UserAuthRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof Authentication.UserAuthRequest - * @static - * @param {Authentication.IUserAuthRequest} message UserAuthRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - UserAuthRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a UserAuthRequest message from the specified reader or buffer. * @function decode @@ -13358,77 +10960,6 @@ export const Authentication = $root.Authentication = (() => { return message; }; - /** - * Decodes a UserAuthRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Authentication.UserAuthRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Authentication.UserAuthRequest} UserAuthRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - UserAuthRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a UserAuthRequest message. - * @function verify - * @memberof Authentication.UserAuthRequest - * @static - * @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) { - if (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.salt != null && message.hasOwnProperty("salt")) - if (!(message.salt && typeof message.salt.length === "number" || $util.isString(message.salt))) - return "salt: buffer expected"; - if (message.iterations != null && message.hasOwnProperty("iterations")) - if (!$util.isInteger(message.iterations)) - return "iterations: integer expected"; - if (message.encryptedClientKey != null && message.hasOwnProperty("encryptedClientKey")) - if (!(message.encryptedClientKey && typeof message.encryptedClientKey.length === "number" || $util.isString(message.encryptedClientKey))) - return "encryptedClientKey: buffer expected"; - if (message.authHash != null && message.hasOwnProperty("authHash")) - if (!(message.authHash && typeof message.authHash.length === "number" || $util.isString(message.authHash))) - return "authHash: buffer expected"; - if (message.encryptedDataKey != null && message.hasOwnProperty("encryptedDataKey")) - if (!(message.encryptedDataKey && typeof message.encryptedDataKey.length === "number" || $util.isString(message.encryptedDataKey))) - return "encryptedDataKey: buffer expected"; - if (message.loginType != null && message.hasOwnProperty("loginType")) - switch (message.loginType) { - default: - return "loginType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - break; - } - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.algorithm != null && message.hasOwnProperty("algorithm")) - if (!$util.isInteger(message.algorithm)) - return "algorithm: integer expected"; - return null; - }; - /** * Creates a UserAuthRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -13440,6 +10971,8 @@ export const Authentication = $root.Authentication = (() => { UserAuthRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.Authentication.UserAuthRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".Authentication.UserAuthRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -13573,23 +11106,23 @@ export const Authentication = $root.Authentication = (() => { object.name = ""; object.algorithm = 0; } - if (message.uid != null && message.hasOwnProperty("uid")) + if (message.uid != null && Object.hasOwnProperty.call(message, "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.salt != null && message.hasOwnProperty("salt")) + if (message.salt != null && Object.hasOwnProperty.call(message, "salt")) object.salt = options.bytes === String ? $util.base64.encode(message.salt, 0, message.salt.length) : options.bytes === Array ? Array.prototype.slice.call(message.salt) : message.salt; - if (message.iterations != null && message.hasOwnProperty("iterations")) + if (message.iterations != null && Object.hasOwnProperty.call(message, "iterations")) object.iterations = message.iterations; - if (message.encryptedClientKey != null && message.hasOwnProperty("encryptedClientKey")) + if (message.encryptedClientKey != null && Object.hasOwnProperty.call(message, "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.authHash != null && message.hasOwnProperty("authHash")) + if (message.authHash != null && Object.hasOwnProperty.call(message, "authHash")) object.authHash = options.bytes === String ? $util.base64.encode(message.authHash, 0, message.authHash.length) : options.bytes === Array ? Array.prototype.slice.call(message.authHash) : message.authHash; - if (message.encryptedDataKey != null && message.hasOwnProperty("encryptedDataKey")) + if (message.encryptedDataKey != null && Object.hasOwnProperty.call(message, "encryptedDataKey")) object.encryptedDataKey = options.bytes === String ? $util.base64.encode(message.encryptedDataKey, 0, message.encryptedDataKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedDataKey) : message.encryptedDataKey; - if (message.loginType != null && message.hasOwnProperty("loginType")) + if (message.loginType != null && Object.hasOwnProperty.call(message, "loginType")) object.loginType = options.enums === String ? $root.Authentication.LoginType[message.loginType] === undefined ? message.loginType : $root.Authentication.LoginType[message.loginType] : message.loginType; - if (message.name != null && message.hasOwnProperty("name")) + if (message.name != null && Object.hasOwnProperty.call(message, "name")) object.name = message.name; - if (message.algorithm != null && message.hasOwnProperty("algorithm")) + if (message.algorithm != null && Object.hasOwnProperty.call(message, "algorithm")) object.algorithm = message.algorithm; return object; }; @@ -13690,19 +11223,6 @@ export const Authentication = $root.Authentication = (() => { return writer; }; - /** - * Encodes the specified UidRequest message, length delimited. Does not implicitly {@link Authentication.UidRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof Authentication.UidRequest - * @static - * @param {Authentication.IUidRequest} message UidRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - UidRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes an UidRequest message from the specified reader or buffer. * @function decode @@ -13741,47 +11261,6 @@ export const Authentication = $root.Authentication = (() => { return message; }; - /** - * Decodes an UidRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Authentication.UidRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Authentication.UidRequest} UidRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - UidRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an UidRequest message. - * @function verify - * @memberof Authentication.UidRequest - * @static - * @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) { - if (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"; - for (let i = 0; i < message.uid.length; ++i) - if (!(message.uid[i] && typeof message.uid[i].length === "number" || $util.isString(message.uid[i]))) - return "uid: buffer[] expected"; - } - return null; - }; - /** * Creates an UidRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -13793,6 +11272,8 @@ export const Authentication = $root.Authentication = (() => { UidRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.Authentication.UidRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".Authentication.UidRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -13998,19 +11479,6 @@ export const Authentication = $root.Authentication = (() => { return writer; }; - /** - * Encodes the specified DeviceUpdateRequest message, length delimited. Does not implicitly {@link Authentication.DeviceUpdateRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof Authentication.DeviceUpdateRequest - * @static - * @param {Authentication.IDeviceUpdateRequest} message DeviceUpdateRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - DeviceUpdateRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a DeviceUpdateRequest message from the specified reader or buffer. * @function decode @@ -14071,75 +11539,6 @@ export const Authentication = $root.Authentication = (() => { return message; }; - /** - * Decodes a DeviceUpdateRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Authentication.DeviceUpdateRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Authentication.DeviceUpdateRequest} DeviceUpdateRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - DeviceUpdateRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a DeviceUpdateRequest message. - * @function verify - * @memberof Authentication.DeviceUpdateRequest - * @static - * @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) { - if (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"; - if (message.clientVersion != null && message.hasOwnProperty("clientVersion")) - if (!$util.isString(message.clientVersion)) - return "clientVersion: string expected"; - if (message.deviceName != null && message.hasOwnProperty("deviceName")) - if (!$util.isString(message.deviceName)) - return "deviceName: string expected"; - if (message.devicePublicKey != null && message.hasOwnProperty("devicePublicKey")) - if (!(message.devicePublicKey && typeof message.devicePublicKey.length === "number" || $util.isString(message.devicePublicKey))) - return "devicePublicKey: buffer expected"; - if (message.deviceStatus != null && message.hasOwnProperty("deviceStatus")) - switch (message.deviceStatus) { - default: - return "deviceStatus: enum value expected"; - case 0: - case 1: - case 2: - case 3: - break; - } - if (message.devicePlatform != null && message.hasOwnProperty("devicePlatform")) - if (!$util.isString(message.devicePlatform)) - return "devicePlatform: string expected"; - if (message.clientFormFactor != null && message.hasOwnProperty("clientFormFactor")) - switch (message.clientFormFactor) { - default: - return "clientFormFactor: enum value expected"; - case 0: - case 1: - case 2: - case 3: - break; - } - return null; - }; - /** * Creates a DeviceUpdateRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -14151,6 +11550,8 @@ export const Authentication = $root.Authentication = (() => { DeviceUpdateRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.Authentication.DeviceUpdateRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".Authentication.DeviceUpdateRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -14261,19 +11662,19 @@ export const Authentication = $root.Authentication = (() => { object.devicePlatform = ""; object.clientFormFactor = options.enums === String ? "FF_EMPTY" : 0; } - if (message.encryptedDeviceToken != null && message.hasOwnProperty("encryptedDeviceToken")) + if (message.encryptedDeviceToken != null && Object.hasOwnProperty.call(message, "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.clientVersion != null && message.hasOwnProperty("clientVersion")) + if (message.clientVersion != null && Object.hasOwnProperty.call(message, "clientVersion")) object.clientVersion = message.clientVersion; - if (message.deviceName != null && message.hasOwnProperty("deviceName")) + if (message.deviceName != null && Object.hasOwnProperty.call(message, "deviceName")) object.deviceName = message.deviceName; - if (message.devicePublicKey != null && message.hasOwnProperty("devicePublicKey")) + if (message.devicePublicKey != null && Object.hasOwnProperty.call(message, "devicePublicKey")) object.devicePublicKey = options.bytes === String ? $util.base64.encode(message.devicePublicKey, 0, message.devicePublicKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.devicePublicKey) : message.devicePublicKey; - if (message.deviceStatus != null && message.hasOwnProperty("deviceStatus")) + if (message.deviceStatus != null && Object.hasOwnProperty.call(message, "deviceStatus")) object.deviceStatus = options.enums === String ? $root.Authentication.DeviceStatus[message.deviceStatus] === undefined ? message.deviceStatus : $root.Authentication.DeviceStatus[message.deviceStatus] : message.deviceStatus; - if (message.devicePlatform != null && message.hasOwnProperty("devicePlatform")) + if (message.devicePlatform != null && Object.hasOwnProperty.call(message, "devicePlatform")) object.devicePlatform = message.devicePlatform; - if (message.clientFormFactor != null && message.hasOwnProperty("clientFormFactor")) + if (message.clientFormFactor != null && Object.hasOwnProperty.call(message, "clientFormFactor")) object.clientFormFactor = options.enums === String ? $root.Authentication.ClientFormFactor[message.clientFormFactor] === undefined ? message.clientFormFactor : $root.Authentication.ClientFormFactor[message.clientFormFactor] : message.clientFormFactor; return object; }; @@ -14438,19 +11839,6 @@ export const Authentication = $root.Authentication = (() => { return writer; }; - /** - * Encodes the specified DeviceUpdateResponse message, length delimited. Does not implicitly {@link Authentication.DeviceUpdateResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof Authentication.DeviceUpdateResponse - * @static - * @param {Authentication.IDeviceUpdateResponse} message DeviceUpdateResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - DeviceUpdateResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a DeviceUpdateResponse message from the specified reader or buffer. * @function decode @@ -14511,75 +11899,6 @@ export const Authentication = $root.Authentication = (() => { return message; }; - /** - * Decodes a DeviceUpdateResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Authentication.DeviceUpdateResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Authentication.DeviceUpdateResponse} DeviceUpdateResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - DeviceUpdateResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a DeviceUpdateResponse message. - * @function verify - * @memberof Authentication.DeviceUpdateResponse - * @static - * @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) { - if (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"; - if (message.clientVersion != null && message.hasOwnProperty("clientVersion")) - if (!$util.isString(message.clientVersion)) - return "clientVersion: string expected"; - if (message.deviceName != null && message.hasOwnProperty("deviceName")) - if (!$util.isString(message.deviceName)) - return "deviceName: string expected"; - if (message.devicePublicKey != null && message.hasOwnProperty("devicePublicKey")) - if (!(message.devicePublicKey && typeof message.devicePublicKey.length === "number" || $util.isString(message.devicePublicKey))) - return "devicePublicKey: buffer expected"; - if (message.deviceStatus != null && message.hasOwnProperty("deviceStatus")) - switch (message.deviceStatus) { - default: - return "deviceStatus: enum value expected"; - case 0: - case 1: - case 2: - case 3: - break; - } - if (message.devicePlatform != null && message.hasOwnProperty("devicePlatform")) - if (!$util.isString(message.devicePlatform)) - return "devicePlatform: string expected"; - if (message.clientFormFactor != null && message.hasOwnProperty("clientFormFactor")) - switch (message.clientFormFactor) { - default: - return "clientFormFactor: enum value expected"; - case 0: - case 1: - case 2: - case 3: - break; - } - return null; - }; - /** * Creates a DeviceUpdateResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -14591,6 +11910,8 @@ export const Authentication = $root.Authentication = (() => { DeviceUpdateResponse.fromObject = function fromObject(object, long) { if (object instanceof $root.Authentication.DeviceUpdateResponse) return object; + if (!$util.isObject(object)) + throw TypeError(".Authentication.DeviceUpdateResponse: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -14701,19 +12022,19 @@ export const Authentication = $root.Authentication = (() => { object.devicePlatform = ""; object.clientFormFactor = options.enums === String ? "FF_EMPTY" : 0; } - if (message.encryptedDeviceToken != null && message.hasOwnProperty("encryptedDeviceToken")) + if (message.encryptedDeviceToken != null && Object.hasOwnProperty.call(message, "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.clientVersion != null && message.hasOwnProperty("clientVersion")) + if (message.clientVersion != null && Object.hasOwnProperty.call(message, "clientVersion")) object.clientVersion = message.clientVersion; - if (message.deviceName != null && message.hasOwnProperty("deviceName")) + if (message.deviceName != null && Object.hasOwnProperty.call(message, "deviceName")) object.deviceName = message.deviceName; - if (message.devicePublicKey != null && message.hasOwnProperty("devicePublicKey")) + if (message.devicePublicKey != null && Object.hasOwnProperty.call(message, "devicePublicKey")) object.devicePublicKey = options.bytes === String ? $util.base64.encode(message.devicePublicKey, 0, message.devicePublicKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.devicePublicKey) : message.devicePublicKey; - if (message.deviceStatus != null && message.hasOwnProperty("deviceStatus")) + if (message.deviceStatus != null && Object.hasOwnProperty.call(message, "deviceStatus")) object.deviceStatus = options.enums === String ? $root.Authentication.DeviceStatus[message.deviceStatus] === undefined ? message.deviceStatus : $root.Authentication.DeviceStatus[message.deviceStatus] : message.deviceStatus; - if (message.devicePlatform != null && message.hasOwnProperty("devicePlatform")) + if (message.devicePlatform != null && Object.hasOwnProperty.call(message, "devicePlatform")) object.devicePlatform = message.devicePlatform; - if (message.clientFormFactor != null && message.hasOwnProperty("clientFormFactor")) + if (message.clientFormFactor != null && Object.hasOwnProperty.call(message, "clientFormFactor")) object.clientFormFactor = options.enums === String ? $root.Authentication.ClientFormFactor[message.clientFormFactor] === undefined ? message.clientFormFactor : $root.Authentication.ClientFormFactor[message.clientFormFactor] : message.clientFormFactor; return object; }; @@ -14867,19 +12188,6 @@ export const Authentication = $root.Authentication = (() => { return writer; }; - /** - * Encodes the specified RegisterDeviceInRegionRequest message, length delimited. Does not implicitly {@link Authentication.RegisterDeviceInRegionRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof Authentication.RegisterDeviceInRegionRequest - * @static - * @param {Authentication.IRegisterDeviceInRegionRequest} message RegisterDeviceInRegionRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RegisterDeviceInRegionRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a RegisterDeviceInRegionRequest message from the specified reader or buffer. * @function decode @@ -14936,65 +12244,6 @@ export const Authentication = $root.Authentication = (() => { return message; }; - /** - * Decodes a RegisterDeviceInRegionRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Authentication.RegisterDeviceInRegionRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Authentication.RegisterDeviceInRegionRequest} RegisterDeviceInRegionRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RegisterDeviceInRegionRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a RegisterDeviceInRegionRequest message. - * @function verify - * @memberof Authentication.RegisterDeviceInRegionRequest - * @static - * @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) { - if (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"; - if (message.clientVersion != null && message.hasOwnProperty("clientVersion")) - if (!$util.isString(message.clientVersion)) - return "clientVersion: string expected"; - if (message.deviceName != null && message.hasOwnProperty("deviceName")) - if (!$util.isString(message.deviceName)) - return "deviceName: string expected"; - if (message.devicePublicKey != null && message.hasOwnProperty("devicePublicKey")) - if (!(message.devicePublicKey && typeof message.devicePublicKey.length === "number" || $util.isString(message.devicePublicKey))) - return "devicePublicKey: buffer expected"; - if (message.devicePlatform != null && message.hasOwnProperty("devicePlatform")) - if (!$util.isString(message.devicePlatform)) - return "devicePlatform: string expected"; - if (message.clientFormFactor != null && message.hasOwnProperty("clientFormFactor")) - switch (message.clientFormFactor) { - default: - return "clientFormFactor: enum value expected"; - case 0: - case 1: - case 2: - case 3: - break; - } - return null; - }; - /** * Creates a RegisterDeviceInRegionRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -15006,6 +12255,8 @@ export const Authentication = $root.Authentication = (() => { RegisterDeviceInRegionRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.Authentication.RegisterDeviceInRegionRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".Authentication.RegisterDeviceInRegionRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -15091,17 +12342,17 @@ export const Authentication = $root.Authentication = (() => { object.devicePlatform = ""; object.clientFormFactor = options.enums === String ? "FF_EMPTY" : 0; } - if (message.encryptedDeviceToken != null && message.hasOwnProperty("encryptedDeviceToken")) + if (message.encryptedDeviceToken != null && Object.hasOwnProperty.call(message, "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.clientVersion != null && message.hasOwnProperty("clientVersion")) + if (message.clientVersion != null && Object.hasOwnProperty.call(message, "clientVersion")) object.clientVersion = message.clientVersion; - if (message.deviceName != null && message.hasOwnProperty("deviceName")) + if (message.deviceName != null && Object.hasOwnProperty.call(message, "deviceName")) object.deviceName = message.deviceName; - if (message.devicePublicKey != null && message.hasOwnProperty("devicePublicKey")) + if (message.devicePublicKey != null && Object.hasOwnProperty.call(message, "devicePublicKey")) object.devicePublicKey = options.bytes === String ? $util.base64.encode(message.devicePublicKey, 0, message.devicePublicKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.devicePublicKey) : message.devicePublicKey; - if (message.devicePlatform != null && message.hasOwnProperty("devicePlatform")) + if (message.devicePlatform != null && Object.hasOwnProperty.call(message, "devicePlatform")) object.devicePlatform = message.devicePlatform; - if (message.clientFormFactor != null && message.hasOwnProperty("clientFormFactor")) + if (message.clientFormFactor != null && Object.hasOwnProperty.call(message, "clientFormFactor")) object.clientFormFactor = options.enums === String ? $root.Authentication.ClientFormFactor[message.clientFormFactor] === undefined ? message.clientFormFactor : $root.Authentication.ClientFormFactor[message.clientFormFactor] : message.clientFormFactor; return object; }; @@ -15299,19 +12550,6 @@ export const Authentication = $root.Authentication = (() => { return writer; }; - /** - * Encodes the specified RegistrationRequest message, length delimited. Does not implicitly {@link Authentication.RegistrationRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof Authentication.RegistrationRequest - * @static - * @param {Authentication.IRegistrationRequest} message RegistrationRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RegistrationRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a RegistrationRequest message from the specified reader or buffer. * @function decode @@ -15384,74 +12622,6 @@ export const Authentication = $root.Authentication = (() => { return message; }; - /** - * Decodes a RegistrationRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Authentication.RegistrationRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Authentication.RegistrationRequest} RegistrationRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RegistrationRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a RegistrationRequest message. - * @function verify - * @memberof Authentication.RegistrationRequest - * @static - * @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) { - if (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); - if (error) - return "authRequest." + error; - } - if (message.userAuthRequest != null && message.hasOwnProperty("userAuthRequest")) { - let error = $root.Authentication.UserAuthRequest.verify(message.userAuthRequest, long + 1); - if (error) - return "userAuthRequest." + error; - } - if (message.encryptedClientKey != null && message.hasOwnProperty("encryptedClientKey")) - if (!(message.encryptedClientKey && typeof message.encryptedClientKey.length === "number" || $util.isString(message.encryptedClientKey))) - return "encryptedClientKey: buffer expected"; - if (message.encryptedPrivateKey != null && message.hasOwnProperty("encryptedPrivateKey")) - if (!(message.encryptedPrivateKey && typeof message.encryptedPrivateKey.length === "number" || $util.isString(message.encryptedPrivateKey))) - return "encryptedPrivateKey: buffer expected"; - if (message.publicKey != null && message.hasOwnProperty("publicKey")) - if (!(message.publicKey && typeof message.publicKey.length === "number" || $util.isString(message.publicKey))) - return "publicKey: buffer expected"; - if (message.verificationCode != null && message.hasOwnProperty("verificationCode")) - if (!$util.isString(message.verificationCode)) - return "verificationCode: string expected"; - if (message.deprecatedAuthHashHash != null && message.hasOwnProperty("deprecatedAuthHashHash")) - if (!(message.deprecatedAuthHashHash && typeof message.deprecatedAuthHashHash.length === "number" || $util.isString(message.deprecatedAuthHashHash))) - return "deprecatedAuthHashHash: buffer expected"; - if (message.deprecatedEncryptedClientKey != null && message.hasOwnProperty("deprecatedEncryptedClientKey")) - if (!(message.deprecatedEncryptedClientKey && typeof message.deprecatedEncryptedClientKey.length === "number" || $util.isString(message.deprecatedEncryptedClientKey))) - return "deprecatedEncryptedClientKey: buffer expected"; - if (message.deprecatedEncryptedPrivateKey != null && message.hasOwnProperty("deprecatedEncryptedPrivateKey")) - if (!(message.deprecatedEncryptedPrivateKey && typeof message.deprecatedEncryptedPrivateKey.length === "number" || $util.isString(message.deprecatedEncryptedPrivateKey))) - return "deprecatedEncryptedPrivateKey: buffer expected"; - if (message.deprecatedEncryptionParams != null && message.hasOwnProperty("deprecatedEncryptionParams")) - if (!(message.deprecatedEncryptionParams && typeof message.deprecatedEncryptionParams.length === "number" || $util.isString(message.deprecatedEncryptionParams))) - return "deprecatedEncryptionParams: buffer expected"; - return null; - }; - /** * Creates a RegistrationRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -15463,18 +12633,20 @@ export const Authentication = $root.Authentication = (() => { RegistrationRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.Authentication.RegistrationRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".Authentication.RegistrationRequest: object expected"); 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") + if (!$util.isObject(object.authRequest)) throw TypeError(".Authentication.RegistrationRequest.authRequest: object expected"); message.authRequest = $root.Authentication.AuthRequest.fromObject(object.authRequest, long + 1); } if (object.userAuthRequest != null) { - if (typeof object.userAuthRequest !== "object") + if (!$util.isObject(object.userAuthRequest)) throw TypeError(".Authentication.RegistrationRequest.userAuthRequest: object expected"); message.userAuthRequest = $root.Authentication.UserAuthRequest.fromObject(object.userAuthRequest, long + 1); } @@ -15589,25 +12761,25 @@ export const Authentication = $root.Authentication = (() => { object.deprecatedEncryptionParams = $util.newBuffer(object.deprecatedEncryptionParams); } } - if (message.authRequest != null && message.hasOwnProperty("authRequest")) + if (message.authRequest != null && Object.hasOwnProperty.call(message, "authRequest")) object.authRequest = $root.Authentication.AuthRequest.toObject(message.authRequest, options, q + 1); - if (message.userAuthRequest != null && message.hasOwnProperty("userAuthRequest")) + if (message.userAuthRequest != null && Object.hasOwnProperty.call(message, "userAuthRequest")) object.userAuthRequest = $root.Authentication.UserAuthRequest.toObject(message.userAuthRequest, options, q + 1); - if (message.encryptedClientKey != null && message.hasOwnProperty("encryptedClientKey")) + if (message.encryptedClientKey != null && Object.hasOwnProperty.call(message, "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")) + if (message.encryptedPrivateKey != null && Object.hasOwnProperty.call(message, "encryptedPrivateKey")) object.encryptedPrivateKey = options.bytes === String ? $util.base64.encode(message.encryptedPrivateKey, 0, message.encryptedPrivateKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedPrivateKey) : message.encryptedPrivateKey; - if (message.publicKey != null && message.hasOwnProperty("publicKey")) + if (message.publicKey != null && Object.hasOwnProperty.call(message, "publicKey")) object.publicKey = options.bytes === String ? $util.base64.encode(message.publicKey, 0, message.publicKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.publicKey) : message.publicKey; - if (message.verificationCode != null && message.hasOwnProperty("verificationCode")) + if (message.verificationCode != null && Object.hasOwnProperty.call(message, "verificationCode")) object.verificationCode = message.verificationCode; - if (message.deprecatedAuthHashHash != null && message.hasOwnProperty("deprecatedAuthHashHash")) + if (message.deprecatedAuthHashHash != null && Object.hasOwnProperty.call(message, "deprecatedAuthHashHash")) object.deprecatedAuthHashHash = options.bytes === String ? $util.base64.encode(message.deprecatedAuthHashHash, 0, message.deprecatedAuthHashHash.length) : options.bytes === Array ? Array.prototype.slice.call(message.deprecatedAuthHashHash) : message.deprecatedAuthHashHash; - if (message.deprecatedEncryptedClientKey != null && message.hasOwnProperty("deprecatedEncryptedClientKey")) + if (message.deprecatedEncryptedClientKey != null && Object.hasOwnProperty.call(message, "deprecatedEncryptedClientKey")) object.deprecatedEncryptedClientKey = options.bytes === String ? $util.base64.encode(message.deprecatedEncryptedClientKey, 0, message.deprecatedEncryptedClientKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.deprecatedEncryptedClientKey) : message.deprecatedEncryptedClientKey; - if (message.deprecatedEncryptedPrivateKey != null && message.hasOwnProperty("deprecatedEncryptedPrivateKey")) + if (message.deprecatedEncryptedPrivateKey != null && Object.hasOwnProperty.call(message, "deprecatedEncryptedPrivateKey")) object.deprecatedEncryptedPrivateKey = options.bytes === String ? $util.base64.encode(message.deprecatedEncryptedPrivateKey, 0, message.deprecatedEncryptedPrivateKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.deprecatedEncryptedPrivateKey) : message.deprecatedEncryptedPrivateKey; - if (message.deprecatedEncryptionParams != null && message.hasOwnProperty("deprecatedEncryptionParams")) + if (message.deprecatedEncryptionParams != null && Object.hasOwnProperty.call(message, "deprecatedEncryptionParams")) object.deprecatedEncryptionParams = options.bytes === String ? $util.base64.encode(message.deprecatedEncryptionParams, 0, message.deprecatedEncryptionParams.length) : options.bytes === Array ? Array.prototype.slice.call(message.deprecatedEncryptionParams) : message.deprecatedEncryptionParams; return object; }; @@ -15750,19 +12922,6 @@ export const Authentication = $root.Authentication = (() => { return writer; }; - /** - * Encodes the specified ConvertUserToV3Request message, length delimited. Does not implicitly {@link Authentication.ConvertUserToV3Request.verify|verify} messages. - * @function encodeDelimited - * @memberof Authentication.ConvertUserToV3Request - * @static - * @param {Authentication.IConvertUserToV3Request} message ConvertUserToV3Request message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ConvertUserToV3Request.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a ConvertUserToV3Request message from the specified reader or buffer. * @function decode @@ -15815,59 +12974,6 @@ export const Authentication = $root.Authentication = (() => { return message; }; - /** - * Decodes a ConvertUserToV3Request message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Authentication.ConvertUserToV3Request - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Authentication.ConvertUserToV3Request} ConvertUserToV3Request - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ConvertUserToV3Request.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a ConvertUserToV3Request message. - * @function verify - * @memberof Authentication.ConvertUserToV3Request - * @static - * @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) { - if (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); - if (error) - return "authRequest." + error; - } - if (message.userAuthRequest != null && message.hasOwnProperty("userAuthRequest")) { - let error = $root.Authentication.UserAuthRequest.verify(message.userAuthRequest, long + 1); - if (error) - return "userAuthRequest." + error; - } - if (message.encryptedClientKey != null && message.hasOwnProperty("encryptedClientKey")) - if (!(message.encryptedClientKey && typeof message.encryptedClientKey.length === "number" || $util.isString(message.encryptedClientKey))) - return "encryptedClientKey: buffer expected"; - if (message.encryptedPrivateKey != null && message.hasOwnProperty("encryptedPrivateKey")) - if (!(message.encryptedPrivateKey && typeof message.encryptedPrivateKey.length === "number" || $util.isString(message.encryptedPrivateKey))) - return "encryptedPrivateKey: buffer expected"; - if (message.publicKey != null && message.hasOwnProperty("publicKey")) - if (!(message.publicKey && typeof message.publicKey.length === "number" || $util.isString(message.publicKey))) - return "publicKey: buffer expected"; - return null; - }; - /** * Creates a ConvertUserToV3Request message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -15879,18 +12985,20 @@ export const Authentication = $root.Authentication = (() => { ConvertUserToV3Request.fromObject = function fromObject(object, long) { if (object instanceof $root.Authentication.ConvertUserToV3Request) return object; + if (!$util.isObject(object)) + throw TypeError(".Authentication.ConvertUserToV3Request: object expected"); 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") + if (!$util.isObject(object.authRequest)) throw TypeError(".Authentication.ConvertUserToV3Request.authRequest: object expected"); message.authRequest = $root.Authentication.AuthRequest.fromObject(object.authRequest, long + 1); } if (object.userAuthRequest != null) { - if (typeof object.userAuthRequest !== "object") + if (!$util.isObject(object.userAuthRequest)) throw TypeError(".Authentication.ConvertUserToV3Request.userAuthRequest: object expected"); message.userAuthRequest = $root.Authentication.UserAuthRequest.fromObject(object.userAuthRequest, long + 1); } @@ -15954,15 +13062,15 @@ export const Authentication = $root.Authentication = (() => { object.publicKey = $util.newBuffer(object.publicKey); } } - if (message.authRequest != null && message.hasOwnProperty("authRequest")) + if (message.authRequest != null && Object.hasOwnProperty.call(message, "authRequest")) object.authRequest = $root.Authentication.AuthRequest.toObject(message.authRequest, options, q + 1); - if (message.userAuthRequest != null && message.hasOwnProperty("userAuthRequest")) + if (message.userAuthRequest != null && Object.hasOwnProperty.call(message, "userAuthRequest")) object.userAuthRequest = $root.Authentication.UserAuthRequest.toObject(message.userAuthRequest, options, q + 1); - if (message.encryptedClientKey != null && message.hasOwnProperty("encryptedClientKey")) + if (message.encryptedClientKey != null && Object.hasOwnProperty.call(message, "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")) + if (message.encryptedPrivateKey != null && Object.hasOwnProperty.call(message, "encryptedPrivateKey")) object.encryptedPrivateKey = options.bytes === String ? $util.base64.encode(message.encryptedPrivateKey, 0, message.encryptedPrivateKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedPrivateKey) : message.encryptedPrivateKey; - if (message.publicKey != null && message.hasOwnProperty("publicKey")) + if (message.publicKey != null && Object.hasOwnProperty.call(message, "publicKey")) object.publicKey = options.bytes === String ? $util.base64.encode(message.publicKey, 0, message.publicKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.publicKey) : message.publicKey; return object; }; @@ -16061,19 +13169,6 @@ export const Authentication = $root.Authentication = (() => { return writer; }; - /** - * Encodes the specified RevisionResponse message, length delimited. Does not implicitly {@link Authentication.RevisionResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof Authentication.RevisionResponse - * @static - * @param {Authentication.IRevisionResponse} message RevisionResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RevisionResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a RevisionResponse message from the specified reader or buffer. * @function decode @@ -16110,43 +13205,6 @@ export const Authentication = $root.Authentication = (() => { return message; }; - /** - * Decodes a RevisionResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Authentication.RevisionResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Authentication.RevisionResponse} RevisionResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RevisionResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a RevisionResponse message. - * @function verify - * @memberof Authentication.RevisionResponse - * @static - * @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) { - if (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"; - return null; - }; - /** * Creates a RevisionResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -16158,6 +13216,8 @@ export const Authentication = $root.Authentication = (() => { RevisionResponse.fromObject = function fromObject(object, long) { if (object instanceof $root.Authentication.RevisionResponse) return object; + if (!$util.isObject(object)) + throw TypeError(".Authentication.RevisionResponse: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -16198,7 +13258,7 @@ export const Authentication = $root.Authentication = (() => { object.revision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; } else object.revision = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; - if (message.revision != null && message.hasOwnProperty("revision")) + if (message.revision != null && Object.hasOwnProperty.call(message, "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") @@ -16302,19 +13362,6 @@ export const Authentication = $root.Authentication = (() => { return writer; }; - /** - * Encodes the specified ChangeEmailRequest message, length delimited. Does not implicitly {@link Authentication.ChangeEmailRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof Authentication.ChangeEmailRequest - * @static - * @param {Authentication.IChangeEmailRequest} message ChangeEmailRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ChangeEmailRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a ChangeEmailRequest message from the specified reader or buffer. * @function decode @@ -16351,43 +13398,6 @@ export const Authentication = $root.Authentication = (() => { return message; }; - /** - * Decodes a ChangeEmailRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Authentication.ChangeEmailRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Authentication.ChangeEmailRequest} ChangeEmailRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ChangeEmailRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a ChangeEmailRequest message. - * @function verify - * @memberof Authentication.ChangeEmailRequest - * @static - * @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) { - if (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"; - return null; - }; - /** * Creates a ChangeEmailRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -16399,6 +13409,8 @@ export const Authentication = $root.Authentication = (() => { ChangeEmailRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.Authentication.ChangeEmailRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".Authentication.ChangeEmailRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -16428,7 +13440,7 @@ export const Authentication = $root.Authentication = (() => { let object = {}; if (options.defaults) object.newEmail = ""; - if (message.newEmail != null && message.hasOwnProperty("newEmail")) + if (message.newEmail != null && Object.hasOwnProperty.call(message, "newEmail")) object.newEmail = message.newEmail; return object; }; @@ -16527,19 +13539,6 @@ export const Authentication = $root.Authentication = (() => { return writer; }; - /** - * Encodes the specified ChangeEmailResponse message, length delimited. Does not implicitly {@link Authentication.ChangeEmailResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof Authentication.ChangeEmailResponse - * @static - * @param {Authentication.IChangeEmailResponse} message ChangeEmailResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ChangeEmailResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a ChangeEmailResponse message from the specified reader or buffer. * @function decode @@ -16576,43 +13575,6 @@ export const Authentication = $root.Authentication = (() => { return message; }; - /** - * Decodes a ChangeEmailResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Authentication.ChangeEmailResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Authentication.ChangeEmailResponse} ChangeEmailResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ChangeEmailResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a ChangeEmailResponse message. - * @function verify - * @memberof Authentication.ChangeEmailResponse - * @static - * @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) { - if (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"; - return null; - }; - /** * Creates a ChangeEmailResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -16624,6 +13586,8 @@ export const Authentication = $root.Authentication = (() => { ChangeEmailResponse.fromObject = function fromObject(object, long) { if (object instanceof $root.Authentication.ChangeEmailResponse) return object; + if (!$util.isObject(object)) + throw TypeError(".Authentication.ChangeEmailResponse: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -16662,7 +13626,7 @@ export const Authentication = $root.Authentication = (() => { if (options.bytes !== Array) object.encryptedChangeEmailToken = $util.newBuffer(object.encryptedChangeEmailToken); } - if (message.encryptedChangeEmailToken != null && message.hasOwnProperty("encryptedChangeEmailToken")) + if (message.encryptedChangeEmailToken != null && Object.hasOwnProperty.call(message, "encryptedChangeEmailToken")) object.encryptedChangeEmailToken = options.bytes === String ? $util.base64.encode(message.encryptedChangeEmailToken, 0, message.encryptedChangeEmailToken.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedChangeEmailToken) : message.encryptedChangeEmailToken; return object; }; @@ -16761,19 +13725,6 @@ export const Authentication = $root.Authentication = (() => { return writer; }; - /** - * Encodes the specified EmailVerificationLinkResponse message, length delimited. Does not implicitly {@link Authentication.EmailVerificationLinkResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof Authentication.EmailVerificationLinkResponse - * @static - * @param {Authentication.IEmailVerificationLinkResponse} message EmailVerificationLinkResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - EmailVerificationLinkResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes an EmailVerificationLinkResponse message from the specified reader or buffer. * @function decode @@ -16810,43 +13761,6 @@ export const Authentication = $root.Authentication = (() => { return message; }; - /** - * Decodes an EmailVerificationLinkResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Authentication.EmailVerificationLinkResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Authentication.EmailVerificationLinkResponse} EmailVerificationLinkResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - EmailVerificationLinkResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an EmailVerificationLinkResponse message. - * @function verify - * @memberof Authentication.EmailVerificationLinkResponse - * @static - * @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) { - if (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"; - return null; - }; - /** * Creates an EmailVerificationLinkResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -16858,6 +13772,8 @@ export const Authentication = $root.Authentication = (() => { EmailVerificationLinkResponse.fromObject = function fromObject(object, long) { if (object instanceof $root.Authentication.EmailVerificationLinkResponse) return object; + if (!$util.isObject(object)) + throw TypeError(".Authentication.EmailVerificationLinkResponse: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -16887,7 +13803,7 @@ export const Authentication = $root.Authentication = (() => { let object = {}; if (options.defaults) object.emailVerified = false; - if (message.emailVerified != null && message.hasOwnProperty("emailVerified")) + if (message.emailVerified != null && Object.hasOwnProperty.call(message, "emailVerified")) object.emailVerified = message.emailVerified; return object; }; @@ -16997,19 +13913,6 @@ export const Authentication = $root.Authentication = (() => { return writer; }; - /** - * Encodes the specified SecurityData message, length delimited. Does not implicitly {@link Authentication.SecurityData.verify|verify} messages. - * @function encodeDelimited - * @memberof Authentication.SecurityData - * @static - * @param {Authentication.ISecurityData} message SecurityData message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SecurityData.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a SecurityData message from the specified reader or buffer. * @function decode @@ -17050,46 +13953,6 @@ export const Authentication = $root.Authentication = (() => { return message; }; - /** - * Decodes a SecurityData message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Authentication.SecurityData - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Authentication.SecurityData} SecurityData - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SecurityData.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a SecurityData message. - * @function verify - * @memberof Authentication.SecurityData - * @static - * @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) { - if (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.data != null && message.hasOwnProperty("data")) - if (!(message.data && typeof message.data.length === "number" || $util.isString(message.data))) - return "data: buffer expected"; - return null; - }; - /** * Creates a SecurityData message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -17101,6 +13964,8 @@ export const Authentication = $root.Authentication = (() => { SecurityData.fromObject = function fromObject(object, long) { if (object instanceof $root.Authentication.SecurityData) return object; + if (!$util.isObject(object)) + throw TypeError(".Authentication.SecurityData: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -17152,9 +14017,9 @@ export const Authentication = $root.Authentication = (() => { object.data = $util.newBuffer(object.data); } } - if (message.uid != null && message.hasOwnProperty("uid")) + if (message.uid != null && Object.hasOwnProperty.call(message, "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")) + if (message.data != null && Object.hasOwnProperty.call(message, "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; return object; }; @@ -17275,19 +14140,6 @@ export const Authentication = $root.Authentication = (() => { return writer; }; - /** - * Encodes the specified SecurityScoreData message, length delimited. Does not implicitly {@link Authentication.SecurityScoreData.verify|verify} messages. - * @function encodeDelimited - * @memberof Authentication.SecurityScoreData - * @static - * @param {Authentication.ISecurityScoreData} message SecurityScoreData message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SecurityScoreData.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a SecurityScoreData message from the specified reader or buffer. * @function decode @@ -17332,49 +14184,6 @@ export const Authentication = $root.Authentication = (() => { return message; }; - /** - * Decodes a SecurityScoreData message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Authentication.SecurityScoreData - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Authentication.SecurityScoreData} SecurityScoreData - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SecurityScoreData.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a SecurityScoreData message. - * @function verify - * @memberof Authentication.SecurityScoreData - * @static - * @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) { - if (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.data != null && message.hasOwnProperty("data")) - if (!(message.data && typeof message.data.length === "number" || $util.isString(message.data))) - return "data: buffer expected"; - 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"; - return null; - }; - /** * Creates a SecurityScoreData message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -17386,6 +14195,8 @@ export const Authentication = $root.Authentication = (() => { SecurityScoreData.fromObject = function fromObject(object, long) { if (object instanceof $root.Authentication.SecurityScoreData) return object; + if (!$util.isObject(object)) + throw TypeError(".Authentication.SecurityScoreData: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -17451,11 +14262,11 @@ export const Authentication = $root.Authentication = (() => { } else object.revision = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; } - if (message.uid != null && message.hasOwnProperty("uid")) + if (message.uid != null && Object.hasOwnProperty.call(message, "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")) + if (message.data != null && Object.hasOwnProperty.call(message, "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 (message.revision != null && Object.hasOwnProperty.call(message, "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") @@ -17598,19 +14409,6 @@ export const Authentication = $root.Authentication = (() => { return writer; }; - /** - * Encodes the specified SecurityDataRequest message, length delimited. Does not implicitly {@link Authentication.SecurityDataRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof Authentication.SecurityDataRequest - * @static - * @param {Authentication.ISecurityDataRequest} message SecurityDataRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SecurityDataRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a SecurityDataRequest message from the specified reader or buffer. * @function decode @@ -17665,78 +14463,6 @@ export const Authentication = $root.Authentication = (() => { return message; }; - /** - * Decodes a SecurityDataRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Authentication.SecurityDataRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Authentication.SecurityDataRequest} SecurityDataRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SecurityDataRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a SecurityDataRequest message. - * @function verify - * @memberof Authentication.SecurityDataRequest - * @static - * @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) { - if (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); - if (error) - return "recordSecurityData." + error; - } - } - if (message.masterPasswordSecurityData != null && message.hasOwnProperty("masterPasswordSecurityData")) { - 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); - if (error) - return "masterPasswordSecurityData." + error; - } - } - if (message.encryptionType != null && message.hasOwnProperty("encryptionType")) - switch (message.encryptionType) { - default: - return "encryptionType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - break; - } - if (message.recordSecurityScoreData != null && message.hasOwnProperty("recordSecurityScoreData")) { - 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); - if (error) - return "recordSecurityScoreData." + error; - } - } - return null; - }; - /** * Creates a SecurityDataRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -17748,6 +14474,8 @@ export const Authentication = $root.Authentication = (() => { SecurityDataRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.Authentication.SecurityDataRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".Authentication.SecurityDataRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -17758,7 +14486,7 @@ export const Authentication = $root.Authentication = (() => { throw TypeError(".Authentication.SecurityDataRequest.recordSecurityData: array expected"); message.recordSecurityData = []; for (let i = 0; i < object.recordSecurityData.length; ++i) { - if (typeof object.recordSecurityData[i] !== "object") + if (!$util.isObject(object.recordSecurityData[i])) throw TypeError(".Authentication.SecurityDataRequest.recordSecurityData: object expected"); message.recordSecurityData[i] = $root.Authentication.SecurityData.fromObject(object.recordSecurityData[i], long + 1); } @@ -17768,7 +14496,7 @@ export const Authentication = $root.Authentication = (() => { throw TypeError(".Authentication.SecurityDataRequest.masterPasswordSecurityData: array expected"); message.masterPasswordSecurityData = []; for (let i = 0; i < object.masterPasswordSecurityData.length; ++i) { - if (typeof object.masterPasswordSecurityData[i] !== "object") + if (!$util.isObject(object.masterPasswordSecurityData[i])) throw TypeError(".Authentication.SecurityDataRequest.masterPasswordSecurityData: object expected"); message.masterPasswordSecurityData[i] = $root.Authentication.SecurityData.fromObject(object.masterPasswordSecurityData[i], long + 1); } @@ -17806,7 +14534,7 @@ export const Authentication = $root.Authentication = (() => { throw TypeError(".Authentication.SecurityDataRequest.recordSecurityScoreData: array expected"); message.recordSecurityScoreData = []; for (let i = 0; i < object.recordSecurityScoreData.length; ++i) { - if (typeof object.recordSecurityScoreData[i] !== "object") + if (!$util.isObject(object.recordSecurityScoreData[i])) throw TypeError(".Authentication.SecurityDataRequest.recordSecurityScoreData: object expected"); message.recordSecurityScoreData[i] = $root.Authentication.SecurityScoreData.fromObject(object.recordSecurityScoreData[i], long + 1); } @@ -17848,7 +14576,7 @@ export const Authentication = $root.Authentication = (() => { for (let j = 0; j < message.masterPasswordSecurityData.length; ++j) object.masterPasswordSecurityData[j] = $root.Authentication.SecurityData.toObject(message.masterPasswordSecurityData[j], options, q + 1); } - if (message.encryptionType != null && message.hasOwnProperty("encryptionType")) + if (message.encryptionType != null && Object.hasOwnProperty.call(message, "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 = []; @@ -18029,19 +14757,6 @@ export const Authentication = $root.Authentication = (() => { return writer; }; - /** - * Encodes the specified SecurityReportIncrementalData message, length delimited. Does not implicitly {@link Authentication.SecurityReportIncrementalData.verify|verify} messages. - * @function encodeDelimited - * @memberof Authentication.SecurityReportIncrementalData - * @static - * @param {Authentication.ISecurityReportIncrementalData} message SecurityReportIncrementalData message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SecurityReportIncrementalData.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a SecurityReportIncrementalData message from the specified reader or buffer. * @function decode @@ -18106,80 +14821,6 @@ export const Authentication = $root.Authentication = (() => { return message; }; - /** - * Decodes a SecurityReportIncrementalData message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Authentication.SecurityReportIncrementalData - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Authentication.SecurityReportIncrementalData} SecurityReportIncrementalData - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SecurityReportIncrementalData.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a SecurityReportIncrementalData message. - * @function verify - * @memberof Authentication.SecurityReportIncrementalData - * @static - * @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) { - if (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"; - if (message.currentSecurityData != null && message.hasOwnProperty("currentSecurityData")) - if (!(message.currentSecurityData && typeof message.currentSecurityData.length === "number" || $util.isString(message.currentSecurityData))) - return "currentSecurityData: buffer expected"; - if (message.currentSecurityDataRevision != null && message.hasOwnProperty("currentSecurityDataRevision")) - if (!$util.isInteger(message.currentSecurityDataRevision) && !(message.currentSecurityDataRevision && $util.isInteger(message.currentSecurityDataRevision.low) && $util.isInteger(message.currentSecurityDataRevision.high))) - return "currentSecurityDataRevision: integer|Long expected"; - if (message.oldSecurityData != null && message.hasOwnProperty("oldSecurityData")) - if (!(message.oldSecurityData && typeof message.oldSecurityData.length === "number" || $util.isString(message.oldSecurityData))) - return "oldSecurityData: buffer expected"; - if (message.oldSecurityDataRevision != null && message.hasOwnProperty("oldSecurityDataRevision")) - if (!$util.isInteger(message.oldSecurityDataRevision) && !(message.oldSecurityDataRevision && $util.isInteger(message.oldSecurityDataRevision.low) && $util.isInteger(message.oldSecurityDataRevision.high))) - return "oldSecurityDataRevision: integer|Long expected"; - if (message.currentDataEncryptionType != null && message.hasOwnProperty("currentDataEncryptionType")) - switch (message.currentDataEncryptionType) { - default: - return "currentDataEncryptionType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - break; - } - if (message.oldDataEncryptionType != null && message.hasOwnProperty("oldDataEncryptionType")) - switch (message.oldDataEncryptionType) { - default: - return "oldDataEncryptionType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - break; - } - if (message.recordUid != null && message.hasOwnProperty("recordUid")) - if (!(message.recordUid && typeof message.recordUid.length === "number" || $util.isString(message.recordUid))) - return "recordUid: buffer expected"; - return null; - }; - /** * Creates a SecurityReportIncrementalData message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -18191,6 +14832,8 @@ export const Authentication = $root.Authentication = (() => { SecurityReportIncrementalData.fromObject = function fromObject(object, long) { if (object instanceof $root.Authentication.SecurityReportIncrementalData) return object; + if (!$util.isObject(object)) + throw TypeError(".Authentication.SecurityReportIncrementalData: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -18354,36 +14997,36 @@ export const Authentication = $root.Authentication = (() => { object.recordUid = $util.newBuffer(object.recordUid); } } - if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) + if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, "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") 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")) + if (message.currentSecurityData != null && Object.hasOwnProperty.call(message, "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 (message.currentSecurityDataRevision != null && Object.hasOwnProperty.call(message, "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") 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")) + if (message.oldSecurityData != null && Object.hasOwnProperty.call(message, "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 (message.oldSecurityDataRevision != null && Object.hasOwnProperty.call(message, "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") 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; - if (message.currentDataEncryptionType != null && message.hasOwnProperty("currentDataEncryptionType")) + if (message.currentDataEncryptionType != null && Object.hasOwnProperty.call(message, "currentDataEncryptionType")) object.currentDataEncryptionType = options.enums === String ? $root.Enterprise.EncryptedKeyType[message.currentDataEncryptionType] === undefined ? message.currentDataEncryptionType : $root.Enterprise.EncryptedKeyType[message.currentDataEncryptionType] : message.currentDataEncryptionType; - if (message.oldDataEncryptionType != null && message.hasOwnProperty("oldDataEncryptionType")) + if (message.oldDataEncryptionType != null && Object.hasOwnProperty.call(message, "oldDataEncryptionType")) object.oldDataEncryptionType = options.enums === String ? $root.Enterprise.EncryptedKeyType[message.oldDataEncryptionType] === undefined ? message.oldDataEncryptionType : $root.Enterprise.EncryptedKeyType[message.oldDataEncryptionType] : message.oldDataEncryptionType; - if (message.recordUid != null && message.hasOwnProperty("recordUid")) + if (message.recordUid != null && Object.hasOwnProperty.call(message, "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; return object; }; @@ -18572,19 +15215,6 @@ export const Authentication = $root.Authentication = (() => { return writer; }; - /** - * Encodes the specified SecurityReport message, length delimited. Does not implicitly {@link Authentication.SecurityReport.verify|verify} messages. - * @function encodeDelimited - * @memberof Authentication.SecurityReport - * @static - * @param {Authentication.ISecurityReport} message SecurityReport message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SecurityReport.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a SecurityReport message from the specified reader or buffer. * @function decode @@ -18655,73 +15285,6 @@ export const Authentication = $root.Authentication = (() => { return message; }; - /** - * Decodes a SecurityReport message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Authentication.SecurityReport - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Authentication.SecurityReport} SecurityReport - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SecurityReport.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a SecurityReport message. - * @function verify - * @memberof Authentication.SecurityReport - * @static - * @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) { - if (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"; - if (message.encryptedReportData != null && message.hasOwnProperty("encryptedReportData")) - if (!(message.encryptedReportData && typeof message.encryptedReportData.length === "number" || $util.isString(message.encryptedReportData))) - return "encryptedReportData: buffer expected"; - 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"; - if (message.twoFactor != null && message.hasOwnProperty("twoFactor")) - if (!$util.isString(message.twoFactor)) - return "twoFactor: string expected"; - if (message.lastLogin != null && message.hasOwnProperty("lastLogin")) - if (!$util.isInteger(message.lastLogin) && !(message.lastLogin && $util.isInteger(message.lastLogin.low) && $util.isInteger(message.lastLogin.high))) - return "lastLogin: integer|Long expected"; - if (message.numberOfReusedPassword != null && message.hasOwnProperty("numberOfReusedPassword")) - if (!$util.isInteger(message.numberOfReusedPassword)) - return "numberOfReusedPassword: integer expected"; - 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); - if (error) - return "securityReportIncrementalData." + error; - } - } - if (message.userId != null && message.hasOwnProperty("userId")) - if (!$util.isInteger(message.userId)) - return "userId: integer expected"; - if (message.hasOldEncryption != null && message.hasOwnProperty("hasOldEncryption")) - if (typeof message.hasOldEncryption !== "boolean") - return "hasOldEncryption: boolean expected"; - return null; - }; - /** * Creates a SecurityReport message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -18733,6 +15296,8 @@ export const Authentication = $root.Authentication = (() => { SecurityReport.fromObject = function fromObject(object, long) { if (object instanceof $root.Authentication.SecurityReport) return object; + if (!$util.isObject(object)) + throw TypeError(".Authentication.SecurityReport: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -18779,7 +15344,7 @@ export const Authentication = $root.Authentication = (() => { throw TypeError(".Authentication.SecurityReport.securityReportIncrementalData: array expected"); message.securityReportIncrementalData = []; for (let i = 0; i < object.securityReportIncrementalData.length; ++i) { - if (typeof object.securityReportIncrementalData[i] !== "object") + if (!$util.isObject(object.securityReportIncrementalData[i])) throw TypeError(".Authentication.SecurityReport.securityReportIncrementalData: object expected"); message.securityReportIncrementalData[i] = $root.Authentication.SecurityReportIncrementalData.fromObject(object.securityReportIncrementalData[i], long + 1); } @@ -18838,41 +15403,41 @@ export const Authentication = $root.Authentication = (() => { object.userId = 0; object.hasOldEncryption = false; } - if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) + if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, "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") 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")) + if (message.encryptedReportData != null && Object.hasOwnProperty.call(message, "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 (message.revision != null && Object.hasOwnProperty.call(message, "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") 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")) + if (message.twoFactor != null && Object.hasOwnProperty.call(message, "twoFactor")) object.twoFactor = message.twoFactor; - if (message.lastLogin != null && message.hasOwnProperty("lastLogin")) + if (message.lastLogin != null && Object.hasOwnProperty.call(message, "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") 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; - if (message.numberOfReusedPassword != null && message.hasOwnProperty("numberOfReusedPassword")) + if (message.numberOfReusedPassword != null && Object.hasOwnProperty.call(message, "numberOfReusedPassword")) object.numberOfReusedPassword = message.numberOfReusedPassword; 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); } - if (message.userId != null && message.hasOwnProperty("userId")) + if (message.userId != null && Object.hasOwnProperty.call(message, "userId")) object.userId = message.userId; - if (message.hasOldEncryption != null && message.hasOwnProperty("hasOldEncryption")) + if (message.hasOldEncryption != null && Object.hasOwnProperty.call(message, "hasOldEncryption")) object.hasOldEncryption = message.hasOldEncryption; return object; }; @@ -18984,19 +15549,6 @@ export const Authentication = $root.Authentication = (() => { return writer; }; - /** - * Encodes the specified SecurityReportSaveRequest message, length delimited. Does not implicitly {@link Authentication.SecurityReportSaveRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof Authentication.SecurityReportSaveRequest - * @static - * @param {Authentication.ISecurityReportSaveRequest} message SecurityReportSaveRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SecurityReportSaveRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a SecurityReportSaveRequest message from the specified reader or buffer. * @function decode @@ -19039,52 +15591,6 @@ export const Authentication = $root.Authentication = (() => { return message; }; - /** - * Decodes a SecurityReportSaveRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Authentication.SecurityReportSaveRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Authentication.SecurityReportSaveRequest} SecurityReportSaveRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SecurityReportSaveRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a SecurityReportSaveRequest message. - * @function verify - * @memberof Authentication.SecurityReportSaveRequest - * @static - * @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) { - if (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); - if (error) - return "securityReport." + error; - } - } - if (message.continuationToken != null && message.hasOwnProperty("continuationToken")) - if (!(message.continuationToken && typeof message.continuationToken.length === "number" || $util.isString(message.continuationToken))) - return "continuationToken: buffer expected"; - return null; - }; - /** * Creates a SecurityReportSaveRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -19096,6 +15602,8 @@ export const Authentication = $root.Authentication = (() => { SecurityReportSaveRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.Authentication.SecurityReportSaveRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".Authentication.SecurityReportSaveRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -19106,7 +15614,7 @@ export const Authentication = $root.Authentication = (() => { throw TypeError(".Authentication.SecurityReportSaveRequest.securityReport: array expected"); message.securityReport = []; for (let i = 0; i < object.securityReport.length; ++i) { - if (typeof object.securityReport[i] !== "object") + if (!$util.isObject(object.securityReport[i])) throw TypeError(".Authentication.SecurityReportSaveRequest.securityReport: object expected"); message.securityReport[i] = $root.Authentication.SecurityReport.fromObject(object.securityReport[i], long + 1); } @@ -19151,7 +15659,7 @@ export const Authentication = $root.Authentication = (() => { for (let j = 0; j < message.securityReport.length; ++j) object.securityReport[j] = $root.Authentication.SecurityReport.toObject(message.securityReport[j], options, q + 1); } - if (message.continuationToken != null && message.hasOwnProperty("continuationToken")) + if (message.continuationToken != null && Object.hasOwnProperty.call(message, "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; return object; }; @@ -19250,19 +15758,6 @@ export const Authentication = $root.Authentication = (() => { return writer; }; - /** - * Encodes the specified SecurityReportRequest message, length delimited. Does not implicitly {@link Authentication.SecurityReportRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof Authentication.SecurityReportRequest - * @static - * @param {Authentication.ISecurityReportRequest} message SecurityReportRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SecurityReportRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a SecurityReportRequest message from the specified reader or buffer. * @function decode @@ -19299,43 +15794,6 @@ export const Authentication = $root.Authentication = (() => { return message; }; - /** - * Decodes a SecurityReportRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Authentication.SecurityReportRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Authentication.SecurityReportRequest} SecurityReportRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SecurityReportRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a SecurityReportRequest message. - * @function verify - * @memberof Authentication.SecurityReportRequest - * @static - * @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) { - if (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"; - return null; - }; - /** * Creates a SecurityReportRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -19347,6 +15805,8 @@ export const Authentication = $root.Authentication = (() => { SecurityReportRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.Authentication.SecurityReportRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".Authentication.SecurityReportRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -19387,7 +15847,7 @@ export const Authentication = $root.Authentication = (() => { object.fromPage = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; } else object.fromPage = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; - if (message.fromPage != null && message.hasOwnProperty("fromPage")) + if (message.fromPage != null && Object.hasOwnProperty.call(message, "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") @@ -19570,19 +16030,6 @@ export const Authentication = $root.Authentication = (() => { return writer; }; - /** - * Encodes the specified SecurityReportResponse message, length delimited. Does not implicitly {@link Authentication.SecurityReportResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof Authentication.SecurityReportResponse - * @static - * @param {Authentication.ISecurityReportResponse} message SecurityReportResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SecurityReportResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a SecurityReportResponse message from the specified reader or buffer. * @function decode @@ -19649,70 +16096,6 @@ export const Authentication = $root.Authentication = (() => { return message; }; - /** - * Decodes a SecurityReportResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Authentication.SecurityReportResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Authentication.SecurityReportResponse} SecurityReportResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SecurityReportResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a SecurityReportResponse message. - * @function verify - * @memberof Authentication.SecurityReportResponse - * @static - * @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) { - if (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"; - 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); - if (error) - return "securityReport." + error; - } - } - if (message.asOfRevision != null && message.hasOwnProperty("asOfRevision")) - if (!$util.isInteger(message.asOfRevision) && !(message.asOfRevision && $util.isInteger(message.asOfRevision.low) && $util.isInteger(message.asOfRevision.high))) - return "asOfRevision: integer|Long expected"; - 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"; - if (message.toPage != null && message.hasOwnProperty("toPage")) - if (!$util.isInteger(message.toPage) && !(message.toPage && $util.isInteger(message.toPage.low) && $util.isInteger(message.toPage.high))) - return "toPage: integer|Long expected"; - if (message.complete != null && message.hasOwnProperty("complete")) - if (typeof message.complete !== "boolean") - return "complete: boolean expected"; - if (message.enterpriseEccPrivateKey != null && message.hasOwnProperty("enterpriseEccPrivateKey")) - if (!(message.enterpriseEccPrivateKey && typeof message.enterpriseEccPrivateKey.length === "number" || $util.isString(message.enterpriseEccPrivateKey))) - return "enterpriseEccPrivateKey: buffer expected"; - if (message.hasIncrementalData != null && message.hasOwnProperty("hasIncrementalData")) - if (typeof message.hasIncrementalData !== "boolean") - return "hasIncrementalData: boolean expected"; - return null; - }; - /** * Creates a SecurityReportResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -19724,6 +16107,8 @@ export const Authentication = $root.Authentication = (() => { SecurityReportResponse.fromObject = function fromObject(object, long) { if (object instanceof $root.Authentication.SecurityReportResponse) return object; + if (!$util.isObject(object)) + throw TypeError(".Authentication.SecurityReportResponse: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -19739,7 +16124,7 @@ export const Authentication = $root.Authentication = (() => { throw TypeError(".Authentication.SecurityReportResponse.securityReport: array expected"); message.securityReport = []; for (let i = 0; i < object.securityReport.length; ++i) { - if (typeof object.securityReport[i] !== "object") + if (!$util.isObject(object.securityReport[i])) throw TypeError(".Authentication.SecurityReportResponse.securityReport: object expected"); message.securityReport[i] = $root.Authentication.SecurityReport.fromObject(object.securityReport[i], long + 1); } @@ -19835,39 +16220,39 @@ export const Authentication = $root.Authentication = (() => { } object.hasIncrementalData = false; } - if (message.enterprisePrivateKey != null && message.hasOwnProperty("enterprisePrivateKey")) + if (message.enterprisePrivateKey != null && Object.hasOwnProperty.call(message, "enterprisePrivateKey")) object.enterprisePrivateKey = options.bytes === String ? $util.base64.encode(message.enterprisePrivateKey, 0, message.enterprisePrivateKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.enterprisePrivateKey) : message.enterprisePrivateKey; 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); } - if (message.asOfRevision != null && message.hasOwnProperty("asOfRevision")) + if (message.asOfRevision != null && Object.hasOwnProperty.call(message, "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") 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 (message.fromPage != null && Object.hasOwnProperty.call(message, "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") 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 (message.toPage != null && Object.hasOwnProperty.call(message, "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") 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; - if (message.complete != null && message.hasOwnProperty("complete")) + if (message.complete != null && Object.hasOwnProperty.call(message, "complete")) object.complete = message.complete; - if (message.enterpriseEccPrivateKey != null && message.hasOwnProperty("enterpriseEccPrivateKey")) + if (message.enterpriseEccPrivateKey != null && Object.hasOwnProperty.call(message, "enterpriseEccPrivateKey")) object.enterpriseEccPrivateKey = options.bytes === String ? $util.base64.encode(message.enterpriseEccPrivateKey, 0, message.enterpriseEccPrivateKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.enterpriseEccPrivateKey) : message.enterpriseEccPrivateKey; - if (message.hasIncrementalData != null && message.hasOwnProperty("hasIncrementalData")) + if (message.hasIncrementalData != null && Object.hasOwnProperty.call(message, "hasIncrementalData")) object.hasIncrementalData = message.hasIncrementalData; return object; }; @@ -19966,19 +16351,6 @@ export const Authentication = $root.Authentication = (() => { return writer; }; - /** - * Encodes the specified IncrementalSecurityDataRequest message, length delimited. Does not implicitly {@link Authentication.IncrementalSecurityDataRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof Authentication.IncrementalSecurityDataRequest - * @static - * @param {Authentication.IIncrementalSecurityDataRequest} message IncrementalSecurityDataRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - IncrementalSecurityDataRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes an IncrementalSecurityDataRequest message from the specified reader or buffer. * @function decode @@ -20015,43 +16387,6 @@ export const Authentication = $root.Authentication = (() => { return message; }; - /** - * Decodes an IncrementalSecurityDataRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Authentication.IncrementalSecurityDataRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Authentication.IncrementalSecurityDataRequest} IncrementalSecurityDataRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - IncrementalSecurityDataRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an IncrementalSecurityDataRequest message. - * @function verify - * @memberof Authentication.IncrementalSecurityDataRequest - * @static - * @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) { - if (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"; - return null; - }; - /** * Creates an IncrementalSecurityDataRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -20063,6 +16398,8 @@ export const Authentication = $root.Authentication = (() => { IncrementalSecurityDataRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.Authentication.IncrementalSecurityDataRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".Authentication.IncrementalSecurityDataRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -20101,7 +16438,7 @@ export const Authentication = $root.Authentication = (() => { if (options.bytes !== Array) object.continuationToken = $util.newBuffer(object.continuationToken); } - if (message.continuationToken != null && message.hasOwnProperty("continuationToken")) + if (message.continuationToken != null && Object.hasOwnProperty.call(message, "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; return object; }; @@ -20213,19 +16550,6 @@ export const Authentication = $root.Authentication = (() => { return writer; }; - /** - * Encodes the specified IncrementalSecurityDataResponse message, length delimited. Does not implicitly {@link Authentication.IncrementalSecurityDataResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof Authentication.IncrementalSecurityDataResponse - * @static - * @param {Authentication.IIncrementalSecurityDataResponse} message IncrementalSecurityDataResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - IncrementalSecurityDataResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes an IncrementalSecurityDataResponse message from the specified reader or buffer. * @function decode @@ -20268,52 +16592,6 @@ export const Authentication = $root.Authentication = (() => { return message; }; - /** - * Decodes an IncrementalSecurityDataResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Authentication.IncrementalSecurityDataResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Authentication.IncrementalSecurityDataResponse} IncrementalSecurityDataResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - IncrementalSecurityDataResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an IncrementalSecurityDataResponse message. - * @function verify - * @memberof Authentication.IncrementalSecurityDataResponse - * @static - * @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) { - if (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); - if (error) - return "securityReportIncrementalData." + error; - } - } - if (message.continuationToken != null && message.hasOwnProperty("continuationToken")) - if (!(message.continuationToken && typeof message.continuationToken.length === "number" || $util.isString(message.continuationToken))) - return "continuationToken: buffer expected"; - return null; - }; - /** * Creates an IncrementalSecurityDataResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -20325,6 +16603,8 @@ export const Authentication = $root.Authentication = (() => { IncrementalSecurityDataResponse.fromObject = function fromObject(object, long) { if (object instanceof $root.Authentication.IncrementalSecurityDataResponse) return object; + if (!$util.isObject(object)) + throw TypeError(".Authentication.IncrementalSecurityDataResponse: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -20335,7 +16615,7 @@ export const Authentication = $root.Authentication = (() => { throw TypeError(".Authentication.IncrementalSecurityDataResponse.securityReportIncrementalData: array expected"); message.securityReportIncrementalData = []; for (let i = 0; i < object.securityReportIncrementalData.length; ++i) { - if (typeof object.securityReportIncrementalData[i] !== "object") + if (!$util.isObject(object.securityReportIncrementalData[i])) throw TypeError(".Authentication.IncrementalSecurityDataResponse.securityReportIncrementalData: object expected"); message.securityReportIncrementalData[i] = $root.Authentication.SecurityReportIncrementalData.fromObject(object.securityReportIncrementalData[i], long + 1); } @@ -20380,7 +16660,7 @@ export const Authentication = $root.Authentication = (() => { for (let j = 0; j < message.securityReportIncrementalData.length; ++j) object.securityReportIncrementalData[j] = $root.Authentication.SecurityReportIncrementalData.toObject(message.securityReportIncrementalData[j], options, q + 1); } - if (message.continuationToken != null && message.hasOwnProperty("continuationToken")) + if (message.continuationToken != null && Object.hasOwnProperty.call(message, "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; return object; }; @@ -20479,19 +16759,6 @@ export const Authentication = $root.Authentication = (() => { return writer; }; - /** - * Encodes the specified ReusedPasswordsRequest message, length delimited. Does not implicitly {@link Authentication.ReusedPasswordsRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof Authentication.ReusedPasswordsRequest - * @static - * @param {Authentication.IReusedPasswordsRequest} message ReusedPasswordsRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ReusedPasswordsRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a ReusedPasswordsRequest message from the specified reader or buffer. * @function decode @@ -20528,43 +16795,6 @@ export const Authentication = $root.Authentication = (() => { return message; }; - /** - * Decodes a ReusedPasswordsRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Authentication.ReusedPasswordsRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Authentication.ReusedPasswordsRequest} ReusedPasswordsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ReusedPasswordsRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a ReusedPasswordsRequest message. - * @function verify - * @memberof Authentication.ReusedPasswordsRequest - * @static - * @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) { - if (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"; - return null; - }; - /** * Creates a ReusedPasswordsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -20576,6 +16806,8 @@ export const Authentication = $root.Authentication = (() => { ReusedPasswordsRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.Authentication.ReusedPasswordsRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".Authentication.ReusedPasswordsRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -20605,7 +16837,7 @@ export const Authentication = $root.Authentication = (() => { let object = {}; if (options.defaults) object.count = 0; - if (message.count != null && message.hasOwnProperty("count")) + if (message.count != null && Object.hasOwnProperty.call(message, "count")) object.count = message.count; return object; }; @@ -20715,19 +16947,6 @@ export const Authentication = $root.Authentication = (() => { return writer; }; - /** - * Encodes the specified SummaryConsoleReport message, length delimited. Does not implicitly {@link Authentication.SummaryConsoleReport.verify|verify} messages. - * @function encodeDelimited - * @memberof Authentication.SummaryConsoleReport - * @static - * @param {Authentication.ISummaryConsoleReport} message SummaryConsoleReport message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SummaryConsoleReport.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a SummaryConsoleReport message from the specified reader or buffer. * @function decode @@ -20768,46 +16987,6 @@ export const Authentication = $root.Authentication = (() => { return message; }; - /** - * Decodes a SummaryConsoleReport message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Authentication.SummaryConsoleReport - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Authentication.SummaryConsoleReport} SummaryConsoleReport - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SummaryConsoleReport.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a SummaryConsoleReport message. - * @function verify - * @memberof Authentication.SummaryConsoleReport - * @static - * @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) { - if (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"; - if (message.reportData != null && message.hasOwnProperty("reportData")) - if (!(message.reportData && typeof message.reportData.length === "number" || $util.isString(message.reportData))) - return "reportData: buffer expected"; - return null; - }; - /** * Creates a SummaryConsoleReport message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -20819,6 +16998,8 @@ export const Authentication = $root.Authentication = (() => { SummaryConsoleReport.fromObject = function fromObject(object, long) { if (object instanceof $root.Authentication.SummaryConsoleReport) return object; + if (!$util.isObject(object)) + throw TypeError(".Authentication.SummaryConsoleReport: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -20861,9 +17042,9 @@ export const Authentication = $root.Authentication = (() => { object.reportData = $util.newBuffer(object.reportData); } } - if (message.reportType != null && message.hasOwnProperty("reportType")) + if (message.reportType != null && Object.hasOwnProperty.call(message, "reportType")) object.reportType = message.reportType; - if (message.reportData != null && message.hasOwnProperty("reportData")) + if (message.reportData != null && Object.hasOwnProperty.call(message, "reportData")) object.reportData = options.bytes === String ? $util.base64.encode(message.reportData, 0, message.reportData.length) : options.bytes === Array ? Array.prototype.slice.call(message.reportData) : message.reportData; return object; }; @@ -21015,19 +17196,6 @@ export const Authentication = $root.Authentication = (() => { return writer; }; - /** - * Encodes the specified ChangeToKeyTypeOne message, length delimited. Does not implicitly {@link Authentication.ChangeToKeyTypeOne.verify|verify} messages. - * @function encodeDelimited - * @memberof Authentication.ChangeToKeyTypeOne - * @static - * @param {Authentication.IChangeToKeyTypeOne} message ChangeToKeyTypeOne message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ChangeToKeyTypeOne.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a ChangeToKeyTypeOne message from the specified reader or buffer. * @function decode @@ -21076,60 +17244,6 @@ export const Authentication = $root.Authentication = (() => { return message; }; - /** - * Decodes a ChangeToKeyTypeOne message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Authentication.ChangeToKeyTypeOne - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Authentication.ChangeToKeyTypeOne} ChangeToKeyTypeOne - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ChangeToKeyTypeOne.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a ChangeToKeyTypeOne message. - * @function verify - * @memberof Authentication.ChangeToKeyTypeOne - * @static - * @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) { - if (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: - return "objectType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - break; - } - if (message.primaryUid != null && message.hasOwnProperty("primaryUid")) - if (!(message.primaryUid && typeof message.primaryUid.length === "number" || $util.isString(message.primaryUid))) - return "primaryUid: buffer expected"; - if (message.secondaryUid != null && message.hasOwnProperty("secondaryUid")) - if (!(message.secondaryUid && typeof message.secondaryUid.length === "number" || $util.isString(message.secondaryUid))) - return "secondaryUid: buffer expected"; - if (message.key != null && message.hasOwnProperty("key")) - if (!(message.key && typeof message.key.length === "number" || $util.isString(message.key))) - return "key: buffer expected"; - return null; - }; - /** * Creates a ChangeToKeyTypeOne message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -21141,6 +17255,8 @@ export const Authentication = $root.Authentication = (() => { ChangeToKeyTypeOne.fromObject = function fromObject(object, long) { if (object instanceof $root.Authentication.ChangeToKeyTypeOne) return object; + if (!$util.isObject(object)) + throw TypeError(".Authentication.ChangeToKeyTypeOne: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -21233,13 +17349,13 @@ export const Authentication = $root.Authentication = (() => { object.key = $util.newBuffer(object.key); } } - if (message.objectType != null && message.hasOwnProperty("objectType")) + if (message.objectType != null && Object.hasOwnProperty.call(message, "objectType")) object.objectType = options.enums === String ? $root.Authentication.ObjectTypes[message.objectType] === undefined ? message.objectType : $root.Authentication.ObjectTypes[message.objectType] : message.objectType; - if (message.primaryUid != null && message.hasOwnProperty("primaryUid")) + if (message.primaryUid != null && Object.hasOwnProperty.call(message, "primaryUid")) object.primaryUid = options.bytes === String ? $util.base64.encode(message.primaryUid, 0, message.primaryUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.primaryUid) : message.primaryUid; - if (message.secondaryUid != null && message.hasOwnProperty("secondaryUid")) + if (message.secondaryUid != null && Object.hasOwnProperty.call(message, "secondaryUid")) object.secondaryUid = options.bytes === String ? $util.base64.encode(message.secondaryUid, 0, message.secondaryUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.secondaryUid) : message.secondaryUid; - if (message.key != null && message.hasOwnProperty("key")) + if (message.key != null && Object.hasOwnProperty.call(message, "key")) object.key = options.bytes === String ? $util.base64.encode(message.key, 0, message.key.length) : options.bytes === Array ? Array.prototype.slice.call(message.key) : message.key; return object; }; @@ -21340,19 +17456,6 @@ export const Authentication = $root.Authentication = (() => { return writer; }; - /** - * Encodes the specified ChangeToKeyTypeOneRequest message, length delimited. Does not implicitly {@link Authentication.ChangeToKeyTypeOneRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof Authentication.ChangeToKeyTypeOneRequest - * @static - * @param {Authentication.IChangeToKeyTypeOneRequest} message ChangeToKeyTypeOneRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ChangeToKeyTypeOneRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a ChangeToKeyTypeOneRequest message from the specified reader or buffer. * @function decode @@ -21391,49 +17494,6 @@ export const Authentication = $root.Authentication = (() => { return message; }; - /** - * Decodes a ChangeToKeyTypeOneRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Authentication.ChangeToKeyTypeOneRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Authentication.ChangeToKeyTypeOneRequest} ChangeToKeyTypeOneRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ChangeToKeyTypeOneRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a ChangeToKeyTypeOneRequest message. - * @function verify - * @memberof Authentication.ChangeToKeyTypeOneRequest - * @static - * @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) { - if (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); - if (error) - return "changeToKeyTypeOne." + error; - } - } - return null; - }; - /** * Creates a ChangeToKeyTypeOneRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -21445,6 +17505,8 @@ export const Authentication = $root.Authentication = (() => { ChangeToKeyTypeOneRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.Authentication.ChangeToKeyTypeOneRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".Authentication.ChangeToKeyTypeOneRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -21455,7 +17517,7 @@ export const Authentication = $root.Authentication = (() => { throw TypeError(".Authentication.ChangeToKeyTypeOneRequest.changeToKeyTypeOne: array expected"); message.changeToKeyTypeOne = []; for (let i = 0; i < object.changeToKeyTypeOne.length; ++i) { - if (typeof object.changeToKeyTypeOne[i] !== "object") + if (!$util.isObject(object.changeToKeyTypeOne[i])) throw TypeError(".Authentication.ChangeToKeyTypeOneRequest.changeToKeyTypeOne: object expected"); message.changeToKeyTypeOne[i] = $root.Authentication.ChangeToKeyTypeOne.fromObject(object.changeToKeyTypeOne[i], long + 1); } @@ -21617,19 +17679,6 @@ export const Authentication = $root.Authentication = (() => { return writer; }; - /** - * Encodes the specified ChangeToKeyTypeOneStatus message, length delimited. Does not implicitly {@link Authentication.ChangeToKeyTypeOneStatus.verify|verify} messages. - * @function encodeDelimited - * @memberof Authentication.ChangeToKeyTypeOneStatus - * @static - * @param {Authentication.IChangeToKeyTypeOneStatus} message ChangeToKeyTypeOneStatus message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ChangeToKeyTypeOneStatus.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a ChangeToKeyTypeOneStatus message from the specified reader or buffer. * @function decode @@ -21678,52 +17727,6 @@ export const Authentication = $root.Authentication = (() => { return message; }; - /** - * Decodes a ChangeToKeyTypeOneStatus message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Authentication.ChangeToKeyTypeOneStatus - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Authentication.ChangeToKeyTypeOneStatus} ChangeToKeyTypeOneStatus - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ChangeToKeyTypeOneStatus.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a ChangeToKeyTypeOneStatus message. - * @function verify - * @memberof Authentication.ChangeToKeyTypeOneStatus - * @static - * @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) { - if (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.type != null && message.hasOwnProperty("type")) - if (!$util.isString(message.type)) - return "type: string expected"; - if (message.status != null && message.hasOwnProperty("status")) - if (!$util.isString(message.status)) - return "status: string expected"; - if (message.reason != null && message.hasOwnProperty("reason")) - if (!$util.isString(message.reason)) - return "reason: string expected"; - return null; - }; - /** * Creates a ChangeToKeyTypeOneStatus message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -21735,6 +17738,8 @@ export const Authentication = $root.Authentication = (() => { ChangeToKeyTypeOneStatus.fromObject = function fromObject(object, long) { if (object instanceof $root.Authentication.ChangeToKeyTypeOneStatus) return object; + if (!$util.isObject(object)) + throw TypeError(".Authentication.ChangeToKeyTypeOneStatus: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -21783,13 +17788,13 @@ export const Authentication = $root.Authentication = (() => { object.status = ""; object.reason = ""; } - if (message.uid != null && message.hasOwnProperty("uid")) + if (message.uid != null && Object.hasOwnProperty.call(message, "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.type != null && message.hasOwnProperty("type")) + if (message.type != null && Object.hasOwnProperty.call(message, "type")) object.type = message.type; - if (message.status != null && message.hasOwnProperty("status")) + if (message.status != null && Object.hasOwnProperty.call(message, "status")) object.status = message.status; - if (message.reason != null && message.hasOwnProperty("reason")) + if (message.reason != null && Object.hasOwnProperty.call(message, "reason")) object.reason = message.reason; return object; }; @@ -21890,19 +17895,6 @@ export const Authentication = $root.Authentication = (() => { return writer; }; - /** - * Encodes the specified ChangeToKeyTypeOneResponse message, length delimited. Does not implicitly {@link Authentication.ChangeToKeyTypeOneResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof Authentication.ChangeToKeyTypeOneResponse - * @static - * @param {Authentication.IChangeToKeyTypeOneResponse} message ChangeToKeyTypeOneResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ChangeToKeyTypeOneResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a ChangeToKeyTypeOneResponse message from the specified reader or buffer. * @function decode @@ -21941,49 +17933,6 @@ export const Authentication = $root.Authentication = (() => { return message; }; - /** - * Decodes a ChangeToKeyTypeOneResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Authentication.ChangeToKeyTypeOneResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Authentication.ChangeToKeyTypeOneResponse} ChangeToKeyTypeOneResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ChangeToKeyTypeOneResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a ChangeToKeyTypeOneResponse message. - * @function verify - * @memberof Authentication.ChangeToKeyTypeOneResponse - * @static - * @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) { - if (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); - if (error) - return "changeToKeyTypeOneStatus." + error; - } - } - return null; - }; - /** * Creates a ChangeToKeyTypeOneResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -21995,6 +17944,8 @@ export const Authentication = $root.Authentication = (() => { ChangeToKeyTypeOneResponse.fromObject = function fromObject(object, long) { if (object instanceof $root.Authentication.ChangeToKeyTypeOneResponse) return object; + if (!$util.isObject(object)) + throw TypeError(".Authentication.ChangeToKeyTypeOneResponse: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -22005,7 +17956,7 @@ export const Authentication = $root.Authentication = (() => { throw TypeError(".Authentication.ChangeToKeyTypeOneResponse.changeToKeyTypeOneStatus: array expected"); message.changeToKeyTypeOneStatus = []; for (let i = 0; i < object.changeToKeyTypeOneStatus.length; ++i) { - if (typeof object.changeToKeyTypeOneStatus[i] !== "object") + if (!$util.isObject(object.changeToKeyTypeOneStatus[i])) throw TypeError(".Authentication.ChangeToKeyTypeOneResponse.changeToKeyTypeOneStatus: object expected"); message.changeToKeyTypeOneStatus[i] = $root.Authentication.ChangeToKeyTypeOneStatus.fromObject(object.changeToKeyTypeOneStatus[i], long + 1); } @@ -22213,19 +18164,6 @@ export const Authentication = $root.Authentication = (() => { return writer; }; - /** - * Encodes the specified GetChangeKeyTypesRequest message, length delimited. Does not implicitly {@link Authentication.GetChangeKeyTypesRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof Authentication.GetChangeKeyTypesRequest - * @static - * @param {Authentication.IGetChangeKeyTypesRequest} message GetChangeKeyTypesRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetChangeKeyTypesRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a GetChangeKeyTypesRequest message from the specified reader or buffer. * @function decode @@ -22285,72 +18223,6 @@ export const Authentication = $root.Authentication = (() => { return message; }; - /** - * Decodes a GetChangeKeyTypesRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Authentication.GetChangeKeyTypesRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Authentication.GetChangeKeyTypesRequest} GetChangeKeyTypesRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetChangeKeyTypesRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a GetChangeKeyTypesRequest message. - * @function verify - * @memberof Authentication.GetChangeKeyTypesRequest - * @static - * @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) { - if (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"; - for (let i = 0; i < message.onlyTheseObjects.length; ++i) - switch (message.onlyTheseObjects[i]) { - default: - return "onlyTheseObjects: 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.limit != null && message.hasOwnProperty("limit")) - if (!$util.isInteger(message.limit)) - return "limit: integer expected"; - if (message.includeRecommended != null && message.hasOwnProperty("includeRecommended")) - if (typeof message.includeRecommended !== "boolean") - return "includeRecommended: boolean expected"; - if (message.includeKeys != null && message.hasOwnProperty("includeKeys")) - if (typeof message.includeKeys !== "boolean") - return "includeKeys: boolean expected"; - if (message.includeAllowedKeyTypes != null && message.hasOwnProperty("includeAllowedKeyTypes")) - if (typeof message.includeAllowedKeyTypes !== "boolean") - return "includeAllowedKeyTypes: boolean expected"; - return null; - }; - /** * Creates a GetChangeKeyTypesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -22362,6 +18234,8 @@ export const Authentication = $root.Authentication = (() => { GetChangeKeyTypesRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.Authentication.GetChangeKeyTypesRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".Authentication.GetChangeKeyTypesRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -22461,13 +18335,13 @@ export const Authentication = $root.Authentication = (() => { for (let j = 0; j < message.onlyTheseObjects.length; ++j) object.onlyTheseObjects[j] = options.enums === String ? $root.Authentication.EncryptedObjectType[message.onlyTheseObjects[j]] === undefined ? message.onlyTheseObjects[j] : $root.Authentication.EncryptedObjectType[message.onlyTheseObjects[j]] : message.onlyTheseObjects[j]; } - if (message.limit != null && message.hasOwnProperty("limit")) + if (message.limit != null && Object.hasOwnProperty.call(message, "limit")) object.limit = message.limit; - if (message.includeRecommended != null && message.hasOwnProperty("includeRecommended")) + if (message.includeRecommended != null && Object.hasOwnProperty.call(message, "includeRecommended")) object.includeRecommended = message.includeRecommended; - if (message.includeKeys != null && message.hasOwnProperty("includeKeys")) + if (message.includeKeys != null && Object.hasOwnProperty.call(message, "includeKeys")) object.includeKeys = message.includeKeys; - if (message.includeAllowedKeyTypes != null && message.hasOwnProperty("includeAllowedKeyTypes")) + if (message.includeAllowedKeyTypes != null && Object.hasOwnProperty.call(message, "includeAllowedKeyTypes")) object.includeAllowedKeyTypes = message.includeAllowedKeyTypes; return object; }; @@ -22581,19 +18455,6 @@ export const Authentication = $root.Authentication = (() => { return writer; }; - /** - * Encodes the specified GetChangeKeyTypesResponse message, length delimited. Does not implicitly {@link Authentication.GetChangeKeyTypesResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof Authentication.GetChangeKeyTypesResponse - * @static - * @param {Authentication.IGetChangeKeyTypesResponse} message GetChangeKeyTypesResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetChangeKeyTypesResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a GetChangeKeyTypesResponse message from the specified reader or buffer. * @function decode @@ -22638,58 +18499,6 @@ export const Authentication = $root.Authentication = (() => { return message; }; - /** - * Decodes a GetChangeKeyTypesResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Authentication.GetChangeKeyTypesResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Authentication.GetChangeKeyTypesResponse} GetChangeKeyTypesResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetChangeKeyTypesResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a GetChangeKeyTypesResponse message. - * @function verify - * @memberof Authentication.GetChangeKeyTypesResponse - * @static - * @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) { - if (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); - if (error) - return "keys." + error; - } - } - if (message.allowedKeyTypes != null && message.hasOwnProperty("allowedKeyTypes")) { - 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); - if (error) - return "allowedKeyTypes." + error; - } - } - return null; - }; - /** * Creates a GetChangeKeyTypesResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -22701,6 +18510,8 @@ export const Authentication = $root.Authentication = (() => { GetChangeKeyTypesResponse.fromObject = function fromObject(object, long) { if (object instanceof $root.Authentication.GetChangeKeyTypesResponse) return object; + if (!$util.isObject(object)) + throw TypeError(".Authentication.GetChangeKeyTypesResponse: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -22711,7 +18522,7 @@ export const Authentication = $root.Authentication = (() => { throw TypeError(".Authentication.GetChangeKeyTypesResponse.keys: array expected"); message.keys = []; for (let i = 0; i < object.keys.length; ++i) { - if (typeof object.keys[i] !== "object") + if (!$util.isObject(object.keys[i])) throw TypeError(".Authentication.GetChangeKeyTypesResponse.keys: object expected"); message.keys[i] = $root.Authentication.ChangeKeyType.fromObject(object.keys[i], long + 1); } @@ -22721,7 +18532,7 @@ export const Authentication = $root.Authentication = (() => { throw TypeError(".Authentication.GetChangeKeyTypesResponse.allowedKeyTypes: array expected"); message.allowedKeyTypes = []; for (let i = 0; i < object.allowedKeyTypes.length; ++i) { - if (typeof object.allowedKeyTypes[i] !== "object") + if (!$util.isObject(object.allowedKeyTypes[i])) throw TypeError(".Authentication.GetChangeKeyTypesResponse.allowedKeyTypes: object expected"); message.allowedKeyTypes[i] = $root.Authentication.AllowedKeyTypes.fromObject(object.allowedKeyTypes[i], long + 1); } @@ -22873,19 +18684,6 @@ export const Authentication = $root.Authentication = (() => { return writer; }; - /** - * Encodes the specified AllowedKeyTypes message, length delimited. Does not implicitly {@link Authentication.AllowedKeyTypes.verify|verify} messages. - * @function encodeDelimited - * @memberof Authentication.AllowedKeyTypes - * @static - * @param {Authentication.IAllowedKeyTypes} message AllowedKeyTypes message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - AllowedKeyTypes.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes an AllowedKeyTypes message from the specified reader or buffer. * @function decode @@ -22933,71 +18731,6 @@ export const Authentication = $root.Authentication = (() => { return message; }; - /** - * Decodes an AllowedKeyTypes message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Authentication.AllowedKeyTypes - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Authentication.AllowedKeyTypes} AllowedKeyTypes - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - AllowedKeyTypes.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an AllowedKeyTypes message. - * @function verify - * @memberof Authentication.AllowedKeyTypes - * @static - * @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) { - if (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: - return "objectType: 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.allowedKeyTypes != null && message.hasOwnProperty("allowedKeyTypes")) { - if (!Array.isArray(message.allowedKeyTypes)) - return "allowedKeyTypes: array expected"; - for (let i = 0; i < message.allowedKeyTypes.length; ++i) - switch (message.allowedKeyTypes[i]) { - default: - return "allowedKeyTypes: enum value[] expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - break; - } - } - return null; - }; - /** * Creates an AllowedKeyTypes message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -23009,6 +18742,8 @@ export const Authentication = $root.Authentication = (() => { AllowedKeyTypes.fromObject = function fromObject(object, long) { if (object instanceof $root.Authentication.AllowedKeyTypes) return object; + if (!$util.isObject(object)) + throw TypeError(".Authentication.AllowedKeyTypes: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -23119,7 +18854,7 @@ export const Authentication = $root.Authentication = (() => { object.allowedKeyTypes = []; if (options.defaults) object.objectType = options.enums === String ? "EOT_UNSPECIFIED" : 0; - if (message.objectType != null && message.hasOwnProperty("objectType")) + if (message.objectType != null && Object.hasOwnProperty.call(message, "objectType")) object.objectType = options.enums === String ? $root.Authentication.EncryptedObjectType[message.objectType] === undefined ? message.objectType : $root.Authentication.EncryptedObjectType[message.objectType] : message.objectType; if (message.allowedKeyTypes && message.allowedKeyTypes.length) { object.allowedKeyTypes = []; @@ -23225,19 +18960,6 @@ export const Authentication = $root.Authentication = (() => { return writer; }; - /** - * Encodes the specified ChangeKeyTypes message, length delimited. Does not implicitly {@link Authentication.ChangeKeyTypes.verify|verify} messages. - * @function encodeDelimited - * @memberof Authentication.ChangeKeyTypes - * @static - * @param {Authentication.IChangeKeyTypes} message ChangeKeyTypes message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ChangeKeyTypes.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a ChangeKeyTypes message from the specified reader or buffer. * @function decode @@ -23276,49 +18998,6 @@ export const Authentication = $root.Authentication = (() => { return message; }; - /** - * Decodes a ChangeKeyTypes message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Authentication.ChangeKeyTypes - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Authentication.ChangeKeyTypes} ChangeKeyTypes - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ChangeKeyTypes.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a ChangeKeyTypes message. - * @function verify - * @memberof Authentication.ChangeKeyTypes - * @static - * @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) { - if (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); - if (error) - return "keys." + error; - } - } - return null; - }; - /** * Creates a ChangeKeyTypes message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -23330,6 +19009,8 @@ export const Authentication = $root.Authentication = (() => { ChangeKeyTypes.fromObject = function fromObject(object, long) { if (object instanceof $root.Authentication.ChangeKeyTypes) return object; + if (!$util.isObject(object)) + throw TypeError(".Authentication.ChangeKeyTypes: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -23340,7 +19021,7 @@ export const Authentication = $root.Authentication = (() => { throw TypeError(".Authentication.ChangeKeyTypes.keys: array expected"); message.keys = []; for (let i = 0; i < object.keys.length; ++i) { - if (typeof object.keys[i] !== "object") + if (!$util.isObject(object.keys[i])) throw TypeError(".Authentication.ChangeKeyTypes.keys: object expected"); message.keys[i] = $root.Authentication.ChangeKeyType.fromObject(object.keys[i], long + 1); } @@ -23524,19 +19205,6 @@ export const Authentication = $root.Authentication = (() => { return writer; }; - /** - * Encodes the specified ChangeKeyType message, length delimited. Does not implicitly {@link Authentication.ChangeKeyType.verify|verify} messages. - * @function encodeDelimited - * @memberof Authentication.ChangeKeyType - * @static - * @param {Authentication.IChangeKeyType} message ChangeKeyType message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ChangeKeyType.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a ChangeKeyType message from the specified reader or buffer. * @function decode @@ -23593,87 +19261,6 @@ export const Authentication = $root.Authentication = (() => { return message; }; - /** - * Decodes a ChangeKeyType message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Authentication.ChangeKeyType - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Authentication.ChangeKeyType} ChangeKeyType - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ChangeKeyType.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a ChangeKeyType message. - * @function verify - * @memberof Authentication.ChangeKeyType - * @static - * @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) { - if (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: - return "objectType: 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.uid != null && message.hasOwnProperty("uid")) - if (!(message.uid && typeof message.uid.length === "number" || $util.isString(message.uid))) - return "uid: buffer expected"; - if (message.secondaryUid != null && message.hasOwnProperty("secondaryUid")) - if (!(message.secondaryUid && typeof message.secondaryUid.length === "number" || $util.isString(message.secondaryUid))) - return "secondaryUid: buffer expected"; - if (message.key != null && message.hasOwnProperty("key")) - if (!(message.key && typeof message.key.length === "number" || $util.isString(message.key))) - return "key: buffer expected"; - if (message.keyType != null && message.hasOwnProperty("keyType")) - switch (message.keyType) { - default: - return "keyType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - break; - } - if (message.status != null && message.hasOwnProperty("status")) - switch (message.status) { - default: - return "status: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - break; - } - return null; - }; - /** * Creates a ChangeKeyType message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -23685,6 +19272,8 @@ export const Authentication = $root.Authentication = (() => { ChangeKeyType.fromObject = function fromObject(object, long) { if (object instanceof $root.Authentication.ChangeKeyType) return object; + if (!$util.isObject(object)) + throw TypeError(".Authentication.ChangeKeyType: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -23855,17 +19444,17 @@ export const Authentication = $root.Authentication = (() => { object.keyType = options.enums === String ? "KT_NO_KEY" : 0; object.status = options.enums === String ? "SUCCESS" : 0; } - if (message.objectType != null && message.hasOwnProperty("objectType")) + if (message.objectType != null && Object.hasOwnProperty.call(message, "objectType")) object.objectType = options.enums === String ? $root.Authentication.EncryptedObjectType[message.objectType] === undefined ? message.objectType : $root.Authentication.EncryptedObjectType[message.objectType] : message.objectType; - if (message.uid != null && message.hasOwnProperty("uid")) + if (message.uid != null && Object.hasOwnProperty.call(message, "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.secondaryUid != null && message.hasOwnProperty("secondaryUid")) + if (message.secondaryUid != null && Object.hasOwnProperty.call(message, "secondaryUid")) object.secondaryUid = options.bytes === String ? $util.base64.encode(message.secondaryUid, 0, message.secondaryUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.secondaryUid) : message.secondaryUid; - if (message.key != null && message.hasOwnProperty("key")) + if (message.key != null && Object.hasOwnProperty.call(message, "key")) object.key = options.bytes === String ? $util.base64.encode(message.key, 0, message.key.length) : options.bytes === Array ? Array.prototype.slice.call(message.key) : message.key; - if (message.keyType != null && message.hasOwnProperty("keyType")) + if (message.keyType != null && Object.hasOwnProperty.call(message, "keyType")) object.keyType = options.enums === String ? $root.Enterprise.EncryptedKeyType[message.keyType] === undefined ? message.keyType : $root.Enterprise.EncryptedKeyType[message.keyType] : message.keyType; - if (message.status != null && message.hasOwnProperty("status")) + if (message.status != null && Object.hasOwnProperty.call(message, "status")) object.status = options.enums === String ? $root.Authentication.GenericStatus[message.status] === undefined ? message.status : $root.Authentication.GenericStatus[message.status] : message.status; return object; }; @@ -23975,19 +19564,6 @@ export const Authentication = $root.Authentication = (() => { return writer; }; - /** - * Encodes the specified SetKey message, length delimited. Does not implicitly {@link Authentication.SetKey.verify|verify} messages. - * @function encodeDelimited - * @memberof Authentication.SetKey - * @static - * @param {Authentication.ISetKey} message SetKey message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SetKey.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a SetKey message from the specified reader or buffer. * @function decode @@ -24028,46 +19604,6 @@ export const Authentication = $root.Authentication = (() => { return message; }; - /** - * Decodes a SetKey message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Authentication.SetKey - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Authentication.SetKey} SetKey - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SetKey.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a SetKey message. - * @function verify - * @memberof Authentication.SetKey - * @static - * @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) { - if (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"; - if (message.key != null && message.hasOwnProperty("key")) - if (!(message.key && typeof message.key.length === "number" || $util.isString(message.key))) - return "key: buffer expected"; - return null; - }; - /** * Creates a SetKey message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -24079,6 +19615,8 @@ export const Authentication = $root.Authentication = (() => { SetKey.fromObject = function fromObject(object, long) { if (object instanceof $root.Authentication.SetKey) return object; + if (!$util.isObject(object)) + throw TypeError(".Authentication.SetKey: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -24132,14 +19670,14 @@ export const Authentication = $root.Authentication = (() => { object.key = $util.newBuffer(object.key); } } - if (message.id != null && message.hasOwnProperty("id")) + if (message.id != null && Object.hasOwnProperty.call(message, "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") 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; - if (message.key != null && message.hasOwnProperty("key")) + if (message.key != null && Object.hasOwnProperty.call(message, "key")) object.key = options.bytes === String ? $util.base64.encode(message.key, 0, message.key.length) : options.bytes === Array ? Array.prototype.slice.call(message.key) : message.key; return object; }; @@ -24240,19 +19778,6 @@ export const Authentication = $root.Authentication = (() => { return writer; }; - /** - * Encodes the specified SetKeyRequest message, length delimited. Does not implicitly {@link Authentication.SetKeyRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof Authentication.SetKeyRequest - * @static - * @param {Authentication.ISetKeyRequest} message SetKeyRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SetKeyRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a SetKeyRequest message from the specified reader or buffer. * @function decode @@ -24291,49 +19816,6 @@ export const Authentication = $root.Authentication = (() => { return message; }; - /** - * Decodes a SetKeyRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Authentication.SetKeyRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Authentication.SetKeyRequest} SetKeyRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SetKeyRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a SetKeyRequest message. - * @function verify - * @memberof Authentication.SetKeyRequest - * @static - * @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) { - if (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); - if (error) - return "keys." + error; - } - } - return null; - }; - /** * Creates a SetKeyRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -24345,6 +19827,8 @@ export const Authentication = $root.Authentication = (() => { SetKeyRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.Authentication.SetKeyRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".Authentication.SetKeyRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -24355,7 +19839,7 @@ export const Authentication = $root.Authentication = (() => { throw TypeError(".Authentication.SetKeyRequest.keys: array expected"); message.keys = []; for (let i = 0; i < object.keys.length; ++i) { - if (typeof object.keys[i] !== "object") + if (!$util.isObject(object.keys[i])) throw TypeError(".Authentication.SetKeyRequest.keys: object expected"); message.keys[i] = $root.Authentication.SetKey.fromObject(object.keys[i], long + 1); } @@ -24748,19 +20232,6 @@ export const Authentication = $root.Authentication = (() => { return writer; }; - /** - * Encodes the specified CreateUserRequest message, length delimited. Does not implicitly {@link Authentication.CreateUserRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof Authentication.CreateUserRequest - * @static - * @param {Authentication.ICreateUserRequest} message CreateUserRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CreateUserRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a CreateUserRequest message from the specified reader or buffer. * @function decode @@ -24893,117 +20364,6 @@ export const Authentication = $root.Authentication = (() => { return message; }; - /** - * Decodes a CreateUserRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Authentication.CreateUserRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Authentication.CreateUserRequest} CreateUserRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CreateUserRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a CreateUserRequest message. - * @function verify - * @memberof Authentication.CreateUserRequest - * @static - * @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) { - if (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"; - if (message.authVerifier != null && message.hasOwnProperty("authVerifier")) - if (!(message.authVerifier && typeof message.authVerifier.length === "number" || $util.isString(message.authVerifier))) - return "authVerifier: buffer expected"; - if (message.encryptionParams != null && message.hasOwnProperty("encryptionParams")) - if (!(message.encryptionParams && typeof message.encryptionParams.length === "number" || $util.isString(message.encryptionParams))) - return "encryptionParams: buffer expected"; - if (message.rsaPublicKey != null && message.hasOwnProperty("rsaPublicKey")) - if (!(message.rsaPublicKey && typeof message.rsaPublicKey.length === "number" || $util.isString(message.rsaPublicKey))) - return "rsaPublicKey: buffer expected"; - if (message.rsaEncryptedPrivateKey != null && message.hasOwnProperty("rsaEncryptedPrivateKey")) - if (!(message.rsaEncryptedPrivateKey && typeof message.rsaEncryptedPrivateKey.length === "number" || $util.isString(message.rsaEncryptedPrivateKey))) - return "rsaEncryptedPrivateKey: buffer expected"; - if (message.eccPublicKey != null && message.hasOwnProperty("eccPublicKey")) - if (!(message.eccPublicKey && typeof message.eccPublicKey.length === "number" || $util.isString(message.eccPublicKey))) - return "eccPublicKey: buffer expected"; - if (message.eccEncryptedPrivateKey != null && message.hasOwnProperty("eccEncryptedPrivateKey")) - if (!(message.eccEncryptedPrivateKey && typeof message.eccEncryptedPrivateKey.length === "number" || $util.isString(message.eccEncryptedPrivateKey))) - return "eccEncryptedPrivateKey: buffer expected"; - if (message.encryptedDeviceToken != null && message.hasOwnProperty("encryptedDeviceToken")) - if (!(message.encryptedDeviceToken && typeof message.encryptedDeviceToken.length === "number" || $util.isString(message.encryptedDeviceToken))) - return "encryptedDeviceToken: buffer expected"; - if (message.encryptedClientKey != null && message.hasOwnProperty("encryptedClientKey")) - if (!(message.encryptedClientKey && typeof message.encryptedClientKey.length === "number" || $util.isString(message.encryptedClientKey))) - return "encryptedClientKey: buffer expected"; - if (message.clientVersion != null && message.hasOwnProperty("clientVersion")) - if (!$util.isString(message.clientVersion)) - return "clientVersion: string expected"; - if (message.encryptedDeviceDataKey != null && message.hasOwnProperty("encryptedDeviceDataKey")) - if (!(message.encryptedDeviceDataKey && typeof message.encryptedDeviceDataKey.length === "number" || $util.isString(message.encryptedDeviceDataKey))) - return "encryptedDeviceDataKey: buffer expected"; - if (message.encryptedLoginToken != null && message.hasOwnProperty("encryptedLoginToken")) - if (!(message.encryptedLoginToken && typeof message.encryptedLoginToken.length === "number" || $util.isString(message.encryptedLoginToken))) - return "encryptedLoginToken: buffer expected"; - if (message.messageSessionUid != null && message.hasOwnProperty("messageSessionUid")) - if (!(message.messageSessionUid && typeof message.messageSessionUid.length === "number" || $util.isString(message.messageSessionUid))) - return "messageSessionUid: buffer expected"; - if (message.installReferrer != null && message.hasOwnProperty("installReferrer")) - if (!$util.isString(message.installReferrer)) - return "installReferrer: string expected"; - if (message.mccMNC != null && message.hasOwnProperty("mccMNC")) - if (!$util.isInteger(message.mccMNC)) - return "mccMNC: integer expected"; - if (message.mfg != null && message.hasOwnProperty("mfg")) - if (!$util.isString(message.mfg)) - return "mfg: string expected"; - if (message.model != null && message.hasOwnProperty("model")) - if (!$util.isString(message.model)) - return "model: string expected"; - if (message.brand != null && message.hasOwnProperty("brand")) - if (!$util.isString(message.brand)) - return "brand: string expected"; - if (message.product != null && message.hasOwnProperty("product")) - if (!$util.isString(message.product)) - return "product: string expected"; - if (message.device != null && message.hasOwnProperty("device")) - if (!$util.isString(message.device)) - return "device: string expected"; - if (message.carrier != null && message.hasOwnProperty("carrier")) - if (!$util.isString(message.carrier)) - return "carrier: string expected"; - if (message.verificationCode != null && message.hasOwnProperty("verificationCode")) - 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); - if (error) - return "enterpriseRegistration." + error; - } - if (message.encryptedVerificationToken != null && message.hasOwnProperty("encryptedVerificationToken")) - if (!(message.encryptedVerificationToken && typeof message.encryptedVerificationToken.length === "number" || $util.isString(message.encryptedVerificationToken))) - return "encryptedVerificationToken: buffer expected"; - if (message.enterpriseUsersDataKey != null && message.hasOwnProperty("enterpriseUsersDataKey")) - if (!(message.enterpriseUsersDataKey && typeof message.enterpriseUsersDataKey.length === "number" || $util.isString(message.enterpriseUsersDataKey))) - return "enterpriseUsersDataKey: buffer expected"; - return null; - }; - /** * Creates a CreateUserRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -25015,6 +20375,8 @@ export const Authentication = $root.Authentication = (() => { CreateUserRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.Authentication.CreateUserRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".Authentication.CreateUserRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -25098,7 +20460,7 @@ export const Authentication = $root.Authentication = (() => { if (object.verificationCode != null) message.verificationCode = String(object.verificationCode); if (object.enterpriseRegistration != null) { - if (typeof object.enterpriseRegistration !== "object") + if (!$util.isObject(object.enterpriseRegistration)) throw TypeError(".Authentication.CreateUserRequest.enterpriseRegistration: object expected"); message.enterpriseRegistration = $root.Enterprise.EnterpriseRegistration.fromObject(object.enterpriseRegistration, long + 1); } @@ -25237,55 +20599,55 @@ export const Authentication = $root.Authentication = (() => { object.enterpriseUsersDataKey = $util.newBuffer(object.enterpriseUsersDataKey); } } - if (message.username != null && message.hasOwnProperty("username")) + if (message.username != null && Object.hasOwnProperty.call(message, "username")) object.username = message.username; - if (message.authVerifier != null && message.hasOwnProperty("authVerifier")) + if (message.authVerifier != null && Object.hasOwnProperty.call(message, "authVerifier")) object.authVerifier = options.bytes === String ? $util.base64.encode(message.authVerifier, 0, message.authVerifier.length) : options.bytes === Array ? Array.prototype.slice.call(message.authVerifier) : message.authVerifier; - if (message.encryptionParams != null && message.hasOwnProperty("encryptionParams")) + if (message.encryptionParams != null && Object.hasOwnProperty.call(message, "encryptionParams")) object.encryptionParams = options.bytes === String ? $util.base64.encode(message.encryptionParams, 0, message.encryptionParams.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptionParams) : message.encryptionParams; - if (message.rsaPublicKey != null && message.hasOwnProperty("rsaPublicKey")) + if (message.rsaPublicKey != null && Object.hasOwnProperty.call(message, "rsaPublicKey")) object.rsaPublicKey = options.bytes === String ? $util.base64.encode(message.rsaPublicKey, 0, message.rsaPublicKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.rsaPublicKey) : message.rsaPublicKey; - if (message.rsaEncryptedPrivateKey != null && message.hasOwnProperty("rsaEncryptedPrivateKey")) + if (message.rsaEncryptedPrivateKey != null && Object.hasOwnProperty.call(message, "rsaEncryptedPrivateKey")) object.rsaEncryptedPrivateKey = options.bytes === String ? $util.base64.encode(message.rsaEncryptedPrivateKey, 0, message.rsaEncryptedPrivateKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.rsaEncryptedPrivateKey) : message.rsaEncryptedPrivateKey; - if (message.eccPublicKey != null && message.hasOwnProperty("eccPublicKey")) + if (message.eccPublicKey != null && Object.hasOwnProperty.call(message, "eccPublicKey")) object.eccPublicKey = options.bytes === String ? $util.base64.encode(message.eccPublicKey, 0, message.eccPublicKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.eccPublicKey) : message.eccPublicKey; - if (message.eccEncryptedPrivateKey != null && message.hasOwnProperty("eccEncryptedPrivateKey")) + if (message.eccEncryptedPrivateKey != null && Object.hasOwnProperty.call(message, "eccEncryptedPrivateKey")) object.eccEncryptedPrivateKey = options.bytes === String ? $util.base64.encode(message.eccEncryptedPrivateKey, 0, message.eccEncryptedPrivateKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.eccEncryptedPrivateKey) : message.eccEncryptedPrivateKey; - if (message.encryptedDeviceToken != null && message.hasOwnProperty("encryptedDeviceToken")) + if (message.encryptedDeviceToken != null && Object.hasOwnProperty.call(message, "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.encryptedClientKey != null && message.hasOwnProperty("encryptedClientKey")) + if (message.encryptedClientKey != null && Object.hasOwnProperty.call(message, "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.clientVersion != null && message.hasOwnProperty("clientVersion")) + if (message.clientVersion != null && Object.hasOwnProperty.call(message, "clientVersion")) object.clientVersion = message.clientVersion; - if (message.encryptedDeviceDataKey != null && message.hasOwnProperty("encryptedDeviceDataKey")) + if (message.encryptedDeviceDataKey != null && Object.hasOwnProperty.call(message, "encryptedDeviceDataKey")) object.encryptedDeviceDataKey = options.bytes === String ? $util.base64.encode(message.encryptedDeviceDataKey, 0, message.encryptedDeviceDataKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedDeviceDataKey) : message.encryptedDeviceDataKey; - if (message.encryptedLoginToken != null && message.hasOwnProperty("encryptedLoginToken")) + if (message.encryptedLoginToken != null && Object.hasOwnProperty.call(message, "encryptedLoginToken")) object.encryptedLoginToken = options.bytes === String ? $util.base64.encode(message.encryptedLoginToken, 0, message.encryptedLoginToken.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedLoginToken) : message.encryptedLoginToken; - if (message.messageSessionUid != null && message.hasOwnProperty("messageSessionUid")) + if (message.messageSessionUid != null && Object.hasOwnProperty.call(message, "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.installReferrer != null && message.hasOwnProperty("installReferrer")) + if (message.installReferrer != null && Object.hasOwnProperty.call(message, "installReferrer")) object.installReferrer = message.installReferrer; - if (message.mccMNC != null && message.hasOwnProperty("mccMNC")) + if (message.mccMNC != null && Object.hasOwnProperty.call(message, "mccMNC")) object.mccMNC = message.mccMNC; - if (message.mfg != null && message.hasOwnProperty("mfg")) + if (message.mfg != null && Object.hasOwnProperty.call(message, "mfg")) object.mfg = message.mfg; - if (message.model != null && message.hasOwnProperty("model")) + if (message.model != null && Object.hasOwnProperty.call(message, "model")) object.model = message.model; - if (message.brand != null && message.hasOwnProperty("brand")) + if (message.brand != null && Object.hasOwnProperty.call(message, "brand")) object.brand = message.brand; - if (message.product != null && message.hasOwnProperty("product")) + if (message.product != null && Object.hasOwnProperty.call(message, "product")) object.product = message.product; - if (message.device != null && message.hasOwnProperty("device")) + if (message.device != null && Object.hasOwnProperty.call(message, "device")) object.device = message.device; - if (message.carrier != null && message.hasOwnProperty("carrier")) + if (message.carrier != null && Object.hasOwnProperty.call(message, "carrier")) object.carrier = message.carrier; - if (message.verificationCode != null && message.hasOwnProperty("verificationCode")) + if (message.verificationCode != null && Object.hasOwnProperty.call(message, "verificationCode")) object.verificationCode = message.verificationCode; - if (message.enterpriseRegistration != null && message.hasOwnProperty("enterpriseRegistration")) + if (message.enterpriseRegistration != null && Object.hasOwnProperty.call(message, "enterpriseRegistration")) object.enterpriseRegistration = $root.Enterprise.EnterpriseRegistration.toObject(message.enterpriseRegistration, options, q + 1); - if (message.encryptedVerificationToken != null && message.hasOwnProperty("encryptedVerificationToken")) + if (message.encryptedVerificationToken != null && Object.hasOwnProperty.call(message, "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")) + if (message.enterpriseUsersDataKey != null && Object.hasOwnProperty.call(message, "enterpriseUsersDataKey")) object.enterpriseUsersDataKey = options.bytes === String ? $util.base64.encode(message.enterpriseUsersDataKey, 0, message.enterpriseUsersDataKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.enterpriseUsersDataKey) : message.enterpriseUsersDataKey; return object; }; @@ -25406,19 +20768,6 @@ export const Authentication = $root.Authentication = (() => { return writer; }; - /** - * Encodes the specified NodeEnforcementAddOrUpdateRequest message, length delimited. Does not implicitly {@link Authentication.NodeEnforcementAddOrUpdateRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof Authentication.NodeEnforcementAddOrUpdateRequest - * @static - * @param {Authentication.INodeEnforcementAddOrUpdateRequest} message NodeEnforcementAddOrUpdateRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - NodeEnforcementAddOrUpdateRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a NodeEnforcementAddOrUpdateRequest message from the specified reader or buffer. * @function decode @@ -25463,49 +20812,6 @@ export const Authentication = $root.Authentication = (() => { return message; }; - /** - * Decodes a NodeEnforcementAddOrUpdateRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Authentication.NodeEnforcementAddOrUpdateRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Authentication.NodeEnforcementAddOrUpdateRequest} NodeEnforcementAddOrUpdateRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - NodeEnforcementAddOrUpdateRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a NodeEnforcementAddOrUpdateRequest message. - * @function verify - * @memberof Authentication.NodeEnforcementAddOrUpdateRequest - * @static - * @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) { - if (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"; - if (message.enforcement != null && message.hasOwnProperty("enforcement")) - if (!$util.isString(message.enforcement)) - return "enforcement: string expected"; - if (message.value != null && message.hasOwnProperty("value")) - if (!$util.isString(message.value)) - return "value: string expected"; - return null; - }; - /** * Creates a NodeEnforcementAddOrUpdateRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -25517,6 +20823,8 @@ export const Authentication = $root.Authentication = (() => { NodeEnforcementAddOrUpdateRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.Authentication.NodeEnforcementAddOrUpdateRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".Authentication.NodeEnforcementAddOrUpdateRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -25564,16 +20872,16 @@ export const Authentication = $root.Authentication = (() => { object.enforcement = ""; object.value = ""; } - if (message.nodeId != null && message.hasOwnProperty("nodeId")) + if (message.nodeId != null && Object.hasOwnProperty.call(message, "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") 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.enforcement != null && message.hasOwnProperty("enforcement")) + if (message.enforcement != null && Object.hasOwnProperty.call(message, "enforcement")) object.enforcement = message.enforcement; - if (message.value != null && message.hasOwnProperty("value")) + if (message.value != null && Object.hasOwnProperty.call(message, "value")) object.value = message.value; return object; }; @@ -25683,19 +20991,6 @@ export const Authentication = $root.Authentication = (() => { return writer; }; - /** - * Encodes the specified NodeEnforcementRemoveRequest message, length delimited. Does not implicitly {@link Authentication.NodeEnforcementRemoveRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof Authentication.NodeEnforcementRemoveRequest - * @static - * @param {Authentication.INodeEnforcementRemoveRequest} message NodeEnforcementRemoveRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - NodeEnforcementRemoveRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a NodeEnforcementRemoveRequest message from the specified reader or buffer. * @function decode @@ -25736,46 +21031,6 @@ export const Authentication = $root.Authentication = (() => { return message; }; - /** - * Decodes a NodeEnforcementRemoveRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Authentication.NodeEnforcementRemoveRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Authentication.NodeEnforcementRemoveRequest} NodeEnforcementRemoveRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - NodeEnforcementRemoveRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a NodeEnforcementRemoveRequest message. - * @function verify - * @memberof Authentication.NodeEnforcementRemoveRequest - * @static - * @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) { - if (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"; - if (message.enforcement != null && message.hasOwnProperty("enforcement")) - if (!$util.isString(message.enforcement)) - return "enforcement: string expected"; - return null; - }; - /** * Creates a NodeEnforcementRemoveRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -25787,6 +21042,8 @@ export const Authentication = $root.Authentication = (() => { NodeEnforcementRemoveRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.Authentication.NodeEnforcementRemoveRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".Authentication.NodeEnforcementRemoveRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -25831,14 +21088,14 @@ export const Authentication = $root.Authentication = (() => { object.nodeId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; object.enforcement = ""; } - if (message.nodeId != null && message.hasOwnProperty("nodeId")) + if (message.nodeId != null && Object.hasOwnProperty.call(message, "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") 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.enforcement != null && message.hasOwnProperty("enforcement")) + if (message.enforcement != null && Object.hasOwnProperty.call(message, "enforcement")) object.enforcement = message.enforcement; return object; }; @@ -26003,19 +21260,6 @@ export const Authentication = $root.Authentication = (() => { return writer; }; - /** - * Encodes the specified ApiRequestByKey message, length delimited. Does not implicitly {@link Authentication.ApiRequestByKey.verify|verify} messages. - * @function encodeDelimited - * @memberof Authentication.ApiRequestByKey - * @static - * @param {Authentication.IApiRequestByKey} message ApiRequestByKey message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ApiRequestByKey.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes an ApiRequestByKey message from the specified reader or buffer. * @function decode @@ -26076,87 +21320,6 @@ export const Authentication = $root.Authentication = (() => { return message; }; - /** - * Decodes an ApiRequestByKey message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Authentication.ApiRequestByKey - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Authentication.ApiRequestByKey} ApiRequestByKey - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ApiRequestByKey.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an ApiRequestByKey message. - * @function verify - * @memberof Authentication.ApiRequestByKey - * @static - * @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) { - if (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"; - if (message.payload != null && message.hasOwnProperty("payload")) - if (!(message.payload && typeof message.payload.length === "number" || $util.isString(message.payload))) - return "payload: buffer expected"; - if (message.username != null && message.hasOwnProperty("username")) - if (!$util.isString(message.username)) - return "username: string expected"; - if (message.locale != null && message.hasOwnProperty("locale")) - if (!$util.isString(message.locale)) - return "locale: string expected"; - if (message.supportedLanguage != null && message.hasOwnProperty("supportedLanguage")) - switch (message.supportedLanguage) { - default: - return "supportedLanguage: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: - case 9: - case 10: - case 11: - case 12: - case 13: - case 14: - case 15: - case 16: - case 17: - case 18: - case 19: - case 20: - case 21: - case 22: - break; - } - if (message.type != null && message.hasOwnProperty("type")) - if (!$util.isInteger(message.type)) - return "type: integer expected"; - if (message.parentThreadId != null && message.hasOwnProperty("parentThreadId")) - if (!$util.isString(message.parentThreadId)) - return "parentThreadId: string expected"; - return null; - }; - /** * Creates an ApiRequestByKey message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -26168,6 +21331,8 @@ export const Authentication = $root.Authentication = (() => { ApiRequestByKey.fromObject = function fromObject(object, long) { if (object instanceof $root.Authentication.ApiRequestByKey) return object; + if (!$util.isObject(object)) + throw TypeError(".Authentication.ApiRequestByKey: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -26323,19 +21488,19 @@ export const Authentication = $root.Authentication = (() => { object.type = 0; object.parentThreadId = ""; } - if (message.keyId != null && message.hasOwnProperty("keyId")) + if (message.keyId != null && Object.hasOwnProperty.call(message, "keyId")) object.keyId = message.keyId; - if (message.payload != null && message.hasOwnProperty("payload")) + if (message.payload != null && Object.hasOwnProperty.call(message, "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.username != null && message.hasOwnProperty("username")) + if (message.username != null && Object.hasOwnProperty.call(message, "username")) object.username = message.username; - if (message.locale != null && message.hasOwnProperty("locale")) + if (message.locale != null && Object.hasOwnProperty.call(message, "locale")) object.locale = message.locale; - if (message.supportedLanguage != null && message.hasOwnProperty("supportedLanguage")) + if (message.supportedLanguage != null && Object.hasOwnProperty.call(message, "supportedLanguage")) object.supportedLanguage = options.enums === String ? $root.Authentication.SupportedLanguage[message.supportedLanguage] === undefined ? message.supportedLanguage : $root.Authentication.SupportedLanguage[message.supportedLanguage] : message.supportedLanguage; - if (message.type != null && message.hasOwnProperty("type")) + if (message.type != null && Object.hasOwnProperty.call(message, "type")) object.type = message.type; - if (message.parentThreadId != null && message.hasOwnProperty("parentThreadId")) + if (message.parentThreadId != null && Object.hasOwnProperty.call(message, "parentThreadId")) object.parentThreadId = message.parentThreadId; return object; }; @@ -26467,19 +21632,6 @@ export const Authentication = $root.Authentication = (() => { return writer; }; - /** - * Encodes the specified ApiRequestByKAtoKAKey message, length delimited. Does not implicitly {@link Authentication.ApiRequestByKAtoKAKey.verify|verify} messages. - * @function encodeDelimited - * @memberof Authentication.ApiRequestByKAtoKAKey - * @static - * @param {Authentication.IApiRequestByKAtoKAKey} message ApiRequestByKAtoKAKey message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ApiRequestByKAtoKAKey.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes an ApiRequestByKAtoKAKey message from the specified reader or buffer. * @function decode @@ -26528,98 +21680,6 @@ export const Authentication = $root.Authentication = (() => { return message; }; - /** - * Decodes an ApiRequestByKAtoKAKey message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Authentication.ApiRequestByKAtoKAKey - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Authentication.ApiRequestByKAtoKAKey} ApiRequestByKAtoKAKey - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ApiRequestByKAtoKAKey.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an ApiRequestByKAtoKAKey message. - * @function verify - * @memberof Authentication.ApiRequestByKAtoKAKey - * @static - * @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) { - if (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: - return "sourceRegion: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - break; - } - if (message.payload != null && message.hasOwnProperty("payload")) - if (!(message.payload && typeof message.payload.length === "number" || $util.isString(message.payload))) - return "payload: buffer expected"; - if (message.supportedLanguage != null && message.hasOwnProperty("supportedLanguage")) - switch (message.supportedLanguage) { - default: - return "supportedLanguage: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: - case 9: - case 10: - case 11: - case 12: - case 13: - case 14: - case 15: - case 16: - case 17: - case 18: - case 19: - case 20: - case 21: - case 22: - break; - } - if (message.destinationRegion != null && message.hasOwnProperty("destinationRegion")) - switch (message.destinationRegion) { - default: - return "destinationRegion: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - break; - } - return null; - }; - /** * Creates an ApiRequestByKAtoKAKey message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -26631,6 +21691,8 @@ export const Authentication = $root.Authentication = (() => { ApiRequestByKAtoKAKey.fromObject = function fromObject(object, long) { if (object instanceof $root.Authentication.ApiRequestByKAtoKAKey) return object; + if (!$util.isObject(object)) + throw TypeError(".Authentication.ApiRequestByKAtoKAKey: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -26845,13 +21907,13 @@ export const Authentication = $root.Authentication = (() => { object.supportedLanguage = options.enums === String ? "ENGLISH" : 0; object.destinationRegion = options.enums === String ? "UNKNOWN" : 0; } - if (message.sourceRegion != null && message.hasOwnProperty("sourceRegion")) + if (message.sourceRegion != null && Object.hasOwnProperty.call(message, "sourceRegion")) object.sourceRegion = options.enums === String ? $root.Authentication.Region[message.sourceRegion] === undefined ? message.sourceRegion : $root.Authentication.Region[message.sourceRegion] : message.sourceRegion; - if (message.payload != null && message.hasOwnProperty("payload")) + if (message.payload != null && Object.hasOwnProperty.call(message, "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.supportedLanguage != null && message.hasOwnProperty("supportedLanguage")) + if (message.supportedLanguage != null && Object.hasOwnProperty.call(message, "supportedLanguage")) object.supportedLanguage = options.enums === String ? $root.Authentication.SupportedLanguage[message.supportedLanguage] === undefined ? message.supportedLanguage : $root.Authentication.SupportedLanguage[message.supportedLanguage] : message.supportedLanguage; - if (message.destinationRegion != null && message.hasOwnProperty("destinationRegion")) + if (message.destinationRegion != null && Object.hasOwnProperty.call(message, "destinationRegion")) object.destinationRegion = options.enums === String ? $root.Authentication.Region[message.destinationRegion] === undefined ? message.destinationRegion : $root.Authentication.Region[message.destinationRegion] : message.destinationRegion; return object; }; @@ -26961,19 +22023,6 @@ export const Authentication = $root.Authentication = (() => { return writer; }; - /** - * Encodes the specified MemcacheRequest message, length delimited. Does not implicitly {@link Authentication.MemcacheRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof Authentication.MemcacheRequest - * @static - * @param {Authentication.IMemcacheRequest} message MemcacheRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MemcacheRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a MemcacheRequest message from the specified reader or buffer. * @function decode @@ -27014,46 +22063,6 @@ export const Authentication = $root.Authentication = (() => { return message; }; - /** - * Decodes a MemcacheRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Authentication.MemcacheRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Authentication.MemcacheRequest} MemcacheRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MemcacheRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a MemcacheRequest message. - * @function verify - * @memberof Authentication.MemcacheRequest - * @static - * @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) { - if (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"; - if (message.userId != null && message.hasOwnProperty("userId")) - if (!$util.isInteger(message.userId)) - return "userId: integer expected"; - return null; - }; - /** * Creates a MemcacheRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -27065,6 +22074,8 @@ export const Authentication = $root.Authentication = (() => { MemcacheRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.Authentication.MemcacheRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".Authentication.MemcacheRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -27098,9 +22109,9 @@ export const Authentication = $root.Authentication = (() => { object.key = ""; object.userId = 0; } - if (message.key != null && message.hasOwnProperty("key")) + if (message.key != null && Object.hasOwnProperty.call(message, "key")) object.key = message.key; - if (message.userId != null && message.hasOwnProperty("userId")) + if (message.userId != null && Object.hasOwnProperty.call(message, "userId")) object.userId = message.userId; return object; }; @@ -27210,19 +22221,6 @@ export const Authentication = $root.Authentication = (() => { return writer; }; - /** - * Encodes the specified MemcacheResponse message, length delimited. Does not implicitly {@link Authentication.MemcacheResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof Authentication.MemcacheResponse - * @static - * @param {Authentication.IMemcacheResponse} message MemcacheResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MemcacheResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a MemcacheResponse message from the specified reader or buffer. * @function decode @@ -27263,46 +22261,6 @@ export const Authentication = $root.Authentication = (() => { return message; }; - /** - * Decodes a MemcacheResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Authentication.MemcacheResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Authentication.MemcacheResponse} MemcacheResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MemcacheResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a MemcacheResponse message. - * @function verify - * @memberof Authentication.MemcacheResponse - * @static - * @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) { - if (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"; - if (message.value != null && message.hasOwnProperty("value")) - if (!$util.isString(message.value)) - return "value: string expected"; - return null; - }; - /** * Creates a MemcacheResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -27314,6 +22272,8 @@ export const Authentication = $root.Authentication = (() => { MemcacheResponse.fromObject = function fromObject(object, long) { if (object instanceof $root.Authentication.MemcacheResponse) return object; + if (!$util.isObject(object)) + throw TypeError(".Authentication.MemcacheResponse: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -27347,9 +22307,9 @@ export const Authentication = $root.Authentication = (() => { object.key = ""; object.value = ""; } - if (message.key != null && message.hasOwnProperty("key")) + if (message.key != null && Object.hasOwnProperty.call(message, "key")) object.key = message.key; - if (message.value != null && message.hasOwnProperty("value")) + if (message.value != null && Object.hasOwnProperty.call(message, "value")) object.value = message.value; return object; }; @@ -27459,19 +22419,6 @@ export const Authentication = $root.Authentication = (() => { return writer; }; - /** - * Encodes the specified MasterPasswordReentryRequest message, length delimited. Does not implicitly {@link Authentication.MasterPasswordReentryRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof Authentication.MasterPasswordReentryRequest - * @static - * @param {Authentication.IMasterPasswordReentryRequest} message MasterPasswordReentryRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MasterPasswordReentryRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a MasterPasswordReentryRequest message from the specified reader or buffer. * @function decode @@ -27512,51 +22459,6 @@ export const Authentication = $root.Authentication = (() => { return message; }; - /** - * Decodes a MasterPasswordReentryRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Authentication.MasterPasswordReentryRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Authentication.MasterPasswordReentryRequest} MasterPasswordReentryRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MasterPasswordReentryRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a MasterPasswordReentryRequest message. - * @function verify - * @memberof Authentication.MasterPasswordReentryRequest - * @static - * @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) { - if (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"; - if (message.action != null && message.hasOwnProperty("action")) - switch (message.action) { - default: - return "action: enum value expected"; - case 0: - case 1: - break; - } - return null; - }; - /** * Creates a MasterPasswordReentryRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -27568,6 +22470,8 @@ export const Authentication = $root.Authentication = (() => { MasterPasswordReentryRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.Authentication.MasterPasswordReentryRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".Authentication.MasterPasswordReentryRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -27615,9 +22519,9 @@ export const Authentication = $root.Authentication = (() => { object.pbkdf2Password = ""; object.action = options.enums === String ? "UNMASK" : 0; } - if (message.pbkdf2Password != null && message.hasOwnProperty("pbkdf2Password")) + if (message.pbkdf2Password != null && Object.hasOwnProperty.call(message, "pbkdf2Password")) object.pbkdf2Password = message.pbkdf2Password; - if (message.action != null && message.hasOwnProperty("action")) + if (message.action != null && Object.hasOwnProperty.call(message, "action")) object.action = options.enums === String ? $root.Authentication.MasterPasswordReentryActionType[message.action] === undefined ? message.action : $root.Authentication.MasterPasswordReentryActionType[message.action] : message.action; return object; }; @@ -27732,19 +22636,6 @@ export const Authentication = $root.Authentication = (() => { return writer; }; - /** - * Encodes the specified MasterPasswordReentryResponse message, length delimited. Does not implicitly {@link Authentication.MasterPasswordReentryResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof Authentication.MasterPasswordReentryResponse - * @static - * @param {Authentication.IMasterPasswordReentryResponse} message MasterPasswordReentryResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MasterPasswordReentryResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a MasterPasswordReentryResponse message from the specified reader or buffer. * @function decode @@ -27781,49 +22672,6 @@ export const Authentication = $root.Authentication = (() => { return message; }; - /** - * Decodes a MasterPasswordReentryResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Authentication.MasterPasswordReentryResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Authentication.MasterPasswordReentryResponse} MasterPasswordReentryResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MasterPasswordReentryResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a MasterPasswordReentryResponse message. - * @function verify - * @memberof Authentication.MasterPasswordReentryResponse - * @static - * @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) { - if (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: - return "status: enum value expected"; - case 0: - case 1: - case 2: - break; - } - return null; - }; - /** * Creates a MasterPasswordReentryResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -27835,6 +22683,8 @@ export const Authentication = $root.Authentication = (() => { MasterPasswordReentryResponse.fromObject = function fromObject(object, long) { if (object instanceof $root.Authentication.MasterPasswordReentryResponse) return object; + if (!$util.isObject(object)) + throw TypeError(".Authentication.MasterPasswordReentryResponse: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -27882,7 +22732,7 @@ export const Authentication = $root.Authentication = (() => { let object = {}; if (options.defaults) object.status = options.enums === String ? "MP_UNKNOWN" : 0; - if (message.status != null && message.hasOwnProperty("status")) + if (message.status != null && Object.hasOwnProperty.call(message, "status")) object.status = options.enums === String ? $root.Authentication.MasterPasswordReentryStatus[message.status] === undefined ? message.status : $root.Authentication.MasterPasswordReentryStatus[message.status] : message.status; return object; }; @@ -28036,19 +22886,6 @@ export const Authentication = $root.Authentication = (() => { return writer; }; - /** - * Encodes the specified DeviceRegistrationRequest message, length delimited. Does not implicitly {@link Authentication.DeviceRegistrationRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof Authentication.DeviceRegistrationRequest - * @static - * @param {Authentication.IDeviceRegistrationRequest} message DeviceRegistrationRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - DeviceRegistrationRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a DeviceRegistrationRequest message from the specified reader or buffer. * @function decode @@ -28105,65 +22942,6 @@ export const Authentication = $root.Authentication = (() => { return message; }; - /** - * Decodes a DeviceRegistrationRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Authentication.DeviceRegistrationRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Authentication.DeviceRegistrationRequest} DeviceRegistrationRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - DeviceRegistrationRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a DeviceRegistrationRequest message. - * @function verify - * @memberof Authentication.DeviceRegistrationRequest - * @static - * @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) { - if (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"; - if (message.deviceName != null && message.hasOwnProperty("deviceName")) - if (!$util.isString(message.deviceName)) - return "deviceName: string expected"; - if (message.devicePublicKey != null && message.hasOwnProperty("devicePublicKey")) - if (!(message.devicePublicKey && typeof message.devicePublicKey.length === "number" || $util.isString(message.devicePublicKey))) - return "devicePublicKey: buffer expected"; - if (message.devicePlatform != null && message.hasOwnProperty("devicePlatform")) - if (!$util.isString(message.devicePlatform)) - return "devicePlatform: string expected"; - if (message.clientFormFactor != null && message.hasOwnProperty("clientFormFactor")) - switch (message.clientFormFactor) { - default: - return "clientFormFactor: enum value expected"; - case 0: - case 1: - case 2: - case 3: - break; - } - if (message.username != null && message.hasOwnProperty("username")) - if (!$util.isString(message.username)) - return "username: string expected"; - return null; - }; - /** * Creates a DeviceRegistrationRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -28175,6 +22953,8 @@ export const Authentication = $root.Authentication = (() => { DeviceRegistrationRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.Authentication.DeviceRegistrationRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".Authentication.DeviceRegistrationRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -28251,17 +23031,17 @@ export const Authentication = $root.Authentication = (() => { object.clientFormFactor = options.enums === String ? "FF_EMPTY" : 0; object.username = ""; } - if (message.clientVersion != null && message.hasOwnProperty("clientVersion")) + if (message.clientVersion != null && Object.hasOwnProperty.call(message, "clientVersion")) object.clientVersion = message.clientVersion; - if (message.deviceName != null && message.hasOwnProperty("deviceName")) + if (message.deviceName != null && Object.hasOwnProperty.call(message, "deviceName")) object.deviceName = message.deviceName; - if (message.devicePublicKey != null && message.hasOwnProperty("devicePublicKey")) + if (message.devicePublicKey != null && Object.hasOwnProperty.call(message, "devicePublicKey")) object.devicePublicKey = options.bytes === String ? $util.base64.encode(message.devicePublicKey, 0, message.devicePublicKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.devicePublicKey) : message.devicePublicKey; - if (message.devicePlatform != null && message.hasOwnProperty("devicePlatform")) + if (message.devicePlatform != null && Object.hasOwnProperty.call(message, "devicePlatform")) object.devicePlatform = message.devicePlatform; - if (message.clientFormFactor != null && message.hasOwnProperty("clientFormFactor")) + if (message.clientFormFactor != null && Object.hasOwnProperty.call(message, "clientFormFactor")) object.clientFormFactor = options.enums === String ? $root.Authentication.ClientFormFactor[message.clientFormFactor] === undefined ? message.clientFormFactor : $root.Authentication.ClientFormFactor[message.clientFormFactor] : message.clientFormFactor; - if (message.username != null && message.hasOwnProperty("username")) + if (message.username != null && Object.hasOwnProperty.call(message, "username")) object.username = message.username; return object; }; @@ -28404,19 +23184,6 @@ export const Authentication = $root.Authentication = (() => { return writer; }; - /** - * Encodes the specified DeviceVerificationRequest message, length delimited. Does not implicitly {@link Authentication.DeviceVerificationRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof Authentication.DeviceVerificationRequest - * @static - * @param {Authentication.IDeviceVerificationRequest} message DeviceVerificationRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - DeviceVerificationRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a DeviceVerificationRequest message from the specified reader or buffer. * @function decode @@ -28469,55 +23236,6 @@ export const Authentication = $root.Authentication = (() => { return message; }; - /** - * Decodes a DeviceVerificationRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Authentication.DeviceVerificationRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Authentication.DeviceVerificationRequest} DeviceVerificationRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - DeviceVerificationRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a DeviceVerificationRequest message. - * @function verify - * @memberof Authentication.DeviceVerificationRequest - * @static - * @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) { - if (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"; - if (message.username != null && message.hasOwnProperty("username")) - if (!$util.isString(message.username)) - return "username: string expected"; - if (message.verificationChannel != null && message.hasOwnProperty("verificationChannel")) - if (!$util.isString(message.verificationChannel)) - return "verificationChannel: string expected"; - if (message.messageSessionUid != null && message.hasOwnProperty("messageSessionUid")) - if (!(message.messageSessionUid && typeof message.messageSessionUid.length === "number" || $util.isString(message.messageSessionUid))) - return "messageSessionUid: buffer expected"; - if (message.clientVersion != null && message.hasOwnProperty("clientVersion")) - if (!$util.isString(message.clientVersion)) - return "clientVersion: string expected"; - return null; - }; - /** * Creates a DeviceVerificationRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -28529,6 +23247,8 @@ export const Authentication = $root.Authentication = (() => { DeviceVerificationRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.Authentication.DeviceVerificationRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".Authentication.DeviceVerificationRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -28589,15 +23309,15 @@ export const Authentication = $root.Authentication = (() => { } object.clientVersion = ""; } - if (message.encryptedDeviceToken != null && message.hasOwnProperty("encryptedDeviceToken")) + if (message.encryptedDeviceToken != null && Object.hasOwnProperty.call(message, "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.username != null && message.hasOwnProperty("username")) + if (message.username != null && Object.hasOwnProperty.call(message, "username")) object.username = message.username; - if (message.verificationChannel != null && message.hasOwnProperty("verificationChannel")) + if (message.verificationChannel != null && Object.hasOwnProperty.call(message, "verificationChannel")) object.verificationChannel = message.verificationChannel; - if (message.messageSessionUid != null && message.hasOwnProperty("messageSessionUid")) + if (message.messageSessionUid != null && Object.hasOwnProperty.call(message, "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.clientVersion != null && message.hasOwnProperty("clientVersion")) + if (message.clientVersion != null && Object.hasOwnProperty.call(message, "clientVersion")) object.clientVersion = message.clientVersion; return object; }; @@ -28740,19 +23460,6 @@ export const Authentication = $root.Authentication = (() => { return writer; }; - /** - * Encodes the specified DeviceVerificationResponse message, length delimited. Does not implicitly {@link Authentication.DeviceVerificationResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof Authentication.DeviceVerificationResponse - * @static - * @param {Authentication.IDeviceVerificationResponse} message DeviceVerificationResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - DeviceVerificationResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a DeviceVerificationResponse message from the specified reader or buffer. * @function decode @@ -28805,62 +23512,6 @@ export const Authentication = $root.Authentication = (() => { return message; }; - /** - * Decodes a DeviceVerificationResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Authentication.DeviceVerificationResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Authentication.DeviceVerificationResponse} DeviceVerificationResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - DeviceVerificationResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a DeviceVerificationResponse message. - * @function verify - * @memberof Authentication.DeviceVerificationResponse - * @static - * @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) { - if (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"; - if (message.username != null && message.hasOwnProperty("username")) - if (!$util.isString(message.username)) - return "username: string expected"; - if (message.messageSessionUid != null && message.hasOwnProperty("messageSessionUid")) - if (!(message.messageSessionUid && typeof message.messageSessionUid.length === "number" || $util.isString(message.messageSessionUid))) - return "messageSessionUid: buffer expected"; - if (message.clientVersion != null && message.hasOwnProperty("clientVersion")) - if (!$util.isString(message.clientVersion)) - return "clientVersion: string expected"; - if (message.deviceStatus != null && message.hasOwnProperty("deviceStatus")) - switch (message.deviceStatus) { - default: - return "deviceStatus: enum value expected"; - case 0: - case 1: - case 2: - case 3: - break; - } - return null; - }; - /** * Creates a DeviceVerificationResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -28872,6 +23523,8 @@ export const Authentication = $root.Authentication = (() => { DeviceVerificationResponse.fromObject = function fromObject(object, long) { if (object instanceof $root.Authentication.DeviceVerificationResponse) return object; + if (!$util.isObject(object)) + throw TypeError(".Authentication.DeviceVerificationResponse: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -28954,15 +23607,15 @@ export const Authentication = $root.Authentication = (() => { object.clientVersion = ""; object.deviceStatus = options.enums === String ? "DEVICE_NEEDS_APPROVAL" : 0; } - if (message.encryptedDeviceToken != null && message.hasOwnProperty("encryptedDeviceToken")) + if (message.encryptedDeviceToken != null && Object.hasOwnProperty.call(message, "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.username != null && message.hasOwnProperty("username")) + if (message.username != null && Object.hasOwnProperty.call(message, "username")) object.username = message.username; - if (message.messageSessionUid != null && message.hasOwnProperty("messageSessionUid")) + if (message.messageSessionUid != null && Object.hasOwnProperty.call(message, "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.clientVersion != null && message.hasOwnProperty("clientVersion")) + if (message.clientVersion != null && Object.hasOwnProperty.call(message, "clientVersion")) object.clientVersion = message.clientVersion; - if (message.deviceStatus != null && message.hasOwnProperty("deviceStatus")) + if (message.deviceStatus != null && Object.hasOwnProperty.call(message, "deviceStatus")) object.deviceStatus = options.enums === String ? $root.Authentication.DeviceStatus[message.deviceStatus] === undefined ? message.deviceStatus : $root.Authentication.DeviceStatus[message.deviceStatus] : message.deviceStatus; return object; }; @@ -29138,19 +23791,6 @@ export const Authentication = $root.Authentication = (() => { return writer; }; - /** - * Encodes the specified DeviceApprovalRequest message, length delimited. Does not implicitly {@link Authentication.DeviceApprovalRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof Authentication.DeviceApprovalRequest - * @static - * @param {Authentication.IDeviceApprovalRequest} message DeviceApprovalRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - DeviceApprovalRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a DeviceApprovalRequest message from the specified reader or buffer. * @function decode @@ -29215,64 +23855,6 @@ export const Authentication = $root.Authentication = (() => { return message; }; - /** - * Decodes a DeviceApprovalRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Authentication.DeviceApprovalRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Authentication.DeviceApprovalRequest} DeviceApprovalRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - DeviceApprovalRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a DeviceApprovalRequest message. - * @function verify - * @memberof Authentication.DeviceApprovalRequest - * @static - * @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) { - if (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"; - if (message.twoFactorChannel != null && message.hasOwnProperty("twoFactorChannel")) - if (!$util.isString(message.twoFactorChannel)) - return "twoFactorChannel: string expected"; - if (message.clientVersion != null && message.hasOwnProperty("clientVersion")) - if (!$util.isString(message.clientVersion)) - return "clientVersion: string expected"; - if (message.locale != null && message.hasOwnProperty("locale")) - if (!$util.isString(message.locale)) - return "locale: string expected"; - if (message.encryptedDeviceToken != null && message.hasOwnProperty("encryptedDeviceToken")) - if (!(message.encryptedDeviceToken && typeof message.encryptedDeviceToken.length === "number" || $util.isString(message.encryptedDeviceToken))) - return "encryptedDeviceToken: buffer expected"; - if (message.totpCode != null && message.hasOwnProperty("totpCode")) - if (!$util.isString(message.totpCode)) - return "totpCode: string expected"; - if (message.deviceIp != null && message.hasOwnProperty("deviceIp")) - if (!$util.isString(message.deviceIp)) - return "deviceIp: string expected"; - if (message.deviceTokenExpireDays != null && message.hasOwnProperty("deviceTokenExpireDays")) - if (!$util.isString(message.deviceTokenExpireDays)) - return "deviceTokenExpireDays: string expected"; - return null; - }; - /** * Creates a DeviceApprovalRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -29284,6 +23866,8 @@ export const Authentication = $root.Authentication = (() => { DeviceApprovalRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.Authentication.DeviceApprovalRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".Authentication.DeviceApprovalRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -29344,21 +23928,21 @@ export const Authentication = $root.Authentication = (() => { object.deviceIp = ""; object.deviceTokenExpireDays = ""; } - if (message.email != null && message.hasOwnProperty("email")) + if (message.email != null && Object.hasOwnProperty.call(message, "email")) object.email = message.email; - if (message.twoFactorChannel != null && message.hasOwnProperty("twoFactorChannel")) + if (message.twoFactorChannel != null && Object.hasOwnProperty.call(message, "twoFactorChannel")) object.twoFactorChannel = message.twoFactorChannel; - if (message.clientVersion != null && message.hasOwnProperty("clientVersion")) + if (message.clientVersion != null && Object.hasOwnProperty.call(message, "clientVersion")) object.clientVersion = message.clientVersion; - if (message.locale != null && message.hasOwnProperty("locale")) + if (message.locale != null && Object.hasOwnProperty.call(message, "locale")) object.locale = message.locale; - if (message.encryptedDeviceToken != null && message.hasOwnProperty("encryptedDeviceToken")) + if (message.encryptedDeviceToken != null && Object.hasOwnProperty.call(message, "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.totpCode != null && message.hasOwnProperty("totpCode")) + if (message.totpCode != null && Object.hasOwnProperty.call(message, "totpCode")) object.totpCode = message.totpCode; - if (message.deviceIp != null && message.hasOwnProperty("deviceIp")) + if (message.deviceIp != null && Object.hasOwnProperty.call(message, "deviceIp")) object.deviceIp = message.deviceIp; - if (message.deviceTokenExpireDays != null && message.hasOwnProperty("deviceTokenExpireDays")) + if (message.deviceTokenExpireDays != null && Object.hasOwnProperty.call(message, "deviceTokenExpireDays")) object.deviceTokenExpireDays = message.deviceTokenExpireDays; return object; }; @@ -29457,19 +24041,6 @@ export const Authentication = $root.Authentication = (() => { return writer; }; - /** - * Encodes the specified DeviceApprovalResponse message, length delimited. Does not implicitly {@link Authentication.DeviceApprovalResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof Authentication.DeviceApprovalResponse - * @static - * @param {Authentication.IDeviceApprovalResponse} message DeviceApprovalResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - DeviceApprovalResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a DeviceApprovalResponse message from the specified reader or buffer. * @function decode @@ -29506,43 +24077,6 @@ export const Authentication = $root.Authentication = (() => { return message; }; - /** - * Decodes a DeviceApprovalResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Authentication.DeviceApprovalResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Authentication.DeviceApprovalResponse} DeviceApprovalResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - DeviceApprovalResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a DeviceApprovalResponse message. - * @function verify - * @memberof Authentication.DeviceApprovalResponse - * @static - * @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) { - if (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"; - return null; - }; - /** * Creates a DeviceApprovalResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -29554,6 +24088,8 @@ export const Authentication = $root.Authentication = (() => { DeviceApprovalResponse.fromObject = function fromObject(object, long) { if (object instanceof $root.Authentication.DeviceApprovalResponse) return object; + if (!$util.isObject(object)) + throw TypeError(".Authentication.DeviceApprovalResponse: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -29592,7 +24128,7 @@ export const Authentication = $root.Authentication = (() => { if (options.bytes !== Array) object.encryptedTwoFactorToken = $util.newBuffer(object.encryptedTwoFactorToken); } - if (message.encryptedTwoFactorToken != null && message.hasOwnProperty("encryptedTwoFactorToken")) + if (message.encryptedTwoFactorToken != null && Object.hasOwnProperty.call(message, "encryptedTwoFactorToken")) object.encryptedTwoFactorToken = options.bytes === String ? $util.base64.encode(message.encryptedTwoFactorToken, 0, message.encryptedTwoFactorToken.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedTwoFactorToken) : message.encryptedTwoFactorToken; return object; }; @@ -29724,19 +24260,6 @@ export const Authentication = $root.Authentication = (() => { return writer; }; - /** - * Encodes the specified ApproveDeviceRequest message, length delimited. Does not implicitly {@link Authentication.ApproveDeviceRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof Authentication.ApproveDeviceRequest - * @static - * @param {Authentication.IApproveDeviceRequest} message ApproveDeviceRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ApproveDeviceRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes an ApproveDeviceRequest message from the specified reader or buffer. * @function decode @@ -29785,52 +24308,6 @@ export const Authentication = $root.Authentication = (() => { return message; }; - /** - * Decodes an ApproveDeviceRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Authentication.ApproveDeviceRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Authentication.ApproveDeviceRequest} ApproveDeviceRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ApproveDeviceRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an ApproveDeviceRequest message. - * @function verify - * @memberof Authentication.ApproveDeviceRequest - * @static - * @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) { - if (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"; - if (message.encryptedDeviceDataKey != null && message.hasOwnProperty("encryptedDeviceDataKey")) - if (!(message.encryptedDeviceDataKey && typeof message.encryptedDeviceDataKey.length === "number" || $util.isString(message.encryptedDeviceDataKey))) - return "encryptedDeviceDataKey: buffer expected"; - if (message.denyApproval != null && message.hasOwnProperty("denyApproval")) - if (typeof message.denyApproval !== "boolean") - return "denyApproval: boolean expected"; - if (message.linkDevice != null && message.hasOwnProperty("linkDevice")) - if (typeof message.linkDevice !== "boolean") - return "linkDevice: boolean expected"; - return null; - }; - /** * Creates an ApproveDeviceRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -29842,6 +24319,8 @@ export const Authentication = $root.Authentication = (() => { ApproveDeviceRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.Authentication.ApproveDeviceRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".Authentication.ApproveDeviceRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -29899,13 +24378,13 @@ export const Authentication = $root.Authentication = (() => { object.denyApproval = false; object.linkDevice = false; } - if (message.encryptedDeviceToken != null && message.hasOwnProperty("encryptedDeviceToken")) + if (message.encryptedDeviceToken != null && Object.hasOwnProperty.call(message, "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.encryptedDeviceDataKey != null && message.hasOwnProperty("encryptedDeviceDataKey")) + if (message.encryptedDeviceDataKey != null && Object.hasOwnProperty.call(message, "encryptedDeviceDataKey")) object.encryptedDeviceDataKey = options.bytes === String ? $util.base64.encode(message.encryptedDeviceDataKey, 0, message.encryptedDeviceDataKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedDeviceDataKey) : message.encryptedDeviceDataKey; - if (message.denyApproval != null && message.hasOwnProperty("denyApproval")) + if (message.denyApproval != null && Object.hasOwnProperty.call(message, "denyApproval")) object.denyApproval = message.denyApproval; - if (message.linkDevice != null && message.hasOwnProperty("linkDevice")) + if (message.linkDevice != null && Object.hasOwnProperty.call(message, "linkDevice")) object.linkDevice = message.linkDevice; return object; }; @@ -30015,19 +24494,6 @@ export const Authentication = $root.Authentication = (() => { return writer; }; - /** - * Encodes the specified EnterpriseUserAliasRequest message, length delimited. Does not implicitly {@link Authentication.EnterpriseUserAliasRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof Authentication.EnterpriseUserAliasRequest - * @static - * @param {Authentication.IEnterpriseUserAliasRequest} message EnterpriseUserAliasRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - EnterpriseUserAliasRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes an EnterpriseUserAliasRequest message from the specified reader or buffer. * @function decode @@ -30068,46 +24534,6 @@ export const Authentication = $root.Authentication = (() => { return message; }; - /** - * Decodes an EnterpriseUserAliasRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Authentication.EnterpriseUserAliasRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Authentication.EnterpriseUserAliasRequest} EnterpriseUserAliasRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - EnterpriseUserAliasRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an EnterpriseUserAliasRequest message. - * @function verify - * @memberof Authentication.EnterpriseUserAliasRequest - * @static - * @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) { - if (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"; - if (message.alias != null && message.hasOwnProperty("alias")) - if (!$util.isString(message.alias)) - return "alias: string expected"; - return null; - }; - /** * Creates an EnterpriseUserAliasRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -30119,6 +24545,8 @@ export const Authentication = $root.Authentication = (() => { EnterpriseUserAliasRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.Authentication.EnterpriseUserAliasRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".Authentication.EnterpriseUserAliasRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -30163,14 +24591,14 @@ export const Authentication = $root.Authentication = (() => { object.enterpriseUserId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; object.alias = ""; } - if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) + if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, "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") 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.alias != null && message.hasOwnProperty("alias")) + if (message.alias != null && Object.hasOwnProperty.call(message, "alias")) object.alias = message.alias; return object; }; @@ -30291,19 +24719,6 @@ export const Authentication = $root.Authentication = (() => { return writer; }; - /** - * Encodes the specified EnterpriseUserAddAliasRequest message, length delimited. Does not implicitly {@link Authentication.EnterpriseUserAddAliasRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof Authentication.EnterpriseUserAddAliasRequest - * @static - * @param {Authentication.IEnterpriseUserAddAliasRequest} message EnterpriseUserAddAliasRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - EnterpriseUserAddAliasRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes an EnterpriseUserAddAliasRequest message from the specified reader or buffer. * @function decode @@ -30348,49 +24763,6 @@ export const Authentication = $root.Authentication = (() => { return message; }; - /** - * Decodes an EnterpriseUserAddAliasRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Authentication.EnterpriseUserAddAliasRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Authentication.EnterpriseUserAddAliasRequest} EnterpriseUserAddAliasRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - EnterpriseUserAddAliasRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an EnterpriseUserAddAliasRequest message. - * @function verify - * @memberof Authentication.EnterpriseUserAddAliasRequest - * @static - * @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) { - if (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"; - if (message.alias != null && message.hasOwnProperty("alias")) - if (!$util.isString(message.alias)) - return "alias: string expected"; - if (message.primary != null && message.hasOwnProperty("primary")) - if (typeof message.primary !== "boolean") - return "primary: boolean expected"; - return null; - }; - /** * Creates an EnterpriseUserAddAliasRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -30402,6 +24774,8 @@ export const Authentication = $root.Authentication = (() => { EnterpriseUserAddAliasRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.Authentication.EnterpriseUserAddAliasRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".Authentication.EnterpriseUserAddAliasRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -30449,16 +24823,16 @@ export const Authentication = $root.Authentication = (() => { object.alias = ""; object.primary = false; } - if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) + if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, "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") 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.alias != null && message.hasOwnProperty("alias")) + if (message.alias != null && Object.hasOwnProperty.call(message, "alias")) object.alias = message.alias; - if (message.primary != null && message.hasOwnProperty("primary")) + if (message.primary != null && Object.hasOwnProperty.call(message, "primary")) object.primary = message.primary; return object; }; @@ -30559,19 +24933,6 @@ export const Authentication = $root.Authentication = (() => { return writer; }; - /** - * Encodes the specified EnterpriseUserAddAliasRequestV2 message, length delimited. Does not implicitly {@link Authentication.EnterpriseUserAddAliasRequestV2.verify|verify} messages. - * @function encodeDelimited - * @memberof Authentication.EnterpriseUserAddAliasRequestV2 - * @static - * @param {Authentication.IEnterpriseUserAddAliasRequestV2} message EnterpriseUserAddAliasRequestV2 message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - EnterpriseUserAddAliasRequestV2.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes an EnterpriseUserAddAliasRequestV2 message from the specified reader or buffer. * @function decode @@ -30610,49 +24971,6 @@ export const Authentication = $root.Authentication = (() => { return message; }; - /** - * Decodes an EnterpriseUserAddAliasRequestV2 message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Authentication.EnterpriseUserAddAliasRequestV2 - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Authentication.EnterpriseUserAddAliasRequestV2} EnterpriseUserAddAliasRequestV2 - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - EnterpriseUserAddAliasRequestV2.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an EnterpriseUserAddAliasRequestV2 message. - * @function verify - * @memberof Authentication.EnterpriseUserAddAliasRequestV2 - * @static - * @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) { - if (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); - if (error) - return "enterpriseUserAddAliasRequest." + error; - } - } - return null; - }; - /** * Creates an EnterpriseUserAddAliasRequestV2 message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -30664,6 +24982,8 @@ export const Authentication = $root.Authentication = (() => { EnterpriseUserAddAliasRequestV2.fromObject = function fromObject(object, long) { if (object instanceof $root.Authentication.EnterpriseUserAddAliasRequestV2) return object; + if (!$util.isObject(object)) + throw TypeError(".Authentication.EnterpriseUserAddAliasRequestV2: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -30674,7 +24994,7 @@ export const Authentication = $root.Authentication = (() => { throw TypeError(".Authentication.EnterpriseUserAddAliasRequestV2.enterpriseUserAddAliasRequest: array expected"); message.enterpriseUserAddAliasRequest = []; for (let i = 0; i < object.enterpriseUserAddAliasRequest.length; ++i) { - if (typeof object.enterpriseUserAddAliasRequest[i] !== "object") + if (!$util.isObject(object.enterpriseUserAddAliasRequest[i])) throw TypeError(".Authentication.EnterpriseUserAddAliasRequestV2.enterpriseUserAddAliasRequest: object expected"); message.enterpriseUserAddAliasRequest[i] = $root.Authentication.EnterpriseUserAddAliasRequest.fromObject(object.enterpriseUserAddAliasRequest[i], long + 1); } @@ -30814,19 +25134,6 @@ export const Authentication = $root.Authentication = (() => { return writer; }; - /** - * Encodes the specified EnterpriseUserAddAliasStatus message, length delimited. Does not implicitly {@link Authentication.EnterpriseUserAddAliasStatus.verify|verify} messages. - * @function encodeDelimited - * @memberof Authentication.EnterpriseUserAddAliasStatus - * @static - * @param {Authentication.IEnterpriseUserAddAliasStatus} message EnterpriseUserAddAliasStatus message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - EnterpriseUserAddAliasStatus.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes an EnterpriseUserAddAliasStatus message from the specified reader or buffer. * @function decode @@ -30867,46 +25174,6 @@ export const Authentication = $root.Authentication = (() => { return message; }; - /** - * Decodes an EnterpriseUserAddAliasStatus message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Authentication.EnterpriseUserAddAliasStatus - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Authentication.EnterpriseUserAddAliasStatus} EnterpriseUserAddAliasStatus - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - EnterpriseUserAddAliasStatus.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an EnterpriseUserAddAliasStatus message. - * @function verify - * @memberof Authentication.EnterpriseUserAddAliasStatus - * @static - * @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) { - if (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"; - if (message.status != null && message.hasOwnProperty("status")) - if (!$util.isString(message.status)) - return "status: string expected"; - return null; - }; - /** * Creates an EnterpriseUserAddAliasStatus message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -30918,6 +25185,8 @@ export const Authentication = $root.Authentication = (() => { EnterpriseUserAddAliasStatus.fromObject = function fromObject(object, long) { if (object instanceof $root.Authentication.EnterpriseUserAddAliasStatus) return object; + if (!$util.isObject(object)) + throw TypeError(".Authentication.EnterpriseUserAddAliasStatus: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -30962,14 +25231,14 @@ export const Authentication = $root.Authentication = (() => { object.enterpriseUserId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; object.status = ""; } - if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) + if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, "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") 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.status != null && message.hasOwnProperty("status")) + if (message.status != null && Object.hasOwnProperty.call(message, "status")) object.status = message.status; return object; }; @@ -31070,19 +25339,6 @@ export const Authentication = $root.Authentication = (() => { return writer; }; - /** - * Encodes the specified EnterpriseUserAddAliasResponse message, length delimited. Does not implicitly {@link Authentication.EnterpriseUserAddAliasResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof Authentication.EnterpriseUserAddAliasResponse - * @static - * @param {Authentication.IEnterpriseUserAddAliasResponse} message EnterpriseUserAddAliasResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - EnterpriseUserAddAliasResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes an EnterpriseUserAddAliasResponse message from the specified reader or buffer. * @function decode @@ -31121,49 +25377,6 @@ export const Authentication = $root.Authentication = (() => { return message; }; - /** - * Decodes an EnterpriseUserAddAliasResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Authentication.EnterpriseUserAddAliasResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Authentication.EnterpriseUserAddAliasResponse} EnterpriseUserAddAliasResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - EnterpriseUserAddAliasResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an EnterpriseUserAddAliasResponse message. - * @function verify - * @memberof Authentication.EnterpriseUserAddAliasResponse - * @static - * @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) { - if (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); - if (error) - return "status." + error; - } - } - return null; - }; - /** * Creates an EnterpriseUserAddAliasResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -31175,6 +25388,8 @@ export const Authentication = $root.Authentication = (() => { EnterpriseUserAddAliasResponse.fromObject = function fromObject(object, long) { if (object instanceof $root.Authentication.EnterpriseUserAddAliasResponse) return object; + if (!$util.isObject(object)) + throw TypeError(".Authentication.EnterpriseUserAddAliasResponse: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -31185,7 +25400,7 @@ export const Authentication = $root.Authentication = (() => { throw TypeError(".Authentication.EnterpriseUserAddAliasResponse.status: array expected"); message.status = []; for (let i = 0; i < object.status.length; ++i) { - if (typeof object.status[i] !== "object") + if (!$util.isObject(object.status[i])) throw TypeError(".Authentication.EnterpriseUserAddAliasResponse.status: object expected"); message.status[i] = $root.Authentication.EnterpriseUserAddAliasStatus.fromObject(object.status[i], long + 1); } @@ -31314,19 +25529,6 @@ export const Authentication = $root.Authentication = (() => { return writer; }; - /** - * Encodes the specified Device message, length delimited. Does not implicitly {@link Authentication.Device.verify|verify} messages. - * @function encodeDelimited - * @memberof Authentication.Device - * @static - * @param {Authentication.IDevice} message Device message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Device.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a Device message from the specified reader or buffer. * @function decode @@ -31363,43 +25565,6 @@ export const Authentication = $root.Authentication = (() => { return message; }; - /** - * Decodes a Device message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Authentication.Device - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Authentication.Device} Device - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Device.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a Device message. - * @function verify - * @memberof Authentication.Device - * @static - * @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) { - if (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"; - return null; - }; - /** * Creates a Device message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -31411,6 +25576,8 @@ export const Authentication = $root.Authentication = (() => { Device.fromObject = function fromObject(object, long) { if (object instanceof $root.Authentication.Device) return object; + if (!$util.isObject(object)) + throw TypeError(".Authentication.Device: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -31449,7 +25616,7 @@ export const Authentication = $root.Authentication = (() => { if (options.bytes !== Array) object.encryptedDeviceToken = $util.newBuffer(object.encryptedDeviceToken); } - if (message.encryptedDeviceToken != null && message.hasOwnProperty("encryptedDeviceToken")) + if (message.encryptedDeviceToken != null && Object.hasOwnProperty.call(message, "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; return object; }; @@ -31559,19 +25726,6 @@ export const Authentication = $root.Authentication = (() => { return writer; }; - /** - * Encodes the specified RegisterDeviceDataKeyRequest message, length delimited. Does not implicitly {@link Authentication.RegisterDeviceDataKeyRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof Authentication.RegisterDeviceDataKeyRequest - * @static - * @param {Authentication.IRegisterDeviceDataKeyRequest} message RegisterDeviceDataKeyRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RegisterDeviceDataKeyRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a RegisterDeviceDataKeyRequest message from the specified reader or buffer. * @function decode @@ -31612,46 +25766,6 @@ export const Authentication = $root.Authentication = (() => { return message; }; - /** - * Decodes a RegisterDeviceDataKeyRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Authentication.RegisterDeviceDataKeyRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Authentication.RegisterDeviceDataKeyRequest} RegisterDeviceDataKeyRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RegisterDeviceDataKeyRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a RegisterDeviceDataKeyRequest message. - * @function verify - * @memberof Authentication.RegisterDeviceDataKeyRequest - * @static - * @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) { - if (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"; - if (message.encryptedDeviceDataKey != null && message.hasOwnProperty("encryptedDeviceDataKey")) - if (!(message.encryptedDeviceDataKey && typeof message.encryptedDeviceDataKey.length === "number" || $util.isString(message.encryptedDeviceDataKey))) - return "encryptedDeviceDataKey: buffer expected"; - return null; - }; - /** * Creates a RegisterDeviceDataKeyRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -31663,6 +25777,8 @@ export const Authentication = $root.Authentication = (() => { RegisterDeviceDataKeyRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.Authentication.RegisterDeviceDataKeyRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".Authentication.RegisterDeviceDataKeyRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -31714,9 +25830,9 @@ export const Authentication = $root.Authentication = (() => { object.encryptedDeviceDataKey = $util.newBuffer(object.encryptedDeviceDataKey); } } - if (message.encryptedDeviceToken != null && message.hasOwnProperty("encryptedDeviceToken")) + if (message.encryptedDeviceToken != null && Object.hasOwnProperty.call(message, "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.encryptedDeviceDataKey != null && message.hasOwnProperty("encryptedDeviceDataKey")) + if (message.encryptedDeviceDataKey != null && Object.hasOwnProperty.call(message, "encryptedDeviceDataKey")) object.encryptedDeviceDataKey = options.bytes === String ? $util.base64.encode(message.encryptedDeviceDataKey, 0, message.encryptedDeviceDataKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedDeviceDataKey) : message.encryptedDeviceDataKey; return object; }; @@ -31837,19 +25953,6 @@ export const Authentication = $root.Authentication = (() => { return writer; }; - /** - * Encodes the specified ValidateCreateUserVerificationCodeRequest message, length delimited. Does not implicitly {@link Authentication.ValidateCreateUserVerificationCodeRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof Authentication.ValidateCreateUserVerificationCodeRequest - * @static - * @param {Authentication.IValidateCreateUserVerificationCodeRequest} message ValidateCreateUserVerificationCodeRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ValidateCreateUserVerificationCodeRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a ValidateCreateUserVerificationCodeRequest message from the specified reader or buffer. * @function decode @@ -31894,49 +25997,6 @@ export const Authentication = $root.Authentication = (() => { return message; }; - /** - * Decodes a ValidateCreateUserVerificationCodeRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Authentication.ValidateCreateUserVerificationCodeRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Authentication.ValidateCreateUserVerificationCodeRequest} ValidateCreateUserVerificationCodeRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ValidateCreateUserVerificationCodeRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a ValidateCreateUserVerificationCodeRequest message. - * @function verify - * @memberof Authentication.ValidateCreateUserVerificationCodeRequest - * @static - * @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) { - if (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"; - if (message.clientVersion != null && message.hasOwnProperty("clientVersion")) - if (!$util.isString(message.clientVersion)) - return "clientVersion: string expected"; - if (message.verificationCode != null && message.hasOwnProperty("verificationCode")) - if (!$util.isString(message.verificationCode)) - return "verificationCode: string expected"; - return null; - }; - /** * Creates a ValidateCreateUserVerificationCodeRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -31948,6 +26008,8 @@ export const Authentication = $root.Authentication = (() => { ValidateCreateUserVerificationCodeRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.Authentication.ValidateCreateUserVerificationCodeRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".Authentication.ValidateCreateUserVerificationCodeRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -31984,11 +26046,11 @@ export const Authentication = $root.Authentication = (() => { object.clientVersion = ""; object.verificationCode = ""; } - if (message.username != null && message.hasOwnProperty("username")) + if (message.username != null && Object.hasOwnProperty.call(message, "username")) object.username = message.username; - if (message.clientVersion != null && message.hasOwnProperty("clientVersion")) + if (message.clientVersion != null && Object.hasOwnProperty.call(message, "clientVersion")) object.clientVersion = message.clientVersion; - if (message.verificationCode != null && message.hasOwnProperty("verificationCode")) + if (message.verificationCode != null && Object.hasOwnProperty.call(message, "verificationCode")) object.verificationCode = message.verificationCode; return object; }; @@ -32131,19 +26193,6 @@ export const Authentication = $root.Authentication = (() => { return writer; }; - /** - * Encodes the specified ValidateDeviceVerificationCodeRequest message, length delimited. Does not implicitly {@link Authentication.ValidateDeviceVerificationCodeRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof Authentication.ValidateDeviceVerificationCodeRequest - * @static - * @param {Authentication.IValidateDeviceVerificationCodeRequest} message ValidateDeviceVerificationCodeRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ValidateDeviceVerificationCodeRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a ValidateDeviceVerificationCodeRequest message from the specified reader or buffer. * @function decode @@ -32196,55 +26245,6 @@ export const Authentication = $root.Authentication = (() => { return message; }; - /** - * Decodes a ValidateDeviceVerificationCodeRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Authentication.ValidateDeviceVerificationCodeRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Authentication.ValidateDeviceVerificationCodeRequest} ValidateDeviceVerificationCodeRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ValidateDeviceVerificationCodeRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a ValidateDeviceVerificationCodeRequest message. - * @function verify - * @memberof Authentication.ValidateDeviceVerificationCodeRequest - * @static - * @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) { - if (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"; - if (message.clientVersion != null && message.hasOwnProperty("clientVersion")) - if (!$util.isString(message.clientVersion)) - return "clientVersion: string expected"; - if (message.verificationCode != null && message.hasOwnProperty("verificationCode")) - if (!$util.isString(message.verificationCode)) - return "verificationCode: string expected"; - if (message.messageSessionUid != null && message.hasOwnProperty("messageSessionUid")) - if (!(message.messageSessionUid && typeof message.messageSessionUid.length === "number" || $util.isString(message.messageSessionUid))) - return "messageSessionUid: buffer expected"; - if (message.encryptedDeviceToken != null && message.hasOwnProperty("encryptedDeviceToken")) - if (!(message.encryptedDeviceToken && typeof message.encryptedDeviceToken.length === "number" || $util.isString(message.encryptedDeviceToken))) - return "encryptedDeviceToken: buffer expected"; - return null; - }; - /** * Creates a ValidateDeviceVerificationCodeRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -32256,6 +26256,8 @@ export const Authentication = $root.Authentication = (() => { ValidateDeviceVerificationCodeRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.Authentication.ValidateDeviceVerificationCodeRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".Authentication.ValidateDeviceVerificationCodeRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -32316,15 +26318,15 @@ export const Authentication = $root.Authentication = (() => { object.encryptedDeviceToken = $util.newBuffer(object.encryptedDeviceToken); } } - if (message.username != null && message.hasOwnProperty("username")) + if (message.username != null && Object.hasOwnProperty.call(message, "username")) object.username = message.username; - if (message.clientVersion != null && message.hasOwnProperty("clientVersion")) + if (message.clientVersion != null && Object.hasOwnProperty.call(message, "clientVersion")) object.clientVersion = message.clientVersion; - if (message.verificationCode != null && message.hasOwnProperty("verificationCode")) + if (message.verificationCode != null && Object.hasOwnProperty.call(message, "verificationCode")) object.verificationCode = message.verificationCode; - if (message.messageSessionUid != null && message.hasOwnProperty("messageSessionUid")) + if (message.messageSessionUid != null && Object.hasOwnProperty.call(message, "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")) + if (message.encryptedDeviceToken != null && Object.hasOwnProperty.call(message, "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; return object; }; @@ -32445,19 +26447,6 @@ export const Authentication = $root.Authentication = (() => { return writer; }; - /** - * Encodes the specified SendSessionMessageRequest message, length delimited. Does not implicitly {@link Authentication.SendSessionMessageRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof Authentication.SendSessionMessageRequest - * @static - * @param {Authentication.ISendSessionMessageRequest} message SendSessionMessageRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SendSessionMessageRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a SendSessionMessageRequest message from the specified reader or buffer. * @function decode @@ -32502,49 +26491,6 @@ export const Authentication = $root.Authentication = (() => { return message; }; - /** - * Decodes a SendSessionMessageRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Authentication.SendSessionMessageRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Authentication.SendSessionMessageRequest} SendSessionMessageRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SendSessionMessageRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a SendSessionMessageRequest message. - * @function verify - * @memberof Authentication.SendSessionMessageRequest - * @static - * @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) { - if (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"; - if (message.command != null && message.hasOwnProperty("command")) - if (!$util.isString(message.command)) - return "command: string expected"; - if (message.username != null && message.hasOwnProperty("username")) - if (!$util.isString(message.username)) - return "username: string expected"; - return null; - }; - /** * Creates a SendSessionMessageRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -32556,6 +26502,8 @@ export const Authentication = $root.Authentication = (() => { SendSessionMessageRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.Authentication.SendSessionMessageRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".Authentication.SendSessionMessageRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -32601,11 +26549,11 @@ export const Authentication = $root.Authentication = (() => { object.command = ""; object.username = ""; } - if (message.messageSessionUid != null && message.hasOwnProperty("messageSessionUid")) + if (message.messageSessionUid != null && Object.hasOwnProperty.call(message, "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.command != null && message.hasOwnProperty("command")) + if (message.command != null && Object.hasOwnProperty.call(message, "command")) object.command = message.command; - if (message.username != null && message.hasOwnProperty("username")) + if (message.username != null && Object.hasOwnProperty.call(message, "username")) object.username = message.username; return object; }; @@ -32726,19 +26674,6 @@ export const Authentication = $root.Authentication = (() => { return writer; }; - /** - * Encodes the specified GlobalUserAccount message, length delimited. Does not implicitly {@link Authentication.GlobalUserAccount.verify|verify} messages. - * @function encodeDelimited - * @memberof Authentication.GlobalUserAccount - * @static - * @param {Authentication.IGlobalUserAccount} message GlobalUserAccount message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GlobalUserAccount.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a GlobalUserAccount message from the specified reader or buffer. * @function decode @@ -32783,49 +26718,6 @@ export const Authentication = $root.Authentication = (() => { return message; }; - /** - * Decodes a GlobalUserAccount message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Authentication.GlobalUserAccount - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Authentication.GlobalUserAccount} GlobalUserAccount - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GlobalUserAccount.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a GlobalUserAccount message. - * @function verify - * @memberof Authentication.GlobalUserAccount - * @static - * @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) { - if (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"; - if (message.accountUid != null && message.hasOwnProperty("accountUid")) - if (!(message.accountUid && typeof message.accountUid.length === "number" || $util.isString(message.accountUid))) - return "accountUid: buffer expected"; - if (message.regionName != null && message.hasOwnProperty("regionName")) - if (!$util.isString(message.regionName)) - return "regionName: string expected"; - return null; - }; - /** * Creates a GlobalUserAccount message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -32837,6 +26729,8 @@ export const Authentication = $root.Authentication = (() => { GlobalUserAccount.fromObject = function fromObject(object, long) { if (object instanceof $root.Authentication.GlobalUserAccount) return object; + if (!$util.isObject(object)) + throw TypeError(".Authentication.GlobalUserAccount: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -32882,11 +26776,11 @@ export const Authentication = $root.Authentication = (() => { } object.regionName = ""; } - if (message.username != null && message.hasOwnProperty("username")) + if (message.username != null && Object.hasOwnProperty.call(message, "username")) object.username = message.username; - if (message.accountUid != null && message.hasOwnProperty("accountUid")) + if (message.accountUid != null && Object.hasOwnProperty.call(message, "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.regionName != null && message.hasOwnProperty("regionName")) + if (message.regionName != null && Object.hasOwnProperty.call(message, "regionName")) object.regionName = message.regionName; return object; }; @@ -32996,19 +26890,6 @@ export const Authentication = $root.Authentication = (() => { return writer; }; - /** - * Encodes the specified AccountUsername message, length delimited. Does not implicitly {@link Authentication.AccountUsername.verify|verify} messages. - * @function encodeDelimited - * @memberof Authentication.AccountUsername - * @static - * @param {Authentication.IAccountUsername} message AccountUsername message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - AccountUsername.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes an AccountUsername message from the specified reader or buffer. * @function decode @@ -33049,46 +26930,6 @@ export const Authentication = $root.Authentication = (() => { return message; }; - /** - * Decodes an AccountUsername message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Authentication.AccountUsername - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Authentication.AccountUsername} AccountUsername - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - AccountUsername.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an AccountUsername message. - * @function verify - * @memberof Authentication.AccountUsername - * @static - * @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) { - if (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"; - if (message.dateActive != null && message.hasOwnProperty("dateActive")) - if (!$util.isString(message.dateActive)) - return "dateActive: string expected"; - return null; - }; - /** * Creates an AccountUsername message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -33100,6 +26941,8 @@ export const Authentication = $root.Authentication = (() => { AccountUsername.fromObject = function fromObject(object, long) { if (object instanceof $root.Authentication.AccountUsername) return object; + if (!$util.isObject(object)) + throw TypeError(".Authentication.AccountUsername: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -33133,9 +26976,9 @@ export const Authentication = $root.Authentication = (() => { object.username = ""; object.dateActive = ""; } - if (message.username != null && message.hasOwnProperty("username")) + if (message.username != null && Object.hasOwnProperty.call(message, "username")) object.username = message.username; - if (message.dateActive != null && message.hasOwnProperty("dateActive")) + if (message.dateActive != null && Object.hasOwnProperty.call(message, "dateActive")) object.dateActive = message.dateActive; return object; }; @@ -33256,19 +27099,6 @@ export const Authentication = $root.Authentication = (() => { return writer; }; - /** - * Encodes the specified SsoServiceProviderRequest message, length delimited. Does not implicitly {@link Authentication.SsoServiceProviderRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof Authentication.SsoServiceProviderRequest - * @static - * @param {Authentication.ISsoServiceProviderRequest} message SsoServiceProviderRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SsoServiceProviderRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a SsoServiceProviderRequest message from the specified reader or buffer. * @function decode @@ -33313,49 +27143,6 @@ export const Authentication = $root.Authentication = (() => { return message; }; - /** - * Decodes a SsoServiceProviderRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Authentication.SsoServiceProviderRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Authentication.SsoServiceProviderRequest} SsoServiceProviderRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SsoServiceProviderRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a SsoServiceProviderRequest message. - * @function verify - * @memberof Authentication.SsoServiceProviderRequest - * @static - * @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) { - if (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.clientVersion != null && message.hasOwnProperty("clientVersion")) - if (!$util.isString(message.clientVersion)) - return "clientVersion: string expected"; - if (message.locale != null && message.hasOwnProperty("locale")) - if (!$util.isString(message.locale)) - return "locale: string expected"; - return null; - }; - /** * Creates a SsoServiceProviderRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -33367,6 +27154,8 @@ export const Authentication = $root.Authentication = (() => { SsoServiceProviderRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.Authentication.SsoServiceProviderRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".Authentication.SsoServiceProviderRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -33403,11 +27192,11 @@ export const Authentication = $root.Authentication = (() => { object.clientVersion = ""; object.locale = ""; } - if (message.name != null && message.hasOwnProperty("name")) + if (message.name != null && Object.hasOwnProperty.call(message, "name")) object.name = message.name; - if (message.clientVersion != null && message.hasOwnProperty("clientVersion")) + if (message.clientVersion != null && Object.hasOwnProperty.call(message, "clientVersion")) object.clientVersion = message.clientVersion; - if (message.locale != null && message.hasOwnProperty("locale")) + if (message.locale != null && Object.hasOwnProperty.call(message, "locale")) object.locale = message.locale; return object; }; @@ -33539,19 +27328,6 @@ export const Authentication = $root.Authentication = (() => { return writer; }; - /** - * Encodes the specified SsoServiceProviderResponse message, length delimited. Does not implicitly {@link Authentication.SsoServiceProviderResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof Authentication.SsoServiceProviderResponse - * @static - * @param {Authentication.ISsoServiceProviderResponse} message SsoServiceProviderResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SsoServiceProviderResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a SsoServiceProviderResponse message from the specified reader or buffer. * @function decode @@ -33600,52 +27376,6 @@ export const Authentication = $root.Authentication = (() => { return message; }; - /** - * Decodes a SsoServiceProviderResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Authentication.SsoServiceProviderResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Authentication.SsoServiceProviderResponse} SsoServiceProviderResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SsoServiceProviderResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a SsoServiceProviderResponse message. - * @function verify - * @memberof Authentication.SsoServiceProviderResponse - * @static - * @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) { - if (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.spUrl != null && message.hasOwnProperty("spUrl")) - if (!$util.isString(message.spUrl)) - return "spUrl: string expected"; - if (message.isCloud != null && message.hasOwnProperty("isCloud")) - if (typeof message.isCloud !== "boolean") - return "isCloud: boolean expected"; - if (message.clientVersion != null && message.hasOwnProperty("clientVersion")) - if (!$util.isString(message.clientVersion)) - return "clientVersion: string expected"; - return null; - }; - /** * Creates a SsoServiceProviderResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -33657,6 +27387,8 @@ export const Authentication = $root.Authentication = (() => { SsoServiceProviderResponse.fromObject = function fromObject(object, long) { if (object instanceof $root.Authentication.SsoServiceProviderResponse) return object; + if (!$util.isObject(object)) + throw TypeError(".Authentication.SsoServiceProviderResponse: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -33696,13 +27428,13 @@ export const Authentication = $root.Authentication = (() => { object.isCloud = false; object.clientVersion = ""; } - if (message.name != null && message.hasOwnProperty("name")) + if (message.name != null && Object.hasOwnProperty.call(message, "name")) object.name = message.name; - if (message.spUrl != null && message.hasOwnProperty("spUrl")) + if (message.spUrl != null && Object.hasOwnProperty.call(message, "spUrl")) object.spUrl = message.spUrl; - if (message.isCloud != null && message.hasOwnProperty("isCloud")) + if (message.isCloud != null && Object.hasOwnProperty.call(message, "isCloud")) object.isCloud = message.isCloud; - if (message.clientVersion != null && message.hasOwnProperty("clientVersion")) + if (message.clientVersion != null && Object.hasOwnProperty.call(message, "clientVersion")) object.clientVersion = message.clientVersion; return object; }; @@ -33812,19 +27544,6 @@ export const Authentication = $root.Authentication = (() => { return writer; }; - /** - * Encodes the specified UserSettingRequest message, length delimited. Does not implicitly {@link Authentication.UserSettingRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof Authentication.UserSettingRequest - * @static - * @param {Authentication.IUserSettingRequest} message UserSettingRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - UserSettingRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a UserSettingRequest message from the specified reader or buffer. * @function decode @@ -33865,46 +27584,6 @@ export const Authentication = $root.Authentication = (() => { return message; }; - /** - * Decodes a UserSettingRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Authentication.UserSettingRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Authentication.UserSettingRequest} UserSettingRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - UserSettingRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a UserSettingRequest message. - * @function verify - * @memberof Authentication.UserSettingRequest - * @static - * @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) { - if (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"; - if (message.value != null && message.hasOwnProperty("value")) - if (!$util.isString(message.value)) - return "value: string expected"; - return null; - }; - /** * Creates a UserSettingRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -33916,6 +27595,8 @@ export const Authentication = $root.Authentication = (() => { UserSettingRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.Authentication.UserSettingRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".Authentication.UserSettingRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -33949,9 +27630,9 @@ export const Authentication = $root.Authentication = (() => { object.setting = ""; object.value = ""; } - if (message.setting != null && message.hasOwnProperty("setting")) + if (message.setting != null && Object.hasOwnProperty.call(message, "setting")) object.setting = message.setting; - if (message.value != null && message.hasOwnProperty("value")) + if (message.value != null && Object.hasOwnProperty.call(message, "value")) object.value = message.value; return object; }; @@ -34125,19 +27806,6 @@ export const Authentication = $root.Authentication = (() => { return writer; }; - /** - * Encodes the specified ThrottleState message, length delimited. Does not implicitly {@link Authentication.ThrottleState.verify|verify} messages. - * @function encodeDelimited - * @memberof Authentication.ThrottleState - * @static - * @param {Authentication.IThrottleState} message ThrottleState message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ThrottleState.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a ThrottleState message from the specified reader or buffer. * @function decode @@ -34186,63 +27854,6 @@ export const Authentication = $root.Authentication = (() => { return message; }; - /** - * Decodes a ThrottleState message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Authentication.ThrottleState - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Authentication.ThrottleState} ThrottleState - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ThrottleState.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a ThrottleState message. - * @function verify - * @memberof Authentication.ThrottleState - * @static - * @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) { - if (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: - return "type: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - break; - } - if (message.key != null && message.hasOwnProperty("key")) - if (!$util.isString(message.key)) - return "key: string expected"; - if (message.value != null && message.hasOwnProperty("value")) - if (!$util.isString(message.value)) - return "value: string expected"; - if (message.state != null && message.hasOwnProperty("state")) - if (typeof message.state !== "boolean") - return "state: boolean expected"; - return null; - }; - /** * Creates a ThrottleState message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -34254,6 +27865,8 @@ export const Authentication = $root.Authentication = (() => { ThrottleState.fromObject = function fromObject(object, long) { if (object instanceof $root.Authentication.ThrottleState) return object; + if (!$util.isObject(object)) + throw TypeError(".Authentication.ThrottleState: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -34331,13 +27944,13 @@ export const Authentication = $root.Authentication = (() => { object.value = ""; object.state = false; } - if (message.type != null && message.hasOwnProperty("type")) + if (message.type != null && Object.hasOwnProperty.call(message, "type")) object.type = options.enums === String ? $root.Authentication.ThrottleType[message.type] === undefined ? message.type : $root.Authentication.ThrottleType[message.type] : message.type; - if (message.key != null && message.hasOwnProperty("key")) + if (message.key != null && Object.hasOwnProperty.call(message, "key")) object.key = message.key; - if (message.value != null && message.hasOwnProperty("value")) + if (message.value != null && Object.hasOwnProperty.call(message, "value")) object.value = message.value; - if (message.state != null && message.hasOwnProperty("state")) + if (message.state != null && Object.hasOwnProperty.call(message, "state")) object.state = message.state; return object; }; @@ -34513,19 +28126,6 @@ export const Authentication = $root.Authentication = (() => { return writer; }; - /** - * Encodes the specified ThrottleState2 message, length delimited. Does not implicitly {@link Authentication.ThrottleState2.verify|verify} messages. - * @function encodeDelimited - * @memberof Authentication.ThrottleState2 - * @static - * @param {Authentication.IThrottleState2} message ThrottleState2 message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ThrottleState2.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a ThrottleState2 message from the specified reader or buffer. * @function decode @@ -34590,64 +28190,6 @@ export const Authentication = $root.Authentication = (() => { return message; }; - /** - * Decodes a ThrottleState2 message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Authentication.ThrottleState2 - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Authentication.ThrottleState2} ThrottleState2 - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ThrottleState2.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a ThrottleState2 message. - * @function verify - * @memberof Authentication.ThrottleState2 - * @static - * @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) { - if (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"; - if (message.keyDescription != null && message.hasOwnProperty("keyDescription")) - if (!$util.isString(message.keyDescription)) - return "keyDescription: string expected"; - if (message.value != null && message.hasOwnProperty("value")) - if (!$util.isString(message.value)) - return "value: string expected"; - if (message.valueDescription != null && message.hasOwnProperty("valueDescription")) - if (!$util.isString(message.valueDescription)) - return "valueDescription: string expected"; - if (message.identifier != null && message.hasOwnProperty("identifier")) - if (!$util.isString(message.identifier)) - return "identifier: string expected"; - if (message.locked != null && message.hasOwnProperty("locked")) - if (typeof message.locked !== "boolean") - return "locked: boolean expected"; - if (message.includedInAllClear != null && message.hasOwnProperty("includedInAllClear")) - if (typeof message.includedInAllClear !== "boolean") - return "includedInAllClear: boolean expected"; - if (message.expireSeconds != null && message.hasOwnProperty("expireSeconds")) - if (!$util.isInteger(message.expireSeconds)) - return "expireSeconds: integer expected"; - return null; - }; - /** * Creates a ThrottleState2 message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -34659,6 +28201,8 @@ export const Authentication = $root.Authentication = (() => { ThrottleState2.fromObject = function fromObject(object, long) { if (object instanceof $root.Authentication.ThrottleState2) return object; + if (!$util.isObject(object)) + throw TypeError(".Authentication.ThrottleState2: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -34710,21 +28254,21 @@ export const Authentication = $root.Authentication = (() => { object.includedInAllClear = false; object.expireSeconds = 0; } - if (message.key != null && message.hasOwnProperty("key")) + if (message.key != null && Object.hasOwnProperty.call(message, "key")) object.key = message.key; - if (message.keyDescription != null && message.hasOwnProperty("keyDescription")) + if (message.keyDescription != null && Object.hasOwnProperty.call(message, "keyDescription")) object.keyDescription = message.keyDescription; - if (message.value != null && message.hasOwnProperty("value")) + if (message.value != null && Object.hasOwnProperty.call(message, "value")) object.value = message.value; - if (message.valueDescription != null && message.hasOwnProperty("valueDescription")) + if (message.valueDescription != null && Object.hasOwnProperty.call(message, "valueDescription")) object.valueDescription = message.valueDescription; - if (message.identifier != null && message.hasOwnProperty("identifier")) + if (message.identifier != null && Object.hasOwnProperty.call(message, "identifier")) object.identifier = message.identifier; - if (message.locked != null && message.hasOwnProperty("locked")) + if (message.locked != null && Object.hasOwnProperty.call(message, "locked")) object.locked = message.locked; - if (message.includedInAllClear != null && message.hasOwnProperty("includedInAllClear")) + if (message.includedInAllClear != null && Object.hasOwnProperty.call(message, "includedInAllClear")) object.includedInAllClear = message.includedInAllClear; - if (message.expireSeconds != null && message.hasOwnProperty("expireSeconds")) + if (message.expireSeconds != null && Object.hasOwnProperty.call(message, "expireSeconds")) object.expireSeconds = message.expireSeconds; return object; }; @@ -34867,19 +28411,6 @@ export const Authentication = $root.Authentication = (() => { return writer; }; - /** - * Encodes the specified DeviceInformation message, length delimited. Does not implicitly {@link Authentication.DeviceInformation.verify|verify} messages. - * @function encodeDelimited - * @memberof Authentication.DeviceInformation - * @static - * @param {Authentication.IDeviceInformation} message DeviceInformation message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - DeviceInformation.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a DeviceInformation message from the specified reader or buffer. * @function decode @@ -34932,62 +28463,6 @@ export const Authentication = $root.Authentication = (() => { return message; }; - /** - * Decodes a DeviceInformation message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Authentication.DeviceInformation - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Authentication.DeviceInformation} DeviceInformation - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - DeviceInformation.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a DeviceInformation message. - * @function verify - * @memberof Authentication.DeviceInformation - * @static - * @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) { - if (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"; - if (message.deviceName != null && message.hasOwnProperty("deviceName")) - if (!$util.isString(message.deviceName)) - return "deviceName: string expected"; - if (message.clientVersion != null && message.hasOwnProperty("clientVersion")) - if (!$util.isString(message.clientVersion)) - return "clientVersion: string expected"; - if (message.lastLogin != null && message.hasOwnProperty("lastLogin")) - if (!$util.isInteger(message.lastLogin) && !(message.lastLogin && $util.isInteger(message.lastLogin.low) && $util.isInteger(message.lastLogin.high))) - return "lastLogin: integer|Long expected"; - if (message.deviceStatus != null && message.hasOwnProperty("deviceStatus")) - switch (message.deviceStatus) { - default: - return "deviceStatus: enum value expected"; - case 0: - case 1: - case 2: - case 3: - break; - } - return null; - }; - /** * Creates a DeviceInformation message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -34999,6 +28474,8 @@ export const Authentication = $root.Authentication = (() => { DeviceInformation.fromObject = function fromObject(object, long) { if (object instanceof $root.Authentication.DeviceInformation) return object; + if (!$util.isObject(object)) + throw TypeError(".Authentication.DeviceInformation: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -35085,25 +28562,25 @@ export const Authentication = $root.Authentication = (() => { object.lastLogin = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; object.deviceStatus = options.enums === String ? "DEVICE_NEEDS_APPROVAL" : 0; } - if (message.deviceId != null && message.hasOwnProperty("deviceId")) + if (message.deviceId != null && Object.hasOwnProperty.call(message, "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") 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")) + if (message.deviceName != null && Object.hasOwnProperty.call(message, "deviceName")) object.deviceName = message.deviceName; - if (message.clientVersion != null && message.hasOwnProperty("clientVersion")) + if (message.clientVersion != null && Object.hasOwnProperty.call(message, "clientVersion")) object.clientVersion = message.clientVersion; - if (message.lastLogin != null && message.hasOwnProperty("lastLogin")) + if (message.lastLogin != null && Object.hasOwnProperty.call(message, "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") 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; - if (message.deviceStatus != null && message.hasOwnProperty("deviceStatus")) + if (message.deviceStatus != null && Object.hasOwnProperty.call(message, "deviceStatus")) object.deviceStatus = options.enums === String ? $root.Authentication.DeviceStatus[message.deviceStatus] === undefined ? message.deviceStatus : $root.Authentication.DeviceStatus[message.deviceStatus] : message.deviceStatus; return object; }; @@ -35213,19 +28690,6 @@ export const Authentication = $root.Authentication = (() => { return writer; }; - /** - * Encodes the specified UserSetting message, length delimited. Does not implicitly {@link Authentication.UserSetting.verify|verify} messages. - * @function encodeDelimited - * @memberof Authentication.UserSetting - * @static - * @param {Authentication.IUserSetting} message UserSetting message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - UserSetting.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a UserSetting message from the specified reader or buffer. * @function decode @@ -35266,46 +28730,6 @@ export const Authentication = $root.Authentication = (() => { return message; }; - /** - * Decodes a UserSetting message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Authentication.UserSetting - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Authentication.UserSetting} UserSetting - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - UserSetting.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a UserSetting message. - * @function verify - * @memberof Authentication.UserSetting - * @static - * @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) { - if (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.value != null && message.hasOwnProperty("value")) - if (typeof message.value !== "boolean") - return "value: boolean expected"; - return null; - }; - /** * Creates a UserSetting message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -35317,6 +28741,8 @@ export const Authentication = $root.Authentication = (() => { UserSetting.fromObject = function fromObject(object, long) { if (object instanceof $root.Authentication.UserSetting) return object; + if (!$util.isObject(object)) + throw TypeError(".Authentication.UserSetting: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -35350,9 +28776,9 @@ export const Authentication = $root.Authentication = (() => { object.name = ""; object.value = false; } - if (message.name != null && message.hasOwnProperty("name")) + if (message.name != null && Object.hasOwnProperty.call(message, "name")) object.name = message.name; - if (message.value != null && message.hasOwnProperty("value")) + if (message.value != null && Object.hasOwnProperty.call(message, "value")) object.value = message.value; return object; }; @@ -35456,19 +28882,6 @@ export const Authentication = $root.Authentication = (() => { return writer; }; - /** - * Encodes the specified UserDataKeyRequest message, length delimited. Does not implicitly {@link Authentication.UserDataKeyRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof Authentication.UserDataKeyRequest - * @static - * @param {Authentication.IUserDataKeyRequest} message UserDataKeyRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - UserDataKeyRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a UserDataKeyRequest message from the specified reader or buffer. * @function decode @@ -35512,47 +28925,6 @@ export const Authentication = $root.Authentication = (() => { return message; }; - /** - * Decodes a UserDataKeyRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Authentication.UserDataKeyRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Authentication.UserDataKeyRequest} UserDataKeyRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - UserDataKeyRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a UserDataKeyRequest message. - * @function verify - * @memberof Authentication.UserDataKeyRequest - * @static - * @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) { - if (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"; - for (let i = 0; i < message.enterpriseUserId.length; ++i) - if (!$util.isInteger(message.enterpriseUserId[i]) && !(message.enterpriseUserId[i] && $util.isInteger(message.enterpriseUserId[i].low) && $util.isInteger(message.enterpriseUserId[i].high))) - return "enterpriseUserId: integer|Long[] expected"; - } - return null; - }; - /** * Creates a UserDataKeyRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -35564,6 +28936,8 @@ export const Authentication = $root.Authentication = (() => { UserDataKeyRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.Authentication.UserDataKeyRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".Authentication.UserDataKeyRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -35717,19 +29091,6 @@ export const Authentication = $root.Authentication = (() => { return writer; }; - /** - * Encodes the specified UserDataKeyByNodeRequest message, length delimited. Does not implicitly {@link Authentication.UserDataKeyByNodeRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof Authentication.UserDataKeyByNodeRequest - * @static - * @param {Authentication.IUserDataKeyByNodeRequest} message UserDataKeyByNodeRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - UserDataKeyByNodeRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a UserDataKeyByNodeRequest message from the specified reader or buffer. * @function decode @@ -35773,47 +29134,6 @@ export const Authentication = $root.Authentication = (() => { return message; }; - /** - * Decodes a UserDataKeyByNodeRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Authentication.UserDataKeyByNodeRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Authentication.UserDataKeyByNodeRequest} UserDataKeyByNodeRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - UserDataKeyByNodeRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a UserDataKeyByNodeRequest message. - * @function verify - * @memberof Authentication.UserDataKeyByNodeRequest - * @static - * @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) { - if (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"; - for (let i = 0; i < message.nodeIds.length; ++i) - if (!$util.isInteger(message.nodeIds[i]) && !(message.nodeIds[i] && $util.isInteger(message.nodeIds[i].low) && $util.isInteger(message.nodeIds[i].high))) - return "nodeIds: integer|Long[] expected"; - } - return null; - }; - /** * Creates a UserDataKeyByNodeRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -35825,6 +29145,8 @@ export const Authentication = $root.Authentication = (() => { UserDataKeyByNodeRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.Authentication.UserDataKeyByNodeRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".Authentication.UserDataKeyByNodeRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -35995,19 +29317,6 @@ export const Authentication = $root.Authentication = (() => { return writer; }; - /** - * Encodes the specified EnterpriseUserIdDataKeyPair message, length delimited. Does not implicitly {@link Authentication.EnterpriseUserIdDataKeyPair.verify|verify} messages. - * @function encodeDelimited - * @memberof Authentication.EnterpriseUserIdDataKeyPair - * @static - * @param {Authentication.IEnterpriseUserIdDataKeyPair} message EnterpriseUserIdDataKeyPair message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - EnterpriseUserIdDataKeyPair.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes an EnterpriseUserIdDataKeyPair message from the specified reader or buffer. * @function decode @@ -36052,57 +29361,6 @@ export const Authentication = $root.Authentication = (() => { return message; }; - /** - * Decodes an EnterpriseUserIdDataKeyPair message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Authentication.EnterpriseUserIdDataKeyPair - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Authentication.EnterpriseUserIdDataKeyPair} EnterpriseUserIdDataKeyPair - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - EnterpriseUserIdDataKeyPair.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an EnterpriseUserIdDataKeyPair message. - * @function verify - * @memberof Authentication.EnterpriseUserIdDataKeyPair - * @static - * @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) { - if (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"; - if (message.encryptedDataKey != null && message.hasOwnProperty("encryptedDataKey")) - if (!(message.encryptedDataKey && typeof message.encryptedDataKey.length === "number" || $util.isString(message.encryptedDataKey))) - return "encryptedDataKey: buffer expected"; - if (message.keyType != null && message.hasOwnProperty("keyType")) - switch (message.keyType) { - default: - return "keyType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - break; - } - return null; - }; - /** * Creates an EnterpriseUserIdDataKeyPair message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -36114,6 +29372,8 @@ export const Authentication = $root.Authentication = (() => { EnterpriseUserIdDataKeyPair.fromObject = function fromObject(object, long) { if (object instanceof $root.Authentication.EnterpriseUserIdDataKeyPair) return object; + if (!$util.isObject(object)) + throw TypeError(".Authentication.EnterpriseUserIdDataKeyPair: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -36196,16 +29456,16 @@ export const Authentication = $root.Authentication = (() => { } object.keyType = options.enums === String ? "KT_NO_KEY" : 0; } - if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) + if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, "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") 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.encryptedDataKey != null && message.hasOwnProperty("encryptedDataKey")) + if (message.encryptedDataKey != null && Object.hasOwnProperty.call(message, "encryptedDataKey")) object.encryptedDataKey = options.bytes === String ? $util.base64.encode(message.encryptedDataKey, 0, message.encryptedDataKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedDataKey) : message.encryptedDataKey; - if (message.keyType != null && message.hasOwnProperty("keyType")) + if (message.keyType != null && Object.hasOwnProperty.call(message, "keyType")) object.keyType = options.enums === String ? $root.Enterprise.EncryptedKeyType[message.keyType] === undefined ? message.keyType : $root.Enterprise.EncryptedKeyType[message.keyType] : message.keyType; return object; }; @@ -36339,19 +29599,6 @@ export const Authentication = $root.Authentication = (() => { return writer; }; - /** - * Encodes the specified UserDataKey message, length delimited. Does not implicitly {@link Authentication.UserDataKey.verify|verify} messages. - * @function encodeDelimited - * @memberof Authentication.UserDataKey - * @static - * @param {Authentication.IUserDataKey} message UserDataKey message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - UserDataKey.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a UserDataKey message from the specified reader or buffer. * @function decode @@ -36402,58 +29649,6 @@ export const Authentication = $root.Authentication = (() => { return message; }; - /** - * Decodes a UserDataKey message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Authentication.UserDataKey - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Authentication.UserDataKey} UserDataKey - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - UserDataKey.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a UserDataKey message. - * @function verify - * @memberof Authentication.UserDataKey - * @static - * @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) { - if (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"; - if (message.roleKey != null && message.hasOwnProperty("roleKey")) - if (!(message.roleKey && typeof message.roleKey.length === "number" || $util.isString(message.roleKey))) - return "roleKey: buffer expected"; - if (message.privateKey != null && message.hasOwnProperty("privateKey")) - if (!$util.isString(message.privateKey)) - return "privateKey: string expected"; - if (message.enterpriseUserIdDataKeyPairs != null && message.hasOwnProperty("enterpriseUserIdDataKeyPairs")) { - 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); - if (error) - return "enterpriseUserIdDataKeyPairs." + error; - } - } - return null; - }; - /** * Creates a UserDataKey message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -36465,6 +29660,8 @@ export const Authentication = $root.Authentication = (() => { UserDataKey.fromObject = function fromObject(object, long) { if (object instanceof $root.Authentication.UserDataKey) return object; + if (!$util.isObject(object)) + throw TypeError(".Authentication.UserDataKey: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -36491,7 +29688,7 @@ export const Authentication = $root.Authentication = (() => { throw TypeError(".Authentication.UserDataKey.enterpriseUserIdDataKeyPairs: array expected"); message.enterpriseUserIdDataKeyPairs = []; for (let i = 0; i < object.enterpriseUserIdDataKeyPairs.length; ++i) { - if (typeof object.enterpriseUserIdDataKeyPairs[i] !== "object") + if (!$util.isObject(object.enterpriseUserIdDataKeyPairs[i])) throw TypeError(".Authentication.UserDataKey.enterpriseUserIdDataKeyPairs: object expected"); message.enterpriseUserIdDataKeyPairs[i] = $root.Authentication.EnterpriseUserIdDataKeyPair.fromObject(object.enterpriseUserIdDataKeyPairs[i], long + 1); } @@ -36533,16 +29730,16 @@ export const Authentication = $root.Authentication = (() => { } object.privateKey = ""; } - if (message.roleId != null && message.hasOwnProperty("roleId")) + if (message.roleId != null && Object.hasOwnProperty.call(message, "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") 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.roleKey != null && message.hasOwnProperty("roleKey")) + if (message.roleKey != null && Object.hasOwnProperty.call(message, "roleKey")) object.roleKey = options.bytes === String ? $util.base64.encode(message.roleKey, 0, message.roleKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.roleKey) : message.roleKey; - if (message.privateKey != null && message.hasOwnProperty("privateKey")) + if (message.privateKey != null && Object.hasOwnProperty.call(message, "privateKey")) object.privateKey = message.privateKey; if (message.enterpriseUserIdDataKeyPairs && message.enterpriseUserIdDataKeyPairs.length) { object.enterpriseUserIdDataKeyPairs = []; @@ -36680,19 +29877,6 @@ export const Authentication = $root.Authentication = (() => { return writer; }; - /** - * Encodes the specified UserDataKeyResponse message, length delimited. Does not implicitly {@link Authentication.UserDataKeyResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof Authentication.UserDataKeyResponse - * @static - * @param {Authentication.IUserDataKeyResponse} message UserDataKeyResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - UserDataKeyResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a UserDataKeyResponse message from the specified reader or buffer. * @function decode @@ -36753,63 +29937,6 @@ export const Authentication = $root.Authentication = (() => { return message; }; - /** - * Decodes a UserDataKeyResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Authentication.UserDataKeyResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Authentication.UserDataKeyResponse} UserDataKeyResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - UserDataKeyResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a UserDataKeyResponse message. - * @function verify - * @memberof Authentication.UserDataKeyResponse - * @static - * @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) { - if (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); - if (error) - return "userDataKeys." + error; - } - } - if (message.accessDenied != null && message.hasOwnProperty("accessDenied")) { - if (!Array.isArray(message.accessDenied)) - return "accessDenied: array expected"; - for (let i = 0; i < message.accessDenied.length; ++i) - if (!$util.isInteger(message.accessDenied[i]) && !(message.accessDenied[i] && $util.isInteger(message.accessDenied[i].low) && $util.isInteger(message.accessDenied[i].high))) - return "accessDenied: integer|Long[] expected"; - } - if (message.noEncryptedDataKey != null && message.hasOwnProperty("noEncryptedDataKey")) { - if (!Array.isArray(message.noEncryptedDataKey)) - return "noEncryptedDataKey: array expected"; - for (let i = 0; i < message.noEncryptedDataKey.length; ++i) - if (!$util.isInteger(message.noEncryptedDataKey[i]) && !(message.noEncryptedDataKey[i] && $util.isInteger(message.noEncryptedDataKey[i].low) && $util.isInteger(message.noEncryptedDataKey[i].high))) - return "noEncryptedDataKey: integer|Long[] expected"; - } - return null; - }; - /** * Creates a UserDataKeyResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -36821,6 +29948,8 @@ export const Authentication = $root.Authentication = (() => { UserDataKeyResponse.fromObject = function fromObject(object, long) { if (object instanceof $root.Authentication.UserDataKeyResponse) return object; + if (!$util.isObject(object)) + throw TypeError(".Authentication.UserDataKeyResponse: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -36831,7 +29960,7 @@ export const Authentication = $root.Authentication = (() => { throw TypeError(".Authentication.UserDataKeyResponse.userDataKeys: array expected"); message.userDataKeys = []; for (let i = 0; i < object.userDataKeys.length; ++i) { - if (typeof object.userDataKeys[i] !== "object") + if (!$util.isObject(object.userDataKeys[i])) throw TypeError(".Authentication.UserDataKeyResponse.userDataKeys: object expected"); message.userDataKeys[i] = $root.Authentication.UserDataKey.fromObject(object.userDataKeys[i], long + 1); } @@ -37011,19 +30140,6 @@ export const Authentication = $root.Authentication = (() => { return writer; }; - /** - * Encodes the specified MasterPasswordRecoveryVerificationRequest message, length delimited. Does not implicitly {@link Authentication.MasterPasswordRecoveryVerificationRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof Authentication.MasterPasswordRecoveryVerificationRequest - * @static - * @param {Authentication.IMasterPasswordRecoveryVerificationRequest} message MasterPasswordRecoveryVerificationRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MasterPasswordRecoveryVerificationRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a MasterPasswordRecoveryVerificationRequest message from the specified reader or buffer. * @function decode @@ -37060,43 +30176,6 @@ export const Authentication = $root.Authentication = (() => { return message; }; - /** - * Decodes a MasterPasswordRecoveryVerificationRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Authentication.MasterPasswordRecoveryVerificationRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Authentication.MasterPasswordRecoveryVerificationRequest} MasterPasswordRecoveryVerificationRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MasterPasswordRecoveryVerificationRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a MasterPasswordRecoveryVerificationRequest message. - * @function verify - * @memberof Authentication.MasterPasswordRecoveryVerificationRequest - * @static - * @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) { - if (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"; - return null; - }; - /** * Creates a MasterPasswordRecoveryVerificationRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -37108,6 +30187,8 @@ export const Authentication = $root.Authentication = (() => { MasterPasswordRecoveryVerificationRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.Authentication.MasterPasswordRecoveryVerificationRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".Authentication.MasterPasswordRecoveryVerificationRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -37146,7 +30227,7 @@ export const Authentication = $root.Authentication = (() => { if (options.bytes !== Array) object.encryptedLoginToken = $util.newBuffer(object.encryptedLoginToken); } - if (message.encryptedLoginToken != null && message.hasOwnProperty("encryptedLoginToken")) + if (message.encryptedLoginToken != null && Object.hasOwnProperty.call(message, "encryptedLoginToken")) object.encryptedLoginToken = options.bytes === String ? $util.base64.encode(message.encryptedLoginToken, 0, message.encryptedLoginToken.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedLoginToken) : message.encryptedLoginToken; return object; }; @@ -37256,19 +30337,6 @@ export const Authentication = $root.Authentication = (() => { return writer; }; - /** - * Encodes the specified GetSecurityQuestionV3Request message, length delimited. Does not implicitly {@link Authentication.GetSecurityQuestionV3Request.verify|verify} messages. - * @function encodeDelimited - * @memberof Authentication.GetSecurityQuestionV3Request - * @static - * @param {Authentication.IGetSecurityQuestionV3Request} message GetSecurityQuestionV3Request message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetSecurityQuestionV3Request.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a GetSecurityQuestionV3Request message from the specified reader or buffer. * @function decode @@ -37309,46 +30377,6 @@ export const Authentication = $root.Authentication = (() => { return message; }; - /** - * Decodes a GetSecurityQuestionV3Request message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Authentication.GetSecurityQuestionV3Request - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Authentication.GetSecurityQuestionV3Request} GetSecurityQuestionV3Request - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetSecurityQuestionV3Request.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a GetSecurityQuestionV3Request message. - * @function verify - * @memberof Authentication.GetSecurityQuestionV3Request - * @static - * @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) { - if (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"; - if (message.verificationCode != null && message.hasOwnProperty("verificationCode")) - if (!$util.isString(message.verificationCode)) - return "verificationCode: string expected"; - return null; - }; - /** * Creates a GetSecurityQuestionV3Request message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -37360,6 +30388,8 @@ export const Authentication = $root.Authentication = (() => { GetSecurityQuestionV3Request.fromObject = function fromObject(object, long) { if (object instanceof $root.Authentication.GetSecurityQuestionV3Request) return object; + if (!$util.isObject(object)) + throw TypeError(".Authentication.GetSecurityQuestionV3Request: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -37402,9 +30432,9 @@ export const Authentication = $root.Authentication = (() => { } object.verificationCode = ""; } - if (message.encryptedLoginToken != null && message.hasOwnProperty("encryptedLoginToken")) + if (message.encryptedLoginToken != null && Object.hasOwnProperty.call(message, "encryptedLoginToken")) object.encryptedLoginToken = options.bytes === String ? $util.base64.encode(message.encryptedLoginToken, 0, message.encryptedLoginToken.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedLoginToken) : message.encryptedLoginToken; - if (message.verificationCode != null && message.hasOwnProperty("verificationCode")) + if (message.verificationCode != null && Object.hasOwnProperty.call(message, "verificationCode")) object.verificationCode = message.verificationCode; return object; }; @@ -37536,19 +30566,6 @@ export const Authentication = $root.Authentication = (() => { return writer; }; - /** - * Encodes the specified GetSecurityQuestionV3Response message, length delimited. Does not implicitly {@link Authentication.GetSecurityQuestionV3Response.verify|verify} messages. - * @function encodeDelimited - * @memberof Authentication.GetSecurityQuestionV3Response - * @static - * @param {Authentication.IGetSecurityQuestionV3Response} message GetSecurityQuestionV3Response message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetSecurityQuestionV3Response.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a GetSecurityQuestionV3Response message from the specified reader or buffer. * @function decode @@ -37597,52 +30614,6 @@ export const Authentication = $root.Authentication = (() => { return message; }; - /** - * Decodes a GetSecurityQuestionV3Response message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Authentication.GetSecurityQuestionV3Response - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Authentication.GetSecurityQuestionV3Response} GetSecurityQuestionV3Response - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetSecurityQuestionV3Response.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a GetSecurityQuestionV3Response message. - * @function verify - * @memberof Authentication.GetSecurityQuestionV3Response - * @static - * @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) { - if (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"; - if (message.backupKeyDate != null && message.hasOwnProperty("backupKeyDate")) - if (!$util.isInteger(message.backupKeyDate) && !(message.backupKeyDate && $util.isInteger(message.backupKeyDate.low) && $util.isInteger(message.backupKeyDate.high))) - return "backupKeyDate: integer|Long expected"; - if (message.salt != null && message.hasOwnProperty("salt")) - if (!(message.salt && typeof message.salt.length === "number" || $util.isString(message.salt))) - return "salt: buffer expected"; - if (message.iterations != null && message.hasOwnProperty("iterations")) - if (!$util.isInteger(message.iterations)) - return "iterations: integer expected"; - return null; - }; - /** * Creates a GetSecurityQuestionV3Response message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -37654,6 +30625,8 @@ export const Authentication = $root.Authentication = (() => { GetSecurityQuestionV3Response.fromObject = function fromObject(object, long) { if (object instanceof $root.Authentication.GetSecurityQuestionV3Response) return object; + if (!$util.isObject(object)) + throw TypeError(".Authentication.GetSecurityQuestionV3Response: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -37713,18 +30686,18 @@ export const Authentication = $root.Authentication = (() => { } object.iterations = 0; } - if (message.securityQuestion != null && message.hasOwnProperty("securityQuestion")) + if (message.securityQuestion != null && Object.hasOwnProperty.call(message, "securityQuestion")) object.securityQuestion = message.securityQuestion; - if (message.backupKeyDate != null && message.hasOwnProperty("backupKeyDate")) + if (message.backupKeyDate != null && Object.hasOwnProperty.call(message, "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") 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; - if (message.salt != null && message.hasOwnProperty("salt")) + if (message.salt != null && Object.hasOwnProperty.call(message, "salt")) object.salt = options.bytes === String ? $util.base64.encode(message.salt, 0, message.salt.length) : options.bytes === Array ? Array.prototype.slice.call(message.salt) : message.salt; - if (message.iterations != null && message.hasOwnProperty("iterations")) + if (message.iterations != null && Object.hasOwnProperty.call(message, "iterations")) object.iterations = message.iterations; return object; }; @@ -37845,19 +30818,6 @@ export const Authentication = $root.Authentication = (() => { return writer; }; - /** - * Encodes the specified GetDataKeyBackupV3Request message, length delimited. Does not implicitly {@link Authentication.GetDataKeyBackupV3Request.verify|verify} messages. - * @function encodeDelimited - * @memberof Authentication.GetDataKeyBackupV3Request - * @static - * @param {Authentication.IGetDataKeyBackupV3Request} message GetDataKeyBackupV3Request message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetDataKeyBackupV3Request.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a GetDataKeyBackupV3Request message from the specified reader or buffer. * @function decode @@ -37902,49 +30862,6 @@ export const Authentication = $root.Authentication = (() => { return message; }; - /** - * Decodes a GetDataKeyBackupV3Request message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Authentication.GetDataKeyBackupV3Request - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Authentication.GetDataKeyBackupV3Request} GetDataKeyBackupV3Request - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetDataKeyBackupV3Request.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a GetDataKeyBackupV3Request message. - * @function verify - * @memberof Authentication.GetDataKeyBackupV3Request - * @static - * @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) { - if (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"; - if (message.verificationCode != null && message.hasOwnProperty("verificationCode")) - if (!$util.isString(message.verificationCode)) - return "verificationCode: string expected"; - if (message.securityAnswerHash != null && message.hasOwnProperty("securityAnswerHash")) - if (!(message.securityAnswerHash && typeof message.securityAnswerHash.length === "number" || $util.isString(message.securityAnswerHash))) - return "securityAnswerHash: buffer expected"; - return null; - }; - /** * Creates a GetDataKeyBackupV3Request message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -37956,6 +30873,8 @@ export const Authentication = $root.Authentication = (() => { GetDataKeyBackupV3Request.fromObject = function fromObject(object, long) { if (object instanceof $root.Authentication.GetDataKeyBackupV3Request) return object; + if (!$util.isObject(object)) + throw TypeError(".Authentication.GetDataKeyBackupV3Request: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -38010,11 +30929,11 @@ export const Authentication = $root.Authentication = (() => { object.securityAnswerHash = $util.newBuffer(object.securityAnswerHash); } } - if (message.encryptedLoginToken != null && message.hasOwnProperty("encryptedLoginToken")) + if (message.encryptedLoginToken != null && Object.hasOwnProperty.call(message, "encryptedLoginToken")) object.encryptedLoginToken = options.bytes === String ? $util.base64.encode(message.encryptedLoginToken, 0, message.encryptedLoginToken.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedLoginToken) : message.encryptedLoginToken; - if (message.verificationCode != null && message.hasOwnProperty("verificationCode")) + if (message.verificationCode != null && Object.hasOwnProperty.call(message, "verificationCode")) object.verificationCode = message.verificationCode; - if (message.securityAnswerHash != null && message.hasOwnProperty("securityAnswerHash")) + if (message.securityAnswerHash != null && Object.hasOwnProperty.call(message, "securityAnswerHash")) object.securityAnswerHash = options.bytes === String ? $util.base64.encode(message.securityAnswerHash, 0, message.securityAnswerHash.length) : options.bytes === Array ? Array.prototype.slice.call(message.securityAnswerHash) : message.securityAnswerHash; return object; }; @@ -38168,19 +31087,6 @@ export const Authentication = $root.Authentication = (() => { return writer; }; - /** - * Encodes the specified PasswordRules message, length delimited. Does not implicitly {@link Authentication.PasswordRules.verify|verify} messages. - * @function encodeDelimited - * @memberof Authentication.PasswordRules - * @static - * @param {Authentication.IPasswordRules} message PasswordRules message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - PasswordRules.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a PasswordRules message from the specified reader or buffer. * @function decode @@ -38237,58 +31143,6 @@ export const Authentication = $root.Authentication = (() => { return message; }; - /** - * Decodes a PasswordRules message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Authentication.PasswordRules - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Authentication.PasswordRules} PasswordRules - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - PasswordRules.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a PasswordRules message. - * @function verify - * @memberof Authentication.PasswordRules - * @static - * @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) { - if (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"; - if (message.match != null && message.hasOwnProperty("match")) - if (typeof message.match !== "boolean") - return "match: boolean expected"; - if (message.pattern != null && message.hasOwnProperty("pattern")) - if (!$util.isString(message.pattern)) - return "pattern: string expected"; - if (message.description != null && message.hasOwnProperty("description")) - if (!$util.isString(message.description)) - return "description: string expected"; - if (message.minimum != null && message.hasOwnProperty("minimum")) - if (!$util.isInteger(message.minimum)) - return "minimum: integer expected"; - if (message.value != null && message.hasOwnProperty("value")) - if (!$util.isString(message.value)) - return "value: string expected"; - return null; - }; - /** * Creates a PasswordRules message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -38300,6 +31154,8 @@ export const Authentication = $root.Authentication = (() => { PasswordRules.fromObject = function fromObject(object, long) { if (object instanceof $root.Authentication.PasswordRules) return object; + if (!$util.isObject(object)) + throw TypeError(".Authentication.PasswordRules: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -38345,17 +31201,17 @@ export const Authentication = $root.Authentication = (() => { object.minimum = 0; object.value = ""; } - if (message.ruleType != null && message.hasOwnProperty("ruleType")) + if (message.ruleType != null && Object.hasOwnProperty.call(message, "ruleType")) object.ruleType = message.ruleType; - if (message.match != null && message.hasOwnProperty("match")) + if (message.match != null && Object.hasOwnProperty.call(message, "match")) object.match = message.match; - if (message.pattern != null && message.hasOwnProperty("pattern")) + if (message.pattern != null && Object.hasOwnProperty.call(message, "pattern")) object.pattern = message.pattern; - if (message.description != null && message.hasOwnProperty("description")) + if (message.description != null && Object.hasOwnProperty.call(message, "description")) object.description = message.description; - if (message.minimum != null && message.hasOwnProperty("minimum")) + if (message.minimum != null && Object.hasOwnProperty.call(message, "minimum")) object.minimum = message.minimum; - if (message.value != null && message.hasOwnProperty("value")) + if (message.value != null && Object.hasOwnProperty.call(message, "value")) object.value = message.value; return object; }; @@ -38555,19 +31411,6 @@ export const Authentication = $root.Authentication = (() => { return writer; }; - /** - * Encodes the specified GetDataKeyBackupV3Response message, length delimited. Does not implicitly {@link Authentication.GetDataKeyBackupV3Response.verify|verify} messages. - * @function encodeDelimited - * @memberof Authentication.GetDataKeyBackupV3Response - * @static - * @param {Authentication.IGetDataKeyBackupV3Response} message GetDataKeyBackupV3Response message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetDataKeyBackupV3Response.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a GetDataKeyBackupV3Response message from the specified reader or buffer. * @function decode @@ -38642,81 +31485,6 @@ export const Authentication = $root.Authentication = (() => { return message; }; - /** - * Decodes a GetDataKeyBackupV3Response message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Authentication.GetDataKeyBackupV3Response - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Authentication.GetDataKeyBackupV3Response} GetDataKeyBackupV3Response - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetDataKeyBackupV3Response.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a GetDataKeyBackupV3Response message. - * @function verify - * @memberof Authentication.GetDataKeyBackupV3Response - * @static - * @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) { - if (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"; - if (message.dataKeyBackupDate != null && message.hasOwnProperty("dataKeyBackupDate")) - if (!$util.isInteger(message.dataKeyBackupDate) && !(message.dataKeyBackupDate && $util.isInteger(message.dataKeyBackupDate.low) && $util.isInteger(message.dataKeyBackupDate.high))) - return "dataKeyBackupDate: integer|Long expected"; - if (message.publicKey != null && message.hasOwnProperty("publicKey")) - if (!(message.publicKey && typeof message.publicKey.length === "number" || $util.isString(message.publicKey))) - return "publicKey: buffer expected"; - if (message.encryptedPrivateKey != null && message.hasOwnProperty("encryptedPrivateKey")) - if (!(message.encryptedPrivateKey && typeof message.encryptedPrivateKey.length === "number" || $util.isString(message.encryptedPrivateKey))) - return "encryptedPrivateKey: buffer expected"; - 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.encryptedSessionToken != null && message.hasOwnProperty("encryptedSessionToken")) - if (!(message.encryptedSessionToken && typeof message.encryptedSessionToken.length === "number" || $util.isString(message.encryptedSessionToken))) - return "encryptedSessionToken: buffer expected"; - if (message.passwordRules != null && message.hasOwnProperty("passwordRules")) { - 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); - if (error) - return "passwordRules." + error; - } - } - if (message.passwordRulesIntro != null && message.hasOwnProperty("passwordRulesIntro")) - if (!$util.isString(message.passwordRulesIntro)) - return "passwordRulesIntro: string expected"; - if (message.minimumPbkdf2Iterations != null && message.hasOwnProperty("minimumPbkdf2Iterations")) - if (!$util.isInteger(message.minimumPbkdf2Iterations)) - return "minimumPbkdf2Iterations: integer expected"; - if (message.keyType != null && message.hasOwnProperty("keyType")) - switch (message.keyType) { - default: - return "keyType: enum value expected"; - case 0: - case 1: - break; - } - return null; - }; - /** * Creates a GetDataKeyBackupV3Response message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -38728,6 +31496,8 @@ export const Authentication = $root.Authentication = (() => { GetDataKeyBackupV3Response.fromObject = function fromObject(object, long) { if (object instanceof $root.Authentication.GetDataKeyBackupV3Response) return object; + if (!$util.isObject(object)) + throw TypeError(".Authentication.GetDataKeyBackupV3Response: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -38772,7 +31542,7 @@ export const Authentication = $root.Authentication = (() => { throw TypeError(".Authentication.GetDataKeyBackupV3Response.passwordRules: array expected"); message.passwordRules = []; for (let i = 0; i < object.passwordRules.length; ++i) { - if (typeof object.passwordRules[i] !== "object") + if (!$util.isObject(object.passwordRules[i])) throw TypeError(".Authentication.GetDataKeyBackupV3Response.passwordRules: object expected"); message.passwordRules[i] = $root.Authentication.PasswordRules.fromObject(object.passwordRules[i], long + 1); } @@ -38864,33 +31634,33 @@ export const Authentication = $root.Authentication = (() => { object.minimumPbkdf2Iterations = 0; object.keyType = options.enums === String ? "RSA" : 0; } - if (message.dataKeyBackup != null && message.hasOwnProperty("dataKeyBackup")) + if (message.dataKeyBackup != null && Object.hasOwnProperty.call(message, "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 (message.dataKeyBackupDate != null && Object.hasOwnProperty.call(message, "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") 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; - if (message.publicKey != null && message.hasOwnProperty("publicKey")) + if (message.publicKey != null && Object.hasOwnProperty.call(message, "publicKey")) object.publicKey = options.bytes === String ? $util.base64.encode(message.publicKey, 0, message.publicKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.publicKey) : message.publicKey; - if (message.encryptedPrivateKey != null && message.hasOwnProperty("encryptedPrivateKey")) + if (message.encryptedPrivateKey != null && Object.hasOwnProperty.call(message, "encryptedPrivateKey")) object.encryptedPrivateKey = options.bytes === String ? $util.base64.encode(message.encryptedPrivateKey, 0, message.encryptedPrivateKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedPrivateKey) : message.encryptedPrivateKey; - if (message.clientKey != null && message.hasOwnProperty("clientKey")) + if (message.clientKey != null && Object.hasOwnProperty.call(message, "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.encryptedSessionToken != null && message.hasOwnProperty("encryptedSessionToken")) + if (message.encryptedSessionToken != null && Object.hasOwnProperty.call(message, "encryptedSessionToken")) object.encryptedSessionToken = options.bytes === String ? $util.base64.encode(message.encryptedSessionToken, 0, message.encryptedSessionToken.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedSessionToken) : message.encryptedSessionToken; 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); } - if (message.passwordRulesIntro != null && message.hasOwnProperty("passwordRulesIntro")) + if (message.passwordRulesIntro != null && Object.hasOwnProperty.call(message, "passwordRulesIntro")) object.passwordRulesIntro = message.passwordRulesIntro; - if (message.minimumPbkdf2Iterations != null && message.hasOwnProperty("minimumPbkdf2Iterations")) + if (message.minimumPbkdf2Iterations != null && Object.hasOwnProperty.call(message, "minimumPbkdf2Iterations")) object.minimumPbkdf2Iterations = message.minimumPbkdf2Iterations; - if (message.keyType != null && message.hasOwnProperty("keyType")) + if (message.keyType != null && Object.hasOwnProperty.call(message, "keyType")) object.keyType = options.enums === String ? $root.Enterprise.KeyType[message.keyType] === undefined ? message.keyType : $root.Enterprise.KeyType[message.keyType] : message.keyType; return object; }; @@ -38991,19 +31761,6 @@ export const Authentication = $root.Authentication = (() => { return writer; }; - /** - * Encodes the specified GetPublicKeysRequest message, length delimited. Does not implicitly {@link Authentication.GetPublicKeysRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof Authentication.GetPublicKeysRequest - * @static - * @param {Authentication.IGetPublicKeysRequest} message GetPublicKeysRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetPublicKeysRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a GetPublicKeysRequest message from the specified reader or buffer. * @function decode @@ -39042,47 +31799,6 @@ export const Authentication = $root.Authentication = (() => { return message; }; - /** - * Decodes a GetPublicKeysRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Authentication.GetPublicKeysRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Authentication.GetPublicKeysRequest} GetPublicKeysRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetPublicKeysRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a GetPublicKeysRequest message. - * @function verify - * @memberof Authentication.GetPublicKeysRequest - * @static - * @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) { - if (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"; - for (let i = 0; i < message.usernames.length; ++i) - if (!$util.isString(message.usernames[i])) - return "usernames: string[] expected"; - } - return null; - }; - /** * Creates a GetPublicKeysRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -39094,6 +31810,8 @@ export const Authentication = $root.Authentication = (() => { GetPublicKeysRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.Authentication.GetPublicKeysRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".Authentication.GetPublicKeysRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -39285,19 +32003,6 @@ export const Authentication = $root.Authentication = (() => { return writer; }; - /** - * Encodes the specified PublicKeyResponse message, length delimited. Does not implicitly {@link Authentication.PublicKeyResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof Authentication.PublicKeyResponse - * @static - * @param {Authentication.IPublicKeyResponse} message PublicKeyResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - PublicKeyResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a PublicKeyResponse message from the specified reader or buffer. * @function decode @@ -39354,58 +32059,6 @@ export const Authentication = $root.Authentication = (() => { return message; }; - /** - * Decodes a PublicKeyResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Authentication.PublicKeyResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Authentication.PublicKeyResponse} PublicKeyResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - PublicKeyResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a PublicKeyResponse message. - * @function verify - * @memberof Authentication.PublicKeyResponse - * @static - * @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) { - if (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"; - if (message.publicKey != null && message.hasOwnProperty("publicKey")) - if (!(message.publicKey && typeof message.publicKey.length === "number" || $util.isString(message.publicKey))) - return "publicKey: buffer expected"; - if (message.publicEccKey != null && message.hasOwnProperty("publicEccKey")) - if (!(message.publicEccKey && typeof message.publicEccKey.length === "number" || $util.isString(message.publicEccKey))) - return "publicEccKey: buffer expected"; - if (message.message != null && message.hasOwnProperty("message")) - if (!$util.isString(message.message)) - return "message: string expected"; - if (message.errorCode != null && message.hasOwnProperty("errorCode")) - if (!$util.isString(message.errorCode)) - return "errorCode: string expected"; - if (message.accountUid != null && message.hasOwnProperty("accountUid")) - if (!(message.accountUid && typeof message.accountUid.length === "number" || $util.isString(message.accountUid))) - return "accountUid: buffer expected"; - return null; - }; - /** * Creates a PublicKeyResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -39417,6 +32070,8 @@ export const Authentication = $root.Authentication = (() => { PublicKeyResponse.fromObject = function fromObject(object, long) { if (object instanceof $root.Authentication.PublicKeyResponse) return object; + if (!$util.isObject(object)) + throw TypeError(".Authentication.PublicKeyResponse: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -39489,17 +32144,17 @@ export const Authentication = $root.Authentication = (() => { object.accountUid = $util.newBuffer(object.accountUid); } } - if (message.username != null && message.hasOwnProperty("username")) + if (message.username != null && Object.hasOwnProperty.call(message, "username")) object.username = message.username; - if (message.publicKey != null && message.hasOwnProperty("publicKey")) + if (message.publicKey != null && Object.hasOwnProperty.call(message, "publicKey")) object.publicKey = options.bytes === String ? $util.base64.encode(message.publicKey, 0, message.publicKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.publicKey) : message.publicKey; - if (message.publicEccKey != null && message.hasOwnProperty("publicEccKey")) + if (message.publicEccKey != null && Object.hasOwnProperty.call(message, "publicEccKey")) object.publicEccKey = options.bytes === String ? $util.base64.encode(message.publicEccKey, 0, message.publicEccKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.publicEccKey) : message.publicEccKey; - if (message.message != null && message.hasOwnProperty("message")) + if (message.message != null && Object.hasOwnProperty.call(message, "message")) object.message = message.message; - if (message.errorCode != null && message.hasOwnProperty("errorCode")) + if (message.errorCode != null && Object.hasOwnProperty.call(message, "errorCode")) object.errorCode = message.errorCode; - if (message.accountUid != null && message.hasOwnProperty("accountUid")) + if (message.accountUid != null && Object.hasOwnProperty.call(message, "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; return object; }; @@ -39600,19 +32255,6 @@ export const Authentication = $root.Authentication = (() => { return writer; }; - /** - * Encodes the specified GetPublicKeysResponse message, length delimited. Does not implicitly {@link Authentication.GetPublicKeysResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof Authentication.GetPublicKeysResponse - * @static - * @param {Authentication.IGetPublicKeysResponse} message GetPublicKeysResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetPublicKeysResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a GetPublicKeysResponse message from the specified reader or buffer. * @function decode @@ -39651,49 +32293,6 @@ export const Authentication = $root.Authentication = (() => { return message; }; - /** - * Decodes a GetPublicKeysResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Authentication.GetPublicKeysResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Authentication.GetPublicKeysResponse} GetPublicKeysResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetPublicKeysResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a GetPublicKeysResponse message. - * @function verify - * @memberof Authentication.GetPublicKeysResponse - * @static - * @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) { - if (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); - if (error) - return "keyResponses." + error; - } - } - return null; - }; - /** * Creates a GetPublicKeysResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -39705,6 +32304,8 @@ export const Authentication = $root.Authentication = (() => { GetPublicKeysResponse.fromObject = function fromObject(object, long) { if (object instanceof $root.Authentication.GetPublicKeysResponse) return object; + if (!$util.isObject(object)) + throw TypeError(".Authentication.GetPublicKeysResponse: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -39715,7 +32316,7 @@ export const Authentication = $root.Authentication = (() => { throw TypeError(".Authentication.GetPublicKeysResponse.keyResponses: array expected"); message.keyResponses = []; for (let i = 0; i < object.keyResponses.length; ++i) { - if (typeof object.keyResponses[i] !== "object") + if (!$util.isObject(object.keyResponses[i])) throw TypeError(".Authentication.GetPublicKeysResponse.keyResponses: object expected"); message.keyResponses[i] = $root.Authentication.PublicKeyResponse.fromObject(object.keyResponses[i], long + 1); } @@ -39855,19 +32456,6 @@ export const Authentication = $root.Authentication = (() => { return writer; }; - /** - * Encodes the specified SetEccKeyPairRequest message, length delimited. Does not implicitly {@link Authentication.SetEccKeyPairRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof Authentication.SetEccKeyPairRequest - * @static - * @param {Authentication.ISetEccKeyPairRequest} message SetEccKeyPairRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SetEccKeyPairRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a SetEccKeyPairRequest message from the specified reader or buffer. * @function decode @@ -39908,46 +32496,6 @@ export const Authentication = $root.Authentication = (() => { return message; }; - /** - * Decodes a SetEccKeyPairRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Authentication.SetEccKeyPairRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Authentication.SetEccKeyPairRequest} SetEccKeyPairRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SetEccKeyPairRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a SetEccKeyPairRequest message. - * @function verify - * @memberof Authentication.SetEccKeyPairRequest - * @static - * @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) { - if (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"; - if (message.encryptedPrivateKey != null && message.hasOwnProperty("encryptedPrivateKey")) - if (!(message.encryptedPrivateKey && typeof message.encryptedPrivateKey.length === "number" || $util.isString(message.encryptedPrivateKey))) - return "encryptedPrivateKey: buffer expected"; - return null; - }; - /** * Creates a SetEccKeyPairRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -39959,6 +32507,8 @@ export const Authentication = $root.Authentication = (() => { SetEccKeyPairRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.Authentication.SetEccKeyPairRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".Authentication.SetEccKeyPairRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -40010,9 +32560,9 @@ export const Authentication = $root.Authentication = (() => { object.encryptedPrivateKey = $util.newBuffer(object.encryptedPrivateKey); } } - if (message.publicKey != null && message.hasOwnProperty("publicKey")) + if (message.publicKey != null && Object.hasOwnProperty.call(message, "publicKey")) object.publicKey = options.bytes === String ? $util.base64.encode(message.publicKey, 0, message.publicKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.publicKey) : message.publicKey; - if (message.encryptedPrivateKey != null && message.hasOwnProperty("encryptedPrivateKey")) + if (message.encryptedPrivateKey != null && Object.hasOwnProperty.call(message, "encryptedPrivateKey")) object.encryptedPrivateKey = options.bytes === String ? $util.base64.encode(message.encryptedPrivateKey, 0, message.encryptedPrivateKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedPrivateKey) : message.encryptedPrivateKey; return object; }; @@ -40113,19 +32663,6 @@ export const Authentication = $root.Authentication = (() => { return writer; }; - /** - * Encodes the specified SetEccKeyPairsRequest message, length delimited. Does not implicitly {@link Authentication.SetEccKeyPairsRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof Authentication.SetEccKeyPairsRequest - * @static - * @param {Authentication.ISetEccKeyPairsRequest} message SetEccKeyPairsRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SetEccKeyPairsRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a SetEccKeyPairsRequest message from the specified reader or buffer. * @function decode @@ -40164,49 +32701,6 @@ export const Authentication = $root.Authentication = (() => { return message; }; - /** - * Decodes a SetEccKeyPairsRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Authentication.SetEccKeyPairsRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Authentication.SetEccKeyPairsRequest} SetEccKeyPairsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SetEccKeyPairsRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a SetEccKeyPairsRequest message. - * @function verify - * @memberof Authentication.SetEccKeyPairsRequest - * @static - * @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) { - if (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); - if (error) - return "teamKeys." + error; - } - } - return null; - }; - /** * Creates a SetEccKeyPairsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -40218,6 +32712,8 @@ export const Authentication = $root.Authentication = (() => { SetEccKeyPairsRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.Authentication.SetEccKeyPairsRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".Authentication.SetEccKeyPairsRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -40228,7 +32724,7 @@ export const Authentication = $root.Authentication = (() => { throw TypeError(".Authentication.SetEccKeyPairsRequest.teamKeys: array expected"); message.teamKeys = []; for (let i = 0; i < object.teamKeys.length; ++i) { - if (typeof object.teamKeys[i] !== "object") + if (!$util.isObject(object.teamKeys[i])) throw TypeError(".Authentication.SetEccKeyPairsRequest.teamKeys: object expected"); message.teamKeys[i] = $root.Authentication.TeamEccKeyPair.fromObject(object.teamKeys[i], long + 1); } @@ -40359,19 +32855,6 @@ export const Authentication = $root.Authentication = (() => { return writer; }; - /** - * Encodes the specified SetEccKeyPairsResponse message, length delimited. Does not implicitly {@link Authentication.SetEccKeyPairsResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof Authentication.SetEccKeyPairsResponse - * @static - * @param {Authentication.ISetEccKeyPairsResponse} message SetEccKeyPairsResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SetEccKeyPairsResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a SetEccKeyPairsResponse message from the specified reader or buffer. * @function decode @@ -40410,49 +32893,6 @@ export const Authentication = $root.Authentication = (() => { return message; }; - /** - * Decodes a SetEccKeyPairsResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Authentication.SetEccKeyPairsResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Authentication.SetEccKeyPairsResponse} SetEccKeyPairsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SetEccKeyPairsResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a SetEccKeyPairsResponse message. - * @function verify - * @memberof Authentication.SetEccKeyPairsResponse - * @static - * @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) { - if (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); - if (error) - return "teamKeys." + error; - } - } - return null; - }; - /** * Creates a SetEccKeyPairsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -40464,6 +32904,8 @@ export const Authentication = $root.Authentication = (() => { SetEccKeyPairsResponse.fromObject = function fromObject(object, long) { if (object instanceof $root.Authentication.SetEccKeyPairsResponse) return object; + if (!$util.isObject(object)) + throw TypeError(".Authentication.SetEccKeyPairsResponse: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -40474,7 +32916,7 @@ export const Authentication = $root.Authentication = (() => { throw TypeError(".Authentication.SetEccKeyPairsResponse.teamKeys: array expected"); message.teamKeys = []; for (let i = 0; i < object.teamKeys.length; ++i) { - if (typeof object.teamKeys[i] !== "object") + if (!$util.isObject(object.teamKeys[i])) throw TypeError(".Authentication.SetEccKeyPairsResponse.teamKeys: object expected"); message.teamKeys[i] = $root.Authentication.TeamEccKeyPairResponse.fromObject(object.teamKeys[i], long + 1); } @@ -40625,19 +33067,6 @@ export const Authentication = $root.Authentication = (() => { return writer; }; - /** - * Encodes the specified TeamEccKeyPair message, length delimited. Does not implicitly {@link Authentication.TeamEccKeyPair.verify|verify} messages. - * @function encodeDelimited - * @memberof Authentication.TeamEccKeyPair - * @static - * @param {Authentication.ITeamEccKeyPair} message TeamEccKeyPair message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TeamEccKeyPair.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a TeamEccKeyPair message from the specified reader or buffer. * @function decode @@ -40682,49 +33111,6 @@ export const Authentication = $root.Authentication = (() => { return message; }; - /** - * Decodes a TeamEccKeyPair message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Authentication.TeamEccKeyPair - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Authentication.TeamEccKeyPair} TeamEccKeyPair - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TeamEccKeyPair.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a TeamEccKeyPair message. - * @function verify - * @memberof Authentication.TeamEccKeyPair - * @static - * @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) { - if (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"; - if (message.publicKey != null && message.hasOwnProperty("publicKey")) - if (!(message.publicKey && typeof message.publicKey.length === "number" || $util.isString(message.publicKey))) - return "publicKey: buffer expected"; - if (message.encryptedPrivateKey != null && message.hasOwnProperty("encryptedPrivateKey")) - if (!(message.encryptedPrivateKey && typeof message.encryptedPrivateKey.length === "number" || $util.isString(message.encryptedPrivateKey))) - return "encryptedPrivateKey: buffer expected"; - return null; - }; - /** * Creates a TeamEccKeyPair message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -40736,6 +33122,8 @@ export const Authentication = $root.Authentication = (() => { TeamEccKeyPair.fromObject = function fromObject(object, long) { if (object instanceof $root.Authentication.TeamEccKeyPair) return object; + if (!$util.isObject(object)) + throw TypeError(".Authentication.TeamEccKeyPair: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -40799,11 +33187,11 @@ export const Authentication = $root.Authentication = (() => { object.encryptedPrivateKey = $util.newBuffer(object.encryptedPrivateKey); } } - if (message.teamUid != null && message.hasOwnProperty("teamUid")) + if (message.teamUid != null && Object.hasOwnProperty.call(message, "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.publicKey != null && message.hasOwnProperty("publicKey")) + if (message.publicKey != null && Object.hasOwnProperty.call(message, "publicKey")) object.publicKey = options.bytes === String ? $util.base64.encode(message.publicKey, 0, message.publicKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.publicKey) : message.publicKey; - if (message.encryptedPrivateKey != null && message.hasOwnProperty("encryptedPrivateKey")) + if (message.encryptedPrivateKey != null && Object.hasOwnProperty.call(message, "encryptedPrivateKey")) object.encryptedPrivateKey = options.bytes === String ? $util.base64.encode(message.encryptedPrivateKey, 0, message.encryptedPrivateKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedPrivateKey) : message.encryptedPrivateKey; return object; }; @@ -40913,19 +33301,6 @@ export const Authentication = $root.Authentication = (() => { return writer; }; - /** - * Encodes the specified TeamEccKeyPairResponse message, length delimited. Does not implicitly {@link Authentication.TeamEccKeyPairResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof Authentication.TeamEccKeyPairResponse - * @static - * @param {Authentication.ITeamEccKeyPairResponse} message TeamEccKeyPairResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TeamEccKeyPairResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a TeamEccKeyPairResponse message from the specified reader or buffer. * @function decode @@ -40966,54 +33341,6 @@ export const Authentication = $root.Authentication = (() => { return message; }; - /** - * Decodes a TeamEccKeyPairResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Authentication.TeamEccKeyPairResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Authentication.TeamEccKeyPairResponse} TeamEccKeyPairResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TeamEccKeyPairResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a TeamEccKeyPairResponse message. - * @function verify - * @memberof Authentication.TeamEccKeyPairResponse - * @static - * @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) { - if (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"; - if (message.status != null && message.hasOwnProperty("status")) - switch (message.status) { - default: - return "status: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - break; - } - return null; - }; - /** * Creates a TeamEccKeyPairResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -41025,6 +33352,8 @@ export const Authentication = $root.Authentication = (() => { TeamEccKeyPairResponse.fromObject = function fromObject(object, long) { if (object instanceof $root.Authentication.TeamEccKeyPairResponse) return object; + if (!$util.isObject(object)) + throw TypeError(".Authentication.TeamEccKeyPairResponse: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -41093,9 +33422,9 @@ export const Authentication = $root.Authentication = (() => { } object.status = options.enums === String ? "SUCCESS" : 0; } - if (message.teamUid != null && message.hasOwnProperty("teamUid")) + if (message.teamUid != null && Object.hasOwnProperty.call(message, "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.status != null && message.hasOwnProperty("status")) + if (message.status != null && Object.hasOwnProperty.call(message, "status")) object.status = options.enums === String ? $root.Authentication.GenericStatus[message.status] === undefined ? message.status : $root.Authentication.GenericStatus[message.status] : message.status; return object; }; @@ -41209,19 +33538,6 @@ export const Authentication = $root.Authentication = (() => { return writer; }; - /** - * Encodes the specified GetKsmPublicKeysRequest message, length delimited. Does not implicitly {@link Authentication.GetKsmPublicKeysRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof Authentication.GetKsmPublicKeysRequest - * @static - * @param {Authentication.IGetKsmPublicKeysRequest} message GetKsmPublicKeysRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetKsmPublicKeysRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a GetKsmPublicKeysRequest message from the specified reader or buffer. * @function decode @@ -41266,54 +33582,6 @@ export const Authentication = $root.Authentication = (() => { return message; }; - /** - * Decodes a GetKsmPublicKeysRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Authentication.GetKsmPublicKeysRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Authentication.GetKsmPublicKeysRequest} GetKsmPublicKeysRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetKsmPublicKeysRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a GetKsmPublicKeysRequest message. - * @function verify - * @memberof Authentication.GetKsmPublicKeysRequest - * @static - * @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) { - if (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"; - for (let i = 0; i < message.clientIds.length; ++i) - if (!(message.clientIds[i] && typeof message.clientIds[i].length === "number" || $util.isString(message.clientIds[i]))) - return "clientIds: buffer[] expected"; - } - if (message.controllerUids != null && message.hasOwnProperty("controllerUids")) { - if (!Array.isArray(message.controllerUids)) - return "controllerUids: array expected"; - for (let i = 0; i < message.controllerUids.length; ++i) - if (!(message.controllerUids[i] && typeof message.controllerUids[i].length === "number" || $util.isString(message.controllerUids[i]))) - return "controllerUids: buffer[] expected"; - } - return null; - }; - /** * Creates a GetKsmPublicKeysRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -41325,6 +33593,8 @@ export const Authentication = $root.Authentication = (() => { GetKsmPublicKeysRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.Authentication.GetKsmPublicKeysRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".Authentication.GetKsmPublicKeysRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -41503,19 +33773,6 @@ export const Authentication = $root.Authentication = (() => { return writer; }; - /** - * Encodes the specified DevicePublicKeyResponse message, length delimited. Does not implicitly {@link Authentication.DevicePublicKeyResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof Authentication.DevicePublicKeyResponse - * @static - * @param {Authentication.IDevicePublicKeyResponse} message DevicePublicKeyResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - DevicePublicKeyResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a DevicePublicKeyResponse message from the specified reader or buffer. * @function decode @@ -41560,49 +33817,6 @@ export const Authentication = $root.Authentication = (() => { return message; }; - /** - * Decodes a DevicePublicKeyResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Authentication.DevicePublicKeyResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Authentication.DevicePublicKeyResponse} DevicePublicKeyResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - DevicePublicKeyResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a DevicePublicKeyResponse message. - * @function verify - * @memberof Authentication.DevicePublicKeyResponse - * @static - * @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) { - if (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"; - if (message.publicKey != null && message.hasOwnProperty("publicKey")) - if (!(message.publicKey && typeof message.publicKey.length === "number" || $util.isString(message.publicKey))) - return "publicKey: buffer expected"; - if (message.controllerUid != null && message.hasOwnProperty("controllerUid")) - if (!(message.controllerUid && typeof message.controllerUid.length === "number" || $util.isString(message.controllerUid))) - return "controllerUid: buffer expected"; - return null; - }; - /** * Creates a DevicePublicKeyResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -41614,6 +33828,8 @@ export const Authentication = $root.Authentication = (() => { DevicePublicKeyResponse.fromObject = function fromObject(object, long) { if (object instanceof $root.Authentication.DevicePublicKeyResponse) return object; + if (!$util.isObject(object)) + throw TypeError(".Authentication.DevicePublicKeyResponse: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -41677,11 +33893,11 @@ export const Authentication = $root.Authentication = (() => { object.controllerUid = $util.newBuffer(object.controllerUid); } } - if (message.clientId != null && message.hasOwnProperty("clientId")) + if (message.clientId != null && Object.hasOwnProperty.call(message, "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.publicKey != null && message.hasOwnProperty("publicKey")) + if (message.publicKey != null && Object.hasOwnProperty.call(message, "publicKey")) object.publicKey = options.bytes === String ? $util.base64.encode(message.publicKey, 0, message.publicKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.publicKey) : message.publicKey; - if (message.controllerUid != null && message.hasOwnProperty("controllerUid")) + if (message.controllerUid != null && Object.hasOwnProperty.call(message, "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; return object; }; @@ -41782,19 +33998,6 @@ export const Authentication = $root.Authentication = (() => { return writer; }; - /** - * Encodes the specified GetKsmPublicKeysResponse message, length delimited. Does not implicitly {@link Authentication.GetKsmPublicKeysResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof Authentication.GetKsmPublicKeysResponse - * @static - * @param {Authentication.IGetKsmPublicKeysResponse} message GetKsmPublicKeysResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetKsmPublicKeysResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a GetKsmPublicKeysResponse message from the specified reader or buffer. * @function decode @@ -41833,49 +34036,6 @@ export const Authentication = $root.Authentication = (() => { return message; }; - /** - * Decodes a GetKsmPublicKeysResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Authentication.GetKsmPublicKeysResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Authentication.GetKsmPublicKeysResponse} GetKsmPublicKeysResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetKsmPublicKeysResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a GetKsmPublicKeysResponse message. - * @function verify - * @memberof Authentication.GetKsmPublicKeysResponse - * @static - * @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) { - if (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); - if (error) - return "keyResponses." + error; - } - } - return null; - }; - /** * Creates a GetKsmPublicKeysResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -41887,6 +34047,8 @@ export const Authentication = $root.Authentication = (() => { GetKsmPublicKeysResponse.fromObject = function fromObject(object, long) { if (object instanceof $root.Authentication.GetKsmPublicKeysResponse) return object; + if (!$util.isObject(object)) + throw TypeError(".Authentication.GetKsmPublicKeysResponse: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -41897,7 +34059,7 @@ export const Authentication = $root.Authentication = (() => { throw TypeError(".Authentication.GetKsmPublicKeysResponse.keyResponses: array expected"); message.keyResponses = []; for (let i = 0; i < object.keyResponses.length; ++i) { - if (typeof object.keyResponses[i] !== "object") + if (!$util.isObject(object.keyResponses[i])) throw TypeError(".Authentication.GetKsmPublicKeysResponse.keyResponses: object expected"); message.keyResponses[i] = $root.Authentication.DevicePublicKeyResponse.fromObject(object.keyResponses[i], long + 1); } @@ -42077,19 +34239,6 @@ export const Authentication = $root.Authentication = (() => { return writer; }; - /** - * Encodes the specified AddAppSharesRequest message, length delimited. Does not implicitly {@link Authentication.AddAppSharesRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof Authentication.AddAppSharesRequest - * @static - * @param {Authentication.IAddAppSharesRequest} message AddAppSharesRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - AddAppSharesRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes an AddAppSharesRequest message from the specified reader or buffer. * @function decode @@ -42132,52 +34281,6 @@ export const Authentication = $root.Authentication = (() => { return message; }; - /** - * Decodes an AddAppSharesRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Authentication.AddAppSharesRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Authentication.AddAppSharesRequest} AddAppSharesRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - AddAppSharesRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an AddAppSharesRequest message. - * @function verify - * @memberof Authentication.AddAppSharesRequest - * @static - * @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) { - if (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"; - if (message.shares != null && message.hasOwnProperty("shares")) { - 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); - if (error) - return "shares." + error; - } - } - return null; - }; - /** * Creates an AddAppSharesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -42189,6 +34292,8 @@ export const Authentication = $root.Authentication = (() => { AddAppSharesRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.Authentication.AddAppSharesRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".Authentication.AddAppSharesRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -42204,7 +34309,7 @@ export const Authentication = $root.Authentication = (() => { throw TypeError(".Authentication.AddAppSharesRequest.shares: array expected"); message.shares = []; for (let i = 0; i < object.shares.length; ++i) { - if (typeof object.shares[i] !== "object") + if (!$util.isObject(object.shares[i])) throw TypeError(".Authentication.AddAppSharesRequest.shares: object expected"); message.shares[i] = $root.Authentication.AppShareAdd.fromObject(object.shares[i], long + 1); } @@ -42239,7 +34344,7 @@ export const Authentication = $root.Authentication = (() => { if (options.bytes !== Array) object.appRecordUid = $util.newBuffer(object.appRecordUid); } - if (message.appRecordUid != null && message.hasOwnProperty("appRecordUid")) + if (message.appRecordUid != null && Object.hasOwnProperty.call(message, "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.shares && message.shares.length) { object.shares = []; @@ -42356,19 +34461,6 @@ export const Authentication = $root.Authentication = (() => { return writer; }; - /** - * Encodes the specified RemoveAppSharesRequest message, length delimited. Does not implicitly {@link Authentication.RemoveAppSharesRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof Authentication.RemoveAppSharesRequest - * @static - * @param {Authentication.IRemoveAppSharesRequest} message RemoveAppSharesRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RemoveAppSharesRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a RemoveAppSharesRequest message from the specified reader or buffer. * @function decode @@ -42411,50 +34503,6 @@ export const Authentication = $root.Authentication = (() => { return message; }; - /** - * Decodes a RemoveAppSharesRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Authentication.RemoveAppSharesRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Authentication.RemoveAppSharesRequest} RemoveAppSharesRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RemoveAppSharesRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a RemoveAppSharesRequest message. - * @function verify - * @memberof Authentication.RemoveAppSharesRequest - * @static - * @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) { - if (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"; - if (message.shares != null && message.hasOwnProperty("shares")) { - if (!Array.isArray(message.shares)) - return "shares: array expected"; - for (let i = 0; i < message.shares.length; ++i) - if (!(message.shares[i] && typeof message.shares[i].length === "number" || $util.isString(message.shares[i]))) - return "shares: buffer[] expected"; - } - return null; - }; - /** * Creates a RemoveAppSharesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -42466,6 +34514,8 @@ export const Authentication = $root.Authentication = (() => { RemoveAppSharesRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.Authentication.RemoveAppSharesRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".Authentication.RemoveAppSharesRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -42516,7 +34566,7 @@ export const Authentication = $root.Authentication = (() => { if (options.bytes !== Array) object.appRecordUid = $util.newBuffer(object.appRecordUid); } - if (message.appRecordUid != null && message.hasOwnProperty("appRecordUid")) + if (message.appRecordUid != null && Object.hasOwnProperty.call(message, "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.shares && message.shares.length) { object.shares = []; @@ -42653,19 +34703,6 @@ export const Authentication = $root.Authentication = (() => { return writer; }; - /** - * Encodes the specified AppShareAdd message, length delimited. Does not implicitly {@link Authentication.AppShareAdd.verify|verify} messages. - * @function encodeDelimited - * @memberof Authentication.AppShareAdd - * @static - * @param {Authentication.IAppShareAdd} message AppShareAdd message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - AppShareAdd.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes an AppShareAdd message from the specified reader or buffer. * @function decode @@ -42714,57 +34751,6 @@ export const Authentication = $root.Authentication = (() => { return message; }; - /** - * Decodes an AppShareAdd message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Authentication.AppShareAdd - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Authentication.AppShareAdd} AppShareAdd - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - AppShareAdd.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an AppShareAdd message. - * @function verify - * @memberof Authentication.AppShareAdd - * @static - * @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) { - if (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"; - if (message.shareType != null && message.hasOwnProperty("shareType")) - switch (message.shareType) { - default: - return "shareType: enum value expected"; - case 0: - case 1: - break; - } - if (message.encryptedSecretKey != null && message.hasOwnProperty("encryptedSecretKey")) - if (!(message.encryptedSecretKey && typeof message.encryptedSecretKey.length === "number" || $util.isString(message.encryptedSecretKey))) - return "encryptedSecretKey: buffer expected"; - if (message.editable != null && message.hasOwnProperty("editable")) - if (typeof message.editable !== "boolean") - return "editable: boolean expected"; - return null; - }; - /** * Creates an AppShareAdd message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -42776,6 +34762,8 @@ export const Authentication = $root.Authentication = (() => { AppShareAdd.fromObject = function fromObject(object, long) { if (object instanceof $root.Authentication.AppShareAdd) return object; + if (!$util.isObject(object)) + throw TypeError(".Authentication.AppShareAdd: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -42847,13 +34835,13 @@ export const Authentication = $root.Authentication = (() => { } object.editable = false; } - if (message.secretUid != null && message.hasOwnProperty("secretUid")) + if (message.secretUid != null && Object.hasOwnProperty.call(message, "secretUid")) object.secretUid = options.bytes === String ? $util.base64.encode(message.secretUid, 0, message.secretUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.secretUid) : message.secretUid; - if (message.shareType != null && message.hasOwnProperty("shareType")) + if (message.shareType != null && Object.hasOwnProperty.call(message, "shareType")) object.shareType = options.enums === String ? $root.Authentication.ApplicationShareType[message.shareType] === undefined ? message.shareType : $root.Authentication.ApplicationShareType[message.shareType] : message.shareType; - if (message.encryptedSecretKey != null && message.hasOwnProperty("encryptedSecretKey")) + if (message.encryptedSecretKey != null && Object.hasOwnProperty.call(message, "encryptedSecretKey")) object.encryptedSecretKey = options.bytes === String ? $util.base64.encode(message.encryptedSecretKey, 0, message.encryptedSecretKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedSecretKey) : message.encryptedSecretKey; - if (message.editable != null && message.hasOwnProperty("editable")) + if (message.editable != null && Object.hasOwnProperty.call(message, "editable")) object.editable = message.editable; return object; }; @@ -42996,19 +34984,6 @@ export const Authentication = $root.Authentication = (() => { return writer; }; - /** - * Encodes the specified AppShare message, length delimited. Does not implicitly {@link Authentication.AppShare.verify|verify} messages. - * @function encodeDelimited - * @memberof Authentication.AppShare - * @static - * @param {Authentication.IAppShare} message AppShare message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - AppShare.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes an AppShare message from the specified reader or buffer. * @function decode @@ -43061,60 +35036,6 @@ export const Authentication = $root.Authentication = (() => { return message; }; - /** - * Decodes an AppShare message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Authentication.AppShare - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Authentication.AppShare} AppShare - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - AppShare.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an AppShare message. - * @function verify - * @memberof Authentication.AppShare - * @static - * @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) { - if (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"; - if (message.shareType != null && message.hasOwnProperty("shareType")) - switch (message.shareType) { - default: - return "shareType: enum value expected"; - case 0: - case 1: - break; - } - if (message.editable != null && message.hasOwnProperty("editable")) - if (typeof message.editable !== "boolean") - return "editable: boolean expected"; - if (message.createdOn != null && message.hasOwnProperty("createdOn")) - if (!$util.isInteger(message.createdOn) && !(message.createdOn && $util.isInteger(message.createdOn.low) && $util.isInteger(message.createdOn.high))) - return "createdOn: 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"; - return null; - }; - /** * Creates an AppShare message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -43126,6 +35047,8 @@ export const Authentication = $root.Authentication = (() => { AppShare.fromObject = function fromObject(object, long) { if (object instanceof $root.Authentication.AppShare) return object; + if (!$util.isObject(object)) + throw TypeError(".Authentication.AppShare: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -43211,20 +35134,20 @@ export const Authentication = $root.Authentication = (() => { object.data = $util.newBuffer(object.data); } } - if (message.secretUid != null && message.hasOwnProperty("secretUid")) + if (message.secretUid != null && Object.hasOwnProperty.call(message, "secretUid")) object.secretUid = options.bytes === String ? $util.base64.encode(message.secretUid, 0, message.secretUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.secretUid) : message.secretUid; - if (message.shareType != null && message.hasOwnProperty("shareType")) + if (message.shareType != null && Object.hasOwnProperty.call(message, "shareType")) object.shareType = options.enums === String ? $root.Authentication.ApplicationShareType[message.shareType] === undefined ? message.shareType : $root.Authentication.ApplicationShareType[message.shareType] : message.shareType; - if (message.editable != null && message.hasOwnProperty("editable")) + if (message.editable != null && Object.hasOwnProperty.call(message, "editable")) object.editable = message.editable; - if (message.createdOn != null && message.hasOwnProperty("createdOn")) + if (message.createdOn != null && Object.hasOwnProperty.call(message, "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") 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.data != null && message.hasOwnProperty("data")) + if (message.data != null && Object.hasOwnProperty.call(message, "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; return object; }; @@ -43400,19 +35323,6 @@ export const Authentication = $root.Authentication = (() => { return writer; }; - /** - * Encodes the specified AddAppClientRequest message, length delimited. Does not implicitly {@link Authentication.AddAppClientRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof Authentication.AddAppClientRequest - * @static - * @param {Authentication.IAddAppClientRequest} message AddAppClientRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - AddAppClientRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes an AddAppClientRequest message from the specified reader or buffer. * @function decode @@ -43477,72 +35387,6 @@ export const Authentication = $root.Authentication = (() => { return message; }; - /** - * Decodes an AddAppClientRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Authentication.AddAppClientRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Authentication.AddAppClientRequest} AddAppClientRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - AddAppClientRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an AddAppClientRequest message. - * @function verify - * @memberof Authentication.AddAppClientRequest - * @static - * @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) { - if (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"; - if (message.encryptedAppKey != null && message.hasOwnProperty("encryptedAppKey")) - if (!(message.encryptedAppKey && typeof message.encryptedAppKey.length === "number" || $util.isString(message.encryptedAppKey))) - return "encryptedAppKey: buffer expected"; - if (message.clientId != null && message.hasOwnProperty("clientId")) - if (!(message.clientId && typeof message.clientId.length === "number" || $util.isString(message.clientId))) - return "clientId: buffer expected"; - if (message.lockIp != null && message.hasOwnProperty("lockIp")) - if (typeof message.lockIp !== "boolean") - return "lockIp: boolean expected"; - if (message.firstAccessExpireOn != null && message.hasOwnProperty("firstAccessExpireOn")) - if (!$util.isInteger(message.firstAccessExpireOn) && !(message.firstAccessExpireOn && $util.isInteger(message.firstAccessExpireOn.low) && $util.isInteger(message.firstAccessExpireOn.high))) - return "firstAccessExpireOn: integer|Long expected"; - if (message.accessExpireOn != null && message.hasOwnProperty("accessExpireOn")) - if (!$util.isInteger(message.accessExpireOn) && !(message.accessExpireOn && $util.isInteger(message.accessExpireOn.low) && $util.isInteger(message.accessExpireOn.high))) - return "accessExpireOn: integer|Long expected"; - if (message.id != null && message.hasOwnProperty("id")) - if (!$util.isString(message.id)) - return "id: string expected"; - if (message.appClientType != null && message.hasOwnProperty("appClientType")) - switch (message.appClientType) { - default: - return "appClientType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - break; - } - return null; - }; - /** * Creates an AddAppClientRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -43554,6 +35398,8 @@ export const Authentication = $root.Authentication = (() => { AddAppClientRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.Authentication.AddAppClientRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".Authentication.AddAppClientRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -43680,31 +35526,31 @@ export const Authentication = $root.Authentication = (() => { object.id = ""; object.appClientType = options.enums === String ? "NOT_USED" : 0; } - if (message.appRecordUid != null && message.hasOwnProperty("appRecordUid")) + if (message.appRecordUid != null && Object.hasOwnProperty.call(message, "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.encryptedAppKey != null && message.hasOwnProperty("encryptedAppKey")) + if (message.encryptedAppKey != null && Object.hasOwnProperty.call(message, "encryptedAppKey")) object.encryptedAppKey = options.bytes === String ? $util.base64.encode(message.encryptedAppKey, 0, message.encryptedAppKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedAppKey) : message.encryptedAppKey; - if (message.clientId != null && message.hasOwnProperty("clientId")) + if (message.clientId != null && Object.hasOwnProperty.call(message, "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.lockIp != null && message.hasOwnProperty("lockIp")) + if (message.lockIp != null && Object.hasOwnProperty.call(message, "lockIp")) object.lockIp = message.lockIp; - if (message.firstAccessExpireOn != null && message.hasOwnProperty("firstAccessExpireOn")) + if (message.firstAccessExpireOn != null && Object.hasOwnProperty.call(message, "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") 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 (message.accessExpireOn != null && Object.hasOwnProperty.call(message, "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") 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; - if (message.id != null && message.hasOwnProperty("id")) + if (message.id != null && Object.hasOwnProperty.call(message, "id")) object.id = message.id; - if (message.appClientType != null && message.hasOwnProperty("appClientType")) + if (message.appClientType != null && Object.hasOwnProperty.call(message, "appClientType")) object.appClientType = options.enums === String ? $root.Enterprise.AppClientType[message.appClientType] === undefined ? message.appClientType : $root.Enterprise.AppClientType[message.appClientType] : message.appClientType; return object; }; @@ -43816,19 +35662,6 @@ export const Authentication = $root.Authentication = (() => { return writer; }; - /** - * Encodes the specified RemoveAppClientsRequest message, length delimited. Does not implicitly {@link Authentication.RemoveAppClientsRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof Authentication.RemoveAppClientsRequest - * @static - * @param {Authentication.IRemoveAppClientsRequest} message RemoveAppClientsRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RemoveAppClientsRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a RemoveAppClientsRequest message from the specified reader or buffer. * @function decode @@ -43871,50 +35704,6 @@ export const Authentication = $root.Authentication = (() => { return message; }; - /** - * Decodes a RemoveAppClientsRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Authentication.RemoveAppClientsRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Authentication.RemoveAppClientsRequest} RemoveAppClientsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RemoveAppClientsRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a RemoveAppClientsRequest message. - * @function verify - * @memberof Authentication.RemoveAppClientsRequest - * @static - * @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) { - if (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"; - if (message.clients != null && message.hasOwnProperty("clients")) { - if (!Array.isArray(message.clients)) - return "clients: array expected"; - for (let i = 0; i < message.clients.length; ++i) - if (!(message.clients[i] && typeof message.clients[i].length === "number" || $util.isString(message.clients[i]))) - return "clients: buffer[] expected"; - } - return null; - }; - /** * Creates a RemoveAppClientsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -43926,6 +35715,8 @@ export const Authentication = $root.Authentication = (() => { RemoveAppClientsRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.Authentication.RemoveAppClientsRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".Authentication.RemoveAppClientsRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -43976,7 +35767,7 @@ export const Authentication = $root.Authentication = (() => { if (options.bytes !== Array) object.appRecordUid = $util.newBuffer(object.appRecordUid); } - if (message.appRecordUid != null && message.hasOwnProperty("appRecordUid")) + if (message.appRecordUid != null && Object.hasOwnProperty.call(message, "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.clients && message.clients.length) { object.clients = []; @@ -44146,19 +35937,6 @@ export const Authentication = $root.Authentication = (() => { return writer; }; - /** - * Encodes the specified AddExternalShareRequest message, length delimited. Does not implicitly {@link Authentication.AddExternalShareRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof Authentication.AddExternalShareRequest - * @static - * @param {Authentication.IAddExternalShareRequest} message AddExternalShareRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - AddExternalShareRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes an AddExternalShareRequest message from the specified reader or buffer. * @function decode @@ -44219,61 +35997,6 @@ export const Authentication = $root.Authentication = (() => { return message; }; - /** - * Decodes an AddExternalShareRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Authentication.AddExternalShareRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Authentication.AddExternalShareRequest} AddExternalShareRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - AddExternalShareRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an AddExternalShareRequest message. - * @function verify - * @memberof Authentication.AddExternalShareRequest - * @static - * @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) { - if (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.encryptedRecordKey != null && message.hasOwnProperty("encryptedRecordKey")) - if (!(message.encryptedRecordKey && typeof message.encryptedRecordKey.length === "number" || $util.isString(message.encryptedRecordKey))) - return "encryptedRecordKey: buffer expected"; - if (message.clientId != null && message.hasOwnProperty("clientId")) - if (!(message.clientId && typeof message.clientId.length === "number" || $util.isString(message.clientId))) - return "clientId: buffer expected"; - if (message.accessExpireOn != null && message.hasOwnProperty("accessExpireOn")) - if (!$util.isInteger(message.accessExpireOn) && !(message.accessExpireOn && $util.isInteger(message.accessExpireOn.low) && $util.isInteger(message.accessExpireOn.high))) - return "accessExpireOn: integer|Long expected"; - if (message.id != null && message.hasOwnProperty("id")) - if (!$util.isString(message.id)) - return "id: string expected"; - if (message.isSelfDestruct != null && message.hasOwnProperty("isSelfDestruct")) - if (typeof message.isSelfDestruct !== "boolean") - return "isSelfDestruct: boolean expected"; - if (message.isEditable != null && message.hasOwnProperty("isEditable")) - if (typeof message.isEditable !== "boolean") - return "isEditable: boolean expected"; - return null; - }; - /** * Creates an AddExternalShareRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -44285,6 +36008,8 @@ export const Authentication = $root.Authentication = (() => { AddExternalShareRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.Authentication.AddExternalShareRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".Authentication.AddExternalShareRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -44371,24 +36096,24 @@ export const Authentication = $root.Authentication = (() => { object.isSelfDestruct = false; object.isEditable = false; } - if (message.recordUid != null && message.hasOwnProperty("recordUid")) + if (message.recordUid != null && Object.hasOwnProperty.call(message, "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.encryptedRecordKey != null && message.hasOwnProperty("encryptedRecordKey")) + if (message.encryptedRecordKey != null && Object.hasOwnProperty.call(message, "encryptedRecordKey")) object.encryptedRecordKey = options.bytes === String ? $util.base64.encode(message.encryptedRecordKey, 0, message.encryptedRecordKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedRecordKey) : message.encryptedRecordKey; - if (message.clientId != null && message.hasOwnProperty("clientId")) + if (message.clientId != null && Object.hasOwnProperty.call(message, "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 (message.accessExpireOn != null && Object.hasOwnProperty.call(message, "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") 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; - if (message.id != null && message.hasOwnProperty("id")) + if (message.id != null && Object.hasOwnProperty.call(message, "id")) object.id = message.id; - if (message.isSelfDestruct != null && message.hasOwnProperty("isSelfDestruct")) + if (message.isSelfDestruct != null && Object.hasOwnProperty.call(message, "isSelfDestruct")) object.isSelfDestruct = message.isSelfDestruct; - if (message.isEditable != null && message.hasOwnProperty("isEditable")) + if (message.isEditable != null && Object.hasOwnProperty.call(message, "isEditable")) object.isEditable = message.isEditable; return object; }; @@ -44608,19 +36333,6 @@ export const Authentication = $root.Authentication = (() => { return writer; }; - /** - * Encodes the specified AppClient message, length delimited. Does not implicitly {@link Authentication.AppClient.verify|verify} messages. - * @function encodeDelimited - * @memberof Authentication.AppClient - * @static - * @param {Authentication.IAppClient} message AppClient message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - AppClient.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes an AppClient message from the specified reader or buffer. * @function decode @@ -44701,84 +36413,6 @@ export const Authentication = $root.Authentication = (() => { return message; }; - /** - * Decodes an AppClient message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Authentication.AppClient - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Authentication.AppClient} AppClient - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - AppClient.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an AppClient message. - * @function verify - * @memberof Authentication.AppClient - * @static - * @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) { - if (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"; - if (message.clientId != null && message.hasOwnProperty("clientId")) - if (!(message.clientId && typeof message.clientId.length === "number" || $util.isString(message.clientId))) - return "clientId: buffer expected"; - if (message.createdOn != null && message.hasOwnProperty("createdOn")) - if (!$util.isInteger(message.createdOn) && !(message.createdOn && $util.isInteger(message.createdOn.low) && $util.isInteger(message.createdOn.high))) - return "createdOn: integer|Long expected"; - if (message.firstAccess != null && message.hasOwnProperty("firstAccess")) - if (!$util.isInteger(message.firstAccess) && !(message.firstAccess && $util.isInteger(message.firstAccess.low) && $util.isInteger(message.firstAccess.high))) - return "firstAccess: integer|Long expected"; - if (message.lastAccess != null && message.hasOwnProperty("lastAccess")) - if (!$util.isInteger(message.lastAccess) && !(message.lastAccess && $util.isInteger(message.lastAccess.low) && $util.isInteger(message.lastAccess.high))) - return "lastAccess: integer|Long expected"; - if (message.publicKey != null && message.hasOwnProperty("publicKey")) - if (!(message.publicKey && typeof message.publicKey.length === "number" || $util.isString(message.publicKey))) - return "publicKey: buffer expected"; - if (message.lockIp != null && message.hasOwnProperty("lockIp")) - if (typeof message.lockIp !== "boolean") - return "lockIp: boolean expected"; - if (message.ipAddress != null && message.hasOwnProperty("ipAddress")) - if (!$util.isString(message.ipAddress)) - return "ipAddress: string expected"; - if (message.firstAccessExpireOn != null && message.hasOwnProperty("firstAccessExpireOn")) - if (!$util.isInteger(message.firstAccessExpireOn) && !(message.firstAccessExpireOn && $util.isInteger(message.firstAccessExpireOn.low) && $util.isInteger(message.firstAccessExpireOn.high))) - return "firstAccessExpireOn: integer|Long expected"; - if (message.accessExpireOn != null && message.hasOwnProperty("accessExpireOn")) - if (!$util.isInteger(message.accessExpireOn) && !(message.accessExpireOn && $util.isInteger(message.accessExpireOn.low) && $util.isInteger(message.accessExpireOn.high))) - return "accessExpireOn: integer|Long expected"; - if (message.appClientType != null && message.hasOwnProperty("appClientType")) - switch (message.appClientType) { - default: - return "appClientType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - break; - } - if (message.canEdit != null && message.hasOwnProperty("canEdit")) - if (typeof message.canEdit !== "boolean") - return "canEdit: boolean expected"; - return null; - }; - /** * Creates an AppClient message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -44790,6 +36424,8 @@ export const Authentication = $root.Authentication = (() => { AppClient.fromObject = function fromObject(object, long) { if (object instanceof $root.Authentication.AppClient) return object; + if (!$util.isObject(object)) + throw TypeError(".Authentication.AppClient: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -44952,54 +36588,54 @@ export const Authentication = $root.Authentication = (() => { object.appClientType = options.enums === String ? "NOT_USED" : 0; object.canEdit = false; } - if (message.id != null && message.hasOwnProperty("id")) + if (message.id != null && Object.hasOwnProperty.call(message, "id")) object.id = message.id; - if (message.clientId != null && message.hasOwnProperty("clientId")) + if (message.clientId != null && Object.hasOwnProperty.call(message, "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 (message.createdOn != null && Object.hasOwnProperty.call(message, "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") 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 (message.firstAccess != null && Object.hasOwnProperty.call(message, "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") 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 (message.lastAccess != null && Object.hasOwnProperty.call(message, "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") 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; - if (message.publicKey != null && message.hasOwnProperty("publicKey")) + if (message.publicKey != null && Object.hasOwnProperty.call(message, "publicKey")) object.publicKey = options.bytes === String ? $util.base64.encode(message.publicKey, 0, message.publicKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.publicKey) : message.publicKey; - if (message.lockIp != null && message.hasOwnProperty("lockIp")) + if (message.lockIp != null && Object.hasOwnProperty.call(message, "lockIp")) object.lockIp = message.lockIp; - if (message.ipAddress != null && message.hasOwnProperty("ipAddress")) + if (message.ipAddress != null && Object.hasOwnProperty.call(message, "ipAddress")) object.ipAddress = message.ipAddress; - if (message.firstAccessExpireOn != null && message.hasOwnProperty("firstAccessExpireOn")) + if (message.firstAccessExpireOn != null && Object.hasOwnProperty.call(message, "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") 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 (message.accessExpireOn != null && Object.hasOwnProperty.call(message, "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") 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; - if (message.appClientType != null && message.hasOwnProperty("appClientType")) + if (message.appClientType != null && Object.hasOwnProperty.call(message, "appClientType")) object.appClientType = options.enums === String ? $root.Enterprise.AppClientType[message.appClientType] === undefined ? message.appClientType : $root.Enterprise.AppClientType[message.appClientType] : message.appClientType; - if (message.canEdit != null && message.hasOwnProperty("canEdit")) + if (message.canEdit != null && Object.hasOwnProperty.call(message, "canEdit")) object.canEdit = message.canEdit; return object; }; @@ -45100,19 +36736,6 @@ export const Authentication = $root.Authentication = (() => { return writer; }; - /** - * Encodes the specified GetAppInfoRequest message, length delimited. Does not implicitly {@link Authentication.GetAppInfoRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof Authentication.GetAppInfoRequest - * @static - * @param {Authentication.IGetAppInfoRequest} message GetAppInfoRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetAppInfoRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a GetAppInfoRequest message from the specified reader or buffer. * @function decode @@ -45151,47 +36774,6 @@ export const Authentication = $root.Authentication = (() => { return message; }; - /** - * Decodes a GetAppInfoRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Authentication.GetAppInfoRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Authentication.GetAppInfoRequest} GetAppInfoRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetAppInfoRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a GetAppInfoRequest message. - * @function verify - * @memberof Authentication.GetAppInfoRequest - * @static - * @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) { - if (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"; - for (let i = 0; i < message.appRecordUid.length; ++i) - if (!(message.appRecordUid[i] && typeof message.appRecordUid[i].length === "number" || $util.isString(message.appRecordUid[i]))) - return "appRecordUid: buffer[] expected"; - } - return null; - }; - /** * Creates a GetAppInfoRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -45203,6 +36785,8 @@ export const Authentication = $root.Authentication = (() => { GetAppInfoRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.Authentication.GetAppInfoRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".Authentication.GetAppInfoRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -45379,19 +36963,6 @@ export const Authentication = $root.Authentication = (() => { return writer; }; - /** - * Encodes the specified AppInfo message, length delimited. Does not implicitly {@link Authentication.AppInfo.verify|verify} messages. - * @function encodeDelimited - * @memberof Authentication.AppInfo - * @static - * @param {Authentication.IAppInfo} message AppInfo message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - AppInfo.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes an AppInfo message from the specified reader or buffer. * @function decode @@ -45444,64 +37015,6 @@ export const Authentication = $root.Authentication = (() => { return message; }; - /** - * Decodes an AppInfo message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Authentication.AppInfo - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Authentication.AppInfo} AppInfo - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - AppInfo.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an AppInfo message. - * @function verify - * @memberof Authentication.AppInfo - * @static - * @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) { - if (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"; - if (message.shares != null && message.hasOwnProperty("shares")) { - 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); - if (error) - return "shares." + error; - } - } - if (message.clients != null && message.hasOwnProperty("clients")) { - 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); - if (error) - return "clients." + error; - } - } - if (message.isExternalShare != null && message.hasOwnProperty("isExternalShare")) - if (typeof message.isExternalShare !== "boolean") - return "isExternalShare: boolean expected"; - return null; - }; - /** * Creates an AppInfo message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -45513,6 +37026,8 @@ export const Authentication = $root.Authentication = (() => { AppInfo.fromObject = function fromObject(object, long) { if (object instanceof $root.Authentication.AppInfo) return object; + if (!$util.isObject(object)) + throw TypeError(".Authentication.AppInfo: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -45528,7 +37043,7 @@ export const Authentication = $root.Authentication = (() => { throw TypeError(".Authentication.AppInfo.shares: array expected"); message.shares = []; for (let i = 0; i < object.shares.length; ++i) { - if (typeof object.shares[i] !== "object") + if (!$util.isObject(object.shares[i])) throw TypeError(".Authentication.AppInfo.shares: object expected"); message.shares[i] = $root.Authentication.AppShare.fromObject(object.shares[i], long + 1); } @@ -45538,7 +37053,7 @@ export const Authentication = $root.Authentication = (() => { throw TypeError(".Authentication.AppInfo.clients: array expected"); message.clients = []; for (let i = 0; i < object.clients.length; ++i) { - if (typeof object.clients[i] !== "object") + if (!$util.isObject(object.clients[i])) throw TypeError(".Authentication.AppInfo.clients: object expected"); message.clients[i] = $root.Authentication.AppClient.fromObject(object.clients[i], long + 1); } @@ -45579,7 +37094,7 @@ export const Authentication = $root.Authentication = (() => { } object.isExternalShare = false; } - if (message.appRecordUid != null && message.hasOwnProperty("appRecordUid")) + if (message.appRecordUid != null && Object.hasOwnProperty.call(message, "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.shares && message.shares.length) { object.shares = []; @@ -45591,7 +37106,7 @@ export const Authentication = $root.Authentication = (() => { for (let j = 0; j < message.clients.length; ++j) object.clients[j] = $root.Authentication.AppClient.toObject(message.clients[j], options, q + 1); } - if (message.isExternalShare != null && message.hasOwnProperty("isExternalShare")) + if (message.isExternalShare != null && Object.hasOwnProperty.call(message, "isExternalShare")) object.isExternalShare = message.isExternalShare; return object; }; @@ -45692,19 +37207,6 @@ export const Authentication = $root.Authentication = (() => { return writer; }; - /** - * Encodes the specified GetAppInfoResponse message, length delimited. Does not implicitly {@link Authentication.GetAppInfoResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof Authentication.GetAppInfoResponse - * @static - * @param {Authentication.IGetAppInfoResponse} message GetAppInfoResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetAppInfoResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a GetAppInfoResponse message from the specified reader or buffer. * @function decode @@ -45743,49 +37245,6 @@ export const Authentication = $root.Authentication = (() => { return message; }; - /** - * Decodes a GetAppInfoResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Authentication.GetAppInfoResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Authentication.GetAppInfoResponse} GetAppInfoResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetAppInfoResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a GetAppInfoResponse message. - * @function verify - * @memberof Authentication.GetAppInfoResponse - * @static - * @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) { - if (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); - if (error) - return "appInfo." + error; - } - } - return null; - }; - /** * Creates a GetAppInfoResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -45797,6 +37256,8 @@ export const Authentication = $root.Authentication = (() => { GetAppInfoResponse.fromObject = function fromObject(object, long) { if (object instanceof $root.Authentication.GetAppInfoResponse) return object; + if (!$util.isObject(object)) + throw TypeError(".Authentication.GetAppInfoResponse: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -45807,7 +37268,7 @@ export const Authentication = $root.Authentication = (() => { throw TypeError(".Authentication.GetAppInfoResponse.appInfo: array expected"); message.appInfo = []; for (let i = 0; i < object.appInfo.length; ++i) { - if (typeof object.appInfo[i] !== "object") + if (!$util.isObject(object.appInfo[i])) throw TypeError(".Authentication.GetAppInfoResponse.appInfo: object expected"); message.appInfo[i] = $root.Authentication.AppInfo.fromObject(object.appInfo[i], long + 1); } @@ -46024,19 +37485,6 @@ export const Authentication = $root.Authentication = (() => { return writer; }; - /** - * Encodes the specified ApplicationSummary message, length delimited. Does not implicitly {@link Authentication.ApplicationSummary.verify|verify} messages. - * @function encodeDelimited - * @memberof Authentication.ApplicationSummary - * @static - * @param {Authentication.IApplicationSummary} message ApplicationSummary message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ApplicationSummary.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes an ApplicationSummary message from the specified reader or buffer. * @function decode @@ -46105,67 +37553,6 @@ export const Authentication = $root.Authentication = (() => { return message; }; - /** - * Decodes an ApplicationSummary message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Authentication.ApplicationSummary - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Authentication.ApplicationSummary} ApplicationSummary - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ApplicationSummary.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an ApplicationSummary message. - * @function verify - * @memberof Authentication.ApplicationSummary - * @static - * @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) { - if (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"; - if (message.lastAccess != null && message.hasOwnProperty("lastAccess")) - if (!$util.isInteger(message.lastAccess) && !(message.lastAccess && $util.isInteger(message.lastAccess.low) && $util.isInteger(message.lastAccess.high))) - return "lastAccess: integer|Long expected"; - if (message.recordShares != null && message.hasOwnProperty("recordShares")) - if (!$util.isInteger(message.recordShares)) - return "recordShares: integer expected"; - if (message.folderShares != null && message.hasOwnProperty("folderShares")) - if (!$util.isInteger(message.folderShares)) - return "folderShares: integer expected"; - if (message.folderRecords != null && message.hasOwnProperty("folderRecords")) - if (!$util.isInteger(message.folderRecords)) - return "folderRecords: integer expected"; - if (message.clientCount != null && message.hasOwnProperty("clientCount")) - if (!$util.isInteger(message.clientCount)) - return "clientCount: integer expected"; - if (message.expiredClientCount != null && message.hasOwnProperty("expiredClientCount")) - if (!$util.isInteger(message.expiredClientCount)) - return "expiredClientCount: integer expected"; - if (message.username != null && message.hasOwnProperty("username")) - if (!$util.isString(message.username)) - return "username: string expected"; - if (message.appData != null && message.hasOwnProperty("appData")) - if (!(message.appData && typeof message.appData.length === "number" || $util.isString(message.appData))) - return "appData: buffer expected"; - return null; - }; - /** * Creates an ApplicationSummary message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -46177,6 +37564,8 @@ export const Authentication = $root.Authentication = (() => { ApplicationSummary.fromObject = function fromObject(object, long) { if (object instanceof $root.Authentication.ApplicationSummary) return object; + if (!$util.isObject(object)) + throw TypeError(".Authentication.ApplicationSummary: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -46260,28 +37649,28 @@ export const Authentication = $root.Authentication = (() => { object.appData = $util.newBuffer(object.appData); } } - if (message.appRecordUid != null && message.hasOwnProperty("appRecordUid")) + if (message.appRecordUid != null && Object.hasOwnProperty.call(message, "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 (message.lastAccess != null && Object.hasOwnProperty.call(message, "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") 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; - if (message.recordShares != null && message.hasOwnProperty("recordShares")) + if (message.recordShares != null && Object.hasOwnProperty.call(message, "recordShares")) object.recordShares = message.recordShares; - if (message.folderShares != null && message.hasOwnProperty("folderShares")) + if (message.folderShares != null && Object.hasOwnProperty.call(message, "folderShares")) object.folderShares = message.folderShares; - if (message.folderRecords != null && message.hasOwnProperty("folderRecords")) + if (message.folderRecords != null && Object.hasOwnProperty.call(message, "folderRecords")) object.folderRecords = message.folderRecords; - if (message.clientCount != null && message.hasOwnProperty("clientCount")) + if (message.clientCount != null && Object.hasOwnProperty.call(message, "clientCount")) object.clientCount = message.clientCount; - if (message.expiredClientCount != null && message.hasOwnProperty("expiredClientCount")) + if (message.expiredClientCount != null && Object.hasOwnProperty.call(message, "expiredClientCount")) object.expiredClientCount = message.expiredClientCount; - if (message.username != null && message.hasOwnProperty("username")) + if (message.username != null && Object.hasOwnProperty.call(message, "username")) object.username = message.username; - if (message.appData != null && message.hasOwnProperty("appData")) + if (message.appData != null && Object.hasOwnProperty.call(message, "appData")) object.appData = options.bytes === String ? $util.base64.encode(message.appData, 0, message.appData.length) : options.bytes === Array ? Array.prototype.slice.call(message.appData) : message.appData; return object; }; @@ -46382,19 +37771,6 @@ export const Authentication = $root.Authentication = (() => { return writer; }; - /** - * Encodes the specified GetApplicationsSummaryResponse message, length delimited. Does not implicitly {@link Authentication.GetApplicationsSummaryResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof Authentication.GetApplicationsSummaryResponse - * @static - * @param {Authentication.IGetApplicationsSummaryResponse} message GetApplicationsSummaryResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetApplicationsSummaryResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a GetApplicationsSummaryResponse message from the specified reader or buffer. * @function decode @@ -46433,49 +37809,6 @@ export const Authentication = $root.Authentication = (() => { return message; }; - /** - * Decodes a GetApplicationsSummaryResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Authentication.GetApplicationsSummaryResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Authentication.GetApplicationsSummaryResponse} GetApplicationsSummaryResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetApplicationsSummaryResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a GetApplicationsSummaryResponse message. - * @function verify - * @memberof Authentication.GetApplicationsSummaryResponse - * @static - * @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) { - if (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); - if (error) - return "applicationSummary." + error; - } - } - return null; - }; - /** * Creates a GetApplicationsSummaryResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -46487,6 +37820,8 @@ export const Authentication = $root.Authentication = (() => { GetApplicationsSummaryResponse.fromObject = function fromObject(object, long) { if (object instanceof $root.Authentication.GetApplicationsSummaryResponse) return object; + if (!$util.isObject(object)) + throw TypeError(".Authentication.GetApplicationsSummaryResponse: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -46497,7 +37832,7 @@ export const Authentication = $root.Authentication = (() => { throw TypeError(".Authentication.GetApplicationsSummaryResponse.applicationSummary: array expected"); message.applicationSummary = []; for (let i = 0; i < object.applicationSummary.length; ++i) { - if (typeof object.applicationSummary[i] !== "object") + if (!$util.isObject(object.applicationSummary[i])) throw TypeError(".Authentication.GetApplicationsSummaryResponse.applicationSummary: object expected"); message.applicationSummary[i] = $root.Authentication.ApplicationSummary.fromObject(object.applicationSummary[i], long + 1); } @@ -46626,19 +37961,6 @@ export const Authentication = $root.Authentication = (() => { return writer; }; - /** - * Encodes the specified GetVerificationTokenRequest message, length delimited. Does not implicitly {@link Authentication.GetVerificationTokenRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof Authentication.GetVerificationTokenRequest - * @static - * @param {Authentication.IGetVerificationTokenRequest} message GetVerificationTokenRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetVerificationTokenRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a GetVerificationTokenRequest message from the specified reader or buffer. * @function decode @@ -46675,43 +37997,6 @@ export const Authentication = $root.Authentication = (() => { return message; }; - /** - * Decodes a GetVerificationTokenRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Authentication.GetVerificationTokenRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Authentication.GetVerificationTokenRequest} GetVerificationTokenRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetVerificationTokenRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a GetVerificationTokenRequest message. - * @function verify - * @memberof Authentication.GetVerificationTokenRequest - * @static - * @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) { - if (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"; - return null; - }; - /** * Creates a GetVerificationTokenRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -46723,6 +38008,8 @@ export const Authentication = $root.Authentication = (() => { GetVerificationTokenRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.Authentication.GetVerificationTokenRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".Authentication.GetVerificationTokenRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -46752,7 +38039,7 @@ export const Authentication = $root.Authentication = (() => { let object = {}; if (options.defaults) object.username = ""; - if (message.username != null && message.hasOwnProperty("username")) + if (message.username != null && Object.hasOwnProperty.call(message, "username")) object.username = message.username; return object; }; @@ -46851,19 +38138,6 @@ export const Authentication = $root.Authentication = (() => { return writer; }; - /** - * Encodes the specified GetVerificationTokenResponse message, length delimited. Does not implicitly {@link Authentication.GetVerificationTokenResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof Authentication.GetVerificationTokenResponse - * @static - * @param {Authentication.IGetVerificationTokenResponse} message GetVerificationTokenResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetVerificationTokenResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a GetVerificationTokenResponse message from the specified reader or buffer. * @function decode @@ -46900,43 +38174,6 @@ export const Authentication = $root.Authentication = (() => { return message; }; - /** - * Decodes a GetVerificationTokenResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Authentication.GetVerificationTokenResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Authentication.GetVerificationTokenResponse} GetVerificationTokenResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetVerificationTokenResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a GetVerificationTokenResponse message. - * @function verify - * @memberof Authentication.GetVerificationTokenResponse - * @static - * @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) { - if (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"; - return null; - }; - /** * Creates a GetVerificationTokenResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -46948,6 +38185,8 @@ export const Authentication = $root.Authentication = (() => { GetVerificationTokenResponse.fromObject = function fromObject(object, long) { if (object instanceof $root.Authentication.GetVerificationTokenResponse) return object; + if (!$util.isObject(object)) + throw TypeError(".Authentication.GetVerificationTokenResponse: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -46986,7 +38225,7 @@ export const Authentication = $root.Authentication = (() => { if (options.bytes !== Array) object.encryptedVerificationToken = $util.newBuffer(object.encryptedVerificationToken); } - if (message.encryptedVerificationToken != null && message.hasOwnProperty("encryptedVerificationToken")) + if (message.encryptedVerificationToken != null && Object.hasOwnProperty.call(message, "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; return object; }; @@ -47085,19 +38324,6 @@ export const Authentication = $root.Authentication = (() => { return writer; }; - /** - * Encodes the specified SendShareInviteRequest message, length delimited. Does not implicitly {@link Authentication.SendShareInviteRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof Authentication.SendShareInviteRequest - * @static - * @param {Authentication.ISendShareInviteRequest} message SendShareInviteRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SendShareInviteRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a SendShareInviteRequest message from the specified reader or buffer. * @function decode @@ -47134,43 +38360,6 @@ export const Authentication = $root.Authentication = (() => { return message; }; - /** - * Decodes a SendShareInviteRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Authentication.SendShareInviteRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Authentication.SendShareInviteRequest} SendShareInviteRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SendShareInviteRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a SendShareInviteRequest message. - * @function verify - * @memberof Authentication.SendShareInviteRequest - * @static - * @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) { - if (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"; - return null; - }; - /** * Creates a SendShareInviteRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -47182,6 +38371,8 @@ export const Authentication = $root.Authentication = (() => { SendShareInviteRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.Authentication.SendShareInviteRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".Authentication.SendShareInviteRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -47211,7 +38402,7 @@ export const Authentication = $root.Authentication = (() => { let object = {}; if (options.defaults) object.email = ""; - if (message.email != null && message.hasOwnProperty("email")) + if (message.email != null && Object.hasOwnProperty.call(message, "email")) object.email = message.email; return object; }; @@ -47389,19 +38580,6 @@ export const Authentication = $root.Authentication = (() => { return writer; }; - /** - * Encodes the specified TimeLimitedAccessRequest message, length delimited. Does not implicitly {@link Authentication.TimeLimitedAccessRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof Authentication.TimeLimitedAccessRequest - * @static - * @param {Authentication.ITimeLimitedAccessRequest} message TimeLimitedAccessRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TimeLimitedAccessRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a TimeLimitedAccessRequest message from the specified reader or buffer. * @function decode @@ -47464,77 +38642,6 @@ export const Authentication = $root.Authentication = (() => { return message; }; - /** - * Decodes a TimeLimitedAccessRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Authentication.TimeLimitedAccessRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Authentication.TimeLimitedAccessRequest} TimeLimitedAccessRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TimeLimitedAccessRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a TimeLimitedAccessRequest message. - * @function verify - * @memberof Authentication.TimeLimitedAccessRequest - * @static - * @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) { - if (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"; - for (let i = 0; i < message.accountUid.length; ++i) - if (!(message.accountUid[i] && typeof message.accountUid[i].length === "number" || $util.isString(message.accountUid[i]))) - return "accountUid: buffer[] expected"; - } - if (message.teamUid != null && message.hasOwnProperty("teamUid")) { - if (!Array.isArray(message.teamUid)) - return "teamUid: array expected"; - for (let i = 0; i < message.teamUid.length; ++i) - if (!(message.teamUid[i] && typeof message.teamUid[i].length === "number" || $util.isString(message.teamUid[i]))) - return "teamUid: buffer[] expected"; - } - if (message.recordUid != null && message.hasOwnProperty("recordUid")) { - if (!Array.isArray(message.recordUid)) - return "recordUid: array expected"; - for (let i = 0; i < message.recordUid.length; ++i) - if (!(message.recordUid[i] && typeof message.recordUid[i].length === "number" || $util.isString(message.recordUid[i]))) - return "recordUid: buffer[] expected"; - } - if (message.sharedObjectUid != null && message.hasOwnProperty("sharedObjectUid")) - if (!(message.sharedObjectUid && typeof message.sharedObjectUid.length === "number" || $util.isString(message.sharedObjectUid))) - return "sharedObjectUid: buffer expected"; - if (message.timeLimitedAccessType != null && message.hasOwnProperty("timeLimitedAccessType")) - switch (message.timeLimitedAccessType) { - default: - return "timeLimitedAccessType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - break; - } - 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"; - return null; - }; - /** * Creates a TimeLimitedAccessRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -47546,6 +38653,8 @@ export const Authentication = $root.Authentication = (() => { TimeLimitedAccessRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.Authentication.TimeLimitedAccessRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".Authentication.TimeLimitedAccessRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -47674,11 +38783,11 @@ export const Authentication = $root.Authentication = (() => { for (let j = 0; j < message.recordUid.length; ++j) object.recordUid[j] = options.bytes === String ? $util.base64.encode(message.recordUid[j], 0, message.recordUid[j].length) : options.bytes === Array ? Array.prototype.slice.call(message.recordUid[j]) : message.recordUid[j]; } - if (message.sharedObjectUid != null && message.hasOwnProperty("sharedObjectUid")) + if (message.sharedObjectUid != null && Object.hasOwnProperty.call(message, "sharedObjectUid")) object.sharedObjectUid = options.bytes === String ? $util.base64.encode(message.sharedObjectUid, 0, message.sharedObjectUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.sharedObjectUid) : message.sharedObjectUid; - if (message.timeLimitedAccessType != null && message.hasOwnProperty("timeLimitedAccessType")) + if (message.timeLimitedAccessType != null && Object.hasOwnProperty.call(message, "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 (message.expiration != null && Object.hasOwnProperty.call(message, "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") @@ -47793,19 +38902,6 @@ export const Authentication = $root.Authentication = (() => { return writer; }; - /** - * Encodes the specified TimeLimitedAccessStatus message, length delimited. Does not implicitly {@link Authentication.TimeLimitedAccessStatus.verify|verify} messages. - * @function encodeDelimited - * @memberof Authentication.TimeLimitedAccessStatus - * @static - * @param {Authentication.ITimeLimitedAccessStatus} message TimeLimitedAccessStatus message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TimeLimitedAccessStatus.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a TimeLimitedAccessStatus message from the specified reader or buffer. * @function decode @@ -47846,46 +38942,6 @@ export const Authentication = $root.Authentication = (() => { return message; }; - /** - * Decodes a TimeLimitedAccessStatus message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Authentication.TimeLimitedAccessStatus - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Authentication.TimeLimitedAccessStatus} TimeLimitedAccessStatus - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TimeLimitedAccessStatus.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a TimeLimitedAccessStatus message. - * @function verify - * @memberof Authentication.TimeLimitedAccessStatus - * @static - * @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) { - if (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.message != null && message.hasOwnProperty("message")) - if (!$util.isString(message.message)) - return "message: string expected"; - return null; - }; - /** * Creates a TimeLimitedAccessStatus message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -47897,6 +38953,8 @@ export const Authentication = $root.Authentication = (() => { TimeLimitedAccessStatus.fromObject = function fromObject(object, long) { if (object instanceof $root.Authentication.TimeLimitedAccessStatus) return object; + if (!$util.isObject(object)) + throw TypeError(".Authentication.TimeLimitedAccessStatus: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -47939,9 +38997,9 @@ export const Authentication = $root.Authentication = (() => { } object.message = ""; } - if (message.uid != null && message.hasOwnProperty("uid")) + if (message.uid != null && Object.hasOwnProperty.call(message, "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.message != null && message.hasOwnProperty("message")) + if (message.message != null && Object.hasOwnProperty.call(message, "message")) object.message = message.message; return object; }; @@ -48079,19 +39137,6 @@ export const Authentication = $root.Authentication = (() => { return writer; }; - /** - * Encodes the specified TimeLimitedAccessResponse message, length delimited. Does not implicitly {@link Authentication.TimeLimitedAccessResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof Authentication.TimeLimitedAccessResponse - * @static - * @param {Authentication.ITimeLimitedAccessResponse} message TimeLimitedAccessResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TimeLimitedAccessResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a TimeLimitedAccessResponse message from the specified reader or buffer. * @function decode @@ -48146,70 +39191,6 @@ export const Authentication = $root.Authentication = (() => { return message; }; - /** - * Decodes a TimeLimitedAccessResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Authentication.TimeLimitedAccessResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Authentication.TimeLimitedAccessResponse} TimeLimitedAccessResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TimeLimitedAccessResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a TimeLimitedAccessResponse message. - * @function verify - * @memberof Authentication.TimeLimitedAccessResponse - * @static - * @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) { - if (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"; - if (message.userAccessStatus != null && message.hasOwnProperty("userAccessStatus")) { - 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); - if (error) - return "userAccessStatus." + error; - } - } - if (message.teamAccessStatus != null && message.hasOwnProperty("teamAccessStatus")) { - 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); - if (error) - return "teamAccessStatus." + error; - } - } - if (message.recordAccessStatus != null && message.hasOwnProperty("recordAccessStatus")) { - 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); - if (error) - return "recordAccessStatus." + error; - } - } - return null; - }; - /** * Creates a TimeLimitedAccessResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -48221,6 +39202,8 @@ export const Authentication = $root.Authentication = (() => { TimeLimitedAccessResponse.fromObject = function fromObject(object, long) { if (object instanceof $root.Authentication.TimeLimitedAccessResponse) return object; + if (!$util.isObject(object)) + throw TypeError(".Authentication.TimeLimitedAccessResponse: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -48240,7 +39223,7 @@ export const Authentication = $root.Authentication = (() => { throw TypeError(".Authentication.TimeLimitedAccessResponse.userAccessStatus: array expected"); message.userAccessStatus = []; for (let i = 0; i < object.userAccessStatus.length; ++i) { - if (typeof object.userAccessStatus[i] !== "object") + if (!$util.isObject(object.userAccessStatus[i])) throw TypeError(".Authentication.TimeLimitedAccessResponse.userAccessStatus: object expected"); message.userAccessStatus[i] = $root.Authentication.TimeLimitedAccessStatus.fromObject(object.userAccessStatus[i], long + 1); } @@ -48250,7 +39233,7 @@ export const Authentication = $root.Authentication = (() => { throw TypeError(".Authentication.TimeLimitedAccessResponse.teamAccessStatus: array expected"); message.teamAccessStatus = []; for (let i = 0; i < object.teamAccessStatus.length; ++i) { - if (typeof object.teamAccessStatus[i] !== "object") + if (!$util.isObject(object.teamAccessStatus[i])) throw TypeError(".Authentication.TimeLimitedAccessResponse.teamAccessStatus: object expected"); message.teamAccessStatus[i] = $root.Authentication.TimeLimitedAccessStatus.fromObject(object.teamAccessStatus[i], long + 1); } @@ -48260,7 +39243,7 @@ export const Authentication = $root.Authentication = (() => { throw TypeError(".Authentication.TimeLimitedAccessResponse.recordAccessStatus: array expected"); message.recordAccessStatus = []; for (let i = 0; i < object.recordAccessStatus.length; ++i) { - if (typeof object.recordAccessStatus[i] !== "object") + if (!$util.isObject(object.recordAccessStatus[i])) throw TypeError(".Authentication.TimeLimitedAccessResponse.recordAccessStatus: object expected"); message.recordAccessStatus[i] = $root.Authentication.TimeLimitedAccessStatus.fromObject(object.recordAccessStatus[i], long + 1); } @@ -48296,7 +39279,7 @@ export const Authentication = $root.Authentication = (() => { object.revision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; } else object.revision = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; - if (message.revision != null && message.hasOwnProperty("revision")) + if (message.revision != null && Object.hasOwnProperty.call(message, "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") @@ -48417,19 +39400,6 @@ export const Authentication = $root.Authentication = (() => { return writer; }; - /** - * Encodes the specified RequestDownloadRequest message, length delimited. Does not implicitly {@link Authentication.RequestDownloadRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof Authentication.RequestDownloadRequest - * @static - * @param {Authentication.IRequestDownloadRequest} message RequestDownloadRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RequestDownloadRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a RequestDownloadRequest message from the specified reader or buffer. * @function decode @@ -48468,47 +39438,6 @@ export const Authentication = $root.Authentication = (() => { return message; }; - /** - * Decodes a RequestDownloadRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Authentication.RequestDownloadRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Authentication.RequestDownloadRequest} RequestDownloadRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RequestDownloadRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a RequestDownloadRequest message. - * @function verify - * @memberof Authentication.RequestDownloadRequest - * @static - * @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) { - if (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"; - for (let i = 0; i < message.fileNames.length; ++i) - if (!$util.isString(message.fileNames[i])) - return "fileNames: string[] expected"; - } - return null; - }; - /** * Creates a RequestDownloadRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -48520,6 +39449,8 @@ export const Authentication = $root.Authentication = (() => { RequestDownloadRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.Authentication.RequestDownloadRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".Authentication.RequestDownloadRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -48680,19 +39611,6 @@ export const Authentication = $root.Authentication = (() => { return writer; }; - /** - * Encodes the specified RequestDownloadResponse message, length delimited. Does not implicitly {@link Authentication.RequestDownloadResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof Authentication.RequestDownloadResponse - * @static - * @param {Authentication.IRequestDownloadResponse} message RequestDownloadResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RequestDownloadResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a RequestDownloadResponse message from the specified reader or buffer. * @function decode @@ -48739,55 +39657,6 @@ export const Authentication = $root.Authentication = (() => { return message; }; - /** - * Decodes a RequestDownloadResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Authentication.RequestDownloadResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Authentication.RequestDownloadResponse} RequestDownloadResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RequestDownloadResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a RequestDownloadResponse message. - * @function verify - * @memberof Authentication.RequestDownloadResponse - * @static - * @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) { - if (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"; - if (message.message != null && message.hasOwnProperty("message")) - if (!$util.isString(message.message)) - return "message: string expected"; - if (message.downloads != null && message.hasOwnProperty("downloads")) { - 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); - if (error) - return "downloads." + error; - } - } - return null; - }; - /** * Creates a RequestDownloadResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -48799,6 +39668,8 @@ export const Authentication = $root.Authentication = (() => { RequestDownloadResponse.fromObject = function fromObject(object, long) { if (object instanceof $root.Authentication.RequestDownloadResponse) return object; + if (!$util.isObject(object)) + throw TypeError(".Authentication.RequestDownloadResponse: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -48813,7 +39684,7 @@ export const Authentication = $root.Authentication = (() => { throw TypeError(".Authentication.RequestDownloadResponse.downloads: array expected"); message.downloads = []; for (let i = 0; i < object.downloads.length; ++i) { - if (typeof object.downloads[i] !== "object") + if (!$util.isObject(object.downloads[i])) throw TypeError(".Authentication.RequestDownloadResponse.downloads: object expected"); message.downloads[i] = $root.Authentication.Download.fromObject(object.downloads[i], long + 1); } @@ -48844,9 +39715,9 @@ export const Authentication = $root.Authentication = (() => { object.result = ""; object.message = ""; } - if (message.result != null && message.hasOwnProperty("result")) + if (message.result != null && Object.hasOwnProperty.call(message, "result")) object.result = message.result; - if (message.message != null && message.hasOwnProperty("message")) + if (message.message != null && Object.hasOwnProperty.call(message, "message")) object.message = message.message; if (message.downloads && message.downloads.length) { object.downloads = []; @@ -48972,19 +39843,6 @@ export const Authentication = $root.Authentication = (() => { return writer; }; - /** - * Encodes the specified Download message, length delimited. Does not implicitly {@link Authentication.Download.verify|verify} messages. - * @function encodeDelimited - * @memberof Authentication.Download - * @static - * @param {Authentication.IDownload} message Download message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Download.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a Download message from the specified reader or buffer. * @function decode @@ -49029,49 +39887,6 @@ export const Authentication = $root.Authentication = (() => { return message; }; - /** - * Decodes a Download message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Authentication.Download - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Authentication.Download} Download - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Download.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a Download message. - * @function verify - * @memberof Authentication.Download - * @static - * @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) { - if (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"; - if (message.url != null && message.hasOwnProperty("url")) - if (!$util.isString(message.url)) - return "url: string expected"; - if (message.successStatusCode != null && message.hasOwnProperty("successStatusCode")) - if (!$util.isInteger(message.successStatusCode)) - return "successStatusCode: integer expected"; - return null; - }; - /** * Creates a Download message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -49083,6 +39898,8 @@ export const Authentication = $root.Authentication = (() => { Download.fromObject = function fromObject(object, long) { if (object instanceof $root.Authentication.Download) return object; + if (!$util.isObject(object)) + throw TypeError(".Authentication.Download: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -49119,11 +39936,11 @@ export const Authentication = $root.Authentication = (() => { object.url = ""; object.successStatusCode = 0; } - if (message.fileName != null && message.hasOwnProperty("fileName")) + if (message.fileName != null && Object.hasOwnProperty.call(message, "fileName")) object.fileName = message.fileName; - if (message.url != null && message.hasOwnProperty("url")) + if (message.url != null && Object.hasOwnProperty.call(message, "url")) object.url = message.url; - if (message.successStatusCode != null && message.hasOwnProperty("successStatusCode")) + if (message.successStatusCode != null && Object.hasOwnProperty.call(message, "successStatusCode")) object.successStatusCode = message.successStatusCode; return object; }; @@ -49222,19 +40039,6 @@ export const Authentication = $root.Authentication = (() => { return writer; }; - /** - * Encodes the specified DeleteUserRequest message, length delimited. Does not implicitly {@link Authentication.DeleteUserRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof Authentication.DeleteUserRequest - * @static - * @param {Authentication.IDeleteUserRequest} message DeleteUserRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - DeleteUserRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a DeleteUserRequest message from the specified reader or buffer. * @function decode @@ -49271,43 +40075,6 @@ export const Authentication = $root.Authentication = (() => { return message; }; - /** - * Decodes a DeleteUserRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Authentication.DeleteUserRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Authentication.DeleteUserRequest} DeleteUserRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - DeleteUserRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a DeleteUserRequest message. - * @function verify - * @memberof Authentication.DeleteUserRequest - * @static - * @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) { - if (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"; - return null; - }; - /** * Creates a DeleteUserRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -49319,6 +40086,8 @@ export const Authentication = $root.Authentication = (() => { DeleteUserRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.Authentication.DeleteUserRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".Authentication.DeleteUserRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -49348,7 +40117,7 @@ export const Authentication = $root.Authentication = (() => { let object = {}; if (options.defaults) object.reason = ""; - if (message.reason != null && message.hasOwnProperty("reason")) + if (message.reason != null && Object.hasOwnProperty.call(message, "reason")) object.reason = message.reason; return object; }; @@ -49480,19 +40249,6 @@ export const Authentication = $root.Authentication = (() => { return writer; }; - /** - * Encodes the specified ChangeMasterPasswordRequest message, length delimited. Does not implicitly {@link Authentication.ChangeMasterPasswordRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof Authentication.ChangeMasterPasswordRequest - * @static - * @param {Authentication.IChangeMasterPasswordRequest} message ChangeMasterPasswordRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ChangeMasterPasswordRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a ChangeMasterPasswordRequest message from the specified reader or buffer. * @function decode @@ -49541,52 +40297,6 @@ export const Authentication = $root.Authentication = (() => { return message; }; - /** - * Decodes a ChangeMasterPasswordRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Authentication.ChangeMasterPasswordRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Authentication.ChangeMasterPasswordRequest} ChangeMasterPasswordRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ChangeMasterPasswordRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a ChangeMasterPasswordRequest message. - * @function verify - * @memberof Authentication.ChangeMasterPasswordRequest - * @static - * @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) { - if (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"; - if (message.encryptionParams != null && message.hasOwnProperty("encryptionParams")) - if (!(message.encryptionParams && typeof message.encryptionParams.length === "number" || $util.isString(message.encryptionParams))) - return "encryptionParams: buffer expected"; - if (message.fromServiceProvider != null && message.hasOwnProperty("fromServiceProvider")) - if (typeof message.fromServiceProvider !== "boolean") - return "fromServiceProvider: boolean expected"; - if (message.iterationsChange != null && message.hasOwnProperty("iterationsChange")) - if (typeof message.iterationsChange !== "boolean") - return "iterationsChange: boolean expected"; - return null; - }; - /** * Creates a ChangeMasterPasswordRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -49598,6 +40308,8 @@ export const Authentication = $root.Authentication = (() => { ChangeMasterPasswordRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.Authentication.ChangeMasterPasswordRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".Authentication.ChangeMasterPasswordRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -49655,13 +40367,13 @@ export const Authentication = $root.Authentication = (() => { object.fromServiceProvider = false; object.iterationsChange = false; } - if (message.authVerifier != null && message.hasOwnProperty("authVerifier")) + if (message.authVerifier != null && Object.hasOwnProperty.call(message, "authVerifier")) object.authVerifier = options.bytes === String ? $util.base64.encode(message.authVerifier, 0, message.authVerifier.length) : options.bytes === Array ? Array.prototype.slice.call(message.authVerifier) : message.authVerifier; - if (message.encryptionParams != null && message.hasOwnProperty("encryptionParams")) + if (message.encryptionParams != null && Object.hasOwnProperty.call(message, "encryptionParams")) object.encryptionParams = options.bytes === String ? $util.base64.encode(message.encryptionParams, 0, message.encryptionParams.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptionParams) : message.encryptionParams; - if (message.fromServiceProvider != null && message.hasOwnProperty("fromServiceProvider")) + if (message.fromServiceProvider != null && Object.hasOwnProperty.call(message, "fromServiceProvider")) object.fromServiceProvider = message.fromServiceProvider; - if (message.iterationsChange != null && message.hasOwnProperty("iterationsChange")) + if (message.iterationsChange != null && Object.hasOwnProperty.call(message, "iterationsChange")) object.iterationsChange = message.iterationsChange; return object; }; @@ -49760,19 +40472,6 @@ export const Authentication = $root.Authentication = (() => { return writer; }; - /** - * Encodes the specified ChangeMasterPasswordResponse message, length delimited. Does not implicitly {@link Authentication.ChangeMasterPasswordResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof Authentication.ChangeMasterPasswordResponse - * @static - * @param {Authentication.IChangeMasterPasswordResponse} message ChangeMasterPasswordResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ChangeMasterPasswordResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a ChangeMasterPasswordResponse message from the specified reader or buffer. * @function decode @@ -49809,43 +40508,6 @@ export const Authentication = $root.Authentication = (() => { return message; }; - /** - * Decodes a ChangeMasterPasswordResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Authentication.ChangeMasterPasswordResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Authentication.ChangeMasterPasswordResponse} ChangeMasterPasswordResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ChangeMasterPasswordResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a ChangeMasterPasswordResponse message. - * @function verify - * @memberof Authentication.ChangeMasterPasswordResponse - * @static - * @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) { - if (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"; - return null; - }; - /** * Creates a ChangeMasterPasswordResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -49857,6 +40519,8 @@ export const Authentication = $root.Authentication = (() => { ChangeMasterPasswordResponse.fromObject = function fromObject(object, long) { if (object instanceof $root.Authentication.ChangeMasterPasswordResponse) return object; + if (!$util.isObject(object)) + throw TypeError(".Authentication.ChangeMasterPasswordResponse: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -49895,7 +40559,7 @@ export const Authentication = $root.Authentication = (() => { if (options.bytes !== Array) object.encryptedSessionToken = $util.newBuffer(object.encryptedSessionToken); } - if (message.encryptedSessionToken != null && message.hasOwnProperty("encryptedSessionToken")) + if (message.encryptedSessionToken != null && Object.hasOwnProperty.call(message, "encryptedSessionToken")) object.encryptedSessionToken = options.bytes === String ? $util.base64.encode(message.encryptedSessionToken, 0, message.encryptedSessionToken.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedSessionToken) : message.encryptedSessionToken; return object; }; @@ -50005,19 +40669,6 @@ export const Authentication = $root.Authentication = (() => { return writer; }; - /** - * Encodes the specified AccountRecoverySetupRequest message, length delimited. Does not implicitly {@link Authentication.AccountRecoverySetupRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof Authentication.AccountRecoverySetupRequest - * @static - * @param {Authentication.IAccountRecoverySetupRequest} message AccountRecoverySetupRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - AccountRecoverySetupRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes an AccountRecoverySetupRequest message from the specified reader or buffer. * @function decode @@ -50058,46 +40709,6 @@ export const Authentication = $root.Authentication = (() => { return message; }; - /** - * Decodes an AccountRecoverySetupRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Authentication.AccountRecoverySetupRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Authentication.AccountRecoverySetupRequest} AccountRecoverySetupRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - AccountRecoverySetupRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an AccountRecoverySetupRequest message. - * @function verify - * @memberof Authentication.AccountRecoverySetupRequest - * @static - * @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) { - if (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"; - if (message.recoveryAuthHash != null && message.hasOwnProperty("recoveryAuthHash")) - if (!(message.recoveryAuthHash && typeof message.recoveryAuthHash.length === "number" || $util.isString(message.recoveryAuthHash))) - return "recoveryAuthHash: buffer expected"; - return null; - }; - /** * Creates an AccountRecoverySetupRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -50109,6 +40720,8 @@ export const Authentication = $root.Authentication = (() => { AccountRecoverySetupRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.Authentication.AccountRecoverySetupRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".Authentication.AccountRecoverySetupRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -50160,9 +40773,9 @@ export const Authentication = $root.Authentication = (() => { object.recoveryAuthHash = $util.newBuffer(object.recoveryAuthHash); } } - if (message.recoveryEncryptedDataKey != null && message.hasOwnProperty("recoveryEncryptedDataKey")) + if (message.recoveryEncryptedDataKey != null && Object.hasOwnProperty.call(message, "recoveryEncryptedDataKey")) object.recoveryEncryptedDataKey = options.bytes === String ? $util.base64.encode(message.recoveryEncryptedDataKey, 0, message.recoveryEncryptedDataKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.recoveryEncryptedDataKey) : message.recoveryEncryptedDataKey; - if (message.recoveryAuthHash != null && message.hasOwnProperty("recoveryAuthHash")) + if (message.recoveryAuthHash != null && Object.hasOwnProperty.call(message, "recoveryAuthHash")) object.recoveryAuthHash = options.bytes === String ? $util.base64.encode(message.recoveryAuthHash, 0, message.recoveryAuthHash.length) : options.bytes === Array ? Array.prototype.slice.call(message.recoveryAuthHash) : message.recoveryAuthHash; return object; }; @@ -50319,19 +40932,6 @@ export const Authentication = $root.Authentication = (() => { return writer; }; - /** - * Encodes the specified AccountRecoveryVerifyCodeResponse message, length delimited. Does not implicitly {@link Authentication.AccountRecoveryVerifyCodeResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof Authentication.AccountRecoveryVerifyCodeResponse - * @static - * @param {Authentication.IAccountRecoveryVerifyCodeResponse} message AccountRecoveryVerifyCodeResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - AccountRecoveryVerifyCodeResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes an AccountRecoveryVerifyCodeResponse message from the specified reader or buffer. * @function decode @@ -50384,60 +40984,6 @@ export const Authentication = $root.Authentication = (() => { return message; }; - /** - * Decodes an AccountRecoveryVerifyCodeResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Authentication.AccountRecoveryVerifyCodeResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Authentication.AccountRecoveryVerifyCodeResponse} AccountRecoveryVerifyCodeResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - AccountRecoveryVerifyCodeResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an AccountRecoveryVerifyCodeResponse message. - * @function verify - * @memberof Authentication.AccountRecoveryVerifyCodeResponse - * @static - * @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) { - if (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: - return "backupKeyType: enum value expected"; - case 0: - case 1: - break; - } - if (message.backupKeyDate != null && message.hasOwnProperty("backupKeyDate")) - if (!$util.isInteger(message.backupKeyDate) && !(message.backupKeyDate && $util.isInteger(message.backupKeyDate.low) && $util.isInteger(message.backupKeyDate.high))) - return "backupKeyDate: integer|Long expected"; - if (message.securityQuestion != null && message.hasOwnProperty("securityQuestion")) - if (!$util.isString(message.securityQuestion)) - return "securityQuestion: string expected"; - if (message.salt != null && message.hasOwnProperty("salt")) - if (!(message.salt && typeof message.salt.length === "number" || $util.isString(message.salt))) - return "salt: buffer expected"; - if (message.iterations != null && message.hasOwnProperty("iterations")) - if (!$util.isInteger(message.iterations)) - return "iterations: integer expected"; - return null; - }; - /** * Creates an AccountRecoveryVerifyCodeResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -50449,6 +40995,8 @@ export const Authentication = $root.Authentication = (() => { AccountRecoveryVerifyCodeResponse.fromObject = function fromObject(object, long) { if (object instanceof $root.Authentication.AccountRecoveryVerifyCodeResponse) return object; + if (!$util.isObject(object)) + throw TypeError(".Authentication.AccountRecoveryVerifyCodeResponse: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -50525,20 +41073,20 @@ export const Authentication = $root.Authentication = (() => { } object.iterations = 0; } - if (message.backupKeyType != null && message.hasOwnProperty("backupKeyType")) + if (message.backupKeyType != null && Object.hasOwnProperty.call(message, "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 (message.backupKeyDate != null && Object.hasOwnProperty.call(message, "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") 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; - if (message.securityQuestion != null && message.hasOwnProperty("securityQuestion")) + if (message.securityQuestion != null && Object.hasOwnProperty.call(message, "securityQuestion")) object.securityQuestion = message.securityQuestion; - if (message.salt != null && message.hasOwnProperty("salt")) + if (message.salt != null && Object.hasOwnProperty.call(message, "salt")) object.salt = options.bytes === String ? $util.base64.encode(message.salt, 0, message.salt.length) : options.bytes === Array ? Array.prototype.slice.call(message.salt) : message.salt; - if (message.iterations != null && message.hasOwnProperty("iterations")) + if (message.iterations != null && Object.hasOwnProperty.call(message, "iterations")) object.iterations = message.iterations; return object; }; @@ -50637,19 +41185,6 @@ export const Authentication = $root.Authentication = (() => { return writer; }; - /** - * Encodes the specified EmergencyAccessLoginRequest message, length delimited. Does not implicitly {@link Authentication.EmergencyAccessLoginRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof Authentication.EmergencyAccessLoginRequest - * @static - * @param {Authentication.IEmergencyAccessLoginRequest} message EmergencyAccessLoginRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - EmergencyAccessLoginRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes an EmergencyAccessLoginRequest message from the specified reader or buffer. * @function decode @@ -50686,43 +41221,6 @@ export const Authentication = $root.Authentication = (() => { return message; }; - /** - * Decodes an EmergencyAccessLoginRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Authentication.EmergencyAccessLoginRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Authentication.EmergencyAccessLoginRequest} EmergencyAccessLoginRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - EmergencyAccessLoginRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an EmergencyAccessLoginRequest message. - * @function verify - * @memberof Authentication.EmergencyAccessLoginRequest - * @static - * @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) { - if (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"; - return null; - }; - /** * Creates an EmergencyAccessLoginRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -50734,6 +41232,8 @@ export const Authentication = $root.Authentication = (() => { EmergencyAccessLoginRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.Authentication.EmergencyAccessLoginRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".Authentication.EmergencyAccessLoginRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -50763,7 +41263,7 @@ export const Authentication = $root.Authentication = (() => { let object = {}; if (options.defaults) object.owner = ""; - if (message.owner != null && message.hasOwnProperty("owner")) + if (message.owner != null && Object.hasOwnProperty.call(message, "owner")) object.owner = message.owner; return object; }; @@ -50895,19 +41395,6 @@ export const Authentication = $root.Authentication = (() => { return writer; }; - /** - * Encodes the specified EmergencyAccessLoginResponse message, length delimited. Does not implicitly {@link Authentication.EmergencyAccessLoginResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof Authentication.EmergencyAccessLoginResponse - * @static - * @param {Authentication.IEmergencyAccessLoginResponse} message EmergencyAccessLoginResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - EmergencyAccessLoginResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes an EmergencyAccessLoginResponse message from the specified reader or buffer. * @function decode @@ -50956,58 +41443,6 @@ export const Authentication = $root.Authentication = (() => { return message; }; - /** - * Decodes an EmergencyAccessLoginResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Authentication.EmergencyAccessLoginResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Authentication.EmergencyAccessLoginResponse} EmergencyAccessLoginResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - EmergencyAccessLoginResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an EmergencyAccessLoginResponse message. - * @function verify - * @memberof Authentication.EmergencyAccessLoginResponse - * @static - * @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) { - if (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); - if (error) - return "dataKey." + error; - } - if (message.rsaPrivateKey != null && message.hasOwnProperty("rsaPrivateKey")) { - let error = $root.Enterprise.TypedKey.verify(message.rsaPrivateKey, long + 1); - if (error) - return "rsaPrivateKey." + error; - } - if (message.eccPrivateKey != null && message.hasOwnProperty("eccPrivateKey")) { - let error = $root.Enterprise.TypedKey.verify(message.eccPrivateKey, long + 1); - if (error) - return "eccPrivateKey." + error; - } - return null; - }; - /** * Creates an EmergencyAccessLoginResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -51019,6 +41454,8 @@ export const Authentication = $root.Authentication = (() => { EmergencyAccessLoginResponse.fromObject = function fromObject(object, long) { if (object instanceof $root.Authentication.EmergencyAccessLoginResponse) return object; + if (!$util.isObject(object)) + throw TypeError(".Authentication.EmergencyAccessLoginResponse: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -51030,17 +41467,17 @@ export const Authentication = $root.Authentication = (() => { else if (object.sessionToken.length >= 0) message.sessionToken = object.sessionToken; if (object.dataKey != null) { - if (typeof object.dataKey !== "object") + if (!$util.isObject(object.dataKey)) throw TypeError(".Authentication.EmergencyAccessLoginResponse.dataKey: object expected"); message.dataKey = $root.Enterprise.TypedKey.fromObject(object.dataKey, long + 1); } if (object.rsaPrivateKey != null) { - if (typeof object.rsaPrivateKey !== "object") + if (!$util.isObject(object.rsaPrivateKey)) throw TypeError(".Authentication.EmergencyAccessLoginResponse.rsaPrivateKey: object expected"); message.rsaPrivateKey = $root.Enterprise.TypedKey.fromObject(object.rsaPrivateKey, long + 1); } if (object.eccPrivateKey != null) { - if (typeof object.eccPrivateKey !== "object") + if (!$util.isObject(object.eccPrivateKey)) throw TypeError(".Authentication.EmergencyAccessLoginResponse.eccPrivateKey: object expected"); message.eccPrivateKey = $root.Enterprise.TypedKey.fromObject(object.eccPrivateKey, long + 1); } @@ -51076,13 +41513,13 @@ export const Authentication = $root.Authentication = (() => { object.rsaPrivateKey = null; object.eccPrivateKey = null; } - if (message.sessionToken != null && message.hasOwnProperty("sessionToken")) + if (message.sessionToken != null && Object.hasOwnProperty.call(message, "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")) + if (message.dataKey != null && Object.hasOwnProperty.call(message, "dataKey")) object.dataKey = $root.Enterprise.TypedKey.toObject(message.dataKey, options, q + 1); - if (message.rsaPrivateKey != null && message.hasOwnProperty("rsaPrivateKey")) + if (message.rsaPrivateKey != null && Object.hasOwnProperty.call(message, "rsaPrivateKey")) object.rsaPrivateKey = $root.Enterprise.TypedKey.toObject(message.rsaPrivateKey, options, q + 1); - if (message.eccPrivateKey != null && message.hasOwnProperty("eccPrivateKey")) + if (message.eccPrivateKey != null && Object.hasOwnProperty.call(message, "eccPrivateKey")) object.eccPrivateKey = $root.Enterprise.TypedKey.toObject(message.eccPrivateKey, options, q + 1); return object; }; @@ -51256,19 +41693,6 @@ export const Authentication = $root.Authentication = (() => { return writer; }; - /** - * Encodes the specified UserTeamKey message, length delimited. Does not implicitly {@link Authentication.UserTeamKey.verify|verify} messages. - * @function encodeDelimited - * @memberof Authentication.UserTeamKey - * @static - * @param {Authentication.IUserTeamKey} message UserTeamKey message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - UserTeamKey.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a UserTeamKey message from the specified reader or buffer. * @function decode @@ -51325,66 +41749,6 @@ export const Authentication = $root.Authentication = (() => { return message; }; - /** - * Decodes a UserTeamKey message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Authentication.UserTeamKey - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Authentication.UserTeamKey} UserTeamKey - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - UserTeamKey.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a UserTeamKey message. - * @function verify - * @memberof Authentication.UserTeamKey - * @static - * @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) { - if (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"; - if (message.username != null && message.hasOwnProperty("username")) - if (!$util.isString(message.username)) - return "username: string expected"; - 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"; - if (message.encryptedTeamKeyRSA != null && message.hasOwnProperty("encryptedTeamKeyRSA")) - if (!(message.encryptedTeamKeyRSA && typeof message.encryptedTeamKeyRSA.length === "number" || $util.isString(message.encryptedTeamKeyRSA))) - return "encryptedTeamKeyRSA: buffer expected"; - if (message.encryptedTeamKeyEC != null && message.hasOwnProperty("encryptedTeamKeyEC")) - if (!(message.encryptedTeamKeyEC && typeof message.encryptedTeamKeyEC.length === "number" || $util.isString(message.encryptedTeamKeyEC))) - return "encryptedTeamKeyEC: buffer expected"; - if (message.status != null && message.hasOwnProperty("status")) - switch (message.status) { - default: - return "status: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - break; - } - return null; - }; - /** * Creates a UserTeamKey message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -51396,6 +41760,8 @@ export const Authentication = $root.Authentication = (() => { UserTeamKey.fromObject = function fromObject(object, long) { if (object instanceof $root.Authentication.UserTeamKey) return object; + if (!$util.isObject(object)) + throw TypeError(".Authentication.UserTeamKey: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -51505,22 +41871,22 @@ export const Authentication = $root.Authentication = (() => { } object.status = options.enums === String ? "SUCCESS" : 0; } - if (message.teamUid != null && message.hasOwnProperty("teamUid")) + if (message.teamUid != null && Object.hasOwnProperty.call(message, "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.username != null && message.hasOwnProperty("username")) + if (message.username != null && Object.hasOwnProperty.call(message, "username")) object.username = message.username; - if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) + if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, "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") 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.encryptedTeamKeyRSA != null && message.hasOwnProperty("encryptedTeamKeyRSA")) + if (message.encryptedTeamKeyRSA != null && Object.hasOwnProperty.call(message, "encryptedTeamKeyRSA")) object.encryptedTeamKeyRSA = options.bytes === String ? $util.base64.encode(message.encryptedTeamKeyRSA, 0, message.encryptedTeamKeyRSA.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedTeamKeyRSA) : message.encryptedTeamKeyRSA; - if (message.encryptedTeamKeyEC != null && message.hasOwnProperty("encryptedTeamKeyEC")) + if (message.encryptedTeamKeyEC != null && Object.hasOwnProperty.call(message, "encryptedTeamKeyEC")) object.encryptedTeamKeyEC = options.bytes === String ? $util.base64.encode(message.encryptedTeamKeyEC, 0, message.encryptedTeamKeyEC.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedTeamKeyEC) : message.encryptedTeamKeyEC; - if (message.status != null && message.hasOwnProperty("status")) + if (message.status != null && Object.hasOwnProperty.call(message, "status")) object.status = options.enums === String ? $root.Authentication.GenericStatus[message.status] === undefined ? message.status : $root.Authentication.GenericStatus[message.status] : message.status; return object; }; @@ -51621,19 +41987,6 @@ export const Authentication = $root.Authentication = (() => { return writer; }; - /** - * Encodes the specified GenericRequestResponse message, length delimited. Does not implicitly {@link Authentication.GenericRequestResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof Authentication.GenericRequestResponse - * @static - * @param {Authentication.IGenericRequestResponse} message GenericRequestResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GenericRequestResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a GenericRequestResponse message from the specified reader or buffer. * @function decode @@ -51672,47 +42025,6 @@ export const Authentication = $root.Authentication = (() => { return message; }; - /** - * Decodes a GenericRequestResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Authentication.GenericRequestResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Authentication.GenericRequestResponse} GenericRequestResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GenericRequestResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a GenericRequestResponse message. - * @function verify - * @memberof Authentication.GenericRequestResponse - * @static - * @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) { - if (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"; - for (let i = 0; i < message.request.length; ++i) - if (!(message.request[i] && typeof message.request[i].length === "number" || $util.isString(message.request[i]))) - return "request: buffer[] expected"; - } - return null; - }; - /** * Creates a GenericRequestResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -51724,6 +42036,8 @@ export const Authentication = $root.Authentication = (() => { GenericRequestResponse.fromObject = function fromObject(object, long) { if (object instanceof $root.Authentication.GenericRequestResponse) return object; + if (!$util.isObject(object)) + throw TypeError(".Authentication.GenericRequestResponse: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -51879,19 +42193,6 @@ export const Authentication = $root.Authentication = (() => { return writer; }; - /** - * Encodes the specified PasskeyRegistrationRequest message, length delimited. Does not implicitly {@link Authentication.PasskeyRegistrationRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof Authentication.PasskeyRegistrationRequest - * @static - * @param {Authentication.IPasskeyRegistrationRequest} message PasskeyRegistrationRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - PasskeyRegistrationRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a PasskeyRegistrationRequest message from the specified reader or buffer. * @function decode @@ -51928,49 +42229,6 @@ export const Authentication = $root.Authentication = (() => { return message; }; - /** - * Decodes a PasskeyRegistrationRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Authentication.PasskeyRegistrationRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Authentication.PasskeyRegistrationRequest} PasskeyRegistrationRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - PasskeyRegistrationRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a PasskeyRegistrationRequest message. - * @function verify - * @memberof Authentication.PasskeyRegistrationRequest - * @static - * @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) { - if (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: - return "authenticatorAttachment: enum value expected"; - case 0: - case 1: - case 2: - break; - } - return null; - }; - /** * Creates a PasskeyRegistrationRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -51982,6 +42240,8 @@ export const Authentication = $root.Authentication = (() => { PasskeyRegistrationRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.Authentication.PasskeyRegistrationRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".Authentication.PasskeyRegistrationRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -52029,7 +42289,7 @@ export const Authentication = $root.Authentication = (() => { let object = {}; if (options.defaults) object.authenticatorAttachment = options.enums === String ? "CROSS_PLATFORM" : 0; - if (message.authenticatorAttachment != null && message.hasOwnProperty("authenticatorAttachment")) + if (message.authenticatorAttachment != null && Object.hasOwnProperty.call(message, "authenticatorAttachment")) object.authenticatorAttachment = options.enums === String ? $root.Authentication.AuthenticatorAttachment[message.authenticatorAttachment] === undefined ? message.authenticatorAttachment : $root.Authentication.AuthenticatorAttachment[message.authenticatorAttachment] : message.authenticatorAttachment; return object; }; @@ -52139,19 +42399,6 @@ export const Authentication = $root.Authentication = (() => { return writer; }; - /** - * Encodes the specified PasskeyRegistrationResponse message, length delimited. Does not implicitly {@link Authentication.PasskeyRegistrationResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof Authentication.PasskeyRegistrationResponse - * @static - * @param {Authentication.IPasskeyRegistrationResponse} message PasskeyRegistrationResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - PasskeyRegistrationResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a PasskeyRegistrationResponse message from the specified reader or buffer. * @function decode @@ -52192,46 +42439,6 @@ export const Authentication = $root.Authentication = (() => { return message; }; - /** - * Decodes a PasskeyRegistrationResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Authentication.PasskeyRegistrationResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Authentication.PasskeyRegistrationResponse} PasskeyRegistrationResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - PasskeyRegistrationResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a PasskeyRegistrationResponse message. - * @function verify - * @memberof Authentication.PasskeyRegistrationResponse - * @static - * @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) { - if (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"; - if (message.pkCreationOptions != null && message.hasOwnProperty("pkCreationOptions")) - if (!$util.isString(message.pkCreationOptions)) - return "pkCreationOptions: string expected"; - return null; - }; - /** * Creates a PasskeyRegistrationResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -52243,6 +42450,8 @@ export const Authentication = $root.Authentication = (() => { PasskeyRegistrationResponse.fromObject = function fromObject(object, long) { if (object instanceof $root.Authentication.PasskeyRegistrationResponse) return object; + if (!$util.isObject(object)) + throw TypeError(".Authentication.PasskeyRegistrationResponse: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -52285,9 +42494,9 @@ export const Authentication = $root.Authentication = (() => { } object.pkCreationOptions = ""; } - if (message.challengeToken != null && message.hasOwnProperty("challengeToken")) + if (message.challengeToken != null && Object.hasOwnProperty.call(message, "challengeToken")) object.challengeToken = options.bytes === String ? $util.base64.encode(message.challengeToken, 0, message.challengeToken.length) : options.bytes === Array ? Array.prototype.slice.call(message.challengeToken) : message.challengeToken; - if (message.pkCreationOptions != null && message.hasOwnProperty("pkCreationOptions")) + if (message.pkCreationOptions != null && Object.hasOwnProperty.call(message, "pkCreationOptions")) object.pkCreationOptions = message.pkCreationOptions; return object; }; @@ -52417,19 +42626,6 @@ export const Authentication = $root.Authentication = (() => { return writer; }; - /** - * Encodes the specified PasskeyRegistrationFinalization message, length delimited. Does not implicitly {@link Authentication.PasskeyRegistrationFinalization.verify|verify} messages. - * @function encodeDelimited - * @memberof Authentication.PasskeyRegistrationFinalization - * @static - * @param {Authentication.IPasskeyRegistrationFinalization} message PasskeyRegistrationFinalization message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - PasskeyRegistrationFinalization.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a PasskeyRegistrationFinalization message from the specified reader or buffer. * @function decode @@ -52474,52 +42670,6 @@ export const Authentication = $root.Authentication = (() => { return message; }; - /** - * Decodes a PasskeyRegistrationFinalization message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Authentication.PasskeyRegistrationFinalization - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Authentication.PasskeyRegistrationFinalization} PasskeyRegistrationFinalization - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - PasskeyRegistrationFinalization.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a PasskeyRegistrationFinalization message. - * @function verify - * @memberof Authentication.PasskeyRegistrationFinalization - * @static - * @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) { - 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))) - return "challengeToken: buffer expected"; - if (message.authenticatorResponse != null && message.hasOwnProperty("authenticatorResponse")) - if (!$util.isString(message.authenticatorResponse)) - return "authenticatorResponse: string expected"; - if (message.friendlyName != null && message.hasOwnProperty("friendlyName")) { - properties._friendlyName = 1; - if (!$util.isString(message.friendlyName)) - return "friendlyName: string expected"; - } - return null; - }; - /** * Creates a PasskeyRegistrationFinalization message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -52531,6 +42681,8 @@ export const Authentication = $root.Authentication = (() => { PasskeyRegistrationFinalization.fromObject = function fromObject(object, long) { if (object instanceof $root.Authentication.PasskeyRegistrationFinalization) return object; + if (!$util.isObject(object)) + throw TypeError(".Authentication.PasskeyRegistrationFinalization: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -52575,11 +42727,11 @@ export const Authentication = $root.Authentication = (() => { } object.authenticatorResponse = ""; } - if (message.challengeToken != null && message.hasOwnProperty("challengeToken")) + if (message.challengeToken != null && Object.hasOwnProperty.call(message, "challengeToken")) object.challengeToken = options.bytes === String ? $util.base64.encode(message.challengeToken, 0, message.challengeToken.length) : options.bytes === Array ? Array.prototype.slice.call(message.challengeToken) : message.challengeToken; - if (message.authenticatorResponse != null && message.hasOwnProperty("authenticatorResponse")) + if (message.authenticatorResponse != null && Object.hasOwnProperty.call(message, "authenticatorResponse")) object.authenticatorResponse = message.authenticatorResponse; - if (message.friendlyName != null && message.hasOwnProperty("friendlyName")) { + if (message.friendlyName != null && Object.hasOwnProperty.call(message, "friendlyName")) { object.friendlyName = message.friendlyName; if (options.oneofs) object._friendlyName = "friendlyName"; @@ -52765,19 +42917,6 @@ export const Authentication = $root.Authentication = (() => { return writer; }; - /** - * Encodes the specified PasskeyAuthenticationRequest message, length delimited. Does not implicitly {@link Authentication.PasskeyAuthenticationRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof Authentication.PasskeyAuthenticationRequest - * @static - * @param {Authentication.IPasskeyAuthenticationRequest} message PasskeyAuthenticationRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - PasskeyAuthenticationRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a PasskeyAuthenticationRequest message from the specified reader or buffer. * @function decode @@ -52834,74 +42973,6 @@ export const Authentication = $root.Authentication = (() => { return message; }; - /** - * Decodes a PasskeyAuthenticationRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Authentication.PasskeyAuthenticationRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Authentication.PasskeyAuthenticationRequest} PasskeyAuthenticationRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - PasskeyAuthenticationRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a PasskeyAuthenticationRequest message. - * @function verify - * @memberof Authentication.PasskeyAuthenticationRequest - * @static - * @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) { - 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) { - default: - return "authenticatorAttachment: enum value expected"; - case 0: - case 1: - case 2: - break; - } - if (message.passkeyPurpose != null && message.hasOwnProperty("passkeyPurpose")) - switch (message.passkeyPurpose) { - default: - return "passkeyPurpose: enum value expected"; - case 0: - case 1: - break; - } - if (message.clientVersion != null && message.hasOwnProperty("clientVersion")) - if (!$util.isString(message.clientVersion)) - return "clientVersion: string expected"; - if (message.encryptedDeviceToken != null && message.hasOwnProperty("encryptedDeviceToken")) - if (!(message.encryptedDeviceToken && typeof message.encryptedDeviceToken.length === "number" || $util.isString(message.encryptedDeviceToken))) - return "encryptedDeviceToken: buffer expected"; - if (message.username != null && message.hasOwnProperty("username")) { - properties._username = 1; - if (!$util.isString(message.username)) - return "username: string expected"; - } - if (message.encryptedLoginToken != null && message.hasOwnProperty("encryptedLoginToken")) { - properties._encryptedLoginToken = 1; - if (!(message.encryptedLoginToken && typeof message.encryptedLoginToken.length === "number" || $util.isString(message.encryptedLoginToken))) - return "encryptedLoginToken: buffer expected"; - } - return null; - }; - /** * Creates a PasskeyAuthenticationRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -52913,6 +42984,8 @@ export const Authentication = $root.Authentication = (() => { PasskeyAuthenticationRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.Authentication.PasskeyAuthenticationRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".Authentication.PasskeyAuthenticationRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -53000,20 +43073,20 @@ export const Authentication = $root.Authentication = (() => { object.encryptedDeviceToken = $util.newBuffer(object.encryptedDeviceToken); } } - if (message.authenticatorAttachment != null && message.hasOwnProperty("authenticatorAttachment")) + if (message.authenticatorAttachment != null && Object.hasOwnProperty.call(message, "authenticatorAttachment")) object.authenticatorAttachment = options.enums === String ? $root.Authentication.AuthenticatorAttachment[message.authenticatorAttachment] === undefined ? message.authenticatorAttachment : $root.Authentication.AuthenticatorAttachment[message.authenticatorAttachment] : message.authenticatorAttachment; - if (message.passkeyPurpose != null && message.hasOwnProperty("passkeyPurpose")) + if (message.passkeyPurpose != null && Object.hasOwnProperty.call(message, "passkeyPurpose")) object.passkeyPurpose = options.enums === String ? $root.Authentication.PasskeyPurpose[message.passkeyPurpose] === undefined ? message.passkeyPurpose : $root.Authentication.PasskeyPurpose[message.passkeyPurpose] : message.passkeyPurpose; - if (message.clientVersion != null && message.hasOwnProperty("clientVersion")) + if (message.clientVersion != null && Object.hasOwnProperty.call(message, "clientVersion")) object.clientVersion = message.clientVersion; - if (message.encryptedDeviceToken != null && message.hasOwnProperty("encryptedDeviceToken")) + if (message.encryptedDeviceToken != null && Object.hasOwnProperty.call(message, "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.username != null && message.hasOwnProperty("username")) { + if (message.username != null && Object.hasOwnProperty.call(message, "username")) { object.username = message.username; if (options.oneofs) object._username = "username"; } - if (message.encryptedLoginToken != null && message.hasOwnProperty("encryptedLoginToken")) { + if (message.encryptedLoginToken != null && Object.hasOwnProperty.call(message, "encryptedLoginToken")) { object.encryptedLoginToken = options.bytes === String ? $util.base64.encode(message.encryptedLoginToken, 0, message.encryptedLoginToken.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedLoginToken) : message.encryptedLoginToken; if (options.oneofs) object._encryptedLoginToken = "encryptedLoginToken"; @@ -53146,19 +43219,6 @@ export const Authentication = $root.Authentication = (() => { return writer; }; - /** - * Encodes the specified PasskeyAuthenticationResponse message, length delimited. Does not implicitly {@link Authentication.PasskeyAuthenticationResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof Authentication.PasskeyAuthenticationResponse - * @static - * @param {Authentication.IPasskeyAuthenticationResponse} message PasskeyAuthenticationResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - PasskeyAuthenticationResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a PasskeyAuthenticationResponse message from the specified reader or buffer. * @function decode @@ -53203,52 +43263,6 @@ export const Authentication = $root.Authentication = (() => { return message; }; - /** - * Decodes a PasskeyAuthenticationResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Authentication.PasskeyAuthenticationResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Authentication.PasskeyAuthenticationResponse} PasskeyAuthenticationResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - PasskeyAuthenticationResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a PasskeyAuthenticationResponse message. - * @function verify - * @memberof Authentication.PasskeyAuthenticationResponse - * @static - * @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) { - 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)) - return "pkRequestOptions: string expected"; - if (message.challengeToken != null && message.hasOwnProperty("challengeToken")) - if (!(message.challengeToken && typeof message.challengeToken.length === "number" || $util.isString(message.challengeToken))) - return "challengeToken: buffer expected"; - if (message.encryptedLoginToken != null && message.hasOwnProperty("encryptedLoginToken")) { - properties._encryptedLoginToken = 1; - if (!(message.encryptedLoginToken && typeof message.encryptedLoginToken.length === "number" || $util.isString(message.encryptedLoginToken))) - return "encryptedLoginToken: buffer expected"; - } - return null; - }; - /** * Creates a PasskeyAuthenticationResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -53260,6 +43274,8 @@ export const Authentication = $root.Authentication = (() => { PasskeyAuthenticationResponse.fromObject = function fromObject(object, long) { if (object instanceof $root.Authentication.PasskeyAuthenticationResponse) return object; + if (!$util.isObject(object)) + throw TypeError(".Authentication.PasskeyAuthenticationResponse: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -53307,11 +43323,11 @@ export const Authentication = $root.Authentication = (() => { object.challengeToken = $util.newBuffer(object.challengeToken); } } - if (message.pkRequestOptions != null && message.hasOwnProperty("pkRequestOptions")) + if (message.pkRequestOptions != null && Object.hasOwnProperty.call(message, "pkRequestOptions")) object.pkRequestOptions = message.pkRequestOptions; - if (message.challengeToken != null && message.hasOwnProperty("challengeToken")) + if (message.challengeToken != null && Object.hasOwnProperty.call(message, "challengeToken")) object.challengeToken = options.bytes === String ? $util.base64.encode(message.challengeToken, 0, message.challengeToken.length) : options.bytes === Array ? Array.prototype.slice.call(message.challengeToken) : message.challengeToken; - if (message.encryptedLoginToken != null && message.hasOwnProperty("encryptedLoginToken")) { + if (message.encryptedLoginToken != null && Object.hasOwnProperty.call(message, "encryptedLoginToken")) { object.encryptedLoginToken = options.bytes === String ? $util.base64.encode(message.encryptedLoginToken, 0, message.encryptedLoginToken.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedLoginToken) : message.encryptedLoginToken; if (options.oneofs) object._encryptedLoginToken = "encryptedLoginToken"; @@ -53455,19 +43471,6 @@ export const Authentication = $root.Authentication = (() => { return writer; }; - /** - * Encodes the specified PasskeyValidationRequest message, length delimited. Does not implicitly {@link Authentication.PasskeyValidationRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof Authentication.PasskeyValidationRequest - * @static - * @param {Authentication.IPasskeyValidationRequest} message PasskeyValidationRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - PasskeyValidationRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a PasskeyValidationRequest message from the specified reader or buffer. * @function decode @@ -53516,60 +43519,6 @@ export const Authentication = $root.Authentication = (() => { return message; }; - /** - * Decodes a PasskeyValidationRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Authentication.PasskeyValidationRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Authentication.PasskeyValidationRequest} PasskeyValidationRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - PasskeyValidationRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a PasskeyValidationRequest message. - * @function verify - * @memberof Authentication.PasskeyValidationRequest - * @static - * @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) { - 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))) - return "challengeToken: buffer expected"; - if (message.assertionResponse != null && message.hasOwnProperty("assertionResponse")) - if (!(message.assertionResponse && typeof message.assertionResponse.length === "number" || $util.isString(message.assertionResponse))) - return "assertionResponse: buffer expected"; - if (message.passkeyPurpose != null && message.hasOwnProperty("passkeyPurpose")) - switch (message.passkeyPurpose) { - default: - return "passkeyPurpose: enum value expected"; - case 0: - case 1: - break; - } - if (message.encryptedLoginToken != null && message.hasOwnProperty("encryptedLoginToken")) { - properties._encryptedLoginToken = 1; - if (!(message.encryptedLoginToken && typeof message.encryptedLoginToken.length === "number" || $util.isString(message.encryptedLoginToken))) - return "encryptedLoginToken: buffer expected"; - } - return null; - }; - /** * Creates a PasskeyValidationRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -53581,6 +43530,8 @@ export const Authentication = $root.Authentication = (() => { PasskeyValidationRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.Authentication.PasskeyValidationRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".Authentication.PasskeyValidationRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -53654,13 +43605,13 @@ export const Authentication = $root.Authentication = (() => { } object.passkeyPurpose = options.enums === String ? "PK_LOGIN" : 0; } - if (message.challengeToken != null && message.hasOwnProperty("challengeToken")) + if (message.challengeToken != null && Object.hasOwnProperty.call(message, "challengeToken")) object.challengeToken = options.bytes === String ? $util.base64.encode(message.challengeToken, 0, message.challengeToken.length) : options.bytes === Array ? Array.prototype.slice.call(message.challengeToken) : message.challengeToken; - if (message.assertionResponse != null && message.hasOwnProperty("assertionResponse")) + if (message.assertionResponse != null && Object.hasOwnProperty.call(message, "assertionResponse")) object.assertionResponse = options.bytes === String ? $util.base64.encode(message.assertionResponse, 0, message.assertionResponse.length) : options.bytes === Array ? Array.prototype.slice.call(message.assertionResponse) : message.assertionResponse; - if (message.passkeyPurpose != null && message.hasOwnProperty("passkeyPurpose")) + if (message.passkeyPurpose != null && Object.hasOwnProperty.call(message, "passkeyPurpose")) object.passkeyPurpose = options.enums === String ? $root.Authentication.PasskeyPurpose[message.passkeyPurpose] === undefined ? message.passkeyPurpose : $root.Authentication.PasskeyPurpose[message.passkeyPurpose] : message.passkeyPurpose; - if (message.encryptedLoginToken != null && message.hasOwnProperty("encryptedLoginToken")) { + if (message.encryptedLoginToken != null && Object.hasOwnProperty.call(message, "encryptedLoginToken")) { object.encryptedLoginToken = options.bytes === String ? $util.base64.encode(message.encryptedLoginToken, 0, message.encryptedLoginToken.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedLoginToken) : message.encryptedLoginToken; if (options.oneofs) object._encryptedLoginToken = "encryptedLoginToken"; @@ -53773,19 +43724,6 @@ export const Authentication = $root.Authentication = (() => { return writer; }; - /** - * Encodes the specified PasskeyValidationResponse message, length delimited. Does not implicitly {@link Authentication.PasskeyValidationResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof Authentication.PasskeyValidationResponse - * @static - * @param {Authentication.IPasskeyValidationResponse} message PasskeyValidationResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - PasskeyValidationResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a PasskeyValidationResponse message from the specified reader or buffer. * @function decode @@ -53826,46 +43764,6 @@ export const Authentication = $root.Authentication = (() => { return message; }; - /** - * Decodes a PasskeyValidationResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Authentication.PasskeyValidationResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Authentication.PasskeyValidationResponse} PasskeyValidationResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - PasskeyValidationResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a PasskeyValidationResponse message. - * @function verify - * @memberof Authentication.PasskeyValidationResponse - * @static - * @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) { - if (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"; - if (message.encryptedLoginToken != null && message.hasOwnProperty("encryptedLoginToken")) - if (!(message.encryptedLoginToken && typeof message.encryptedLoginToken.length === "number" || $util.isString(message.encryptedLoginToken))) - return "encryptedLoginToken: buffer expected"; - return null; - }; - /** * Creates a PasskeyValidationResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -53877,6 +43775,8 @@ export const Authentication = $root.Authentication = (() => { PasskeyValidationResponse.fromObject = function fromObject(object, long) { if (object instanceof $root.Authentication.PasskeyValidationResponse) return object; + if (!$util.isObject(object)) + throw TypeError(".Authentication.PasskeyValidationResponse: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -53919,9 +43819,9 @@ export const Authentication = $root.Authentication = (() => { object.encryptedLoginToken = $util.newBuffer(object.encryptedLoginToken); } } - if (message.isValid != null && message.hasOwnProperty("isValid")) + if (message.isValid != null && Object.hasOwnProperty.call(message, "isValid")) object.isValid = message.isValid; - if (message.encryptedLoginToken != null && message.hasOwnProperty("encryptedLoginToken")) + if (message.encryptedLoginToken != null && Object.hasOwnProperty.call(message, "encryptedLoginToken")) object.encryptedLoginToken = options.bytes === String ? $util.base64.encode(message.encryptedLoginToken, 0, message.encryptedLoginToken.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedLoginToken) : message.encryptedLoginToken; return object; }; @@ -54051,19 +43951,6 @@ export const Authentication = $root.Authentication = (() => { return writer; }; - /** - * Encodes the specified UpdatePasskeyRequest message, length delimited. Does not implicitly {@link Authentication.UpdatePasskeyRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof Authentication.UpdatePasskeyRequest - * @static - * @param {Authentication.IUpdatePasskeyRequest} message UpdatePasskeyRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - UpdatePasskeyRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes an UpdatePasskeyRequest message from the specified reader or buffer. * @function decode @@ -54108,52 +43995,6 @@ export const Authentication = $root.Authentication = (() => { return message; }; - /** - * Decodes an UpdatePasskeyRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Authentication.UpdatePasskeyRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Authentication.UpdatePasskeyRequest} UpdatePasskeyRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - UpdatePasskeyRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an UpdatePasskeyRequest message. - * @function verify - * @memberof Authentication.UpdatePasskeyRequest - * @static - * @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) { - 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)) - return "userId: integer expected"; - if (message.credentialId != null && message.hasOwnProperty("credentialId")) - if (!(message.credentialId && typeof message.credentialId.length === "number" || $util.isString(message.credentialId))) - return "credentialId: buffer expected"; - if (message.friendlyName != null && message.hasOwnProperty("friendlyName")) { - properties._friendlyName = 1; - if (!$util.isString(message.friendlyName)) - return "friendlyName: string expected"; - } - return null; - }; - /** * Creates an UpdatePasskeyRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -54165,6 +44006,8 @@ export const Authentication = $root.Authentication = (() => { UpdatePasskeyRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.Authentication.UpdatePasskeyRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".Authentication.UpdatePasskeyRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -54209,11 +44052,11 @@ export const Authentication = $root.Authentication = (() => { object.credentialId = $util.newBuffer(object.credentialId); } } - if (message.userId != null && message.hasOwnProperty("userId")) + if (message.userId != null && Object.hasOwnProperty.call(message, "userId")) object.userId = message.userId; - if (message.credentialId != null && message.hasOwnProperty("credentialId")) + if (message.credentialId != null && Object.hasOwnProperty.call(message, "credentialId")) object.credentialId = options.bytes === String ? $util.base64.encode(message.credentialId, 0, message.credentialId.length) : options.bytes === Array ? Array.prototype.slice.call(message.credentialId) : message.credentialId; - if (message.friendlyName != null && message.hasOwnProperty("friendlyName")) { + if (message.friendlyName != null && Object.hasOwnProperty.call(message, "friendlyName")) { object.friendlyName = message.friendlyName; if (options.oneofs) object._friendlyName = "friendlyName"; @@ -54315,19 +44158,6 @@ export const Authentication = $root.Authentication = (() => { return writer; }; - /** - * Encodes the specified PasskeyListRequest message, length delimited. Does not implicitly {@link Authentication.PasskeyListRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof Authentication.PasskeyListRequest - * @static - * @param {Authentication.IPasskeyListRequest} message PasskeyListRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - PasskeyListRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a PasskeyListRequest message from the specified reader or buffer. * @function decode @@ -54364,43 +44194,6 @@ export const Authentication = $root.Authentication = (() => { return message; }; - /** - * Decodes a PasskeyListRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Authentication.PasskeyListRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Authentication.PasskeyListRequest} PasskeyListRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - PasskeyListRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a PasskeyListRequest message. - * @function verify - * @memberof Authentication.PasskeyListRequest - * @static - * @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) { - if (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"; - return null; - }; - /** * Creates a PasskeyListRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -54412,6 +44205,8 @@ export const Authentication = $root.Authentication = (() => { PasskeyListRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.Authentication.PasskeyListRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".Authentication.PasskeyListRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -54441,7 +44236,7 @@ export const Authentication = $root.Authentication = (() => { let object = {}; if (options.defaults) object.includeDisabled = false; - if (message.includeDisabled != null && message.hasOwnProperty("includeDisabled")) + if (message.includeDisabled != null && Object.hasOwnProperty.call(message, "includeDisabled")) object.includeDisabled = message.includeDisabled; return object; }; @@ -54606,19 +44401,6 @@ export const Authentication = $root.Authentication = (() => { return writer; }; - /** - * Encodes the specified PasskeyInfo message, length delimited. Does not implicitly {@link Authentication.PasskeyInfo.verify|verify} messages. - * @function encodeDelimited - * @memberof Authentication.PasskeyInfo - * @static - * @param {Authentication.IPasskeyInfo} message PasskeyInfo message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - PasskeyInfo.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a PasskeyInfo message from the specified reader or buffer. * @function decode @@ -54679,61 +44461,6 @@ export const Authentication = $root.Authentication = (() => { return message; }; - /** - * Decodes a PasskeyInfo message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Authentication.PasskeyInfo - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Authentication.PasskeyInfo} PasskeyInfo - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - PasskeyInfo.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a PasskeyInfo message. - * @function verify - * @memberof Authentication.PasskeyInfo - * @static - * @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) { - if (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"; - if (message.credentialId != null && message.hasOwnProperty("credentialId")) - if (!(message.credentialId && typeof message.credentialId.length === "number" || $util.isString(message.credentialId))) - return "credentialId: buffer expected"; - if (message.friendlyName != null && message.hasOwnProperty("friendlyName")) - if (!$util.isString(message.friendlyName)) - return "friendlyName: string expected"; - if (message.AAGUID != null && message.hasOwnProperty("AAGUID")) - if (!$util.isString(message.AAGUID)) - return "AAGUID: string expected"; - if (message.createdAtMillis != null && message.hasOwnProperty("createdAtMillis")) - if (!$util.isInteger(message.createdAtMillis) && !(message.createdAtMillis && $util.isInteger(message.createdAtMillis.low) && $util.isInteger(message.createdAtMillis.high))) - return "createdAtMillis: integer|Long expected"; - if (message.lastUsedMillis != null && message.hasOwnProperty("lastUsedMillis")) - if (!$util.isInteger(message.lastUsedMillis) && !(message.lastUsedMillis && $util.isInteger(message.lastUsedMillis.low) && $util.isInteger(message.lastUsedMillis.high))) - return "lastUsedMillis: integer|Long expected"; - if (message.disabledAtMillis != null && message.hasOwnProperty("disabledAtMillis")) - if (!$util.isInteger(message.disabledAtMillis) && !(message.disabledAtMillis && $util.isInteger(message.disabledAtMillis.low) && $util.isInteger(message.disabledAtMillis.high))) - return "disabledAtMillis: integer|Long expected"; - return null; - }; - /** * Creates a PasskeyInfo message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -54745,6 +44472,8 @@ export const Authentication = $root.Authentication = (() => { PasskeyInfo.fromObject = function fromObject(object, long) { if (object instanceof $root.Authentication.PasskeyInfo) return object; + if (!$util.isObject(object)) + throw TypeError(".Authentication.PasskeyInfo: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -54835,29 +44564,29 @@ export const Authentication = $root.Authentication = (() => { } else object.disabledAtMillis = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; } - if (message.userId != null && message.hasOwnProperty("userId")) + if (message.userId != null && Object.hasOwnProperty.call(message, "userId")) object.userId = message.userId; - if (message.credentialId != null && message.hasOwnProperty("credentialId")) + if (message.credentialId != null && Object.hasOwnProperty.call(message, "credentialId")) object.credentialId = options.bytes === String ? $util.base64.encode(message.credentialId, 0, message.credentialId.length) : options.bytes === Array ? Array.prototype.slice.call(message.credentialId) : message.credentialId; - if (message.friendlyName != null && message.hasOwnProperty("friendlyName")) + if (message.friendlyName != null && Object.hasOwnProperty.call(message, "friendlyName")) object.friendlyName = message.friendlyName; - if (message.AAGUID != null && message.hasOwnProperty("AAGUID")) + if (message.AAGUID != null && Object.hasOwnProperty.call(message, "AAGUID")) object.AAGUID = message.AAGUID; - if (message.createdAtMillis != null && message.hasOwnProperty("createdAtMillis")) + if (message.createdAtMillis != null && Object.hasOwnProperty.call(message, "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") 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 (message.lastUsedMillis != null && Object.hasOwnProperty.call(message, "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") 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 (message.disabledAtMillis != null && Object.hasOwnProperty.call(message, "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") @@ -54963,19 +44692,6 @@ export const Authentication = $root.Authentication = (() => { return writer; }; - /** - * Encodes the specified PasskeyListResponse message, length delimited. Does not implicitly {@link Authentication.PasskeyListResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof Authentication.PasskeyListResponse - * @static - * @param {Authentication.IPasskeyListResponse} message PasskeyListResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - PasskeyListResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a PasskeyListResponse message from the specified reader or buffer. * @function decode @@ -55014,49 +44730,6 @@ export const Authentication = $root.Authentication = (() => { return message; }; - /** - * Decodes a PasskeyListResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Authentication.PasskeyListResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Authentication.PasskeyListResponse} PasskeyListResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - PasskeyListResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a PasskeyListResponse message. - * @function verify - * @memberof Authentication.PasskeyListResponse - * @static - * @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) { - if (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); - if (error) - return "passkeyInfo." + error; - } - } - return null; - }; - /** * Creates a PasskeyListResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -55068,6 +44741,8 @@ export const Authentication = $root.Authentication = (() => { PasskeyListResponse.fromObject = function fromObject(object, long) { if (object instanceof $root.Authentication.PasskeyListResponse) return object; + if (!$util.isObject(object)) + throw TypeError(".Authentication.PasskeyListResponse: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -55078,7 +44753,7 @@ export const Authentication = $root.Authentication = (() => { throw TypeError(".Authentication.PasskeyListResponse.passkeyInfo: array expected"); message.passkeyInfo = []; for (let i = 0; i < object.passkeyInfo.length; ++i) { - if (typeof object.passkeyInfo[i] !== "object") + if (!$util.isObject(object.passkeyInfo[i])) throw TypeError(".Authentication.PasskeyListResponse.passkeyInfo: object expected"); message.passkeyInfo[i] = $root.Authentication.PasskeyInfo.fromObject(object.passkeyInfo[i], long + 1); } @@ -55236,19 +44911,6 @@ export const Authentication = $root.Authentication = (() => { return writer; }; - /** - * Encodes the specified TranslationInfo message, length delimited. Does not implicitly {@link Authentication.TranslationInfo.verify|verify} messages. - * @function encodeDelimited - * @memberof Authentication.TranslationInfo - * @static - * @param {Authentication.ITranslationInfo} message TranslationInfo message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TranslationInfo.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a TranslationInfo message from the specified reader or buffer. * @function decode @@ -55289,46 +44951,6 @@ export const Authentication = $root.Authentication = (() => { return message; }; - /** - * Decodes a TranslationInfo message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Authentication.TranslationInfo - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Authentication.TranslationInfo} TranslationInfo - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TranslationInfo.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a TranslationInfo message. - * @function verify - * @memberof Authentication.TranslationInfo - * @static - * @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) { - if (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"; - if (message.translationValue != null && message.hasOwnProperty("translationValue")) - if (!$util.isString(message.translationValue)) - return "translationValue: string expected"; - return null; - }; - /** * Creates a TranslationInfo message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -55340,6 +44962,8 @@ export const Authentication = $root.Authentication = (() => { TranslationInfo.fromObject = function fromObject(object, long) { if (object instanceof $root.Authentication.TranslationInfo) return object; + if (!$util.isObject(object)) + throw TypeError(".Authentication.TranslationInfo: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -55373,9 +44997,9 @@ export const Authentication = $root.Authentication = (() => { object.translationKey = ""; object.translationValue = ""; } - if (message.translationKey != null && message.hasOwnProperty("translationKey")) + if (message.translationKey != null && Object.hasOwnProperty.call(message, "translationKey")) object.translationKey = message.translationKey; - if (message.translationValue != null && message.hasOwnProperty("translationValue")) + if (message.translationValue != null && Object.hasOwnProperty.call(message, "translationValue")) object.translationValue = message.translationValue; return object; }; @@ -55476,19 +45100,6 @@ export const Authentication = $root.Authentication = (() => { return writer; }; - /** - * Encodes the specified TranslationRequest message, length delimited. Does not implicitly {@link Authentication.TranslationRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof Authentication.TranslationRequest - * @static - * @param {Authentication.ITranslationRequest} message TranslationRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TranslationRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a TranslationRequest message from the specified reader or buffer. * @function decode @@ -55527,47 +45138,6 @@ export const Authentication = $root.Authentication = (() => { return message; }; - /** - * Decodes a TranslationRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Authentication.TranslationRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Authentication.TranslationRequest} TranslationRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TranslationRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a TranslationRequest message. - * @function verify - * @memberof Authentication.TranslationRequest - * @static - * @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) { - if (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"; - for (let i = 0; i < message.translationKey.length; ++i) - if (!$util.isString(message.translationKey[i])) - return "translationKey: string[] expected"; - } - return null; - }; - /** * Creates a TranslationRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -55579,6 +45149,8 @@ export const Authentication = $root.Authentication = (() => { TranslationRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.Authentication.TranslationRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".Authentication.TranslationRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -55717,19 +45289,6 @@ export const Authentication = $root.Authentication = (() => { return writer; }; - /** - * Encodes the specified TranslationResponse message, length delimited. Does not implicitly {@link Authentication.TranslationResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof Authentication.TranslationResponse - * @static - * @param {Authentication.ITranslationResponse} message TranslationResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TranslationResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a TranslationResponse message from the specified reader or buffer. * @function decode @@ -55768,49 +45327,6 @@ export const Authentication = $root.Authentication = (() => { return message; }; - /** - * Decodes a TranslationResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Authentication.TranslationResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Authentication.TranslationResponse} TranslationResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TranslationResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a TranslationResponse message. - * @function verify - * @memberof Authentication.TranslationResponse - * @static - * @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) { - if (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); - if (error) - return "translationInfo." + error; - } - } - return null; - }; - /** * Creates a TranslationResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -55822,6 +45338,8 @@ export const Authentication = $root.Authentication = (() => { TranslationResponse.fromObject = function fromObject(object, long) { if (object instanceof $root.Authentication.TranslationResponse) return object; + if (!$util.isObject(object)) + throw TypeError(".Authentication.TranslationResponse: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -55832,7 +45350,7 @@ export const Authentication = $root.Authentication = (() => { throw TypeError(".Authentication.TranslationResponse.translationInfo: array expected"); message.translationInfo = []; for (let i = 0; i < object.translationInfo.length; ++i) { - if (typeof object.translationInfo[i] !== "object") + if (!$util.isObject(object.translationInfo[i])) throw TypeError(".Authentication.TranslationResponse.translationInfo: object expected"); message.translationInfo[i] = $root.Authentication.TranslationInfo.fromObject(object.translationInfo[i], long + 1); } @@ -56009,19 +45527,6 @@ export const Enterprise = $root.Enterprise = (() => { return writer; }; - /** - * Encodes the specified EnterpriseKeyPairRequest message, length delimited. Does not implicitly {@link Enterprise.EnterpriseKeyPairRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof Enterprise.EnterpriseKeyPairRequest - * @static - * @param {Enterprise.IEnterpriseKeyPairRequest} message EnterpriseKeyPairRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - EnterpriseKeyPairRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes an EnterpriseKeyPairRequest message from the specified reader or buffer. * @function decode @@ -56066,54 +45571,6 @@ export const Enterprise = $root.Enterprise = (() => { return message; }; - /** - * Decodes an EnterpriseKeyPairRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Enterprise.EnterpriseKeyPairRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Enterprise.EnterpriseKeyPairRequest} EnterpriseKeyPairRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - EnterpriseKeyPairRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an EnterpriseKeyPairRequest message. - * @function verify - * @memberof Enterprise.EnterpriseKeyPairRequest - * @static - * @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) { - if (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"; - if (message.encryptedEnterprisePrivateKey != null && message.hasOwnProperty("encryptedEnterprisePrivateKey")) - if (!(message.encryptedEnterprisePrivateKey && typeof message.encryptedEnterprisePrivateKey.length === "number" || $util.isString(message.encryptedEnterprisePrivateKey))) - return "encryptedEnterprisePrivateKey: buffer expected"; - if (message.keyType != null && message.hasOwnProperty("keyType")) - switch (message.keyType) { - default: - return "keyType: enum value expected"; - case 0: - case 1: - break; - } - return null; - }; - /** * Creates an EnterpriseKeyPairRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -56125,6 +45582,8 @@ export const Enterprise = $root.Enterprise = (() => { EnterpriseKeyPairRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.Enterprise.EnterpriseKeyPairRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".Enterprise.EnterpriseKeyPairRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -56193,11 +45652,11 @@ export const Enterprise = $root.Enterprise = (() => { } object.keyType = options.enums === String ? "RSA" : 0; } - if (message.enterprisePublicKey != null && message.hasOwnProperty("enterprisePublicKey")) + if (message.enterprisePublicKey != null && Object.hasOwnProperty.call(message, "enterprisePublicKey")) object.enterprisePublicKey = options.bytes === String ? $util.base64.encode(message.enterprisePublicKey, 0, message.enterprisePublicKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.enterprisePublicKey) : message.enterprisePublicKey; - if (message.encryptedEnterprisePrivateKey != null && message.hasOwnProperty("encryptedEnterprisePrivateKey")) + if (message.encryptedEnterprisePrivateKey != null && Object.hasOwnProperty.call(message, "encryptedEnterprisePrivateKey")) object.encryptedEnterprisePrivateKey = options.bytes === String ? $util.base64.encode(message.encryptedEnterprisePrivateKey, 0, message.encryptedEnterprisePrivateKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedEnterprisePrivateKey) : message.encryptedEnterprisePrivateKey; - if (message.keyType != null && message.hasOwnProperty("keyType")) + if (message.keyType != null && Object.hasOwnProperty.call(message, "keyType")) object.keyType = options.enums === String ? $root.Enterprise.KeyType[message.keyType] === undefined ? message.keyType : $root.Enterprise.KeyType[message.keyType] : message.keyType; return object; }; @@ -56296,19 +45755,6 @@ export const Enterprise = $root.Enterprise = (() => { return writer; }; - /** - * Encodes the specified GetTeamMemberRequest message, length delimited. Does not implicitly {@link Enterprise.GetTeamMemberRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof Enterprise.GetTeamMemberRequest - * @static - * @param {Enterprise.IGetTeamMemberRequest} message GetTeamMemberRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetTeamMemberRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a GetTeamMemberRequest message from the specified reader or buffer. * @function decode @@ -56345,43 +45791,6 @@ export const Enterprise = $root.Enterprise = (() => { return message; }; - /** - * Decodes a GetTeamMemberRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Enterprise.GetTeamMemberRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Enterprise.GetTeamMemberRequest} GetTeamMemberRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetTeamMemberRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a GetTeamMemberRequest message. - * @function verify - * @memberof Enterprise.GetTeamMemberRequest - * @static - * @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) { - if (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"; - return null; - }; - /** * Creates a GetTeamMemberRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -56393,6 +45802,8 @@ export const Enterprise = $root.Enterprise = (() => { GetTeamMemberRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.Enterprise.GetTeamMemberRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".Enterprise.GetTeamMemberRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -56431,7 +45842,7 @@ export const Enterprise = $root.Enterprise = (() => { if (options.bytes !== Array) object.teamUid = $util.newBuffer(object.teamUid); } - if (message.teamUid != null && message.hasOwnProperty("teamUid")) + if (message.teamUid != null && Object.hasOwnProperty.call(message, "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; return object; }; @@ -56574,19 +45985,6 @@ export const Enterprise = $root.Enterprise = (() => { return writer; }; - /** - * Encodes the specified EnterpriseUser message, length delimited. Does not implicitly {@link Enterprise.EnterpriseUser.verify|verify} messages. - * @function encodeDelimited - * @memberof Enterprise.EnterpriseUser - * @static - * @param {Enterprise.IEnterpriseUser} message EnterpriseUser message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - EnterpriseUser.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes an EnterpriseUser message from the specified reader or buffer. * @function decode @@ -56639,55 +46037,6 @@ export const Enterprise = $root.Enterprise = (() => { return message; }; - /** - * Decodes an EnterpriseUser message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Enterprise.EnterpriseUser - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Enterprise.EnterpriseUser} EnterpriseUser - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - EnterpriseUser.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an EnterpriseUser message. - * @function verify - * @memberof Enterprise.EnterpriseUser - * @static - * @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) { - if (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"; - if (message.email != null && message.hasOwnProperty("email")) - if (!$util.isString(message.email)) - return "email: string expected"; - if (message.enterpriseUsername != null && message.hasOwnProperty("enterpriseUsername")) - if (!$util.isString(message.enterpriseUsername)) - return "enterpriseUsername: string expected"; - if (message.isShareAdmin != null && message.hasOwnProperty("isShareAdmin")) - if (typeof message.isShareAdmin !== "boolean") - return "isShareAdmin: boolean expected"; - if (message.username != null && message.hasOwnProperty("username")) - if (!$util.isString(message.username)) - return "username: string expected"; - return null; - }; - /** * Creates an EnterpriseUser message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -56699,6 +46048,8 @@ export const Enterprise = $root.Enterprise = (() => { EnterpriseUser.fromObject = function fromObject(object, long) { if (object instanceof $root.Enterprise.EnterpriseUser) return object; + if (!$util.isObject(object)) + throw TypeError(".Enterprise.EnterpriseUser: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -56752,20 +46103,20 @@ export const Enterprise = $root.Enterprise = (() => { object.isShareAdmin = false; object.username = ""; } - if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) + if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, "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") 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.email != null && message.hasOwnProperty("email")) + if (message.email != null && Object.hasOwnProperty.call(message, "email")) object.email = message.email; - if (message.enterpriseUsername != null && message.hasOwnProperty("enterpriseUsername")) + if (message.enterpriseUsername != null && Object.hasOwnProperty.call(message, "enterpriseUsername")) object.enterpriseUsername = message.enterpriseUsername; - if (message.isShareAdmin != null && message.hasOwnProperty("isShareAdmin")) + if (message.isShareAdmin != null && Object.hasOwnProperty.call(message, "isShareAdmin")) object.isShareAdmin = message.isShareAdmin; - if (message.username != null && message.hasOwnProperty("username")) + if (message.username != null && Object.hasOwnProperty.call(message, "username")) object.username = message.username; return object; }; @@ -56866,19 +46217,6 @@ export const Enterprise = $root.Enterprise = (() => { return writer; }; - /** - * Encodes the specified GetTeamMemberResponse message, length delimited. Does not implicitly {@link Enterprise.GetTeamMemberResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof Enterprise.GetTeamMemberResponse - * @static - * @param {Enterprise.IGetTeamMemberResponse} message GetTeamMemberResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetTeamMemberResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a GetTeamMemberResponse message from the specified reader or buffer. * @function decode @@ -56917,49 +46255,6 @@ export const Enterprise = $root.Enterprise = (() => { return message; }; - /** - * Decodes a GetTeamMemberResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Enterprise.GetTeamMemberResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Enterprise.GetTeamMemberResponse} GetTeamMemberResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetTeamMemberResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a GetTeamMemberResponse message. - * @function verify - * @memberof Enterprise.GetTeamMemberResponse - * @static - * @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) { - if (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); - if (error) - return "enterpriseUser." + error; - } - } - return null; - }; - /** * Creates a GetTeamMemberResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -56971,6 +46266,8 @@ export const Enterprise = $root.Enterprise = (() => { GetTeamMemberResponse.fromObject = function fromObject(object, long) { if (object instanceof $root.Enterprise.GetTeamMemberResponse) return object; + if (!$util.isObject(object)) + throw TypeError(".Enterprise.GetTeamMemberResponse: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -56981,7 +46278,7 @@ export const Enterprise = $root.Enterprise = (() => { throw TypeError(".Enterprise.GetTeamMemberResponse.enterpriseUser: array expected"); message.enterpriseUser = []; for (let i = 0; i < object.enterpriseUser.length; ++i) { - if (typeof object.enterpriseUser[i] !== "object") + if (!$util.isObject(object.enterpriseUser[i])) throw TypeError(".Enterprise.GetTeamMemberResponse.enterpriseUser: object expected"); message.enterpriseUser[i] = $root.Enterprise.EnterpriseUser.fromObject(object.enterpriseUser[i], long + 1); } @@ -57115,19 +46412,6 @@ export const Enterprise = $root.Enterprise = (() => { return writer; }; - /** - * Encodes the specified EnterpriseUserIds message, length delimited. Does not implicitly {@link Enterprise.EnterpriseUserIds.verify|verify} messages. - * @function encodeDelimited - * @memberof Enterprise.EnterpriseUserIds - * @static - * @param {Enterprise.IEnterpriseUserIds} message EnterpriseUserIds message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - EnterpriseUserIds.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes an EnterpriseUserIds message from the specified reader or buffer. * @function decode @@ -57171,47 +46455,6 @@ export const Enterprise = $root.Enterprise = (() => { return message; }; - /** - * Decodes an EnterpriseUserIds message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Enterprise.EnterpriseUserIds - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Enterprise.EnterpriseUserIds} EnterpriseUserIds - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - EnterpriseUserIds.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an EnterpriseUserIds message. - * @function verify - * @memberof Enterprise.EnterpriseUserIds - * @static - * @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) { - if (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"; - for (let i = 0; i < message.enterpriseUserId.length; ++i) - if (!$util.isInteger(message.enterpriseUserId[i]) && !(message.enterpriseUserId[i] && $util.isInteger(message.enterpriseUserId[i].low) && $util.isInteger(message.enterpriseUserId[i].high))) - return "enterpriseUserId: integer|Long[] expected"; - } - return null; - }; - /** * Creates an EnterpriseUserIds message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -57223,6 +46466,8 @@ export const Enterprise = $root.Enterprise = (() => { EnterpriseUserIds.fromObject = function fromObject(object, long) { if (object instanceof $root.Enterprise.EnterpriseUserIds) return object; + if (!$util.isObject(object)) + throw TypeError(".Enterprise.EnterpriseUserIds: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -57382,19 +46627,6 @@ export const Enterprise = $root.Enterprise = (() => { return writer; }; - /** - * Encodes the specified EnterprisePersonalAccount message, length delimited. Does not implicitly {@link Enterprise.EnterprisePersonalAccount.verify|verify} messages. - * @function encodeDelimited - * @memberof Enterprise.EnterprisePersonalAccount - * @static - * @param {Enterprise.IEnterprisePersonalAccount} message EnterprisePersonalAccount message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - EnterprisePersonalAccount.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes an EnterprisePersonalAccount message from the specified reader or buffer. * @function decode @@ -57435,46 +46667,6 @@ export const Enterprise = $root.Enterprise = (() => { return message; }; - /** - * Decodes an EnterprisePersonalAccount message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Enterprise.EnterprisePersonalAccount - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Enterprise.EnterprisePersonalAccount} EnterprisePersonalAccount - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - EnterprisePersonalAccount.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an EnterprisePersonalAccount message. - * @function verify - * @memberof Enterprise.EnterprisePersonalAccount - * @static - * @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) { - if (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"; - if (message.OBSOLETE_FIELD != null && message.hasOwnProperty("OBSOLETE_FIELD")) - if (!(message.OBSOLETE_FIELD && typeof message.OBSOLETE_FIELD.length === "number" || $util.isString(message.OBSOLETE_FIELD))) - return "OBSOLETE_FIELD: buffer expected"; - return null; - }; - /** * Creates an EnterprisePersonalAccount message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -57486,6 +46678,8 @@ export const Enterprise = $root.Enterprise = (() => { EnterprisePersonalAccount.fromObject = function fromObject(object, long) { if (object instanceof $root.Enterprise.EnterprisePersonalAccount) return object; + if (!$util.isObject(object)) + throw TypeError(".Enterprise.EnterprisePersonalAccount: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -57528,9 +46722,9 @@ export const Enterprise = $root.Enterprise = (() => { object.OBSOLETE_FIELD = $util.newBuffer(object.OBSOLETE_FIELD); } } - if (message.email != null && message.hasOwnProperty("email")) + if (message.email != null && Object.hasOwnProperty.call(message, "email")) object.email = message.email; - if (message.OBSOLETE_FIELD != null && message.hasOwnProperty("OBSOLETE_FIELD")) + if (message.OBSOLETE_FIELD != null && Object.hasOwnProperty.call(message, "OBSOLETE_FIELD")) object.OBSOLETE_FIELD = options.bytes === String ? $util.base64.encode(message.OBSOLETE_FIELD, 0, message.OBSOLETE_FIELD.length) : options.bytes === Array ? Array.prototype.slice.call(message.OBSOLETE_FIELD) : message.OBSOLETE_FIELD; return object; }; @@ -57651,19 +46845,6 @@ export const Enterprise = $root.Enterprise = (() => { return writer; }; - /** - * Encodes the specified EncryptedTeamKeyRequest message, length delimited. Does not implicitly {@link Enterprise.EncryptedTeamKeyRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof Enterprise.EncryptedTeamKeyRequest - * @static - * @param {Enterprise.IEncryptedTeamKeyRequest} message EncryptedTeamKeyRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - EncryptedTeamKeyRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes an EncryptedTeamKeyRequest message from the specified reader or buffer. * @function decode @@ -57708,49 +46889,6 @@ export const Enterprise = $root.Enterprise = (() => { return message; }; - /** - * Decodes an EncryptedTeamKeyRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Enterprise.EncryptedTeamKeyRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Enterprise.EncryptedTeamKeyRequest} EncryptedTeamKeyRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - EncryptedTeamKeyRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an EncryptedTeamKeyRequest message. - * @function verify - * @memberof Enterprise.EncryptedTeamKeyRequest - * @static - * @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) { - if (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"; - if (message.encryptedTeamKey != null && message.hasOwnProperty("encryptedTeamKey")) - if (!(message.encryptedTeamKey && typeof message.encryptedTeamKey.length === "number" || $util.isString(message.encryptedTeamKey))) - return "encryptedTeamKey: buffer expected"; - if (message.force != null && message.hasOwnProperty("force")) - if (typeof message.force !== "boolean") - return "force: boolean expected"; - return null; - }; - /** * Creates an EncryptedTeamKeyRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -57762,6 +46900,8 @@ export const Enterprise = $root.Enterprise = (() => { EncryptedTeamKeyRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.Enterprise.EncryptedTeamKeyRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".Enterprise.EncryptedTeamKeyRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -57816,11 +46956,11 @@ export const Enterprise = $root.Enterprise = (() => { } object.force = false; } - if (message.teamUid != null && message.hasOwnProperty("teamUid")) + if (message.teamUid != null && Object.hasOwnProperty.call(message, "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.encryptedTeamKey != null && message.hasOwnProperty("encryptedTeamKey")) + if (message.encryptedTeamKey != null && Object.hasOwnProperty.call(message, "encryptedTeamKey")) object.encryptedTeamKey = options.bytes === String ? $util.base64.encode(message.encryptedTeamKey, 0, message.encryptedTeamKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedTeamKey) : message.encryptedTeamKey; - if (message.force != null && message.hasOwnProperty("force")) + if (message.force != null && Object.hasOwnProperty.call(message, "force")) object.force = message.force; return object; }; @@ -57930,19 +47070,6 @@ export const Enterprise = $root.Enterprise = (() => { return writer; }; - /** - * Encodes the specified ReEncryptedData message, length delimited. Does not implicitly {@link Enterprise.ReEncryptedData.verify|verify} messages. - * @function encodeDelimited - * @memberof Enterprise.ReEncryptedData - * @static - * @param {Enterprise.IReEncryptedData} message ReEncryptedData message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ReEncryptedData.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a ReEncryptedData message from the specified reader or buffer. * @function decode @@ -57983,46 +47110,6 @@ export const Enterprise = $root.Enterprise = (() => { return message; }; - /** - * Decodes a ReEncryptedData message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Enterprise.ReEncryptedData - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Enterprise.ReEncryptedData} ReEncryptedData - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ReEncryptedData.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a ReEncryptedData message. - * @function verify - * @memberof Enterprise.ReEncryptedData - * @static - * @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) { - if (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"; - if (message.data != null && message.hasOwnProperty("data")) - if (!$util.isString(message.data)) - return "data: string expected"; - return null; - }; - /** * Creates a ReEncryptedData message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -58034,6 +47121,8 @@ export const Enterprise = $root.Enterprise = (() => { ReEncryptedData.fromObject = function fromObject(object, long) { if (object instanceof $root.Enterprise.ReEncryptedData) return object; + if (!$util.isObject(object)) + throw TypeError(".Enterprise.ReEncryptedData: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -58078,14 +47167,14 @@ export const Enterprise = $root.Enterprise = (() => { object.id = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; object.data = ""; } - if (message.id != null && message.hasOwnProperty("id")) + if (message.id != null && Object.hasOwnProperty.call(message, "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") 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; - if (message.data != null && message.hasOwnProperty("data")) + if (message.data != null && Object.hasOwnProperty.call(message, "data")) object.data = message.data; return object; }; @@ -58195,19 +47284,6 @@ export const Enterprise = $root.Enterprise = (() => { return writer; }; - /** - * Encodes the specified ReEncryptedRoleKey message, length delimited. Does not implicitly {@link Enterprise.ReEncryptedRoleKey.verify|verify} messages. - * @function encodeDelimited - * @memberof Enterprise.ReEncryptedRoleKey - * @static - * @param {Enterprise.IReEncryptedRoleKey} message ReEncryptedRoleKey message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ReEncryptedRoleKey.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a ReEncryptedRoleKey message from the specified reader or buffer. * @function decode @@ -58248,46 +47324,6 @@ export const Enterprise = $root.Enterprise = (() => { return message; }; - /** - * Decodes a ReEncryptedRoleKey message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Enterprise.ReEncryptedRoleKey - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Enterprise.ReEncryptedRoleKey} ReEncryptedRoleKey - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ReEncryptedRoleKey.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a ReEncryptedRoleKey message. - * @function verify - * @memberof Enterprise.ReEncryptedRoleKey - * @static - * @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) { - if (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"; - if (message.encryptedRoleKey != null && message.hasOwnProperty("encryptedRoleKey")) - if (!(message.encryptedRoleKey && typeof message.encryptedRoleKey.length === "number" || $util.isString(message.encryptedRoleKey))) - return "encryptedRoleKey: buffer expected"; - return null; - }; - /** * Creates a ReEncryptedRoleKey message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -58299,6 +47335,8 @@ export const Enterprise = $root.Enterprise = (() => { ReEncryptedRoleKey.fromObject = function fromObject(object, long) { if (object instanceof $root.Enterprise.ReEncryptedRoleKey) return object; + if (!$util.isObject(object)) + throw TypeError(".Enterprise.ReEncryptedRoleKey: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -58352,14 +47390,14 @@ export const Enterprise = $root.Enterprise = (() => { object.encryptedRoleKey = $util.newBuffer(object.encryptedRoleKey); } } - if (message.roleId != null && message.hasOwnProperty("roleId")) + if (message.roleId != null && Object.hasOwnProperty.call(message, "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") 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.encryptedRoleKey != null && message.hasOwnProperty("encryptedRoleKey")) + if (message.encryptedRoleKey != null && Object.hasOwnProperty.call(message, "encryptedRoleKey")) object.encryptedRoleKey = options.bytes === String ? $util.base64.encode(message.encryptedRoleKey, 0, message.encryptedRoleKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedRoleKey) : message.encryptedRoleKey; return object; }; @@ -58469,19 +47507,6 @@ export const Enterprise = $root.Enterprise = (() => { return writer; }; - /** - * Encodes the specified ReEncryptedUserDataKey message, length delimited. Does not implicitly {@link Enterprise.ReEncryptedUserDataKey.verify|verify} messages. - * @function encodeDelimited - * @memberof Enterprise.ReEncryptedUserDataKey - * @static - * @param {Enterprise.IReEncryptedUserDataKey} message ReEncryptedUserDataKey message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ReEncryptedUserDataKey.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a ReEncryptedUserDataKey message from the specified reader or buffer. * @function decode @@ -58522,46 +47547,6 @@ export const Enterprise = $root.Enterprise = (() => { return message; }; - /** - * Decodes a ReEncryptedUserDataKey message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Enterprise.ReEncryptedUserDataKey - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Enterprise.ReEncryptedUserDataKey} ReEncryptedUserDataKey - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ReEncryptedUserDataKey.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a ReEncryptedUserDataKey message. - * @function verify - * @memberof Enterprise.ReEncryptedUserDataKey - * @static - * @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) { - if (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"; - if (message.userEncryptedDataKey != null && message.hasOwnProperty("userEncryptedDataKey")) - if (!(message.userEncryptedDataKey && typeof message.userEncryptedDataKey.length === "number" || $util.isString(message.userEncryptedDataKey))) - return "userEncryptedDataKey: buffer expected"; - return null; - }; - /** * Creates a ReEncryptedUserDataKey message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -58573,6 +47558,8 @@ export const Enterprise = $root.Enterprise = (() => { ReEncryptedUserDataKey.fromObject = function fromObject(object, long) { if (object instanceof $root.Enterprise.ReEncryptedUserDataKey) return object; + if (!$util.isObject(object)) + throw TypeError(".Enterprise.ReEncryptedUserDataKey: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -58626,14 +47613,14 @@ export const Enterprise = $root.Enterprise = (() => { object.userEncryptedDataKey = $util.newBuffer(object.userEncryptedDataKey); } } - if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) + if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, "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") 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.userEncryptedDataKey != null && message.hasOwnProperty("userEncryptedDataKey")) + if (message.userEncryptedDataKey != null && Object.hasOwnProperty.call(message, "userEncryptedDataKey")) object.userEncryptedDataKey = options.bytes === String ? $util.base64.encode(message.userEncryptedDataKey, 0, message.userEncryptedDataKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.userEncryptedDataKey) : message.userEncryptedDataKey; return object; }; @@ -58810,19 +47797,6 @@ export const Enterprise = $root.Enterprise = (() => { return writer; }; - /** - * Encodes the specified NodeToManagedCompanyRequest message, length delimited. Does not implicitly {@link Enterprise.NodeToManagedCompanyRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof Enterprise.NodeToManagedCompanyRequest - * @static - * @param {Enterprise.INodeToManagedCompanyRequest} message NodeToManagedCompanyRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - NodeToManagedCompanyRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a NodeToManagedCompanyRequest message from the specified reader or buffer. * @function decode @@ -58895,97 +47869,6 @@ export const Enterprise = $root.Enterprise = (() => { return message; }; - /** - * Decodes a NodeToManagedCompanyRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Enterprise.NodeToManagedCompanyRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Enterprise.NodeToManagedCompanyRequest} NodeToManagedCompanyRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - NodeToManagedCompanyRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a NodeToManagedCompanyRequest message. - * @function verify - * @memberof Enterprise.NodeToManagedCompanyRequest - * @static - * @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) { - if (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"; - if (message.nodes != null && message.hasOwnProperty("nodes")) { - 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); - if (error) - return "nodes." + error; - } - } - if (message.roles != null && message.hasOwnProperty("roles")) { - 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); - if (error) - return "roles." + error; - } - } - 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.ReEncryptedData.verify(message.users[i], long + 1); - if (error) - return "users." + error; - } - } - if (message.roleKeys != null && message.hasOwnProperty("roleKeys")) { - 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); - if (error) - return "roleKeys." + error; - } - } - 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.Enterprise.EncryptedTeamKeyRequest.verify(message.teamKeys[i], long + 1); - if (error) - return "teamKeys." + error; - } - } - if (message.usersDataKeys != null && message.hasOwnProperty("usersDataKeys")) { - 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); - if (error) - return "usersDataKeys." + error; - } - } - return null; - }; - /** * Creates a NodeToManagedCompanyRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -58997,6 +47880,8 @@ export const Enterprise = $root.Enterprise = (() => { NodeToManagedCompanyRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.Enterprise.NodeToManagedCompanyRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".Enterprise.NodeToManagedCompanyRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -59009,7 +47894,7 @@ export const Enterprise = $root.Enterprise = (() => { throw TypeError(".Enterprise.NodeToManagedCompanyRequest.nodes: array expected"); message.nodes = []; for (let i = 0; i < object.nodes.length; ++i) { - if (typeof object.nodes[i] !== "object") + if (!$util.isObject(object.nodes[i])) throw TypeError(".Enterprise.NodeToManagedCompanyRequest.nodes: object expected"); message.nodes[i] = $root.Enterprise.ReEncryptedData.fromObject(object.nodes[i], long + 1); } @@ -59019,7 +47904,7 @@ export const Enterprise = $root.Enterprise = (() => { throw TypeError(".Enterprise.NodeToManagedCompanyRequest.roles: array expected"); message.roles = []; for (let i = 0; i < object.roles.length; ++i) { - if (typeof object.roles[i] !== "object") + if (!$util.isObject(object.roles[i])) throw TypeError(".Enterprise.NodeToManagedCompanyRequest.roles: object expected"); message.roles[i] = $root.Enterprise.ReEncryptedData.fromObject(object.roles[i], long + 1); } @@ -59029,7 +47914,7 @@ export const Enterprise = $root.Enterprise = (() => { throw TypeError(".Enterprise.NodeToManagedCompanyRequest.users: array expected"); message.users = []; for (let i = 0; i < object.users.length; ++i) { - if (typeof object.users[i] !== "object") + if (!$util.isObject(object.users[i])) throw TypeError(".Enterprise.NodeToManagedCompanyRequest.users: object expected"); message.users[i] = $root.Enterprise.ReEncryptedData.fromObject(object.users[i], long + 1); } @@ -59039,7 +47924,7 @@ export const Enterprise = $root.Enterprise = (() => { throw TypeError(".Enterprise.NodeToManagedCompanyRequest.roleKeys: array expected"); message.roleKeys = []; for (let i = 0; i < object.roleKeys.length; ++i) { - if (typeof object.roleKeys[i] !== "object") + if (!$util.isObject(object.roleKeys[i])) throw TypeError(".Enterprise.NodeToManagedCompanyRequest.roleKeys: object expected"); message.roleKeys[i] = $root.Enterprise.ReEncryptedRoleKey.fromObject(object.roleKeys[i], long + 1); } @@ -59049,7 +47934,7 @@ export const Enterprise = $root.Enterprise = (() => { throw TypeError(".Enterprise.NodeToManagedCompanyRequest.teamKeys: array expected"); message.teamKeys = []; for (let i = 0; i < object.teamKeys.length; ++i) { - if (typeof object.teamKeys[i] !== "object") + if (!$util.isObject(object.teamKeys[i])) throw TypeError(".Enterprise.NodeToManagedCompanyRequest.teamKeys: object expected"); message.teamKeys[i] = $root.Enterprise.EncryptedTeamKeyRequest.fromObject(object.teamKeys[i], long + 1); } @@ -59059,7 +47944,7 @@ export const Enterprise = $root.Enterprise = (() => { throw TypeError(".Enterprise.NodeToManagedCompanyRequest.usersDataKeys: array expected"); message.usersDataKeys = []; for (let i = 0; i < object.usersDataKeys.length; ++i) { - if (typeof object.usersDataKeys[i] !== "object") + if (!$util.isObject(object.usersDataKeys[i])) throw TypeError(".Enterprise.NodeToManagedCompanyRequest.usersDataKeys: object expected"); message.usersDataKeys[i] = $root.Enterprise.ReEncryptedUserDataKey.fromObject(object.usersDataKeys[i], long + 1); } @@ -59094,7 +47979,7 @@ export const Enterprise = $root.Enterprise = (() => { } if (options.defaults) object.companyId = 0; - if (message.companyId != null && message.hasOwnProperty("companyId")) + if (message.companyId != null && Object.hasOwnProperty.call(message, "companyId")) object.companyId = message.companyId; if (message.nodes && message.nodes.length) { object.nodes = []; @@ -59234,19 +48119,6 @@ export const Enterprise = $root.Enterprise = (() => { return writer; }; - /** - * Encodes the specified RoleTeam message, length delimited. Does not implicitly {@link Enterprise.RoleTeam.verify|verify} messages. - * @function encodeDelimited - * @memberof Enterprise.RoleTeam - * @static - * @param {Enterprise.IRoleTeam} message RoleTeam message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RoleTeam.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a RoleTeam message from the specified reader or buffer. * @function decode @@ -59287,46 +48159,6 @@ export const Enterprise = $root.Enterprise = (() => { return message; }; - /** - * Decodes a RoleTeam message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Enterprise.RoleTeam - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Enterprise.RoleTeam} RoleTeam - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RoleTeam.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a RoleTeam message. - * @function verify - * @memberof Enterprise.RoleTeam - * @static - * @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) { - if (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"; - if (message.teamUid != null && message.hasOwnProperty("teamUid")) - if (!(message.teamUid && typeof message.teamUid.length === "number" || $util.isString(message.teamUid))) - return "teamUid: buffer expected"; - return null; - }; - /** * Creates a RoleTeam message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -59338,6 +48170,8 @@ export const Enterprise = $root.Enterprise = (() => { RoleTeam.fromObject = function fromObject(object, long) { if (object instanceof $root.Enterprise.RoleTeam) return object; + if (!$util.isObject(object)) + throw TypeError(".Enterprise.RoleTeam: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -59391,14 +48225,14 @@ export const Enterprise = $root.Enterprise = (() => { object.teamUid = $util.newBuffer(object.teamUid); } } - if (message.roleId != null && message.hasOwnProperty("roleId")) + if (message.roleId != null && Object.hasOwnProperty.call(message, "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") 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.teamUid != null && message.hasOwnProperty("teamUid")) + if (message.teamUid != null && Object.hasOwnProperty.call(message, "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; return object; }; @@ -59499,19 +48333,6 @@ export const Enterprise = $root.Enterprise = (() => { return writer; }; - /** - * Encodes the specified RoleTeams message, length delimited. Does not implicitly {@link Enterprise.RoleTeams.verify|verify} messages. - * @function encodeDelimited - * @memberof Enterprise.RoleTeams - * @static - * @param {Enterprise.IRoleTeams} message RoleTeams message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RoleTeams.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a RoleTeams message from the specified reader or buffer. * @function decode @@ -59550,49 +48371,6 @@ export const Enterprise = $root.Enterprise = (() => { return message; }; - /** - * Decodes a RoleTeams message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Enterprise.RoleTeams - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Enterprise.RoleTeams} RoleTeams - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RoleTeams.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a RoleTeams message. - * @function verify - * @memberof Enterprise.RoleTeams - * @static - * @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) { - if (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); - if (error) - return "roleTeam." + error; - } - } - return null; - }; - /** * Creates a RoleTeams message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -59604,6 +48382,8 @@ export const Enterprise = $root.Enterprise = (() => { RoleTeams.fromObject = function fromObject(object, long) { if (object instanceof $root.Enterprise.RoleTeams) return object; + if (!$util.isObject(object)) + throw TypeError(".Enterprise.RoleTeams: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -59614,7 +48394,7 @@ export const Enterprise = $root.Enterprise = (() => { throw TypeError(".Enterprise.RoleTeams.roleTeam: array expected"); message.roleTeam = []; for (let i = 0; i < object.roleTeam.length; ++i) { - if (typeof object.roleTeam[i] !== "object") + if (!$util.isObject(object.roleTeam[i])) throw TypeError(".Enterprise.RoleTeams.roleTeam: object expected"); message.roleTeam[i] = $root.Enterprise.RoleTeam.fromObject(object.roleTeam[i], long + 1); } @@ -59756,19 +48536,6 @@ export const Enterprise = $root.Enterprise = (() => { return writer; }; - /** - * Encodes the specified TeamsByRole message, length delimited. Does not implicitly {@link Enterprise.TeamsByRole.verify|verify} messages. - * @function encodeDelimited - * @memberof Enterprise.TeamsByRole - * @static - * @param {Enterprise.ITeamsByRole} message TeamsByRole message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TeamsByRole.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a TeamsByRole message from the specified reader or buffer. * @function decode @@ -59811,50 +48578,6 @@ export const Enterprise = $root.Enterprise = (() => { return message; }; - /** - * Decodes a TeamsByRole message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Enterprise.TeamsByRole - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Enterprise.TeamsByRole} TeamsByRole - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TeamsByRole.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a TeamsByRole message. - * @function verify - * @memberof Enterprise.TeamsByRole - * @static - * @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) { - if (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"; - if (message.teamUid != null && message.hasOwnProperty("teamUid")) { - if (!Array.isArray(message.teamUid)) - return "teamUid: array expected"; - for (let i = 0; i < message.teamUid.length; ++i) - if (!(message.teamUid[i] && typeof message.teamUid[i].length === "number" || $util.isString(message.teamUid[i]))) - return "teamUid: buffer[] expected"; - } - return null; - }; - /** * Creates a TeamsByRole message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -59866,6 +48589,8 @@ export const Enterprise = $root.Enterprise = (() => { TeamsByRole.fromObject = function fromObject(object, long) { if (object instanceof $root.Enterprise.TeamsByRole) return object; + if (!$util.isObject(object)) + throw TypeError(".Enterprise.TeamsByRole: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -59918,7 +48643,7 @@ export const Enterprise = $root.Enterprise = (() => { object.roleId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; } else object.roleId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; - if (message.roleId != null && message.hasOwnProperty("roleId")) + if (message.roleId != null && Object.hasOwnProperty.call(message, "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") @@ -60043,19 +48768,6 @@ export const Enterprise = $root.Enterprise = (() => { return writer; }; - /** - * Encodes the specified ManagedNodesByRole message, length delimited. Does not implicitly {@link Enterprise.ManagedNodesByRole.verify|verify} messages. - * @function encodeDelimited - * @memberof Enterprise.ManagedNodesByRole - * @static - * @param {Enterprise.IManagedNodesByRole} message ManagedNodesByRole message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ManagedNodesByRole.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a ManagedNodesByRole message from the specified reader or buffer. * @function decode @@ -60103,50 +48815,6 @@ export const Enterprise = $root.Enterprise = (() => { return message; }; - /** - * Decodes a ManagedNodesByRole message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Enterprise.ManagedNodesByRole - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Enterprise.ManagedNodesByRole} ManagedNodesByRole - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ManagedNodesByRole.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a ManagedNodesByRole message. - * @function verify - * @memberof Enterprise.ManagedNodesByRole - * @static - * @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) { - if (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"; - if (message.managedNodeId != null && message.hasOwnProperty("managedNodeId")) { - if (!Array.isArray(message.managedNodeId)) - return "managedNodeId: array expected"; - for (let i = 0; i < message.managedNodeId.length; ++i) - if (!$util.isInteger(message.managedNodeId[i]) && !(message.managedNodeId[i] && $util.isInteger(message.managedNodeId[i].low) && $util.isInteger(message.managedNodeId[i].high))) - return "managedNodeId: integer|Long[] expected"; - } - return null; - }; - /** * Creates a ManagedNodesByRole message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -60158,6 +48826,8 @@ export const Enterprise = $root.Enterprise = (() => { ManagedNodesByRole.fromObject = function fromObject(object, long) { if (object instanceof $root.Enterprise.ManagedNodesByRole) return object; + if (!$util.isObject(object)) + throw TypeError(".Enterprise.ManagedNodesByRole: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -60214,7 +48884,7 @@ export const Enterprise = $root.Enterprise = (() => { object.roleId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; } else object.roleId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; - if (message.roleId != null && message.hasOwnProperty("roleId")) + if (message.roleId != null && Object.hasOwnProperty.call(message, "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") @@ -60361,19 +49031,6 @@ export const Enterprise = $root.Enterprise = (() => { return writer; }; - /** - * Encodes the specified RoleUserAddKeys message, length delimited. Does not implicitly {@link Enterprise.RoleUserAddKeys.verify|verify} messages. - * @function encodeDelimited - * @memberof Enterprise.RoleUserAddKeys - * @static - * @param {Enterprise.IRoleUserAddKeys} message RoleUserAddKeys message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RoleUserAddKeys.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a RoleUserAddKeys message from the specified reader or buffer. * @function decode @@ -60422,54 +49079,6 @@ export const Enterprise = $root.Enterprise = (() => { return message; }; - /** - * Decodes a RoleUserAddKeys message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Enterprise.RoleUserAddKeys - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Enterprise.RoleUserAddKeys} RoleUserAddKeys - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RoleUserAddKeys.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a RoleUserAddKeys message. - * @function verify - * @memberof Enterprise.RoleUserAddKeys - * @static - * @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) { - if (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"; - if (message.treeKey != null && message.hasOwnProperty("treeKey")) - if (!$util.isString(message.treeKey)) - return "treeKey: string expected"; - if (message.roleAdminKey != null && message.hasOwnProperty("roleAdminKey")) - if (!$util.isString(message.roleAdminKey)) - return "roleAdminKey: string expected"; - if (message.typedTreeKey != null && message.hasOwnProperty("typedTreeKey")) { - let error = $root.Enterprise.TypedKey.verify(message.typedTreeKey, long + 1); - if (error) - return "typedTreeKey." + error; - } - return null; - }; - /** * Creates a RoleUserAddKeys message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -60481,6 +49090,8 @@ export const Enterprise = $root.Enterprise = (() => { RoleUserAddKeys.fromObject = function fromObject(object, long) { if (object instanceof $root.Enterprise.RoleUserAddKeys) return object; + if (!$util.isObject(object)) + throw TypeError(".Enterprise.RoleUserAddKeys: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -60500,7 +49111,7 @@ export const Enterprise = $root.Enterprise = (() => { if (object.roleAdminKey != null) message.roleAdminKey = String(object.roleAdminKey); if (object.typedTreeKey != null) { - if (typeof object.typedTreeKey !== "object") + if (!$util.isObject(object.typedTreeKey)) throw TypeError(".Enterprise.RoleUserAddKeys.typedTreeKey: object expected"); message.typedTreeKey = $root.Enterprise.TypedKey.fromObject(object.typedTreeKey, long + 1); } @@ -60534,18 +49145,18 @@ export const Enterprise = $root.Enterprise = (() => { object.roleAdminKey = ""; object.typedTreeKey = null; } - if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) + if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, "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") 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.treeKey != null && message.hasOwnProperty("treeKey")) + if (message.treeKey != null && Object.hasOwnProperty.call(message, "treeKey")) object.treeKey = message.treeKey; - if (message.roleAdminKey != null && message.hasOwnProperty("roleAdminKey")) + if (message.roleAdminKey != null && Object.hasOwnProperty.call(message, "roleAdminKey")) object.roleAdminKey = message.roleAdminKey; - if (message.typedTreeKey != null && message.hasOwnProperty("typedTreeKey")) + if (message.typedTreeKey != null && Object.hasOwnProperty.call(message, "typedTreeKey")) object.typedTreeKey = $root.Enterprise.TypedKey.toObject(message.typedTreeKey, options, q + 1); return object; }; @@ -60657,19 +49268,6 @@ export const Enterprise = $root.Enterprise = (() => { return writer; }; - /** - * Encodes the specified RoleUserAdd message, length delimited. Does not implicitly {@link Enterprise.RoleUserAdd.verify|verify} messages. - * @function encodeDelimited - * @memberof Enterprise.RoleUserAdd - * @static - * @param {Enterprise.IRoleUserAdd} message RoleUserAdd message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RoleUserAdd.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a RoleUserAdd message from the specified reader or buffer. * @function decode @@ -60712,52 +49310,6 @@ export const Enterprise = $root.Enterprise = (() => { return message; }; - /** - * Decodes a RoleUserAdd message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Enterprise.RoleUserAdd - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Enterprise.RoleUserAdd} RoleUserAdd - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RoleUserAdd.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a RoleUserAdd message. - * @function verify - * @memberof Enterprise.RoleUserAdd - * @static - * @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) { - if (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"; - if (message.roleUserAddKeys != null && message.hasOwnProperty("roleUserAddKeys")) { - 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); - if (error) - return "roleUserAddKeys." + error; - } - } - return null; - }; - /** * Creates a RoleUserAdd message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -60769,6 +49321,8 @@ export const Enterprise = $root.Enterprise = (() => { RoleUserAdd.fromObject = function fromObject(object, long) { if (object instanceof $root.Enterprise.RoleUserAdd) return object; + if (!$util.isObject(object)) + throw TypeError(".Enterprise.RoleUserAdd: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -60788,7 +49342,7 @@ export const Enterprise = $root.Enterprise = (() => { throw TypeError(".Enterprise.RoleUserAdd.roleUserAddKeys: array expected"); message.roleUserAddKeys = []; for (let i = 0; i < object.roleUserAddKeys.length; ++i) { - if (typeof object.roleUserAddKeys[i] !== "object") + if (!$util.isObject(object.roleUserAddKeys[i])) throw TypeError(".Enterprise.RoleUserAdd.roleUserAddKeys: object expected"); message.roleUserAddKeys[i] = $root.Enterprise.RoleUserAddKeys.fromObject(object.roleUserAddKeys[i], long + 1); } @@ -60821,7 +49375,7 @@ export const Enterprise = $root.Enterprise = (() => { object.roleId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; } else object.roleId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; - if (message.roleId != null && message.hasOwnProperty("roleId")) + if (message.roleId != null && Object.hasOwnProperty.call(message, "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") @@ -60932,19 +49486,6 @@ export const Enterprise = $root.Enterprise = (() => { return writer; }; - /** - * Encodes the specified RoleUsersAddRequest message, length delimited. Does not implicitly {@link Enterprise.RoleUsersAddRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof Enterprise.RoleUsersAddRequest - * @static - * @param {Enterprise.IRoleUsersAddRequest} message RoleUsersAddRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RoleUsersAddRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a RoleUsersAddRequest message from the specified reader or buffer. * @function decode @@ -60983,49 +49524,6 @@ export const Enterprise = $root.Enterprise = (() => { return message; }; - /** - * Decodes a RoleUsersAddRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Enterprise.RoleUsersAddRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Enterprise.RoleUsersAddRequest} RoleUsersAddRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RoleUsersAddRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a RoleUsersAddRequest message. - * @function verify - * @memberof Enterprise.RoleUsersAddRequest - * @static - * @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) { - if (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); - if (error) - return "roleUserAdds." + error; - } - } - return null; - }; - /** * Creates a RoleUsersAddRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -61037,6 +49535,8 @@ export const Enterprise = $root.Enterprise = (() => { RoleUsersAddRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.Enterprise.RoleUsersAddRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".Enterprise.RoleUsersAddRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -61047,7 +49547,7 @@ export const Enterprise = $root.Enterprise = (() => { throw TypeError(".Enterprise.RoleUsersAddRequest.roleUserAdds: array expected"); message.roleUserAdds = []; for (let i = 0; i < object.roleUserAdds.length; ++i) { - if (typeof object.roleUserAdds[i] !== "object") + if (!$util.isObject(object.roleUserAdds[i])) throw TypeError(".Enterprise.RoleUsersAddRequest.roleUserAdds: object expected"); message.roleUserAdds[i] = $root.Enterprise.RoleUserAdd.fromObject(object.roleUserAdds[i], long + 1); } @@ -61239,19 +49739,6 @@ export const Enterprise = $root.Enterprise = (() => { return writer; }; - /** - * Encodes the specified RoleUserAddResult message, length delimited. Does not implicitly {@link Enterprise.RoleUserAddResult.verify|verify} messages. - * @function encodeDelimited - * @memberof Enterprise.RoleUserAddResult - * @static - * @param {Enterprise.IRoleUserAddResult} message RoleUserAddResult message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RoleUserAddResult.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a RoleUserAddResult message from the specified reader or buffer. * @function decode @@ -61300,65 +49787,6 @@ export const Enterprise = $root.Enterprise = (() => { return message; }; - /** - * Decodes a RoleUserAddResult message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Enterprise.RoleUserAddResult - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Enterprise.RoleUserAddResult} RoleUserAddResult - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RoleUserAddResult.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a RoleUserAddResult message. - * @function verify - * @memberof Enterprise.RoleUserAddResult - * @static - * @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) { - if (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"; - 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"; - if (message.status != null && message.hasOwnProperty("status")) - switch (message.status) { - default: - return "status: 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.message != null && message.hasOwnProperty("message")) - if (!$util.isString(message.message)) - return "message: string expected"; - return null; - }; - /** * Creates a RoleUserAddResult message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -61370,6 +49798,8 @@ export const Enterprise = $root.Enterprise = (() => { RoleUserAddResult.fromObject = function fromObject(object, long) { if (object instanceof $root.Enterprise.RoleUserAddResult) return object; + if (!$util.isObject(object)) + throw TypeError(".Enterprise.RoleUserAddResult: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -61477,23 +49907,23 @@ export const Enterprise = $root.Enterprise = (() => { object.status = options.enums === String ? "ROLE_EXISTS" : 0; object.message = ""; } - if (message.roleId != null && message.hasOwnProperty("roleId")) + if (message.roleId != null && Object.hasOwnProperty.call(message, "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") 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 (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, "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") 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.status != null && message.hasOwnProperty("status")) + if (message.status != null && Object.hasOwnProperty.call(message, "status")) object.status = options.enums === String ? $root.Enterprise.RoleUserModifyStatus[message.status] === undefined ? message.status : $root.Enterprise.RoleUserModifyStatus[message.status] : message.status; - if (message.message != null && message.hasOwnProperty("message")) + if (message.message != null && Object.hasOwnProperty.call(message, "message")) object.message = message.message; return object; }; @@ -61594,19 +50024,6 @@ export const Enterprise = $root.Enterprise = (() => { return writer; }; - /** - * Encodes the specified RoleUsersAddResponse message, length delimited. Does not implicitly {@link Enterprise.RoleUsersAddResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof Enterprise.RoleUsersAddResponse - * @static - * @param {Enterprise.IRoleUsersAddResponse} message RoleUsersAddResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RoleUsersAddResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a RoleUsersAddResponse message from the specified reader or buffer. * @function decode @@ -61645,49 +50062,6 @@ export const Enterprise = $root.Enterprise = (() => { return message; }; - /** - * Decodes a RoleUsersAddResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Enterprise.RoleUsersAddResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Enterprise.RoleUsersAddResponse} RoleUsersAddResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RoleUsersAddResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a RoleUsersAddResponse message. - * @function verify - * @memberof Enterprise.RoleUsersAddResponse - * @static - * @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) { - if (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); - if (error) - return "results." + error; - } - } - return null; - }; - /** * Creates a RoleUsersAddResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -61699,6 +50073,8 @@ export const Enterprise = $root.Enterprise = (() => { RoleUsersAddResponse.fromObject = function fromObject(object, long) { if (object instanceof $root.Enterprise.RoleUsersAddResponse) return object; + if (!$util.isObject(object)) + throw TypeError(".Enterprise.RoleUsersAddResponse: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -61709,7 +50085,7 @@ export const Enterprise = $root.Enterprise = (() => { throw TypeError(".Enterprise.RoleUsersAddResponse.results: array expected"); message.results = []; for (let i = 0; i < object.results.length; ++i) { - if (typeof object.results[i] !== "object") + if (!$util.isObject(object.results[i])) throw TypeError(".Enterprise.RoleUsersAddResponse.results: object expected"); message.results[i] = $root.Enterprise.RoleUserAddResult.fromObject(object.results[i], long + 1); } @@ -61854,19 +50230,6 @@ export const Enterprise = $root.Enterprise = (() => { return writer; }; - /** - * Encodes the specified RoleUserRemove message, length delimited. Does not implicitly {@link Enterprise.RoleUserRemove.verify|verify} messages. - * @function encodeDelimited - * @memberof Enterprise.RoleUserRemove - * @static - * @param {Enterprise.IRoleUserRemove} message RoleUserRemove message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RoleUserRemove.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a RoleUserRemove message from the specified reader or buffer. * @function decode @@ -61914,50 +50277,6 @@ export const Enterprise = $root.Enterprise = (() => { return message; }; - /** - * Decodes a RoleUserRemove message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Enterprise.RoleUserRemove - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Enterprise.RoleUserRemove} RoleUserRemove - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RoleUserRemove.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a RoleUserRemove message. - * @function verify - * @memberof Enterprise.RoleUserRemove - * @static - * @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) { - if (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"; - if (message.enterpriseUserIds != null && message.hasOwnProperty("enterpriseUserIds")) { - if (!Array.isArray(message.enterpriseUserIds)) - return "enterpriseUserIds: array expected"; - for (let i = 0; i < message.enterpriseUserIds.length; ++i) - if (!$util.isInteger(message.enterpriseUserIds[i]) && !(message.enterpriseUserIds[i] && $util.isInteger(message.enterpriseUserIds[i].low) && $util.isInteger(message.enterpriseUserIds[i].high))) - return "enterpriseUserIds: integer|Long[] expected"; - } - return null; - }; - /** * Creates a RoleUserRemove message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -61969,6 +50288,8 @@ export const Enterprise = $root.Enterprise = (() => { RoleUserRemove.fromObject = function fromObject(object, long) { if (object instanceof $root.Enterprise.RoleUserRemove) return object; + if (!$util.isObject(object)) + throw TypeError(".Enterprise.RoleUserRemove: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -62025,7 +50346,7 @@ export const Enterprise = $root.Enterprise = (() => { object.roleId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; } else object.roleId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; - if (message.roleId != null && message.hasOwnProperty("roleId")) + if (message.roleId != null && Object.hasOwnProperty.call(message, "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") @@ -62141,19 +50462,6 @@ export const Enterprise = $root.Enterprise = (() => { return writer; }; - /** - * Encodes the specified RoleUsersRemoveRequest message, length delimited. Does not implicitly {@link Enterprise.RoleUsersRemoveRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof Enterprise.RoleUsersRemoveRequest - * @static - * @param {Enterprise.IRoleUsersRemoveRequest} message RoleUsersRemoveRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RoleUsersRemoveRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a RoleUsersRemoveRequest message from the specified reader or buffer. * @function decode @@ -62192,49 +50500,6 @@ export const Enterprise = $root.Enterprise = (() => { return message; }; - /** - * Decodes a RoleUsersRemoveRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Enterprise.RoleUsersRemoveRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Enterprise.RoleUsersRemoveRequest} RoleUsersRemoveRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RoleUsersRemoveRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a RoleUsersRemoveRequest message. - * @function verify - * @memberof Enterprise.RoleUsersRemoveRequest - * @static - * @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) { - if (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); - if (error) - return "roleUserRemoves." + error; - } - } - return null; - }; - /** * Creates a RoleUsersRemoveRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -62246,6 +50511,8 @@ export const Enterprise = $root.Enterprise = (() => { RoleUsersRemoveRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.Enterprise.RoleUsersRemoveRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".Enterprise.RoleUsersRemoveRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -62256,7 +50523,7 @@ export const Enterprise = $root.Enterprise = (() => { throw TypeError(".Enterprise.RoleUsersRemoveRequest.roleUserRemoves: array expected"); message.roleUserRemoves = []; for (let i = 0; i < object.roleUserRemoves.length; ++i) { - if (typeof object.roleUserRemoves[i] !== "object") + if (!$util.isObject(object.roleUserRemoves[i])) throw TypeError(".Enterprise.RoleUsersRemoveRequest.roleUserRemoves: object expected"); message.roleUserRemoves[i] = $root.Enterprise.RoleUserRemove.fromObject(object.roleUserRemoves[i], long + 1); } @@ -62418,19 +50685,6 @@ export const Enterprise = $root.Enterprise = (() => { return writer; }; - /** - * Encodes the specified RoleUserRemoveResult message, length delimited. Does not implicitly {@link Enterprise.RoleUserRemoveResult.verify|verify} messages. - * @function encodeDelimited - * @memberof Enterprise.RoleUserRemoveResult - * @static - * @param {Enterprise.IRoleUserRemoveResult} message RoleUserRemoveResult message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RoleUserRemoveResult.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a RoleUserRemoveResult message from the specified reader or buffer. * @function decode @@ -62479,65 +50733,6 @@ export const Enterprise = $root.Enterprise = (() => { return message; }; - /** - * Decodes a RoleUserRemoveResult message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Enterprise.RoleUserRemoveResult - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Enterprise.RoleUserRemoveResult} RoleUserRemoveResult - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RoleUserRemoveResult.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a RoleUserRemoveResult message. - * @function verify - * @memberof Enterprise.RoleUserRemoveResult - * @static - * @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) { - if (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"; - 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"; - if (message.status != null && message.hasOwnProperty("status")) - switch (message.status) { - default: - return "status: 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.message != null && message.hasOwnProperty("message")) - if (!$util.isString(message.message)) - return "message: string expected"; - return null; - }; - /** * Creates a RoleUserRemoveResult message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -62549,6 +50744,8 @@ export const Enterprise = $root.Enterprise = (() => { RoleUserRemoveResult.fromObject = function fromObject(object, long) { if (object instanceof $root.Enterprise.RoleUserRemoveResult) return object; + if (!$util.isObject(object)) + throw TypeError(".Enterprise.RoleUserRemoveResult: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -62656,23 +50853,23 @@ export const Enterprise = $root.Enterprise = (() => { object.status = options.enums === String ? "ROLE_EXISTS" : 0; object.message = ""; } - if (message.roleId != null && message.hasOwnProperty("roleId")) + if (message.roleId != null && Object.hasOwnProperty.call(message, "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") 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 (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, "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") 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.status != null && message.hasOwnProperty("status")) + if (message.status != null && Object.hasOwnProperty.call(message, "status")) object.status = options.enums === String ? $root.Enterprise.RoleUserModifyStatus[message.status] === undefined ? message.status : $root.Enterprise.RoleUserModifyStatus[message.status] : message.status; - if (message.message != null && message.hasOwnProperty("message")) + if (message.message != null && Object.hasOwnProperty.call(message, "message")) object.message = message.message; return object; }; @@ -62773,19 +50970,6 @@ export const Enterprise = $root.Enterprise = (() => { return writer; }; - /** - * Encodes the specified RoleUsersRemoveResponse message, length delimited. Does not implicitly {@link Enterprise.RoleUsersRemoveResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof Enterprise.RoleUsersRemoveResponse - * @static - * @param {Enterprise.IRoleUsersRemoveResponse} message RoleUsersRemoveResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RoleUsersRemoveResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a RoleUsersRemoveResponse message from the specified reader or buffer. * @function decode @@ -62824,49 +51008,6 @@ export const Enterprise = $root.Enterprise = (() => { return message; }; - /** - * Decodes a RoleUsersRemoveResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Enterprise.RoleUsersRemoveResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Enterprise.RoleUsersRemoveResponse} RoleUsersRemoveResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RoleUsersRemoveResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a RoleUsersRemoveResponse message. - * @function verify - * @memberof Enterprise.RoleUsersRemoveResponse - * @static - * @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) { - if (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); - if (error) - return "results." + error; - } - } - return null; - }; - /** * Creates a RoleUsersRemoveResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -62878,6 +51019,8 @@ export const Enterprise = $root.Enterprise = (() => { RoleUsersRemoveResponse.fromObject = function fromObject(object, long) { if (object instanceof $root.Enterprise.RoleUsersRemoveResponse) return object; + if (!$util.isObject(object)) + throw TypeError(".Enterprise.RoleUsersRemoveResponse: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -62888,7 +51031,7 @@ export const Enterprise = $root.Enterprise = (() => { throw TypeError(".Enterprise.RoleUsersRemoveResponse.results: array expected"); message.results = []; for (let i = 0; i < object.results.length; ++i) { - if (typeof object.results[i] !== "object") + if (!$util.isObject(object.results[i])) throw TypeError(".Enterprise.RoleUsersRemoveResponse.results: object expected"); message.results[i] = $root.Enterprise.RoleUserRemoveResult.fromObject(object.results[i], long + 1); } @@ -63196,19 +51339,6 @@ export const Enterprise = $root.Enterprise = (() => { return writer; }; - /** - * Encodes the specified EnterpriseRegistration message, length delimited. Does not implicitly {@link Enterprise.EnterpriseRegistration.verify|verify} messages. - * @function encodeDelimited - * @memberof Enterprise.EnterpriseRegistration - * @static - * @param {Enterprise.IEnterpriseRegistration} message EnterpriseRegistration message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - EnterpriseRegistration.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes an EnterpriseRegistration message from the specified reader or buffer. * @function decode @@ -63305,97 +51435,6 @@ export const Enterprise = $root.Enterprise = (() => { return message; }; - /** - * Decodes an EnterpriseRegistration message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Enterprise.EnterpriseRegistration - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Enterprise.EnterpriseRegistration} EnterpriseRegistration - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - EnterpriseRegistration.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an EnterpriseRegistration message. - * @function verify - * @memberof Enterprise.EnterpriseRegistration - * @static - * @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) { - if (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"; - if (message.enterpriseName != null && message.hasOwnProperty("enterpriseName")) - if (!$util.isString(message.enterpriseName)) - return "enterpriseName: string expected"; - if (message.rootNodeData != null && message.hasOwnProperty("rootNodeData")) - if (!(message.rootNodeData && typeof message.rootNodeData.length === "number" || $util.isString(message.rootNodeData))) - return "rootNodeData: buffer expected"; - if (message.adminUserData != null && message.hasOwnProperty("adminUserData")) - if (!(message.adminUserData && typeof message.adminUserData.length === "number" || $util.isString(message.adminUserData))) - return "adminUserData: buffer expected"; - if (message.adminName != null && message.hasOwnProperty("adminName")) - if (!$util.isString(message.adminName)) - return "adminName: string expected"; - if (message.roleData != null && message.hasOwnProperty("roleData")) - 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); - if (error) - return "rsaKeyPair." + error; - } - if (message.numberSeats != null && message.hasOwnProperty("numberSeats")) - if (!$util.isInteger(message.numberSeats)) - return "numberSeats: integer expected"; - if (message.enterpriseType != null && message.hasOwnProperty("enterpriseType")) - switch (message.enterpriseType) { - default: - return "enterpriseType: enum value expected"; - case 0: - case 1: - break; - } - if (message.rolePublicKey != null && message.hasOwnProperty("rolePublicKey")) - if (!(message.rolePublicKey && typeof message.rolePublicKey.length === "number" || $util.isString(message.rolePublicKey))) - return "rolePublicKey: buffer expected"; - if (message.rolePrivateKeyEncryptedWithRoleKey != null && message.hasOwnProperty("rolePrivateKeyEncryptedWithRoleKey")) - if (!(message.rolePrivateKeyEncryptedWithRoleKey && typeof message.rolePrivateKeyEncryptedWithRoleKey.length === "number" || $util.isString(message.rolePrivateKeyEncryptedWithRoleKey))) - return "rolePrivateKeyEncryptedWithRoleKey: buffer expected"; - if (message.roleKeyEncryptedWithTreeKey != null && message.hasOwnProperty("roleKeyEncryptedWithTreeKey")) - 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); - if (error) - return "eccKeyPair." + error; - } - if (message.allUsersRoleData != null && message.hasOwnProperty("allUsersRoleData")) - if (!(message.allUsersRoleData && typeof message.allUsersRoleData.length === "number" || $util.isString(message.allUsersRoleData))) - return "allUsersRoleData: buffer expected"; - if (message.roleKeyEncryptedWithUserPublicKey != null && message.hasOwnProperty("roleKeyEncryptedWithUserPublicKey")) - if (!(message.roleKeyEncryptedWithUserPublicKey && typeof message.roleKeyEncryptedWithUserPublicKey.length === "number" || $util.isString(message.roleKeyEncryptedWithUserPublicKey))) - return "roleKeyEncryptedWithUserPublicKey: buffer expected"; - if (message.approverRoleData != null && message.hasOwnProperty("approverRoleData")) - if (!(message.approverRoleData && typeof message.approverRoleData.length === "number" || $util.isString(message.approverRoleData))) - return "approverRoleData: buffer expected"; - return null; - }; - /** * Creates an EnterpriseRegistration message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -63407,6 +51446,8 @@ export const Enterprise = $root.Enterprise = (() => { EnterpriseRegistration.fromObject = function fromObject(object, long) { if (object instanceof $root.Enterprise.EnterpriseRegistration) return object; + if (!$util.isObject(object)) + throw TypeError(".Enterprise.EnterpriseRegistration: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -63437,7 +51478,7 @@ export const Enterprise = $root.Enterprise = (() => { else if (object.roleData.length >= 0) message.roleData = object.roleData; if (object.rsaKeyPair != null) { - if (typeof object.rsaKeyPair !== "object") + if (!$util.isObject(object.rsaKeyPair)) throw TypeError(".Enterprise.EnterpriseRegistration.rsaKeyPair: object expected"); message.rsaKeyPair = $root.Enterprise.EnterpriseKeyPairRequest.fromObject(object.rsaKeyPair, long + 1); } @@ -63475,7 +51516,7 @@ export const Enterprise = $root.Enterprise = (() => { else if (object.roleKeyEncryptedWithTreeKey.length >= 0) message.roleKeyEncryptedWithTreeKey = object.roleKeyEncryptedWithTreeKey; if (object.eccKeyPair != null) { - if (typeof object.eccKeyPair !== "object") + if (!$util.isObject(object.eccKeyPair)) throw TypeError(".Enterprise.EnterpriseRegistration.eccKeyPair: object expected"); message.eccKeyPair = $root.Enterprise.EnterpriseKeyPairRequest.fromObject(object.eccKeyPair, long + 1); } @@ -63592,37 +51633,37 @@ export const Enterprise = $root.Enterprise = (() => { object.approverRoleData = $util.newBuffer(object.approverRoleData); } } - if (message.encryptedTreeKey != null && message.hasOwnProperty("encryptedTreeKey")) + if (message.encryptedTreeKey != null && Object.hasOwnProperty.call(message, "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; - if (message.enterpriseName != null && message.hasOwnProperty("enterpriseName")) + if (message.enterpriseName != null && Object.hasOwnProperty.call(message, "enterpriseName")) object.enterpriseName = message.enterpriseName; - if (message.rootNodeData != null && message.hasOwnProperty("rootNodeData")) + if (message.rootNodeData != null && Object.hasOwnProperty.call(message, "rootNodeData")) object.rootNodeData = options.bytes === String ? $util.base64.encode(message.rootNodeData, 0, message.rootNodeData.length) : options.bytes === Array ? Array.prototype.slice.call(message.rootNodeData) : message.rootNodeData; - if (message.adminUserData != null && message.hasOwnProperty("adminUserData")) + if (message.adminUserData != null && Object.hasOwnProperty.call(message, "adminUserData")) object.adminUserData = options.bytes === String ? $util.base64.encode(message.adminUserData, 0, message.adminUserData.length) : options.bytes === Array ? Array.prototype.slice.call(message.adminUserData) : message.adminUserData; - if (message.adminName != null && message.hasOwnProperty("adminName")) + if (message.adminName != null && Object.hasOwnProperty.call(message, "adminName")) object.adminName = message.adminName; - if (message.roleData != null && message.hasOwnProperty("roleData")) + if (message.roleData != null && Object.hasOwnProperty.call(message, "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")) + if (message.rsaKeyPair != null && Object.hasOwnProperty.call(message, "rsaKeyPair")) object.rsaKeyPair = $root.Enterprise.EnterpriseKeyPairRequest.toObject(message.rsaKeyPair, options, q + 1); - if (message.numberSeats != null && message.hasOwnProperty("numberSeats")) + if (message.numberSeats != null && Object.hasOwnProperty.call(message, "numberSeats")) object.numberSeats = message.numberSeats; - if (message.enterpriseType != null && message.hasOwnProperty("enterpriseType")) + if (message.enterpriseType != null && Object.hasOwnProperty.call(message, "enterpriseType")) object.enterpriseType = options.enums === String ? $root.Enterprise.EnterpriseType[message.enterpriseType] === undefined ? message.enterpriseType : $root.Enterprise.EnterpriseType[message.enterpriseType] : message.enterpriseType; - if (message.rolePublicKey != null && message.hasOwnProperty("rolePublicKey")) + if (message.rolePublicKey != null && Object.hasOwnProperty.call(message, "rolePublicKey")) object.rolePublicKey = options.bytes === String ? $util.base64.encode(message.rolePublicKey, 0, message.rolePublicKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.rolePublicKey) : message.rolePublicKey; - if (message.rolePrivateKeyEncryptedWithRoleKey != null && message.hasOwnProperty("rolePrivateKeyEncryptedWithRoleKey")) + if (message.rolePrivateKeyEncryptedWithRoleKey != null && Object.hasOwnProperty.call(message, "rolePrivateKeyEncryptedWithRoleKey")) object.rolePrivateKeyEncryptedWithRoleKey = options.bytes === String ? $util.base64.encode(message.rolePrivateKeyEncryptedWithRoleKey, 0, message.rolePrivateKeyEncryptedWithRoleKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.rolePrivateKeyEncryptedWithRoleKey) : message.rolePrivateKeyEncryptedWithRoleKey; - if (message.roleKeyEncryptedWithTreeKey != null && message.hasOwnProperty("roleKeyEncryptedWithTreeKey")) + if (message.roleKeyEncryptedWithTreeKey != null && Object.hasOwnProperty.call(message, "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")) + if (message.eccKeyPair != null && Object.hasOwnProperty.call(message, "eccKeyPair")) object.eccKeyPair = $root.Enterprise.EnterpriseKeyPairRequest.toObject(message.eccKeyPair, options, q + 1); - if (message.allUsersRoleData != null && message.hasOwnProperty("allUsersRoleData")) + if (message.allUsersRoleData != null && Object.hasOwnProperty.call(message, "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")) + if (message.roleKeyEncryptedWithUserPublicKey != null && Object.hasOwnProperty.call(message, "roleKeyEncryptedWithUserPublicKey")) object.roleKeyEncryptedWithUserPublicKey = options.bytes === String ? $util.base64.encode(message.roleKeyEncryptedWithUserPublicKey, 0, message.roleKeyEncryptedWithUserPublicKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.roleKeyEncryptedWithUserPublicKey) : message.roleKeyEncryptedWithUserPublicKey; - if (message.approverRoleData != null && message.hasOwnProperty("approverRoleData")) + if (message.approverRoleData != null && Object.hasOwnProperty.call(message, "approverRoleData")) object.approverRoleData = options.bytes === String ? $util.base64.encode(message.approverRoleData, 0, message.approverRoleData.length) : options.bytes === Array ? Array.prototype.slice.call(message.approverRoleData) : message.approverRoleData; return object; }; @@ -63732,19 +51773,6 @@ export const Enterprise = $root.Enterprise = (() => { return writer; }; - /** - * Encodes the specified DomainPasswordRulesRequest message, length delimited. Does not implicitly {@link Enterprise.DomainPasswordRulesRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof Enterprise.DomainPasswordRulesRequest - * @static - * @param {Enterprise.IDomainPasswordRulesRequest} message DomainPasswordRulesRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - DomainPasswordRulesRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a DomainPasswordRulesRequest message from the specified reader or buffer. * @function decode @@ -63785,46 +51813,6 @@ export const Enterprise = $root.Enterprise = (() => { return message; }; - /** - * Decodes a DomainPasswordRulesRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Enterprise.DomainPasswordRulesRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Enterprise.DomainPasswordRulesRequest} DomainPasswordRulesRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - DomainPasswordRulesRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a DomainPasswordRulesRequest message. - * @function verify - * @memberof Enterprise.DomainPasswordRulesRequest - * @static - * @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) { - if (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"; - if (message.verificationCode != null && message.hasOwnProperty("verificationCode")) - if (!$util.isString(message.verificationCode)) - return "verificationCode: string expected"; - return null; - }; - /** * Creates a DomainPasswordRulesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -63836,6 +51824,8 @@ export const Enterprise = $root.Enterprise = (() => { DomainPasswordRulesRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.Enterprise.DomainPasswordRulesRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".Enterprise.DomainPasswordRulesRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -63869,9 +51859,9 @@ export const Enterprise = $root.Enterprise = (() => { object.username = ""; object.verificationCode = ""; } - if (message.username != null && message.hasOwnProperty("username")) + if (message.username != null && Object.hasOwnProperty.call(message, "username")) object.username = message.username; - if (message.verificationCode != null && message.hasOwnProperty("verificationCode")) + if (message.verificationCode != null && Object.hasOwnProperty.call(message, "verificationCode")) object.verificationCode = message.verificationCode; return object; }; @@ -64003,19 +51993,6 @@ export const Enterprise = $root.Enterprise = (() => { return writer; }; - /** - * Encodes the specified DomainPasswordRulesFields message, length delimited. Does not implicitly {@link Enterprise.DomainPasswordRulesFields.verify|verify} messages. - * @function encodeDelimited - * @memberof Enterprise.DomainPasswordRulesFields - * @static - * @param {Enterprise.IDomainPasswordRulesFields} message DomainPasswordRulesFields message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - DomainPasswordRulesFields.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a DomainPasswordRulesFields message from the specified reader or buffer. * @function decode @@ -64064,52 +52041,6 @@ export const Enterprise = $root.Enterprise = (() => { return message; }; - /** - * Decodes a DomainPasswordRulesFields message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Enterprise.DomainPasswordRulesFields - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Enterprise.DomainPasswordRulesFields} DomainPasswordRulesFields - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - DomainPasswordRulesFields.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a DomainPasswordRulesFields message. - * @function verify - * @memberof Enterprise.DomainPasswordRulesFields - * @static - * @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) { - if (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"; - if (message.minimum != null && message.hasOwnProperty("minimum")) - if (!$util.isInteger(message.minimum)) - return "minimum: integer expected"; - if (message.maximum != null && message.hasOwnProperty("maximum")) - if (!$util.isInteger(message.maximum)) - return "maximum: integer expected"; - if (message.allowed != null && message.hasOwnProperty("allowed")) - if (typeof message.allowed !== "boolean") - return "allowed: boolean expected"; - return null; - }; - /** * Creates a DomainPasswordRulesFields message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -64121,6 +52052,8 @@ export const Enterprise = $root.Enterprise = (() => { DomainPasswordRulesFields.fromObject = function fromObject(object, long) { if (object instanceof $root.Enterprise.DomainPasswordRulesFields) return object; + if (!$util.isObject(object)) + throw TypeError(".Enterprise.DomainPasswordRulesFields: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -64160,13 +52093,13 @@ export const Enterprise = $root.Enterprise = (() => { object.maximum = 0; object.allowed = false; } - if (message.type != null && message.hasOwnProperty("type")) + if (message.type != null && Object.hasOwnProperty.call(message, "type")) object.type = message.type; - if (message.minimum != null && message.hasOwnProperty("minimum")) + if (message.minimum != null && Object.hasOwnProperty.call(message, "minimum")) object.minimum = message.minimum; - if (message.maximum != null && message.hasOwnProperty("maximum")) + if (message.maximum != null && Object.hasOwnProperty.call(message, "maximum")) object.maximum = message.maximum; - if (message.allowed != null && message.hasOwnProperty("allowed")) + if (message.allowed != null && Object.hasOwnProperty.call(message, "allowed")) object.allowed = message.allowed; return object; }; @@ -64276,19 +52209,6 @@ export const Enterprise = $root.Enterprise = (() => { return writer; }; - /** - * Encodes the specified LoginToMcRequest message, length delimited. Does not implicitly {@link Enterprise.LoginToMcRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof Enterprise.LoginToMcRequest - * @static - * @param {Enterprise.ILoginToMcRequest} message LoginToMcRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - LoginToMcRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a LoginToMcRequest message from the specified reader or buffer. * @function decode @@ -64329,46 +52249,6 @@ export const Enterprise = $root.Enterprise = (() => { return message; }; - /** - * Decodes a LoginToMcRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Enterprise.LoginToMcRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Enterprise.LoginToMcRequest} LoginToMcRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - LoginToMcRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a LoginToMcRequest message. - * @function verify - * @memberof Enterprise.LoginToMcRequest - * @static - * @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) { - if (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"; - if (message.messageSessionUid != null && message.hasOwnProperty("messageSessionUid")) - if (!(message.messageSessionUid && typeof message.messageSessionUid.length === "number" || $util.isString(message.messageSessionUid))) - return "messageSessionUid: buffer expected"; - return null; - }; - /** * Creates a LoginToMcRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -64380,6 +52260,8 @@ export const Enterprise = $root.Enterprise = (() => { LoginToMcRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.Enterprise.LoginToMcRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".Enterprise.LoginToMcRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -64422,9 +52304,9 @@ export const Enterprise = $root.Enterprise = (() => { object.messageSessionUid = $util.newBuffer(object.messageSessionUid); } } - if (message.mcEnterpriseId != null && message.hasOwnProperty("mcEnterpriseId")) + if (message.mcEnterpriseId != null && Object.hasOwnProperty.call(message, "mcEnterpriseId")) object.mcEnterpriseId = message.mcEnterpriseId; - if (message.messageSessionUid != null && message.hasOwnProperty("messageSessionUid")) + if (message.messageSessionUid != null && Object.hasOwnProperty.call(message, "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; return object; }; @@ -64556,19 +52438,6 @@ export const Enterprise = $root.Enterprise = (() => { return writer; }; - /** - * Encodes the specified LoginToMcResponse message, length delimited. Does not implicitly {@link Enterprise.LoginToMcResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof Enterprise.LoginToMcResponse - * @static - * @param {Enterprise.ILoginToMcResponse} message LoginToMcResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - LoginToMcResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a LoginToMcResponse message from the specified reader or buffer. * @function decode @@ -64617,52 +52486,6 @@ export const Enterprise = $root.Enterprise = (() => { return message; }; - /** - * Decodes a LoginToMcResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Enterprise.LoginToMcResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Enterprise.LoginToMcResponse} LoginToMcResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - LoginToMcResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a LoginToMcResponse message. - * @function verify - * @memberof Enterprise.LoginToMcResponse - * @static - * @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) { - if (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"; - if (message.encryptedTreeKey != null && message.hasOwnProperty("encryptedTreeKey")) - if (!$util.isString(message.encryptedTreeKey)) - return "encryptedTreeKey: string expected"; - if (message.keyTypeId != null && message.hasOwnProperty("keyTypeId")) - if (!$util.isInteger(message.keyTypeId)) - return "keyTypeId: integer expected"; - if (message.forbidKeyType2 != null && message.hasOwnProperty("forbidKeyType2")) - if (typeof message.forbidKeyType2 !== "boolean") - return "forbidKeyType2: boolean expected"; - return null; - }; - /** * Creates a LoginToMcResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -64674,6 +52497,8 @@ export const Enterprise = $root.Enterprise = (() => { LoginToMcResponse.fromObject = function fromObject(object, long) { if (object instanceof $root.Enterprise.LoginToMcResponse) return object; + if (!$util.isObject(object)) + throw TypeError(".Enterprise.LoginToMcResponse: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -64722,13 +52547,13 @@ export const Enterprise = $root.Enterprise = (() => { object.keyTypeId = 0; object.forbidKeyType2 = false; } - if (message.encryptedSessionToken != null && message.hasOwnProperty("encryptedSessionToken")) + if (message.encryptedSessionToken != null && Object.hasOwnProperty.call(message, "encryptedSessionToken")) object.encryptedSessionToken = options.bytes === String ? $util.base64.encode(message.encryptedSessionToken, 0, message.encryptedSessionToken.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedSessionToken) : message.encryptedSessionToken; - if (message.encryptedTreeKey != null && message.hasOwnProperty("encryptedTreeKey")) + if (message.encryptedTreeKey != null && Object.hasOwnProperty.call(message, "encryptedTreeKey")) object.encryptedTreeKey = message.encryptedTreeKey; - if (message.keyTypeId != null && message.hasOwnProperty("keyTypeId")) + if (message.keyTypeId != null && Object.hasOwnProperty.call(message, "keyTypeId")) object.keyTypeId = message.keyTypeId; - if (message.forbidKeyType2 != null && message.hasOwnProperty("forbidKeyType2")) + if (message.forbidKeyType2 != null && Object.hasOwnProperty.call(message, "forbidKeyType2")) object.forbidKeyType2 = message.forbidKeyType2; return object; }; @@ -64829,19 +52654,6 @@ export const Enterprise = $root.Enterprise = (() => { return writer; }; - /** - * Encodes the specified DomainPasswordRulesResponse message, length delimited. Does not implicitly {@link Enterprise.DomainPasswordRulesResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof Enterprise.DomainPasswordRulesResponse - * @static - * @param {Enterprise.IDomainPasswordRulesResponse} message DomainPasswordRulesResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - DomainPasswordRulesResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a DomainPasswordRulesResponse message from the specified reader or buffer. * @function decode @@ -64880,49 +52692,6 @@ export const Enterprise = $root.Enterprise = (() => { return message; }; - /** - * Decodes a DomainPasswordRulesResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Enterprise.DomainPasswordRulesResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Enterprise.DomainPasswordRulesResponse} DomainPasswordRulesResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - DomainPasswordRulesResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a DomainPasswordRulesResponse message. - * @function verify - * @memberof Enterprise.DomainPasswordRulesResponse - * @static - * @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) { - if (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); - if (error) - return "domainPasswordRulesFields." + error; - } - } - return null; - }; - /** * Creates a DomainPasswordRulesResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -64934,6 +52703,8 @@ export const Enterprise = $root.Enterprise = (() => { DomainPasswordRulesResponse.fromObject = function fromObject(object, long) { if (object instanceof $root.Enterprise.DomainPasswordRulesResponse) return object; + if (!$util.isObject(object)) + throw TypeError(".Enterprise.DomainPasswordRulesResponse: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -64944,7 +52715,7 @@ export const Enterprise = $root.Enterprise = (() => { throw TypeError(".Enterprise.DomainPasswordRulesResponse.domainPasswordRulesFields: array expected"); message.domainPasswordRulesFields = []; for (let i = 0; i < object.domainPasswordRulesFields.length; ++i) { - if (typeof object.domainPasswordRulesFields[i] !== "object") + if (!$util.isObject(object.domainPasswordRulesFields[i])) throw TypeError(".Enterprise.DomainPasswordRulesResponse.domainPasswordRulesFields: object expected"); message.domainPasswordRulesFields[i] = $root.Enterprise.DomainPasswordRulesFields.fromObject(object.domainPasswordRulesFields[i], long + 1); } @@ -65106,19 +52877,6 @@ export const Enterprise = $root.Enterprise = (() => { return writer; }; - /** - * Encodes the specified ApproveUserDeviceRequest message, length delimited. Does not implicitly {@link Enterprise.ApproveUserDeviceRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof Enterprise.ApproveUserDeviceRequest - * @static - * @param {Enterprise.IApproveUserDeviceRequest} message ApproveUserDeviceRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ApproveUserDeviceRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes an ApproveUserDeviceRequest message from the specified reader or buffer. * @function decode @@ -65167,52 +52925,6 @@ export const Enterprise = $root.Enterprise = (() => { return message; }; - /** - * Decodes an ApproveUserDeviceRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Enterprise.ApproveUserDeviceRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Enterprise.ApproveUserDeviceRequest} ApproveUserDeviceRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ApproveUserDeviceRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an ApproveUserDeviceRequest message. - * @function verify - * @memberof Enterprise.ApproveUserDeviceRequest - * @static - * @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) { - if (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"; - if (message.encryptedDeviceToken != null && message.hasOwnProperty("encryptedDeviceToken")) - if (!(message.encryptedDeviceToken && typeof message.encryptedDeviceToken.length === "number" || $util.isString(message.encryptedDeviceToken))) - return "encryptedDeviceToken: buffer expected"; - if (message.encryptedDeviceDataKey != null && message.hasOwnProperty("encryptedDeviceDataKey")) - if (!(message.encryptedDeviceDataKey && typeof message.encryptedDeviceDataKey.length === "number" || $util.isString(message.encryptedDeviceDataKey))) - return "encryptedDeviceDataKey: buffer expected"; - if (message.denyApproval != null && message.hasOwnProperty("denyApproval")) - if (typeof message.denyApproval !== "boolean") - return "denyApproval: boolean expected"; - return null; - }; - /** * Creates an ApproveUserDeviceRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -65224,6 +52936,8 @@ export const Enterprise = $root.Enterprise = (() => { ApproveUserDeviceRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.Enterprise.ApproveUserDeviceRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".Enterprise.ApproveUserDeviceRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -65292,18 +53006,18 @@ export const Enterprise = $root.Enterprise = (() => { } object.denyApproval = false; } - if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) + if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, "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") 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.encryptedDeviceToken != null && message.hasOwnProperty("encryptedDeviceToken")) + if (message.encryptedDeviceToken != null && Object.hasOwnProperty.call(message, "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.encryptedDeviceDataKey != null && message.hasOwnProperty("encryptedDeviceDataKey")) + if (message.encryptedDeviceDataKey != null && Object.hasOwnProperty.call(message, "encryptedDeviceDataKey")) object.encryptedDeviceDataKey = options.bytes === String ? $util.base64.encode(message.encryptedDeviceDataKey, 0, message.encryptedDeviceDataKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedDeviceDataKey) : message.encryptedDeviceDataKey; - if (message.denyApproval != null && message.hasOwnProperty("denyApproval")) + if (message.denyApproval != null && Object.hasOwnProperty.call(message, "denyApproval")) object.denyApproval = message.denyApproval; return object; }; @@ -65435,19 +53149,6 @@ export const Enterprise = $root.Enterprise = (() => { return writer; }; - /** - * Encodes the specified ApproveUserDeviceResponse message, length delimited. Does not implicitly {@link Enterprise.ApproveUserDeviceResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof Enterprise.ApproveUserDeviceResponse - * @static - * @param {Enterprise.IApproveUserDeviceResponse} message ApproveUserDeviceResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ApproveUserDeviceResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes an ApproveUserDeviceResponse message from the specified reader or buffer. * @function decode @@ -65496,52 +53197,6 @@ export const Enterprise = $root.Enterprise = (() => { return message; }; - /** - * Decodes an ApproveUserDeviceResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Enterprise.ApproveUserDeviceResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Enterprise.ApproveUserDeviceResponse} ApproveUserDeviceResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ApproveUserDeviceResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an ApproveUserDeviceResponse message. - * @function verify - * @memberof Enterprise.ApproveUserDeviceResponse - * @static - * @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) { - if (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"; - if (message.encryptedDeviceToken != null && message.hasOwnProperty("encryptedDeviceToken")) - if (!(message.encryptedDeviceToken && typeof message.encryptedDeviceToken.length === "number" || $util.isString(message.encryptedDeviceToken))) - return "encryptedDeviceToken: buffer expected"; - if (message.failed != null && message.hasOwnProperty("failed")) - if (typeof message.failed !== "boolean") - return "failed: boolean expected"; - if (message.message != null && message.hasOwnProperty("message")) - if (!$util.isString(message.message)) - return "message: string expected"; - return null; - }; - /** * Creates an ApproveUserDeviceResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -65553,6 +53208,8 @@ export const Enterprise = $root.Enterprise = (() => { ApproveUserDeviceResponse.fromObject = function fromObject(object, long) { if (object instanceof $root.Enterprise.ApproveUserDeviceResponse) return object; + if (!$util.isObject(object)) + throw TypeError(".Enterprise.ApproveUserDeviceResponse: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -65612,18 +53269,18 @@ export const Enterprise = $root.Enterprise = (() => { object.failed = false; object.message = ""; } - if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) + if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, "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") 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.encryptedDeviceToken != null && message.hasOwnProperty("encryptedDeviceToken")) + if (message.encryptedDeviceToken != null && Object.hasOwnProperty.call(message, "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.failed != null && message.hasOwnProperty("failed")) + if (message.failed != null && Object.hasOwnProperty.call(message, "failed")) object.failed = message.failed; - if (message.message != null && message.hasOwnProperty("message")) + if (message.message != null && Object.hasOwnProperty.call(message, "message")) object.message = message.message; return object; }; @@ -65724,19 +53381,6 @@ export const Enterprise = $root.Enterprise = (() => { return writer; }; - /** - * Encodes the specified ApproveUserDevicesRequest message, length delimited. Does not implicitly {@link Enterprise.ApproveUserDevicesRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof Enterprise.ApproveUserDevicesRequest - * @static - * @param {Enterprise.IApproveUserDevicesRequest} message ApproveUserDevicesRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ApproveUserDevicesRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes an ApproveUserDevicesRequest message from the specified reader or buffer. * @function decode @@ -65775,49 +53419,6 @@ export const Enterprise = $root.Enterprise = (() => { return message; }; - /** - * Decodes an ApproveUserDevicesRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Enterprise.ApproveUserDevicesRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Enterprise.ApproveUserDevicesRequest} ApproveUserDevicesRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ApproveUserDevicesRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an ApproveUserDevicesRequest message. - * @function verify - * @memberof Enterprise.ApproveUserDevicesRequest - * @static - * @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) { - if (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); - if (error) - return "deviceRequests." + error; - } - } - return null; - }; - /** * Creates an ApproveUserDevicesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -65829,6 +53430,8 @@ export const Enterprise = $root.Enterprise = (() => { ApproveUserDevicesRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.Enterprise.ApproveUserDevicesRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".Enterprise.ApproveUserDevicesRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -65839,7 +53442,7 @@ export const Enterprise = $root.Enterprise = (() => { throw TypeError(".Enterprise.ApproveUserDevicesRequest.deviceRequests: array expected"); message.deviceRequests = []; for (let i = 0; i < object.deviceRequests.length; ++i) { - if (typeof object.deviceRequests[i] !== "object") + if (!$util.isObject(object.deviceRequests[i])) throw TypeError(".Enterprise.ApproveUserDevicesRequest.deviceRequests: object expected"); message.deviceRequests[i] = $root.Enterprise.ApproveUserDeviceRequest.fromObject(object.deviceRequests[i], long + 1); } @@ -65970,19 +53573,6 @@ export const Enterprise = $root.Enterprise = (() => { return writer; }; - /** - * Encodes the specified ApproveUserDevicesResponse message, length delimited. Does not implicitly {@link Enterprise.ApproveUserDevicesResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof Enterprise.ApproveUserDevicesResponse - * @static - * @param {Enterprise.IApproveUserDevicesResponse} message ApproveUserDevicesResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ApproveUserDevicesResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes an ApproveUserDevicesResponse message from the specified reader or buffer. * @function decode @@ -66021,49 +53611,6 @@ export const Enterprise = $root.Enterprise = (() => { return message; }; - /** - * Decodes an ApproveUserDevicesResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Enterprise.ApproveUserDevicesResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Enterprise.ApproveUserDevicesResponse} ApproveUserDevicesResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ApproveUserDevicesResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an ApproveUserDevicesResponse message. - * @function verify - * @memberof Enterprise.ApproveUserDevicesResponse - * @static - * @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) { - if (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); - if (error) - return "deviceResponses." + error; - } - } - return null; - }; - /** * Creates an ApproveUserDevicesResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -66075,6 +53622,8 @@ export const Enterprise = $root.Enterprise = (() => { ApproveUserDevicesResponse.fromObject = function fromObject(object, long) { if (object instanceof $root.Enterprise.ApproveUserDevicesResponse) return object; + if (!$util.isObject(object)) + throw TypeError(".Enterprise.ApproveUserDevicesResponse: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -66085,7 +53634,7 @@ export const Enterprise = $root.Enterprise = (() => { throw TypeError(".Enterprise.ApproveUserDevicesResponse.deviceResponses: array expected"); message.deviceResponses = []; for (let i = 0; i < object.deviceResponses.length; ++i) { - if (typeof object.deviceResponses[i] !== "object") + if (!$util.isObject(object.deviceResponses[i])) throw TypeError(".Enterprise.ApproveUserDevicesResponse.deviceResponses: object expected"); message.deviceResponses[i] = $root.Enterprise.ApproveUserDeviceResponse.fromObject(object.deviceResponses[i], long + 1); } @@ -66258,19 +53807,6 @@ export const Enterprise = $root.Enterprise = (() => { return writer; }; - /** - * Encodes the specified EnterpriseUserDataKey message, length delimited. Does not implicitly {@link Enterprise.EnterpriseUserDataKey.verify|verify} messages. - * @function encodeDelimited - * @memberof Enterprise.EnterpriseUserDataKey - * @static - * @param {Enterprise.IEnterpriseUserDataKey} message EnterpriseUserDataKey message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - EnterpriseUserDataKey.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes an EnterpriseUserDataKey message from the specified reader or buffer. * @function decode @@ -66323,55 +53859,6 @@ export const Enterprise = $root.Enterprise = (() => { return message; }; - /** - * Decodes an EnterpriseUserDataKey message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Enterprise.EnterpriseUserDataKey - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Enterprise.EnterpriseUserDataKey} EnterpriseUserDataKey - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - EnterpriseUserDataKey.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an EnterpriseUserDataKey message. - * @function verify - * @memberof Enterprise.EnterpriseUserDataKey - * @static - * @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) { - if (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"; - if (message.userEncryptedDataKey != null && message.hasOwnProperty("userEncryptedDataKey")) - if (!(message.userEncryptedDataKey && typeof message.userEncryptedDataKey.length === "number" || $util.isString(message.userEncryptedDataKey))) - return "userEncryptedDataKey: buffer expected"; - if (message.keyTypeId != null && message.hasOwnProperty("keyTypeId")) - if (!$util.isInteger(message.keyTypeId)) - return "keyTypeId: integer expected"; - if (message.roleKey != null && message.hasOwnProperty("roleKey")) - if (!(message.roleKey && typeof message.roleKey.length === "number" || $util.isString(message.roleKey))) - return "roleKey: buffer expected"; - if (message.privateKey != null && message.hasOwnProperty("privateKey")) - if (!(message.privateKey && typeof message.privateKey.length === "number" || $util.isString(message.privateKey))) - return "privateKey: buffer expected"; - return null; - }; - /** * Creates an EnterpriseUserDataKey message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -66383,6 +53870,8 @@ export const Enterprise = $root.Enterprise = (() => { EnterpriseUserDataKey.fromObject = function fromObject(object, long) { if (object instanceof $root.Enterprise.EnterpriseUserDataKey) return object; + if (!$util.isObject(object)) + throw TypeError(".Enterprise.EnterpriseUserDataKey: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -66463,20 +53952,20 @@ export const Enterprise = $root.Enterprise = (() => { object.privateKey = $util.newBuffer(object.privateKey); } } - if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) + if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, "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") 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.userEncryptedDataKey != null && message.hasOwnProperty("userEncryptedDataKey")) + if (message.userEncryptedDataKey != null && Object.hasOwnProperty.call(message, "userEncryptedDataKey")) object.userEncryptedDataKey = options.bytes === String ? $util.base64.encode(message.userEncryptedDataKey, 0, message.userEncryptedDataKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.userEncryptedDataKey) : message.userEncryptedDataKey; - if (message.keyTypeId != null && message.hasOwnProperty("keyTypeId")) + if (message.keyTypeId != null && Object.hasOwnProperty.call(message, "keyTypeId")) object.keyTypeId = message.keyTypeId; - if (message.roleKey != null && message.hasOwnProperty("roleKey")) + if (message.roleKey != null && Object.hasOwnProperty.call(message, "roleKey")) object.roleKey = options.bytes === String ? $util.base64.encode(message.roleKey, 0, message.roleKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.roleKey) : message.roleKey; - if (message.privateKey != null && message.hasOwnProperty("privateKey")) + if (message.privateKey != null && Object.hasOwnProperty.call(message, "privateKey")) object.privateKey = options.bytes === String ? $util.base64.encode(message.privateKey, 0, message.privateKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.privateKey) : message.privateKey; return object; }; @@ -66577,19 +54066,6 @@ export const Enterprise = $root.Enterprise = (() => { return writer; }; - /** - * Encodes the specified EnterpriseUserDataKeys message, length delimited. Does not implicitly {@link Enterprise.EnterpriseUserDataKeys.verify|verify} messages. - * @function encodeDelimited - * @memberof Enterprise.EnterpriseUserDataKeys - * @static - * @param {Enterprise.IEnterpriseUserDataKeys} message EnterpriseUserDataKeys message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - EnterpriseUserDataKeys.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes an EnterpriseUserDataKeys message from the specified reader or buffer. * @function decode @@ -66628,49 +54104,6 @@ export const Enterprise = $root.Enterprise = (() => { return message; }; - /** - * Decodes an EnterpriseUserDataKeys message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Enterprise.EnterpriseUserDataKeys - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Enterprise.EnterpriseUserDataKeys} EnterpriseUserDataKeys - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - EnterpriseUserDataKeys.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an EnterpriseUserDataKeys message. - * @function verify - * @memberof Enterprise.EnterpriseUserDataKeys - * @static - * @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) { - if (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); - if (error) - return "keys." + error; - } - } - return null; - }; - /** * Creates an EnterpriseUserDataKeys message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -66682,6 +54115,8 @@ export const Enterprise = $root.Enterprise = (() => { EnterpriseUserDataKeys.fromObject = function fromObject(object, long) { if (object instanceof $root.Enterprise.EnterpriseUserDataKeys) return object; + if (!$util.isObject(object)) + throw TypeError(".Enterprise.EnterpriseUserDataKeys: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -66692,7 +54127,7 @@ export const Enterprise = $root.Enterprise = (() => { throw TypeError(".Enterprise.EnterpriseUserDataKeys.keys: array expected"); message.keys = []; for (let i = 0; i < object.keys.length; ++i) { - if (typeof object.keys[i] !== "object") + if (!$util.isObject(object.keys[i])) throw TypeError(".Enterprise.EnterpriseUserDataKeys.keys: object expected"); message.keys[i] = $root.Enterprise.EnterpriseUserDataKey.fromObject(object.keys[i], long + 1); } @@ -66843,19 +54278,6 @@ export const Enterprise = $root.Enterprise = (() => { return writer; }; - /** - * Encodes the specified EnterpriseUserDataKeyLight message, length delimited. Does not implicitly {@link Enterprise.EnterpriseUserDataKeyLight.verify|verify} messages. - * @function encodeDelimited - * @memberof Enterprise.EnterpriseUserDataKeyLight - * @static - * @param {Enterprise.IEnterpriseUserDataKeyLight} message EnterpriseUserDataKeyLight message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - EnterpriseUserDataKeyLight.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes an EnterpriseUserDataKeyLight message from the specified reader or buffer. * @function decode @@ -66900,49 +54322,6 @@ export const Enterprise = $root.Enterprise = (() => { return message; }; - /** - * Decodes an EnterpriseUserDataKeyLight message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Enterprise.EnterpriseUserDataKeyLight - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Enterprise.EnterpriseUserDataKeyLight} EnterpriseUserDataKeyLight - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - EnterpriseUserDataKeyLight.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an EnterpriseUserDataKeyLight message. - * @function verify - * @memberof Enterprise.EnterpriseUserDataKeyLight - * @static - * @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) { - if (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"; - if (message.userEncryptedDataKey != null && message.hasOwnProperty("userEncryptedDataKey")) - if (!(message.userEncryptedDataKey && typeof message.userEncryptedDataKey.length === "number" || $util.isString(message.userEncryptedDataKey))) - return "userEncryptedDataKey: buffer expected"; - if (message.keyTypeId != null && message.hasOwnProperty("keyTypeId")) - if (!$util.isInteger(message.keyTypeId)) - return "keyTypeId: integer expected"; - return null; - }; - /** * Creates an EnterpriseUserDataKeyLight message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -66954,6 +54333,8 @@ export const Enterprise = $root.Enterprise = (() => { EnterpriseUserDataKeyLight.fromObject = function fromObject(object, long) { if (object instanceof $root.Enterprise.EnterpriseUserDataKeyLight) return object; + if (!$util.isObject(object)) + throw TypeError(".Enterprise.EnterpriseUserDataKeyLight: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -67010,16 +54391,16 @@ export const Enterprise = $root.Enterprise = (() => { } object.keyTypeId = 0; } - if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) + if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, "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") 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.userEncryptedDataKey != null && message.hasOwnProperty("userEncryptedDataKey")) + if (message.userEncryptedDataKey != null && Object.hasOwnProperty.call(message, "userEncryptedDataKey")) object.userEncryptedDataKey = options.bytes === String ? $util.base64.encode(message.userEncryptedDataKey, 0, message.userEncryptedDataKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.userEncryptedDataKey) : message.userEncryptedDataKey; - if (message.keyTypeId != null && message.hasOwnProperty("keyTypeId")) + if (message.keyTypeId != null && Object.hasOwnProperty.call(message, "keyTypeId")) object.keyTypeId = message.keyTypeId; return object; }; @@ -67131,19 +54512,6 @@ export const Enterprise = $root.Enterprise = (() => { return writer; }; - /** - * Encodes the specified EnterpriseUserDataKeysByNode message, length delimited. Does not implicitly {@link Enterprise.EnterpriseUserDataKeysByNode.verify|verify} messages. - * @function encodeDelimited - * @memberof Enterprise.EnterpriseUserDataKeysByNode - * @static - * @param {Enterprise.IEnterpriseUserDataKeysByNode} message EnterpriseUserDataKeysByNode message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - EnterpriseUserDataKeysByNode.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes an EnterpriseUserDataKeysByNode message from the specified reader or buffer. * @function decode @@ -67186,52 +54554,6 @@ export const Enterprise = $root.Enterprise = (() => { return message; }; - /** - * Decodes an EnterpriseUserDataKeysByNode message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Enterprise.EnterpriseUserDataKeysByNode - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Enterprise.EnterpriseUserDataKeysByNode} EnterpriseUserDataKeysByNode - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - EnterpriseUserDataKeysByNode.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an EnterpriseUserDataKeysByNode message. - * @function verify - * @memberof Enterprise.EnterpriseUserDataKeysByNode - * @static - * @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) { - if (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"; - 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.EnterpriseUserDataKeyLight.verify(message.keys[i], long + 1); - if (error) - return "keys." + error; - } - } - return null; - }; - /** * Creates an EnterpriseUserDataKeysByNode message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -67243,6 +54565,8 @@ export const Enterprise = $root.Enterprise = (() => { EnterpriseUserDataKeysByNode.fromObject = function fromObject(object, long) { if (object instanceof $root.Enterprise.EnterpriseUserDataKeysByNode) return object; + if (!$util.isObject(object)) + throw TypeError(".Enterprise.EnterpriseUserDataKeysByNode: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -67262,7 +54586,7 @@ export const Enterprise = $root.Enterprise = (() => { throw TypeError(".Enterprise.EnterpriseUserDataKeysByNode.keys: array expected"); message.keys = []; for (let i = 0; i < object.keys.length; ++i) { - if (typeof object.keys[i] !== "object") + if (!$util.isObject(object.keys[i])) throw TypeError(".Enterprise.EnterpriseUserDataKeysByNode.keys: object expected"); message.keys[i] = $root.Enterprise.EnterpriseUserDataKeyLight.fromObject(object.keys[i], long + 1); } @@ -67295,7 +54619,7 @@ export const Enterprise = $root.Enterprise = (() => { object.nodeId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; } else object.nodeId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; - if (message.nodeId != null && message.hasOwnProperty("nodeId")) + if (message.nodeId != null && Object.hasOwnProperty.call(message, "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") @@ -67406,19 +54730,6 @@ export const Enterprise = $root.Enterprise = (() => { return writer; }; - /** - * Encodes the specified EnterpriseUserDataKeysByNodeResponse message, length delimited. Does not implicitly {@link Enterprise.EnterpriseUserDataKeysByNodeResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof Enterprise.EnterpriseUserDataKeysByNodeResponse - * @static - * @param {Enterprise.IEnterpriseUserDataKeysByNodeResponse} message EnterpriseUserDataKeysByNodeResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - EnterpriseUserDataKeysByNodeResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes an EnterpriseUserDataKeysByNodeResponse message from the specified reader or buffer. * @function decode @@ -67457,49 +54768,6 @@ export const Enterprise = $root.Enterprise = (() => { return message; }; - /** - * Decodes an EnterpriseUserDataKeysByNodeResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Enterprise.EnterpriseUserDataKeysByNodeResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Enterprise.EnterpriseUserDataKeysByNodeResponse} EnterpriseUserDataKeysByNodeResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - EnterpriseUserDataKeysByNodeResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an EnterpriseUserDataKeysByNodeResponse message. - * @function verify - * @memberof Enterprise.EnterpriseUserDataKeysByNodeResponse - * @static - * @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) { - if (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); - if (error) - return "keys." + error; - } - } - return null; - }; - /** * Creates an EnterpriseUserDataKeysByNodeResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -67511,6 +54779,8 @@ export const Enterprise = $root.Enterprise = (() => { EnterpriseUserDataKeysByNodeResponse.fromObject = function fromObject(object, long) { if (object instanceof $root.Enterprise.EnterpriseUserDataKeysByNodeResponse) return object; + if (!$util.isObject(object)) + throw TypeError(".Enterprise.EnterpriseUserDataKeysByNodeResponse: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -67521,7 +54791,7 @@ export const Enterprise = $root.Enterprise = (() => { throw TypeError(".Enterprise.EnterpriseUserDataKeysByNodeResponse.keys: array expected"); message.keys = []; for (let i = 0; i < object.keys.length; ++i) { - if (typeof object.keys[i] !== "object") + if (!$util.isObject(object.keys[i])) throw TypeError(".Enterprise.EnterpriseUserDataKeysByNodeResponse.keys: object expected"); message.keys[i] = $root.Enterprise.EnterpriseUserDataKeysByNode.fromObject(object.keys[i], long + 1); } @@ -67650,19 +54920,6 @@ export const Enterprise = $root.Enterprise = (() => { return writer; }; - /** - * Encodes the specified EnterpriseDataRequest message, length delimited. Does not implicitly {@link Enterprise.EnterpriseDataRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof Enterprise.EnterpriseDataRequest - * @static - * @param {Enterprise.IEnterpriseDataRequest} message EnterpriseDataRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - EnterpriseDataRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes an EnterpriseDataRequest message from the specified reader or buffer. * @function decode @@ -67699,43 +54956,6 @@ export const Enterprise = $root.Enterprise = (() => { return message; }; - /** - * Decodes an EnterpriseDataRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Enterprise.EnterpriseDataRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Enterprise.EnterpriseDataRequest} EnterpriseDataRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - EnterpriseDataRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an EnterpriseDataRequest message. - * @function verify - * @memberof Enterprise.EnterpriseDataRequest - * @static - * @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) { - if (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"; - return null; - }; - /** * Creates an EnterpriseDataRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -67747,6 +54967,8 @@ export const Enterprise = $root.Enterprise = (() => { EnterpriseDataRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.Enterprise.EnterpriseDataRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".Enterprise.EnterpriseDataRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -67785,7 +55007,7 @@ export const Enterprise = $root.Enterprise = (() => { if (options.bytes !== Array) object.continuationToken = $util.newBuffer(object.continuationToken); } - if (message.continuationToken != null && message.hasOwnProperty("continuationToken")) + if (message.continuationToken != null && Object.hasOwnProperty.call(message, "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; return object; }; @@ -67895,19 +55117,6 @@ export const Enterprise = $root.Enterprise = (() => { return writer; }; - /** - * Encodes the specified SpecialProvisioning message, length delimited. Does not implicitly {@link Enterprise.SpecialProvisioning.verify|verify} messages. - * @function encodeDelimited - * @memberof Enterprise.SpecialProvisioning - * @static - * @param {Enterprise.ISpecialProvisioning} message SpecialProvisioning message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SpecialProvisioning.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a SpecialProvisioning message from the specified reader or buffer. * @function decode @@ -67948,46 +55157,6 @@ export const Enterprise = $root.Enterprise = (() => { return message; }; - /** - * Decodes a SpecialProvisioning message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Enterprise.SpecialProvisioning - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Enterprise.SpecialProvisioning} SpecialProvisioning - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SpecialProvisioning.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a SpecialProvisioning message. - * @function verify - * @memberof Enterprise.SpecialProvisioning - * @static - * @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) { - if (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"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - return null; - }; - /** * Creates a SpecialProvisioning message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -67999,6 +55168,8 @@ export const Enterprise = $root.Enterprise = (() => { SpecialProvisioning.fromObject = function fromObject(object, long) { if (object instanceof $root.Enterprise.SpecialProvisioning) return object; + if (!$util.isObject(object)) + throw TypeError(".Enterprise.SpecialProvisioning: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -68032,9 +55203,9 @@ export const Enterprise = $root.Enterprise = (() => { object.url = ""; object.name = ""; } - if (message.url != null && message.hasOwnProperty("url")) + if (message.url != null && Object.hasOwnProperty.call(message, "url")) object.url = message.url; - if (message.name != null && message.hasOwnProperty("name")) + if (message.name != null && Object.hasOwnProperty.call(message, "name")) object.name = message.name; return object; }; @@ -68199,19 +55370,6 @@ export const Enterprise = $root.Enterprise = (() => { return writer; }; - /** - * Encodes the specified GeneralDataEntity message, length delimited. Does not implicitly {@link Enterprise.GeneralDataEntity.verify|verify} messages. - * @function encodeDelimited - * @memberof Enterprise.GeneralDataEntity - * @static - * @param {Enterprise.IGeneralDataEntity} message GeneralDataEntity message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GeneralDataEntity.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a GeneralDataEntity message from the specified reader or buffer. * @function decode @@ -68272,65 +55430,6 @@ export const Enterprise = $root.Enterprise = (() => { return message; }; - /** - * Decodes a GeneralDataEntity message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Enterprise.GeneralDataEntity - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Enterprise.GeneralDataEntity} GeneralDataEntity - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GeneralDataEntity.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a GeneralDataEntity message. - * @function verify - * @memberof Enterprise.GeneralDataEntity - * @static - * @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) { - if (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"; - if (message.restrictVisibility != null && message.hasOwnProperty("restrictVisibility")) - 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); - if (error) - return "specialProvisioning." + error; - } - if (message.userPrivilege != null && message.hasOwnProperty("userPrivilege")) { - let error = $root.Enterprise.UserPrivilege.verify(message.userPrivilege, long + 1); - if (error) - return "userPrivilege." + error; - } - if (message.distributor != null && message.hasOwnProperty("distributor")) - if (typeof message.distributor !== "boolean") - return "distributor: boolean expected"; - if (message.forbidAccountTransfer != null && message.hasOwnProperty("forbidAccountTransfer")) - if (typeof message.forbidAccountTransfer !== "boolean") - return "forbidAccountTransfer: boolean expected"; - if (message.showUserOnboard != null && message.hasOwnProperty("showUserOnboard")) - if (typeof message.showUserOnboard !== "boolean") - return "showUserOnboard: boolean expected"; - return null; - }; - /** * Creates a GeneralDataEntity message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -68342,6 +55441,8 @@ export const Enterprise = $root.Enterprise = (() => { GeneralDataEntity.fromObject = function fromObject(object, long) { if (object instanceof $root.Enterprise.GeneralDataEntity) return object; + if (!$util.isObject(object)) + throw TypeError(".Enterprise.GeneralDataEntity: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -68352,12 +55453,12 @@ export const Enterprise = $root.Enterprise = (() => { if (object.restrictVisibility != null) message.restrictVisibility = Boolean(object.restrictVisibility); if (object.specialProvisioning != null) { - if (typeof object.specialProvisioning !== "object") + if (!$util.isObject(object.specialProvisioning)) throw TypeError(".Enterprise.GeneralDataEntity.specialProvisioning: object expected"); message.specialProvisioning = $root.Enterprise.SpecialProvisioning.fromObject(object.specialProvisioning, long + 1); } if (object.userPrivilege != null) { - if (typeof object.userPrivilege !== "object") + if (!$util.isObject(object.userPrivilege)) throw TypeError(".Enterprise.GeneralDataEntity.userPrivilege: object expected"); message.userPrivilege = $root.Enterprise.UserPrivilege.fromObject(object.userPrivilege, long + 1); } @@ -68396,19 +55497,19 @@ export const Enterprise = $root.Enterprise = (() => { object.forbidAccountTransfer = false; object.showUserOnboard = false; } - if (message.enterpriseName != null && message.hasOwnProperty("enterpriseName")) + if (message.enterpriseName != null && Object.hasOwnProperty.call(message, "enterpriseName")) object.enterpriseName = message.enterpriseName; - if (message.restrictVisibility != null && message.hasOwnProperty("restrictVisibility")) + if (message.restrictVisibility != null && Object.hasOwnProperty.call(message, "restrictVisibility")) object.restrictVisibility = message.restrictVisibility; - if (message.specialProvisioning != null && message.hasOwnProperty("specialProvisioning")) + if (message.specialProvisioning != null && Object.hasOwnProperty.call(message, "specialProvisioning")) object.specialProvisioning = $root.Enterprise.SpecialProvisioning.toObject(message.specialProvisioning, options, q + 1); - if (message.userPrivilege != null && message.hasOwnProperty("userPrivilege")) + if (message.userPrivilege != null && Object.hasOwnProperty.call(message, "userPrivilege")) object.userPrivilege = $root.Enterprise.UserPrivilege.toObject(message.userPrivilege, options, q + 1); - if (message.distributor != null && message.hasOwnProperty("distributor")) + if (message.distributor != null && Object.hasOwnProperty.call(message, "distributor")) object.distributor = message.distributor; - if (message.forbidAccountTransfer != null && message.hasOwnProperty("forbidAccountTransfer")) + if (message.forbidAccountTransfer != null && Object.hasOwnProperty.call(message, "forbidAccountTransfer")) object.forbidAccountTransfer = message.forbidAccountTransfer; - if (message.showUserOnboard != null && message.hasOwnProperty("showUserOnboard")) + if (message.showUserOnboard != null && Object.hasOwnProperty.call(message, "showUserOnboard")) object.showUserOnboard = message.showUserOnboard; return object; }; @@ -68622,19 +55723,6 @@ export const Enterprise = $root.Enterprise = (() => { return writer; }; - /** - * Encodes the specified Node message, length delimited. Does not implicitly {@link Enterprise.Node.verify|verify} messages. - * @function encodeDelimited - * @memberof Enterprise.Node - * @static - * @param {Enterprise.INode} message Node message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Node.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a Node message from the specified reader or buffer. * @function decode @@ -68718,77 +55806,6 @@ export const Enterprise = $root.Enterprise = (() => { return message; }; - /** - * Decodes a Node message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Enterprise.Node - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Enterprise.Node} Node - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Node.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a Node message. - * @function verify - * @memberof Enterprise.Node - * @static - * @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) { - if (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"; - if (message.parentId != null && message.hasOwnProperty("parentId")) - if (!$util.isInteger(message.parentId) && !(message.parentId && $util.isInteger(message.parentId.low) && $util.isInteger(message.parentId.high))) - return "parentId: integer|Long expected"; - 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"; - 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"; - if (message.licenseId != null && message.hasOwnProperty("licenseId")) - if (!$util.isInteger(message.licenseId) && !(message.licenseId && $util.isInteger(message.licenseId.low) && $util.isInteger(message.licenseId.high))) - return "licenseId: integer|Long expected"; - if (message.encryptedData != null && message.hasOwnProperty("encryptedData")) - if (!$util.isString(message.encryptedData)) - return "encryptedData: string expected"; - if (message.duoEnabled != null && message.hasOwnProperty("duoEnabled")) - if (typeof message.duoEnabled !== "boolean") - return "duoEnabled: boolean expected"; - if (message.rsaEnabled != null && message.hasOwnProperty("rsaEnabled")) - if (typeof message.rsaEnabled !== "boolean") - return "rsaEnabled: boolean expected"; - 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"; - if (message.restrictVisibility != null && message.hasOwnProperty("restrictVisibility")) - if (typeof message.restrictVisibility !== "boolean") - return "restrictVisibility: boolean expected"; - if (message.ssoServiceProviderIds != null && message.hasOwnProperty("ssoServiceProviderIds")) { - if (!Array.isArray(message.ssoServiceProviderIds)) - return "ssoServiceProviderIds: array expected"; - for (let i = 0; i < message.ssoServiceProviderIds.length; ++i) - if (!$util.isInteger(message.ssoServiceProviderIds[i]) && !(message.ssoServiceProviderIds[i] && $util.isInteger(message.ssoServiceProviderIds[i].low) && $util.isInteger(message.ssoServiceProviderIds[i].high))) - return "ssoServiceProviderIds: integer|Long[] expected"; - } - return null; - }; - /** * Creates a Node message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -68800,6 +55817,8 @@ export const Enterprise = $root.Enterprise = (() => { Node.fromObject = function fromObject(object, long) { if (object instanceof $root.Enterprise.Node) return object; + if (!$util.isObject(object)) + throw TypeError(".Enterprise.Node: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -68939,55 +55958,55 @@ export const Enterprise = $root.Enterprise = (() => { object.ssoServiceProviderId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; object.restrictVisibility = false; } - if (message.nodeId != null && message.hasOwnProperty("nodeId")) + if (message.nodeId != null && Object.hasOwnProperty.call(message, "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") 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 (message.parentId != null && Object.hasOwnProperty.call(message, "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") 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 (message.bridgeId != null && Object.hasOwnProperty.call(message, "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") 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 (message.scimId != null && Object.hasOwnProperty.call(message, "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") 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 (message.licenseId != null && Object.hasOwnProperty.call(message, "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") 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; - if (message.encryptedData != null && message.hasOwnProperty("encryptedData")) + if (message.encryptedData != null && Object.hasOwnProperty.call(message, "encryptedData")) object.encryptedData = message.encryptedData; - if (message.duoEnabled != null && message.hasOwnProperty("duoEnabled")) + if (message.duoEnabled != null && Object.hasOwnProperty.call(message, "duoEnabled")) object.duoEnabled = message.duoEnabled; - if (message.rsaEnabled != null && message.hasOwnProperty("rsaEnabled")) + if (message.rsaEnabled != null && Object.hasOwnProperty.call(message, "rsaEnabled")) object.rsaEnabled = message.rsaEnabled; - if (message.ssoServiceProviderId != null && message.hasOwnProperty("ssoServiceProviderId")) + if (message.ssoServiceProviderId != null && Object.hasOwnProperty.call(message, "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") 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.restrictVisibility != null && message.hasOwnProperty("restrictVisibility")) + if (message.restrictVisibility != null && Object.hasOwnProperty.call(message, "restrictVisibility")) object.restrictVisibility = message.restrictVisibility; if (message.ssoServiceProviderIds && message.ssoServiceProviderIds.length) { object.ssoServiceProviderIds = []; @@ -69162,19 +56181,6 @@ export const Enterprise = $root.Enterprise = (() => { return writer; }; - /** - * Encodes the specified Role message, length delimited. Does not implicitly {@link Enterprise.Role.verify|verify} messages. - * @function encodeDelimited - * @memberof Enterprise.Role - * @static - * @param {Enterprise.IRole} message Role message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Role.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a Role message from the specified reader or buffer. * @function decode @@ -69235,61 +56241,6 @@ export const Enterprise = $root.Enterprise = (() => { return message; }; - /** - * Decodes a Role message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Enterprise.Role - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Enterprise.Role} Role - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Role.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a Role message. - * @function verify - * @memberof Enterprise.Role - * @static - * @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) { - if (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"; - 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"; - if (message.encryptedData != null && message.hasOwnProperty("encryptedData")) - if (!$util.isString(message.encryptedData)) - return "encryptedData: string expected"; - if (message.keyType != null && message.hasOwnProperty("keyType")) - if (!$util.isString(message.keyType)) - return "keyType: string expected"; - if (message.visibleBelow != null && message.hasOwnProperty("visibleBelow")) - if (typeof message.visibleBelow !== "boolean") - return "visibleBelow: boolean expected"; - if (message.newUserInherit != null && message.hasOwnProperty("newUserInherit")) - if (typeof message.newUserInherit !== "boolean") - return "newUserInherit: boolean expected"; - if (message.roleType != null && message.hasOwnProperty("roleType")) - if (!$util.isString(message.roleType)) - return "roleType: string expected"; - return null; - }; - /** * Creates a Role message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -69301,6 +56252,8 @@ export const Enterprise = $root.Enterprise = (() => { Role.fromObject = function fromObject(object, long) { if (object instanceof $root.Enterprise.Role) return object; + if (!$util.isObject(object)) + throw TypeError(".Enterprise.Role: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -69371,29 +56324,29 @@ export const Enterprise = $root.Enterprise = (() => { object.newUserInherit = false; object.roleType = ""; } - if (message.roleId != null && message.hasOwnProperty("roleId")) + if (message.roleId != null && Object.hasOwnProperty.call(message, "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") 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 (message.nodeId != null && Object.hasOwnProperty.call(message, "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") 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.encryptedData != null && message.hasOwnProperty("encryptedData")) + if (message.encryptedData != null && Object.hasOwnProperty.call(message, "encryptedData")) object.encryptedData = message.encryptedData; - if (message.keyType != null && message.hasOwnProperty("keyType")) + if (message.keyType != null && Object.hasOwnProperty.call(message, "keyType")) object.keyType = message.keyType; - if (message.visibleBelow != null && message.hasOwnProperty("visibleBelow")) + if (message.visibleBelow != null && Object.hasOwnProperty.call(message, "visibleBelow")) object.visibleBelow = message.visibleBelow; - if (message.newUserInherit != null && message.hasOwnProperty("newUserInherit")) + if (message.newUserInherit != null && Object.hasOwnProperty.call(message, "newUserInherit")) object.newUserInherit = message.newUserInherit; - if (message.roleType != null && message.hasOwnProperty("roleType")) + if (message.roleType != null && Object.hasOwnProperty.call(message, "roleType")) object.roleType = message.roleType; return object; }; @@ -69644,19 +56597,6 @@ export const Enterprise = $root.Enterprise = (() => { return writer; }; - /** - * Encodes the specified User message, length delimited. Does not implicitly {@link Enterprise.User.verify|verify} messages. - * @function encodeDelimited - * @memberof Enterprise.User - * @static - * @param {Enterprise.IUser} message User message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - User.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a User message from the specified reader or buffer. * @function decode @@ -69741,87 +56681,6 @@ export const Enterprise = $root.Enterprise = (() => { return message; }; - /** - * Decodes a User message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Enterprise.User - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Enterprise.User} User - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - User.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a User message. - * @function verify - * @memberof Enterprise.User - * @static - * @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) { - if (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"; - 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"; - if (message.encryptedData != null && message.hasOwnProperty("encryptedData")) - if (!$util.isString(message.encryptedData)) - return "encryptedData: string expected"; - if (message.keyType != null && message.hasOwnProperty("keyType")) - if (!$util.isString(message.keyType)) - return "keyType: string expected"; - if (message.username != null && message.hasOwnProperty("username")) - if (!$util.isString(message.username)) - return "username: string expected"; - if (message.status != null && message.hasOwnProperty("status")) - if (!$util.isString(message.status)) - return "status: string expected"; - if (message.lock != null && message.hasOwnProperty("lock")) - if (!$util.isInteger(message.lock)) - return "lock: integer expected"; - if (message.userId != null && message.hasOwnProperty("userId")) - if (!$util.isInteger(message.userId)) - return "userId: integer expected"; - if (message.accountShareExpiration != null && message.hasOwnProperty("accountShareExpiration")) - if (!$util.isInteger(message.accountShareExpiration) && !(message.accountShareExpiration && $util.isInteger(message.accountShareExpiration.low) && $util.isInteger(message.accountShareExpiration.high))) - return "accountShareExpiration: integer|Long expected"; - if (message.fullName != null && message.hasOwnProperty("fullName")) - if (!$util.isString(message.fullName)) - return "fullName: string expected"; - if (message.jobTitle != null && message.hasOwnProperty("jobTitle")) - if (!$util.isString(message.jobTitle)) - return "jobTitle: string expected"; - if (message.tfaEnabled != null && message.hasOwnProperty("tfaEnabled")) - if (typeof message.tfaEnabled !== "boolean") - return "tfaEnabled: boolean expected"; - if (message.transferAcceptanceStatus != null && message.hasOwnProperty("transferAcceptanceStatus")) - switch (message.transferAcceptanceStatus) { - default: - return "transferAcceptanceStatus: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - break; - } - return null; - }; - /** * Creates a User message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -69833,6 +56692,8 @@ export const Enterprise = $root.Enterprise = (() => { User.fromObject = function fromObject(object, long) { if (object instanceof $root.Enterprise.User) return object; + if (!$util.isObject(object)) + throw TypeError(".Enterprise.User: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -69958,46 +56819,46 @@ export const Enterprise = $root.Enterprise = (() => { object.tfaEnabled = false; object.transferAcceptanceStatus = options.enums === String ? "UNDEFINED" : 0; } - if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) + if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, "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") 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 (message.nodeId != null && Object.hasOwnProperty.call(message, "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") 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.encryptedData != null && message.hasOwnProperty("encryptedData")) + if (message.encryptedData != null && Object.hasOwnProperty.call(message, "encryptedData")) object.encryptedData = message.encryptedData; - if (message.keyType != null && message.hasOwnProperty("keyType")) + if (message.keyType != null && Object.hasOwnProperty.call(message, "keyType")) object.keyType = message.keyType; - if (message.username != null && message.hasOwnProperty("username")) + if (message.username != null && Object.hasOwnProperty.call(message, "username")) object.username = message.username; - if (message.status != null && message.hasOwnProperty("status")) + if (message.status != null && Object.hasOwnProperty.call(message, "status")) object.status = message.status; - if (message.lock != null && message.hasOwnProperty("lock")) + if (message.lock != null && Object.hasOwnProperty.call(message, "lock")) object.lock = message.lock; - if (message.userId != null && message.hasOwnProperty("userId")) + if (message.userId != null && Object.hasOwnProperty.call(message, "userId")) object.userId = message.userId; - if (message.accountShareExpiration != null && message.hasOwnProperty("accountShareExpiration")) + if (message.accountShareExpiration != null && Object.hasOwnProperty.call(message, "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") 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; - if (message.fullName != null && message.hasOwnProperty("fullName")) + if (message.fullName != null && Object.hasOwnProperty.call(message, "fullName")) object.fullName = message.fullName; - if (message.jobTitle != null && message.hasOwnProperty("jobTitle")) + if (message.jobTitle != null && Object.hasOwnProperty.call(message, "jobTitle")) object.jobTitle = message.jobTitle; - if (message.tfaEnabled != null && message.hasOwnProperty("tfaEnabled")) + if (message.tfaEnabled != null && Object.hasOwnProperty.call(message, "tfaEnabled")) object.tfaEnabled = message.tfaEnabled; - if (message.transferAcceptanceStatus != null && message.hasOwnProperty("transferAcceptanceStatus")) + if (message.transferAcceptanceStatus != null && Object.hasOwnProperty.call(message, "transferAcceptanceStatus")) object.transferAcceptanceStatus = options.enums === String ? $root.Enterprise.TransferAcceptanceStatus[message.transferAcceptanceStatus] === undefined ? message.transferAcceptanceStatus : $root.Enterprise.TransferAcceptanceStatus[message.transferAcceptanceStatus] : message.transferAcceptanceStatus; return object; }; @@ -70107,19 +56968,6 @@ export const Enterprise = $root.Enterprise = (() => { return writer; }; - /** - * Encodes the specified UserAlias message, length delimited. Does not implicitly {@link Enterprise.UserAlias.verify|verify} messages. - * @function encodeDelimited - * @memberof Enterprise.UserAlias - * @static - * @param {Enterprise.IUserAlias} message UserAlias message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - UserAlias.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a UserAlias message from the specified reader or buffer. * @function decode @@ -70160,46 +57008,6 @@ export const Enterprise = $root.Enterprise = (() => { return message; }; - /** - * Decodes a UserAlias message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Enterprise.UserAlias - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Enterprise.UserAlias} UserAlias - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - UserAlias.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a UserAlias message. - * @function verify - * @memberof Enterprise.UserAlias - * @static - * @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) { - if (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"; - if (message.username != null && message.hasOwnProperty("username")) - if (!$util.isString(message.username)) - return "username: string expected"; - return null; - }; - /** * Creates a UserAlias message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -70211,6 +57019,8 @@ export const Enterprise = $root.Enterprise = (() => { UserAlias.fromObject = function fromObject(object, long) { if (object instanceof $root.Enterprise.UserAlias) return object; + if (!$util.isObject(object)) + throw TypeError(".Enterprise.UserAlias: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -70255,14 +57065,14 @@ export const Enterprise = $root.Enterprise = (() => { object.enterpriseUserId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; object.username = ""; } - if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) + if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, "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") 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")) + if (message.username != null && Object.hasOwnProperty.call(message, "username")) object.username = message.username; return object; }; @@ -70427,19 +57237,6 @@ export const Enterprise = $root.Enterprise = (() => { return writer; }; - /** - * Encodes the specified ComplianceReportMetaData message, length delimited. Does not implicitly {@link Enterprise.ComplianceReportMetaData.verify|verify} messages. - * @function encodeDelimited - * @memberof Enterprise.ComplianceReportMetaData - * @static - * @param {Enterprise.IComplianceReportMetaData} message ComplianceReportMetaData message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ComplianceReportMetaData.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a ComplianceReportMetaData message from the specified reader or buffer. * @function decode @@ -70500,61 +57297,6 @@ export const Enterprise = $root.Enterprise = (() => { return message; }; - /** - * Decodes a ComplianceReportMetaData message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Enterprise.ComplianceReportMetaData - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Enterprise.ComplianceReportMetaData} ComplianceReportMetaData - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ComplianceReportMetaData.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a ComplianceReportMetaData message. - * @function verify - * @memberof Enterprise.ComplianceReportMetaData - * @static - * @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) { - if (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"; - 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"; - if (message.reportName != null && message.hasOwnProperty("reportName")) - if (!$util.isString(message.reportName)) - return "reportName: string expected"; - 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"; - if (message.runByName != null && message.hasOwnProperty("runByName")) - if (!$util.isString(message.runByName)) - return "runByName: string expected"; - if (message.numberOfOwners != null && message.hasOwnProperty("numberOfOwners")) - if (!$util.isInteger(message.numberOfOwners)) - return "numberOfOwners: integer expected"; - if (message.numberOfRecords != null && message.hasOwnProperty("numberOfRecords")) - if (!$util.isInteger(message.numberOfRecords)) - return "numberOfRecords: integer expected"; - return null; - }; - /** * Creates a ComplianceReportMetaData message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -70566,6 +57308,8 @@ export const Enterprise = $root.Enterprise = (() => { ComplianceReportMetaData.fromObject = function fromObject(object, long) { if (object instanceof $root.Enterprise.ComplianceReportMetaData) return object; + if (!$util.isObject(object)) + throw TypeError(".Enterprise.ComplianceReportMetaData: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -70645,29 +57389,29 @@ export const Enterprise = $root.Enterprise = (() => { object.numberOfOwners = 0; object.numberOfRecords = 0; } - if (message.reportUid != null && message.hasOwnProperty("reportUid")) + if (message.reportUid != null && Object.hasOwnProperty.call(message, "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 (message.nodeId != null && Object.hasOwnProperty.call(message, "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") 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")) + if (message.reportName != null && Object.hasOwnProperty.call(message, "reportName")) object.reportName = message.reportName; - if (message.dateGenerated != null && message.hasOwnProperty("dateGenerated")) + if (message.dateGenerated != null && Object.hasOwnProperty.call(message, "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") 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; - if (message.runByName != null && message.hasOwnProperty("runByName")) + if (message.runByName != null && Object.hasOwnProperty.call(message, "runByName")) object.runByName = message.runByName; - if (message.numberOfOwners != null && message.hasOwnProperty("numberOfOwners")) + if (message.numberOfOwners != null && Object.hasOwnProperty.call(message, "numberOfOwners")) object.numberOfOwners = message.numberOfOwners; - if (message.numberOfRecords != null && message.hasOwnProperty("numberOfRecords")) + if (message.numberOfRecords != null && Object.hasOwnProperty.call(message, "numberOfRecords")) object.numberOfRecords = message.numberOfRecords; return object; }; @@ -70788,19 +57532,6 @@ export const Enterprise = $root.Enterprise = (() => { return writer; }; - /** - * Encodes the specified ManagedNode message, length delimited. Does not implicitly {@link Enterprise.ManagedNode.verify|verify} messages. - * @function encodeDelimited - * @memberof Enterprise.ManagedNode - * @static - * @param {Enterprise.IManagedNode} message ManagedNode message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ManagedNode.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a ManagedNode message from the specified reader or buffer. * @function decode @@ -70845,49 +57576,6 @@ export const Enterprise = $root.Enterprise = (() => { return message; }; - /** - * Decodes a ManagedNode message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Enterprise.ManagedNode - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Enterprise.ManagedNode} ManagedNode - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ManagedNode.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a ManagedNode message. - * @function verify - * @memberof Enterprise.ManagedNode - * @static - * @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) { - if (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"; - 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"; - if (message.cascadeNodeManagement != null && message.hasOwnProperty("cascadeNodeManagement")) - if (typeof message.cascadeNodeManagement !== "boolean") - return "cascadeNodeManagement: boolean expected"; - return null; - }; - /** * Creates a ManagedNode message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -70899,6 +57587,8 @@ export const Enterprise = $root.Enterprise = (() => { ManagedNode.fromObject = function fromObject(object, long) { if (object instanceof $root.Enterprise.ManagedNode) return object; + if (!$util.isObject(object)) + throw TypeError(".Enterprise.ManagedNode: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -70957,21 +57647,21 @@ export const Enterprise = $root.Enterprise = (() => { object.managedNodeId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; object.cascadeNodeManagement = false; } - if (message.roleId != null && message.hasOwnProperty("roleId")) + if (message.roleId != null && Object.hasOwnProperty.call(message, "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") 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 (message.managedNodeId != null && Object.hasOwnProperty.call(message, "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") 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.cascadeNodeManagement != null && message.hasOwnProperty("cascadeNodeManagement")) + if (message.cascadeNodeManagement != null && Object.hasOwnProperty.call(message, "cascadeNodeManagement")) object.cascadeNodeManagement = message.cascadeNodeManagement; return object; }; @@ -71094,19 +57784,6 @@ export const Enterprise = $root.Enterprise = (() => { return writer; }; - /** - * Encodes the specified UserManagedNode message, length delimited. Does not implicitly {@link Enterprise.UserManagedNode.verify|verify} messages. - * @function encodeDelimited - * @memberof Enterprise.UserManagedNode - * @static - * @param {Enterprise.IUserManagedNode} message UserManagedNode message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - UserManagedNode.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a UserManagedNode message from the specified reader or buffer. * @function decode @@ -71153,53 +57830,6 @@ export const Enterprise = $root.Enterprise = (() => { return message; }; - /** - * Decodes a UserManagedNode message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Enterprise.UserManagedNode - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Enterprise.UserManagedNode} UserManagedNode - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - UserManagedNode.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a UserManagedNode message. - * @function verify - * @memberof Enterprise.UserManagedNode - * @static - * @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) { - if (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"; - if (message.cascadeNodeManagement != null && message.hasOwnProperty("cascadeNodeManagement")) - if (typeof message.cascadeNodeManagement !== "boolean") - return "cascadeNodeManagement: boolean expected"; - if (message.privileges != null && message.hasOwnProperty("privileges")) { - if (!Array.isArray(message.privileges)) - return "privileges: array expected"; - for (let i = 0; i < message.privileges.length; ++i) - if (!$util.isString(message.privileges[i])) - return "privileges: string[] expected"; - } - return null; - }; - /** * Creates a UserManagedNode message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -71211,6 +57841,8 @@ export const Enterprise = $root.Enterprise = (() => { UserManagedNode.fromObject = function fromObject(object, long) { if (object instanceof $root.Enterprise.UserManagedNode) return object; + if (!$util.isObject(object)) + throw TypeError(".Enterprise.UserManagedNode: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -71264,14 +57896,14 @@ export const Enterprise = $root.Enterprise = (() => { object.nodeId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; object.cascadeNodeManagement = false; } - if (message.nodeId != null && message.hasOwnProperty("nodeId")) + if (message.nodeId != null && Object.hasOwnProperty.call(message, "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") 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.cascadeNodeManagement != null && message.hasOwnProperty("cascadeNodeManagement")) + if (message.cascadeNodeManagement != null && Object.hasOwnProperty.call(message, "cascadeNodeManagement")) object.cascadeNodeManagement = message.cascadeNodeManagement; if (message.privileges && message.privileges.length) { object.privileges = []; @@ -71399,19 +58031,6 @@ export const Enterprise = $root.Enterprise = (() => { return writer; }; - /** - * Encodes the specified UserPrivilege message, length delimited. Does not implicitly {@link Enterprise.UserPrivilege.verify|verify} messages. - * @function encodeDelimited - * @memberof Enterprise.UserPrivilege - * @static - * @param {Enterprise.IUserPrivilege} message UserPrivilege message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - UserPrivilege.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a UserPrivilege message from the specified reader or buffer. * @function decode @@ -71458,55 +58077,6 @@ export const Enterprise = $root.Enterprise = (() => { return message; }; - /** - * Decodes a UserPrivilege message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Enterprise.UserPrivilege - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Enterprise.UserPrivilege} UserPrivilege - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - UserPrivilege.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a UserPrivilege message. - * @function verify - * @memberof Enterprise.UserPrivilege - * @static - * @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) { - if (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); - if (error) - return "userManagedNodes." + error; - } - } - 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"; - if (message.encryptedData != null && message.hasOwnProperty("encryptedData")) - if (!$util.isString(message.encryptedData)) - return "encryptedData: string expected"; - return null; - }; - /** * Creates a UserPrivilege message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -71518,6 +58088,8 @@ export const Enterprise = $root.Enterprise = (() => { UserPrivilege.fromObject = function fromObject(object, long) { if (object instanceof $root.Enterprise.UserPrivilege) return object; + if (!$util.isObject(object)) + throw TypeError(".Enterprise.UserPrivilege: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -71528,7 +58100,7 @@ export const Enterprise = $root.Enterprise = (() => { throw TypeError(".Enterprise.UserPrivilege.userManagedNodes: array expected"); message.userManagedNodes = []; for (let i = 0; i < object.userManagedNodes.length; ++i) { - if (typeof object.userManagedNodes[i] !== "object") + if (!$util.isObject(object.userManagedNodes[i])) throw TypeError(".Enterprise.UserPrivilege.userManagedNodes: object expected"); message.userManagedNodes[i] = $root.Enterprise.UserManagedNode.fromObject(object.userManagedNodes[i], long + 1); } @@ -71579,14 +58151,14 @@ export const Enterprise = $root.Enterprise = (() => { for (let j = 0; j < message.userManagedNodes.length; ++j) object.userManagedNodes[j] = $root.Enterprise.UserManagedNode.toObject(message.userManagedNodes[j], options, q + 1); } - if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) + if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, "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") 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.encryptedData != null && message.hasOwnProperty("encryptedData")) + if (message.encryptedData != null && Object.hasOwnProperty.call(message, "encryptedData")) object.encryptedData = message.encryptedData; return object; }; @@ -71696,19 +58268,6 @@ export const Enterprise = $root.Enterprise = (() => { return writer; }; - /** - * Encodes the specified RoleUser message, length delimited. Does not implicitly {@link Enterprise.RoleUser.verify|verify} messages. - * @function encodeDelimited - * @memberof Enterprise.RoleUser - * @static - * @param {Enterprise.IRoleUser} message RoleUser message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RoleUser.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a RoleUser message from the specified reader or buffer. * @function decode @@ -71749,46 +58308,6 @@ export const Enterprise = $root.Enterprise = (() => { return message; }; - /** - * Decodes a RoleUser message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Enterprise.RoleUser - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Enterprise.RoleUser} RoleUser - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RoleUser.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a RoleUser message. - * @function verify - * @memberof Enterprise.RoleUser - * @static - * @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) { - if (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"; - 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"; - return null; - }; - /** * Creates a RoleUser message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -71800,6 +58319,8 @@ export const Enterprise = $root.Enterprise = (() => { RoleUser.fromObject = function fromObject(object, long) { if (object instanceof $root.Enterprise.RoleUser) return object; + if (!$util.isObject(object)) + throw TypeError(".Enterprise.RoleUser: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -71855,14 +58376,14 @@ export const Enterprise = $root.Enterprise = (() => { } else object.enterpriseUserId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; } - if (message.roleId != null && message.hasOwnProperty("roleId")) + if (message.roleId != null && Object.hasOwnProperty.call(message, "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") 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 (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, "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") @@ -71988,19 +58509,6 @@ export const Enterprise = $root.Enterprise = (() => { return writer; }; - /** - * Encodes the specified RolePrivilege message, length delimited. Does not implicitly {@link Enterprise.RolePrivilege.verify|verify} messages. - * @function encodeDelimited - * @memberof Enterprise.RolePrivilege - * @static - * @param {Enterprise.IRolePrivilege} message RolePrivilege message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RolePrivilege.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a RolePrivilege message from the specified reader or buffer. * @function decode @@ -72045,49 +58553,6 @@ export const Enterprise = $root.Enterprise = (() => { return message; }; - /** - * Decodes a RolePrivilege message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Enterprise.RolePrivilege - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Enterprise.RolePrivilege} RolePrivilege - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RolePrivilege.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a RolePrivilege message. - * @function verify - * @memberof Enterprise.RolePrivilege - * @static - * @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) { - if (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"; - 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"; - if (message.privilegeType != null && message.hasOwnProperty("privilegeType")) - if (!$util.isString(message.privilegeType)) - return "privilegeType: string expected"; - return null; - }; - /** * Creates a RolePrivilege message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -72099,6 +58564,8 @@ export const Enterprise = $root.Enterprise = (() => { RolePrivilege.fromObject = function fromObject(object, long) { if (object instanceof $root.Enterprise.RolePrivilege) return object; + if (!$util.isObject(object)) + throw TypeError(".Enterprise.RolePrivilege: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -72157,21 +58624,21 @@ export const Enterprise = $root.Enterprise = (() => { object.roleId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; object.privilegeType = ""; } - if (message.managedNodeId != null && message.hasOwnProperty("managedNodeId")) + if (message.managedNodeId != null && Object.hasOwnProperty.call(message, "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") 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 (message.roleId != null && Object.hasOwnProperty.call(message, "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") 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.privilegeType != null && message.hasOwnProperty("privilegeType")) + if (message.privilegeType != null && Object.hasOwnProperty.call(message, "privilegeType")) object.privilegeType = message.privilegeType; return object; }; @@ -72294,19 +58761,6 @@ export const Enterprise = $root.Enterprise = (() => { return writer; }; - /** - * Encodes the specified PrivilegesByManagedNode message, length delimited. Does not implicitly {@link Enterprise.PrivilegesByManagedNode.verify|verify} messages. - * @function encodeDelimited - * @memberof Enterprise.PrivilegesByManagedNode - * @static - * @param {Enterprise.IPrivilegesByManagedNode} message PrivilegesByManagedNode message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - PrivilegesByManagedNode.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a PrivilegesByManagedNode message from the specified reader or buffer. * @function decode @@ -72353,53 +58807,6 @@ export const Enterprise = $root.Enterprise = (() => { return message; }; - /** - * Decodes a PrivilegesByManagedNode message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Enterprise.PrivilegesByManagedNode - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Enterprise.PrivilegesByManagedNode} PrivilegesByManagedNode - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - PrivilegesByManagedNode.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a PrivilegesByManagedNode message. - * @function verify - * @memberof Enterprise.PrivilegesByManagedNode - * @static - * @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) { - if (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"; - 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"; - if (message.privileges != null && message.hasOwnProperty("privileges")) { - if (!Array.isArray(message.privileges)) - return "privileges: array expected"; - for (let i = 0; i < message.privileges.length; ++i) - if (!$util.isString(message.privileges[i])) - return "privileges: string[] expected"; - } - return null; - }; - /** * Creates a PrivilegesByManagedNode message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -72411,6 +58818,8 @@ export const Enterprise = $root.Enterprise = (() => { PrivilegesByManagedNode.fromObject = function fromObject(object, long) { if (object instanceof $root.Enterprise.PrivilegesByManagedNode) return object; + if (!$util.isObject(object)) + throw TypeError(".Enterprise.PrivilegesByManagedNode: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -72475,14 +58884,14 @@ export const Enterprise = $root.Enterprise = (() => { } else object.roleId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; } - if (message.managedNodeId != null && message.hasOwnProperty("managedNodeId")) + if (message.managedNodeId != null && Object.hasOwnProperty.call(message, "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") 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 (message.roleId != null && Object.hasOwnProperty.call(message, "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") @@ -72613,19 +59022,6 @@ export const Enterprise = $root.Enterprise = (() => { return writer; }; - /** - * Encodes the specified RoleEnforcement message, length delimited. Does not implicitly {@link Enterprise.RoleEnforcement.verify|verify} messages. - * @function encodeDelimited - * @memberof Enterprise.RoleEnforcement - * @static - * @param {Enterprise.IRoleEnforcement} message RoleEnforcement message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RoleEnforcement.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a RoleEnforcement message from the specified reader or buffer. * @function decode @@ -72670,49 +59066,6 @@ export const Enterprise = $root.Enterprise = (() => { return message; }; - /** - * Decodes a RoleEnforcement message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Enterprise.RoleEnforcement - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Enterprise.RoleEnforcement} RoleEnforcement - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RoleEnforcement.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a RoleEnforcement message. - * @function verify - * @memberof Enterprise.RoleEnforcement - * @static - * @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) { - if (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"; - if (message.enforcementType != null && message.hasOwnProperty("enforcementType")) - if (!$util.isString(message.enforcementType)) - return "enforcementType: string expected"; - if (message.value != null && message.hasOwnProperty("value")) - if (!$util.isString(message.value)) - return "value: string expected"; - return null; - }; - /** * Creates a RoleEnforcement message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -72724,6 +59077,8 @@ export const Enterprise = $root.Enterprise = (() => { RoleEnforcement.fromObject = function fromObject(object, long) { if (object instanceof $root.Enterprise.RoleEnforcement) return object; + if (!$util.isObject(object)) + throw TypeError(".Enterprise.RoleEnforcement: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -72771,16 +59126,16 @@ export const Enterprise = $root.Enterprise = (() => { object.enforcementType = ""; object.value = ""; } - if (message.roleId != null && message.hasOwnProperty("roleId")) + if (message.roleId != null && Object.hasOwnProperty.call(message, "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") 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.enforcementType != null && message.hasOwnProperty("enforcementType")) + if (message.enforcementType != null && Object.hasOwnProperty.call(message, "enforcementType")) object.enforcementType = message.enforcementType; - if (message.value != null && message.hasOwnProperty("value")) + if (message.value != null && Object.hasOwnProperty.call(message, "value")) object.value = message.value; return object; }; @@ -72956,19 +59311,6 @@ export const Enterprise = $root.Enterprise = (() => { return writer; }; - /** - * Encodes the specified Team message, length delimited. Does not implicitly {@link Enterprise.Team.verify|verify} messages. - * @function encodeDelimited - * @memberof Enterprise.Team - * @static - * @param {Enterprise.ITeam} message Team message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Team.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a Team message from the specified reader or buffer. * @function decode @@ -73033,64 +59375,6 @@ export const Enterprise = $root.Enterprise = (() => { return message; }; - /** - * Decodes a Team message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Enterprise.Team - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Enterprise.Team} Team - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Team.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a Team message. - * @function verify - * @memberof Enterprise.Team - * @static - * @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) { - if (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"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - 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"; - if (message.restrictEdit != null && message.hasOwnProperty("restrictEdit")) - if (typeof message.restrictEdit !== "boolean") - return "restrictEdit: boolean expected"; - if (message.restrictShare != null && message.hasOwnProperty("restrictShare")) - if (typeof message.restrictShare !== "boolean") - return "restrictShare: boolean expected"; - if (message.restrictView != null && message.hasOwnProperty("restrictView")) - if (typeof message.restrictView !== "boolean") - return "restrictView: boolean expected"; - if (message.encryptedData != null && message.hasOwnProperty("encryptedData")) - if (!$util.isString(message.encryptedData)) - return "encryptedData: string expected"; - if (message.encryptedTeamKey != null && message.hasOwnProperty("encryptedTeamKey")) - if (!$util.isString(message.encryptedTeamKey)) - return "encryptedTeamKey: string expected"; - return null; - }; - /** * Creates a Team message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -73102,6 +59386,8 @@ export const Enterprise = $root.Enterprise = (() => { Team.fromObject = function fromObject(object, long) { if (object instanceof $root.Enterprise.Team) return object; + if (!$util.isObject(object)) + throw TypeError(".Enterprise.Team: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -73173,26 +59459,26 @@ export const Enterprise = $root.Enterprise = (() => { object.encryptedData = ""; object.encryptedTeamKey = ""; } - if (message.teamUid != null && message.hasOwnProperty("teamUid")) + if (message.teamUid != null && Object.hasOwnProperty.call(message, "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.name != null && message.hasOwnProperty("name")) + if (message.name != null && Object.hasOwnProperty.call(message, "name")) object.name = message.name; - if (message.nodeId != null && message.hasOwnProperty("nodeId")) + if (message.nodeId != null && Object.hasOwnProperty.call(message, "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") 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.restrictEdit != null && message.hasOwnProperty("restrictEdit")) + if (message.restrictEdit != null && Object.hasOwnProperty.call(message, "restrictEdit")) object.restrictEdit = message.restrictEdit; - if (message.restrictShare != null && message.hasOwnProperty("restrictShare")) + if (message.restrictShare != null && Object.hasOwnProperty.call(message, "restrictShare")) object.restrictShare = message.restrictShare; - if (message.restrictView != null && message.hasOwnProperty("restrictView")) + if (message.restrictView != null && Object.hasOwnProperty.call(message, "restrictView")) object.restrictView = message.restrictView; - if (message.encryptedData != null && message.hasOwnProperty("encryptedData")) + if (message.encryptedData != null && Object.hasOwnProperty.call(message, "encryptedData")) object.encryptedData = message.encryptedData; - if (message.encryptedTeamKey != null && message.hasOwnProperty("encryptedTeamKey")) + if (message.encryptedTeamKey != null && Object.hasOwnProperty.call(message, "encryptedTeamKey")) object.encryptedTeamKey = message.encryptedTeamKey; return object; }; @@ -73313,19 +59599,6 @@ export const Enterprise = $root.Enterprise = (() => { return writer; }; - /** - * Encodes the specified TeamUser message, length delimited. Does not implicitly {@link Enterprise.TeamUser.verify|verify} messages. - * @function encodeDelimited - * @memberof Enterprise.TeamUser - * @static - * @param {Enterprise.ITeamUser} message TeamUser message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TeamUser.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a TeamUser message from the specified reader or buffer. * @function decode @@ -73370,49 +59643,6 @@ export const Enterprise = $root.Enterprise = (() => { return message; }; - /** - * Decodes a TeamUser message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Enterprise.TeamUser - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Enterprise.TeamUser} TeamUser - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TeamUser.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a TeamUser message. - * @function verify - * @memberof Enterprise.TeamUser - * @static - * @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) { - if (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"; - 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"; - if (message.userType != null && message.hasOwnProperty("userType")) - if (!$util.isString(message.userType)) - return "userType: string expected"; - return null; - }; - /** * Creates a TeamUser message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -73424,6 +59654,8 @@ export const Enterprise = $root.Enterprise = (() => { TeamUser.fromObject = function fromObject(object, long) { if (object instanceof $root.Enterprise.TeamUser) return object; + if (!$util.isObject(object)) + throw TypeError(".Enterprise.TeamUser: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -73480,16 +59712,16 @@ export const Enterprise = $root.Enterprise = (() => { object.enterpriseUserId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; object.userType = ""; } - if (message.teamUid != null && message.hasOwnProperty("teamUid")) + if (message.teamUid != null && Object.hasOwnProperty.call(message, "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 (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, "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") 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.userType != null && message.hasOwnProperty("userType")) + if (message.userType != null && Object.hasOwnProperty.call(message, "userType")) object.userType = message.userType; return object; }; @@ -73590,19 +59822,6 @@ export const Enterprise = $root.Enterprise = (() => { return writer; }; - /** - * Encodes the specified GetDistributorInfoResponse message, length delimited. Does not implicitly {@link Enterprise.GetDistributorInfoResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof Enterprise.GetDistributorInfoResponse - * @static - * @param {Enterprise.IGetDistributorInfoResponse} message GetDistributorInfoResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetDistributorInfoResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a GetDistributorInfoResponse message from the specified reader or buffer. * @function decode @@ -73641,49 +59860,6 @@ export const Enterprise = $root.Enterprise = (() => { return message; }; - /** - * Decodes a GetDistributorInfoResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Enterprise.GetDistributorInfoResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Enterprise.GetDistributorInfoResponse} GetDistributorInfoResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetDistributorInfoResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a GetDistributorInfoResponse message. - * @function verify - * @memberof Enterprise.GetDistributorInfoResponse - * @static - * @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) { - if (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); - if (error) - return "distributors." + error; - } - } - return null; - }; - /** * Creates a GetDistributorInfoResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -73695,6 +59871,8 @@ export const Enterprise = $root.Enterprise = (() => { GetDistributorInfoResponse.fromObject = function fromObject(object, long) { if (object instanceof $root.Enterprise.GetDistributorInfoResponse) return object; + if (!$util.isObject(object)) + throw TypeError(".Enterprise.GetDistributorInfoResponse: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -73705,7 +59883,7 @@ export const Enterprise = $root.Enterprise = (() => { throw TypeError(".Enterprise.GetDistributorInfoResponse.distributors: array expected"); message.distributors = []; for (let i = 0; i < object.distributors.length; ++i) { - if (typeof object.distributors[i] !== "object") + if (!$util.isObject(object.distributors[i])) throw TypeError(".Enterprise.GetDistributorInfoResponse.distributors: object expected"); message.distributors[i] = $root.Enterprise.Distributor.fromObject(object.distributors[i], long + 1); } @@ -73847,19 +60025,6 @@ export const Enterprise = $root.Enterprise = (() => { return writer; }; - /** - * Encodes the specified Distributor message, length delimited. Does not implicitly {@link Enterprise.Distributor.verify|verify} messages. - * @function encodeDelimited - * @memberof Enterprise.Distributor - * @static - * @param {Enterprise.IDistributor} message Distributor message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Distributor.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a Distributor message from the specified reader or buffer. * @function decode @@ -73902,52 +60067,6 @@ export const Enterprise = $root.Enterprise = (() => { return message; }; - /** - * Decodes a Distributor message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Enterprise.Distributor - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Enterprise.Distributor} Distributor - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Distributor.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a Distributor message. - * @function verify - * @memberof Enterprise.Distributor - * @static - * @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) { - if (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.mspInfos != null && message.hasOwnProperty("mspInfos")) { - 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); - if (error) - return "mspInfos." + error; - } - } - return null; - }; - /** * Creates a Distributor message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -73959,6 +60078,8 @@ export const Enterprise = $root.Enterprise = (() => { Distributor.fromObject = function fromObject(object, long) { if (object instanceof $root.Enterprise.Distributor) return object; + if (!$util.isObject(object)) + throw TypeError(".Enterprise.Distributor: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -73971,7 +60092,7 @@ export const Enterprise = $root.Enterprise = (() => { throw TypeError(".Enterprise.Distributor.mspInfos: array expected"); message.mspInfos = []; for (let i = 0; i < object.mspInfos.length; ++i) { - if (typeof object.mspInfos[i] !== "object") + if (!$util.isObject(object.mspInfos[i])) throw TypeError(".Enterprise.Distributor.mspInfos: object expected"); message.mspInfos[i] = $root.Enterprise.MspInfo.fromObject(object.mspInfos[i], long + 1); } @@ -74000,7 +60121,7 @@ export const Enterprise = $root.Enterprise = (() => { object.mspInfos = []; if (options.defaults) object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) + if (message.name != null && Object.hasOwnProperty.call(message, "name")) object.name = message.name; if (message.mspInfos && message.mspInfos.length) { object.mspInfos = []; @@ -74200,19 +60321,6 @@ export const Enterprise = $root.Enterprise = (() => { return writer; }; - /** - * Encodes the specified MspInfo message, length delimited. Does not implicitly {@link Enterprise.MspInfo.verify|verify} messages. - * @function encodeDelimited - * @memberof Enterprise.MspInfo - * @static - * @param {Enterprise.IMspInfo} message MspInfo message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MspInfo.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a MspInfo message from the specified reader or buffer. * @function decode @@ -74289,87 +60397,6 @@ export const Enterprise = $root.Enterprise = (() => { return message; }; - /** - * Decodes a MspInfo message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Enterprise.MspInfo - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Enterprise.MspInfo} MspInfo - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MspInfo.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a MspInfo message. - * @function verify - * @memberof Enterprise.MspInfo - * @static - * @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) { - if (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"; - if (message.enterpriseName != null && message.hasOwnProperty("enterpriseName")) - if (!$util.isString(message.enterpriseName)) - return "enterpriseName: string expected"; - if (message.allocatedLicenses != null && message.hasOwnProperty("allocatedLicenses")) - if (!$util.isInteger(message.allocatedLicenses)) - return "allocatedLicenses: integer expected"; - if (message.allowedMcProducts != null && message.hasOwnProperty("allowedMcProducts")) { - if (!Array.isArray(message.allowedMcProducts)) - return "allowedMcProducts: array expected"; - for (let i = 0; i < message.allowedMcProducts.length; ++i) - if (!$util.isString(message.allowedMcProducts[i])) - return "allowedMcProducts: string[] expected"; - } - if (message.allowedAddOns != null && message.hasOwnProperty("allowedAddOns")) { - if (!Array.isArray(message.allowedAddOns)) - return "allowedAddOns: array expected"; - for (let i = 0; i < message.allowedAddOns.length; ++i) - if (!$util.isString(message.allowedAddOns[i])) - return "allowedAddOns: string[] expected"; - } - if (message.maxFilePlanType != null && message.hasOwnProperty("maxFilePlanType")) - if (!$util.isString(message.maxFilePlanType)) - return "maxFilePlanType: string expected"; - if (message.managedCompanies != null && message.hasOwnProperty("managedCompanies")) { - 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); - if (error) - return "managedCompanies." + error; - } - } - if (message.allowUnlimitedLicenses != null && message.hasOwnProperty("allowUnlimitedLicenses")) - if (typeof message.allowUnlimitedLicenses !== "boolean") - return "allowUnlimitedLicenses: boolean expected"; - 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.Enterprise.LicenseAddOn.verify(message.addOns[i], long + 1); - if (error) - return "addOns." + error; - } - } - return null; - }; - /** * Creates a MspInfo message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -74381,6 +60408,8 @@ export const Enterprise = $root.Enterprise = (() => { MspInfo.fromObject = function fromObject(object, long) { if (object instanceof $root.Enterprise.MspInfo) return object; + if (!$util.isObject(object)) + throw TypeError(".Enterprise.MspInfo: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -74413,7 +60442,7 @@ export const Enterprise = $root.Enterprise = (() => { throw TypeError(".Enterprise.MspInfo.managedCompanies: array expected"); message.managedCompanies = []; for (let i = 0; i < object.managedCompanies.length; ++i) { - if (typeof object.managedCompanies[i] !== "object") + if (!$util.isObject(object.managedCompanies[i])) throw TypeError(".Enterprise.MspInfo.managedCompanies: object expected"); message.managedCompanies[i] = $root.Enterprise.ManagedCompany.fromObject(object.managedCompanies[i], long + 1); } @@ -74425,7 +60454,7 @@ export const Enterprise = $root.Enterprise = (() => { throw TypeError(".Enterprise.MspInfo.addOns: array expected"); message.addOns = []; for (let i = 0; i < object.addOns.length; ++i) { - if (typeof object.addOns[i] !== "object") + if (!$util.isObject(object.addOns[i])) throw TypeError(".Enterprise.MspInfo.addOns: object expected"); message.addOns[i] = $root.Enterprise.LicenseAddOn.fromObject(object.addOns[i], long + 1); } @@ -74463,11 +60492,11 @@ export const Enterprise = $root.Enterprise = (() => { object.maxFilePlanType = ""; object.allowUnlimitedLicenses = false; } - if (message.enterpriseId != null && message.hasOwnProperty("enterpriseId")) + if (message.enterpriseId != null && Object.hasOwnProperty.call(message, "enterpriseId")) object.enterpriseId = message.enterpriseId; - if (message.enterpriseName != null && message.hasOwnProperty("enterpriseName")) + if (message.enterpriseName != null && Object.hasOwnProperty.call(message, "enterpriseName")) object.enterpriseName = message.enterpriseName; - if (message.allocatedLicenses != null && message.hasOwnProperty("allocatedLicenses")) + if (message.allocatedLicenses != null && Object.hasOwnProperty.call(message, "allocatedLicenses")) object.allocatedLicenses = message.allocatedLicenses; if (message.allowedMcProducts && message.allowedMcProducts.length) { object.allowedMcProducts = []; @@ -74479,14 +60508,14 @@ export const Enterprise = $root.Enterprise = (() => { for (let j = 0; j < message.allowedAddOns.length; ++j) object.allowedAddOns[j] = message.allowedAddOns[j]; } - if (message.maxFilePlanType != null && message.hasOwnProperty("maxFilePlanType")) + if (message.maxFilePlanType != null && Object.hasOwnProperty.call(message, "maxFilePlanType")) object.maxFilePlanType = message.maxFilePlanType; 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); } - if (message.allowUnlimitedLicenses != null && message.hasOwnProperty("allowUnlimitedLicenses")) + if (message.allowUnlimitedLicenses != null && Object.hasOwnProperty.call(message, "allowUnlimitedLicenses")) object.allowUnlimitedLicenses = message.allowUnlimitedLicenses; if (message.addOns && message.addOns.length) { object.addOns = []; @@ -74713,19 +60742,6 @@ export const Enterprise = $root.Enterprise = (() => { return writer; }; - /** - * Encodes the specified ManagedCompany message, length delimited. Does not implicitly {@link Enterprise.ManagedCompany.verify|verify} messages. - * @function encodeDelimited - * @memberof Enterprise.ManagedCompany - * @static - * @param {Enterprise.IManagedCompany} message ManagedCompany message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ManagedCompany.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a ManagedCompany message from the specified reader or buffer. * @function decode @@ -74808,82 +60824,6 @@ export const Enterprise = $root.Enterprise = (() => { return message; }; - /** - * Decodes a ManagedCompany message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Enterprise.ManagedCompany - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Enterprise.ManagedCompany} ManagedCompany - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ManagedCompany.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a ManagedCompany message. - * @function verify - * @memberof Enterprise.ManagedCompany - * @static - * @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) { - if (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"; - if (message.mcEnterpriseName != null && message.hasOwnProperty("mcEnterpriseName")) - if (!$util.isString(message.mcEnterpriseName)) - return "mcEnterpriseName: string expected"; - if (message.mspNodeId != null && message.hasOwnProperty("mspNodeId")) - if (!$util.isInteger(message.mspNodeId) && !(message.mspNodeId && $util.isInteger(message.mspNodeId.low) && $util.isInteger(message.mspNodeId.high))) - return "mspNodeId: integer|Long expected"; - if (message.numberOfSeats != null && message.hasOwnProperty("numberOfSeats")) - if (!$util.isInteger(message.numberOfSeats)) - return "numberOfSeats: integer expected"; - if (message.numberOfUsers != null && message.hasOwnProperty("numberOfUsers")) - if (!$util.isInteger(message.numberOfUsers)) - return "numberOfUsers: integer expected"; - if (message.productId != null && message.hasOwnProperty("productId")) - if (!$util.isString(message.productId)) - return "productId: string expected"; - if (message.isExpired != null && message.hasOwnProperty("isExpired")) - if (typeof message.isExpired !== "boolean") - return "isExpired: boolean expected"; - if (message.treeKey != null && message.hasOwnProperty("treeKey")) - if (!$util.isString(message.treeKey)) - return "treeKey: string expected"; - if (message.treeKeyRole != null && message.hasOwnProperty("treeKeyRole")) - if (!$util.isInteger(message.treeKeyRole) && !(message.treeKeyRole && $util.isInteger(message.treeKeyRole.low) && $util.isInteger(message.treeKeyRole.high))) - return "treeKeyRole: integer|Long expected"; - if (message.filePlanType != null && message.hasOwnProperty("filePlanType")) - if (!$util.isString(message.filePlanType)) - return "filePlanType: string expected"; - 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.Enterprise.LicenseAddOn.verify(message.addOns[i], long + 1); - if (error) - return "addOns." + error; - } - } - if (message.treeKeyTypeId != null && message.hasOwnProperty("treeKeyTypeId")) - if (!$util.isInteger(message.treeKeyTypeId)) - return "treeKeyTypeId: integer expected"; - return null; - }; - /** * Creates a ManagedCompany message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -74895,6 +60835,8 @@ export const Enterprise = $root.Enterprise = (() => { ManagedCompany.fromObject = function fromObject(object, long) { if (object instanceof $root.Enterprise.ManagedCompany) return object; + if (!$util.isObject(object)) + throw TypeError(".Enterprise.ManagedCompany: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -74939,7 +60881,7 @@ export const Enterprise = $root.Enterprise = (() => { throw TypeError(".Enterprise.ManagedCompany.addOns: array expected"); message.addOns = []; for (let i = 0; i < object.addOns.length; ++i) { - if (typeof object.addOns[i] !== "object") + if (!$util.isObject(object.addOns[i])) throw TypeError(".Enterprise.ManagedCompany.addOns: object expected"); message.addOns[i] = $root.Enterprise.LicenseAddOn.fromObject(object.addOns[i], long + 1); } @@ -74989,42 +60931,42 @@ export const Enterprise = $root.Enterprise = (() => { object.filePlanType = ""; object.treeKeyTypeId = 0; } - if (message.mcEnterpriseId != null && message.hasOwnProperty("mcEnterpriseId")) + if (message.mcEnterpriseId != null && Object.hasOwnProperty.call(message, "mcEnterpriseId")) object.mcEnterpriseId = message.mcEnterpriseId; - if (message.mcEnterpriseName != null && message.hasOwnProperty("mcEnterpriseName")) + if (message.mcEnterpriseName != null && Object.hasOwnProperty.call(message, "mcEnterpriseName")) object.mcEnterpriseName = message.mcEnterpriseName; - if (message.mspNodeId != null && message.hasOwnProperty("mspNodeId")) + if (message.mspNodeId != null && Object.hasOwnProperty.call(message, "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") 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; - if (message.numberOfSeats != null && message.hasOwnProperty("numberOfSeats")) + if (message.numberOfSeats != null && Object.hasOwnProperty.call(message, "numberOfSeats")) object.numberOfSeats = message.numberOfSeats; - if (message.numberOfUsers != null && message.hasOwnProperty("numberOfUsers")) + if (message.numberOfUsers != null && Object.hasOwnProperty.call(message, "numberOfUsers")) object.numberOfUsers = message.numberOfUsers; - if (message.productId != null && message.hasOwnProperty("productId")) + if (message.productId != null && Object.hasOwnProperty.call(message, "productId")) object.productId = message.productId; - if (message.isExpired != null && message.hasOwnProperty("isExpired")) + if (message.isExpired != null && Object.hasOwnProperty.call(message, "isExpired")) object.isExpired = message.isExpired; - if (message.treeKey != null && message.hasOwnProperty("treeKey")) + if (message.treeKey != null && Object.hasOwnProperty.call(message, "treeKey")) object.treeKey = message.treeKey; - if (message.treeKeyRole != null && message.hasOwnProperty("treeKeyRole")) + if (message.treeKeyRole != null && Object.hasOwnProperty.call(message, "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") 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; - if (message.filePlanType != null && message.hasOwnProperty("filePlanType")) + if (message.filePlanType != null && Object.hasOwnProperty.call(message, "filePlanType")) object.filePlanType = message.filePlanType; 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); } - if (message.treeKeyTypeId != null && message.hasOwnProperty("treeKeyTypeId")) + if (message.treeKeyTypeId != null && Object.hasOwnProperty.call(message, "treeKeyTypeId")) object.treeKeyTypeId = message.treeKeyTypeId; return object; }; @@ -75156,19 +61098,6 @@ export const Enterprise = $root.Enterprise = (() => { return writer; }; - /** - * Encodes the specified MSPPool message, length delimited. Does not implicitly {@link Enterprise.MSPPool.verify|verify} messages. - * @function encodeDelimited - * @memberof Enterprise.MSPPool - * @static - * @param {Enterprise.IMSPPool} message MSPPool message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MSPPool.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a MSPPool message from the specified reader or buffer. * @function decode @@ -75217,52 +61146,6 @@ export const Enterprise = $root.Enterprise = (() => { return message; }; - /** - * Decodes a MSPPool message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Enterprise.MSPPool - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Enterprise.MSPPool} MSPPool - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MSPPool.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a MSPPool message. - * @function verify - * @memberof Enterprise.MSPPool - * @static - * @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) { - if (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"; - if (message.seats != null && message.hasOwnProperty("seats")) - if (!$util.isInteger(message.seats)) - return "seats: integer expected"; - if (message.availableSeats != null && message.hasOwnProperty("availableSeats")) - if (!$util.isInteger(message.availableSeats)) - return "availableSeats: integer expected"; - if (message.stash != null && message.hasOwnProperty("stash")) - if (!$util.isInteger(message.stash)) - return "stash: integer expected"; - return null; - }; - /** * Creates a MSPPool message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -75274,6 +61157,8 @@ export const Enterprise = $root.Enterprise = (() => { MSPPool.fromObject = function fromObject(object, long) { if (object instanceof $root.Enterprise.MSPPool) return object; + if (!$util.isObject(object)) + throw TypeError(".Enterprise.MSPPool: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -75313,13 +61198,13 @@ export const Enterprise = $root.Enterprise = (() => { object.availableSeats = 0; object.stash = 0; } - if (message.productId != null && message.hasOwnProperty("productId")) + if (message.productId != null && Object.hasOwnProperty.call(message, "productId")) object.productId = message.productId; - if (message.seats != null && message.hasOwnProperty("seats")) + if (message.seats != null && Object.hasOwnProperty.call(message, "seats")) object.seats = message.seats; - if (message.availableSeats != null && message.hasOwnProperty("availableSeats")) + if (message.availableSeats != null && Object.hasOwnProperty.call(message, "availableSeats")) object.availableSeats = message.availableSeats; - if (message.stash != null && message.hasOwnProperty("stash")) + if (message.stash != null && Object.hasOwnProperty.call(message, "stash")) object.stash = message.stash; return object; }; @@ -75429,19 +61314,6 @@ export const Enterprise = $root.Enterprise = (() => { return writer; }; - /** - * Encodes the specified MSPContact message, length delimited. Does not implicitly {@link Enterprise.MSPContact.verify|verify} messages. - * @function encodeDelimited - * @memberof Enterprise.MSPContact - * @static - * @param {Enterprise.IMSPContact} message MSPContact message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MSPContact.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a MSPContact message from the specified reader or buffer. * @function decode @@ -75482,46 +61354,6 @@ export const Enterprise = $root.Enterprise = (() => { return message; }; - /** - * Decodes a MSPContact message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Enterprise.MSPContact - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Enterprise.MSPContact} MSPContact - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MSPContact.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a MSPContact message. - * @function verify - * @memberof Enterprise.MSPContact - * @static - * @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) { - if (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"; - if (message.enterpriseName != null && message.hasOwnProperty("enterpriseName")) - if (!$util.isString(message.enterpriseName)) - return "enterpriseName: string expected"; - return null; - }; - /** * Creates a MSPContact message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -75533,6 +61365,8 @@ export const Enterprise = $root.Enterprise = (() => { MSPContact.fromObject = function fromObject(object, long) { if (object instanceof $root.Enterprise.MSPContact) return object; + if (!$util.isObject(object)) + throw TypeError(".Enterprise.MSPContact: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -75566,9 +61400,9 @@ export const Enterprise = $root.Enterprise = (() => { object.enterpriseId = 0; object.enterpriseName = ""; } - if (message.enterpriseId != null && message.hasOwnProperty("enterpriseId")) + if (message.enterpriseId != null && Object.hasOwnProperty.call(message, "enterpriseId")) object.enterpriseId = message.enterpriseId; - if (message.enterpriseName != null && message.hasOwnProperty("enterpriseName")) + if (message.enterpriseName != null && Object.hasOwnProperty.call(message, "enterpriseName")) object.enterpriseName = message.enterpriseName; return object; }; @@ -75788,19 +61622,6 @@ export const Enterprise = $root.Enterprise = (() => { return writer; }; - /** - * Encodes the specified LicenseAddOn message, length delimited. Does not implicitly {@link Enterprise.LicenseAddOn.verify|verify} messages. - * @function encodeDelimited - * @memberof Enterprise.LicenseAddOn - * @static - * @param {Enterprise.ILicenseAddOn} message LicenseAddOn message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - LicenseAddOn.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a LicenseAddOn message from the specified reader or buffer. * @function decode @@ -75881,76 +61702,6 @@ export const Enterprise = $root.Enterprise = (() => { return message; }; - /** - * Decodes a LicenseAddOn message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Enterprise.LicenseAddOn - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Enterprise.LicenseAddOn} LicenseAddOn - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - LicenseAddOn.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a LicenseAddOn message. - * @function verify - * @memberof Enterprise.LicenseAddOn - * @static - * @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) { - if (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.enabled != null && message.hasOwnProperty("enabled")) - if (typeof message.enabled !== "boolean") - return "enabled: boolean expected"; - if (message.isTrial != null && message.hasOwnProperty("isTrial")) - if (typeof message.isTrial !== "boolean") - return "isTrial: boolean expected"; - 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"; - 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"; - if (message.seats != null && message.hasOwnProperty("seats")) - if (!$util.isInteger(message.seats)) - return "seats: integer expected"; - if (message.activationTime != null && message.hasOwnProperty("activationTime")) - if (!$util.isInteger(message.activationTime) && !(message.activationTime && $util.isInteger(message.activationTime.low) && $util.isInteger(message.activationTime.high))) - return "activationTime: integer|Long expected"; - if (message.includedInProduct != null && message.hasOwnProperty("includedInProduct")) - if (typeof message.includedInProduct !== "boolean") - return "includedInProduct: boolean expected"; - if (message.apiCallCount != null && message.hasOwnProperty("apiCallCount")) - if (!$util.isInteger(message.apiCallCount)) - return "apiCallCount: integer expected"; - if (message.tierDescription != null && message.hasOwnProperty("tierDescription")) - if (!$util.isString(message.tierDescription)) - return "tierDescription: string expected"; - if (message.seatsAllocated != null && message.hasOwnProperty("seatsAllocated")) - if (!$util.isInteger(message.seatsAllocated)) - return "seatsAllocated: integer expected"; - if (message.nhiTierAddOnId != null && message.hasOwnProperty("nhiTierAddOnId")) - if (!$util.isInteger(message.nhiTierAddOnId)) - return "nhiTierAddOnId: integer expected"; - return null; - }; - /** * Creates a LicenseAddOn message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -75962,6 +61713,8 @@ export const Enterprise = $root.Enterprise = (() => { LicenseAddOn.fromObject = function fromObject(object, long) { if (object instanceof $root.Enterprise.LicenseAddOn) return object; + if (!$util.isObject(object)) + throw TypeError(".Enterprise.LicenseAddOn: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -76058,44 +61811,44 @@ export const Enterprise = $root.Enterprise = (() => { object.seatsAllocated = 0; object.nhiTierAddOnId = 0; } - if (message.name != null && message.hasOwnProperty("name")) + if (message.name != null && Object.hasOwnProperty.call(message, "name")) object.name = message.name; - if (message.enabled != null && message.hasOwnProperty("enabled")) + if (message.enabled != null && Object.hasOwnProperty.call(message, "enabled")) object.enabled = message.enabled; - if (message.isTrial != null && message.hasOwnProperty("isTrial")) + if (message.isTrial != null && Object.hasOwnProperty.call(message, "isTrial")) object.isTrial = message.isTrial; - if (message.expiration != null && message.hasOwnProperty("expiration")) + if (message.expiration != null && Object.hasOwnProperty.call(message, "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") 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 (message.created != null && Object.hasOwnProperty.call(message, "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") 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")) + if (message.seats != null && Object.hasOwnProperty.call(message, "seats")) object.seats = message.seats; - if (message.activationTime != null && message.hasOwnProperty("activationTime")) + if (message.activationTime != null && Object.hasOwnProperty.call(message, "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") 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; - if (message.includedInProduct != null && message.hasOwnProperty("includedInProduct")) + if (message.includedInProduct != null && Object.hasOwnProperty.call(message, "includedInProduct")) object.includedInProduct = message.includedInProduct; - if (message.apiCallCount != null && message.hasOwnProperty("apiCallCount")) + if (message.apiCallCount != null && Object.hasOwnProperty.call(message, "apiCallCount")) object.apiCallCount = message.apiCallCount; - if (message.tierDescription != null && message.hasOwnProperty("tierDescription")) + if (message.tierDescription != null && Object.hasOwnProperty.call(message, "tierDescription")) object.tierDescription = message.tierDescription; - if (message.seatsAllocated != null && message.hasOwnProperty("seatsAllocated")) + if (message.seatsAllocated != null && Object.hasOwnProperty.call(message, "seatsAllocated")) object.seatsAllocated = message.seatsAllocated; - if (message.nhiTierAddOnId != null && message.hasOwnProperty("nhiTierAddOnId")) + if (message.nhiTierAddOnId != null && Object.hasOwnProperty.call(message, "nhiTierAddOnId")) object.nhiTierAddOnId = message.nhiTierAddOnId; return object; }; @@ -76240,19 +61993,6 @@ export const Enterprise = $root.Enterprise = (() => { return writer; }; - /** - * Encodes the specified MCDefault message, length delimited. Does not implicitly {@link Enterprise.MCDefault.verify|verify} messages. - * @function encodeDelimited - * @memberof Enterprise.MCDefault - * @static - * @param {Enterprise.IMCDefault} message MCDefault message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MCDefault.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a MCDefault message from the specified reader or buffer. * @function decode @@ -76307,59 +62047,6 @@ export const Enterprise = $root.Enterprise = (() => { return message; }; - /** - * Decodes a MCDefault message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Enterprise.MCDefault - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Enterprise.MCDefault} MCDefault - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MCDefault.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a MCDefault message. - * @function verify - * @memberof Enterprise.MCDefault - * @static - * @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) { - if (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"; - 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) - if (!$util.isString(message.addOns[i])) - return "addOns: string[] expected"; - } - if (message.filePlanType != null && message.hasOwnProperty("filePlanType")) - if (!$util.isString(message.filePlanType)) - return "filePlanType: string expected"; - if (message.maxLicenses != null && message.hasOwnProperty("maxLicenses")) - if (!$util.isInteger(message.maxLicenses)) - return "maxLicenses: integer expected"; - if (message.fixedMaxLicenses != null && message.hasOwnProperty("fixedMaxLicenses")) - if (typeof message.fixedMaxLicenses !== "boolean") - return "fixedMaxLicenses: boolean expected"; - return null; - }; - /** * Creates a MCDefault message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -76371,6 +62058,8 @@ export const Enterprise = $root.Enterprise = (() => { MCDefault.fromObject = function fromObject(object, long) { if (object instanceof $root.Enterprise.MCDefault) return object; + if (!$util.isObject(object)) + throw TypeError(".Enterprise.MCDefault: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -76419,18 +62108,18 @@ export const Enterprise = $root.Enterprise = (() => { object.maxLicenses = 0; object.fixedMaxLicenses = false; } - if (message.mcProduct != null && message.hasOwnProperty("mcProduct")) + if (message.mcProduct != null && Object.hasOwnProperty.call(message, "mcProduct")) object.mcProduct = message.mcProduct; if (message.addOns && message.addOns.length) { object.addOns = []; for (let j = 0; j < message.addOns.length; ++j) object.addOns[j] = message.addOns[j]; } - if (message.filePlanType != null && message.hasOwnProperty("filePlanType")) + if (message.filePlanType != null && Object.hasOwnProperty.call(message, "filePlanType")) object.filePlanType = message.filePlanType; - if (message.maxLicenses != null && message.hasOwnProperty("maxLicenses")) + if (message.maxLicenses != null && Object.hasOwnProperty.call(message, "maxLicenses")) object.maxLicenses = message.maxLicenses; - if (message.fixedMaxLicenses != null && message.hasOwnProperty("fixedMaxLicenses")) + if (message.fixedMaxLicenses != null && Object.hasOwnProperty.call(message, "fixedMaxLicenses")) object.fixedMaxLicenses = message.fixedMaxLicenses; return object; }; @@ -76601,19 +62290,6 @@ export const Enterprise = $root.Enterprise = (() => { return writer; }; - /** - * Encodes the specified MSPPermits message, length delimited. Does not implicitly {@link Enterprise.MSPPermits.verify|verify} messages. - * @function encodeDelimited - * @memberof Enterprise.MSPPermits - * @static - * @param {Enterprise.IMSPPermits} message MSPPermits message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MSPPermits.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a MSPPermits message from the specified reader or buffer. * @function decode @@ -76680,75 +62356,6 @@ export const Enterprise = $root.Enterprise = (() => { return message; }; - /** - * Decodes a MSPPermits message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Enterprise.MSPPermits - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Enterprise.MSPPermits} MSPPermits - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MSPPermits.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a MSPPermits message. - * @function verify - * @memberof Enterprise.MSPPermits - * @static - * @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) { - if (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"; - if (message.maxAllowedLicenses != null && message.hasOwnProperty("maxAllowedLicenses")) - if (!$util.isInteger(message.maxAllowedLicenses)) - return "maxAllowedLicenses: integer expected"; - if (message.allowedMcProducts != null && message.hasOwnProperty("allowedMcProducts")) { - if (!Array.isArray(message.allowedMcProducts)) - return "allowedMcProducts: array expected"; - for (let i = 0; i < message.allowedMcProducts.length; ++i) - if (!$util.isString(message.allowedMcProducts[i])) - return "allowedMcProducts: string[] expected"; - } - if (message.allowedAddOns != null && message.hasOwnProperty("allowedAddOns")) { - if (!Array.isArray(message.allowedAddOns)) - return "allowedAddOns: array expected"; - for (let i = 0; i < message.allowedAddOns.length; ++i) - if (!$util.isString(message.allowedAddOns[i])) - return "allowedAddOns: string[] expected"; - } - if (message.maxFilePlanType != null && message.hasOwnProperty("maxFilePlanType")) - if (!$util.isString(message.maxFilePlanType)) - return "maxFilePlanType: string expected"; - if (message.allowUnlimitedLicenses != null && message.hasOwnProperty("allowUnlimitedLicenses")) - if (typeof message.allowUnlimitedLicenses !== "boolean") - return "allowUnlimitedLicenses: boolean expected"; - if (message.mcDefaults != null && message.hasOwnProperty("mcDefaults")) { - 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); - if (error) - return "mcDefaults." + error; - } - } - return null; - }; - /** * Creates a MSPPermits message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -76760,6 +62367,8 @@ export const Enterprise = $root.Enterprise = (() => { MSPPermits.fromObject = function fromObject(object, long) { if (object instanceof $root.Enterprise.MSPPermits) return object; + if (!$util.isObject(object)) + throw TypeError(".Enterprise.MSPPermits: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -76792,7 +62401,7 @@ export const Enterprise = $root.Enterprise = (() => { throw TypeError(".Enterprise.MSPPermits.mcDefaults: array expected"); message.mcDefaults = []; for (let i = 0; i < object.mcDefaults.length; ++i) { - if (typeof object.mcDefaults[i] !== "object") + if (!$util.isObject(object.mcDefaults[i])) throw TypeError(".Enterprise.MSPPermits.mcDefaults: object expected"); message.mcDefaults[i] = $root.Enterprise.MCDefault.fromObject(object.mcDefaults[i], long + 1); } @@ -76828,9 +62437,9 @@ export const Enterprise = $root.Enterprise = (() => { object.maxFilePlanType = ""; object.allowUnlimitedLicenses = false; } - if (message.restricted != null && message.hasOwnProperty("restricted")) + if (message.restricted != null && Object.hasOwnProperty.call(message, "restricted")) object.restricted = message.restricted; - if (message.maxAllowedLicenses != null && message.hasOwnProperty("maxAllowedLicenses")) + if (message.maxAllowedLicenses != null && Object.hasOwnProperty.call(message, "maxAllowedLicenses")) object.maxAllowedLicenses = message.maxAllowedLicenses; if (message.allowedMcProducts && message.allowedMcProducts.length) { object.allowedMcProducts = []; @@ -76842,9 +62451,9 @@ export const Enterprise = $root.Enterprise = (() => { for (let j = 0; j < message.allowedAddOns.length; ++j) object.allowedAddOns[j] = message.allowedAddOns[j]; } - if (message.maxFilePlanType != null && message.hasOwnProperty("maxFilePlanType")) + if (message.maxFilePlanType != null && Object.hasOwnProperty.call(message, "maxFilePlanType")) object.maxFilePlanType = message.maxFilePlanType; - if (message.allowUnlimitedLicenses != null && message.hasOwnProperty("allowUnlimitedLicenses")) + if (message.allowUnlimitedLicenses != null && Object.hasOwnProperty.call(message, "allowUnlimitedLicenses")) object.allowUnlimitedLicenses = message.allowUnlimitedLicenses; if (message.mcDefaults && message.mcDefaults.length) { object.mcDefaults = []; @@ -77172,19 +62781,6 @@ export const Enterprise = $root.Enterprise = (() => { return writer; }; - /** - * Encodes the specified License message, length delimited. Does not implicitly {@link Enterprise.License.verify|verify} messages. - * @function encodeDelimited - * @memberof Enterprise.License - * @static - * @param {Enterprise.ILicense} message License message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - License.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a License message from the specified reader or buffer. * @function decode @@ -77305,119 +62901,6 @@ export const Enterprise = $root.Enterprise = (() => { return message; }; - /** - * Decodes a License message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Enterprise.License - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Enterprise.License} License - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - License.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a License message. - * @function verify - * @memberof Enterprise.License - * @static - * @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) { - if (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"; - if (message.numberOfSeats != null && message.hasOwnProperty("numberOfSeats")) - if (!$util.isInteger(message.numberOfSeats)) - return "numberOfSeats: integer expected"; - 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"; - if (message.licenseKeyId != null && message.hasOwnProperty("licenseKeyId")) - if (!$util.isInteger(message.licenseKeyId)) - return "licenseKeyId: integer expected"; - if (message.productTypeId != null && message.hasOwnProperty("productTypeId")) - if (!$util.isInteger(message.productTypeId)) - return "productTypeId: integer expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.enterpriseLicenseId != null && message.hasOwnProperty("enterpriseLicenseId")) - if (!$util.isInteger(message.enterpriseLicenseId) && !(message.enterpriseLicenseId && $util.isInteger(message.enterpriseLicenseId.low) && $util.isInteger(message.enterpriseLicenseId.high))) - return "enterpriseLicenseId: integer|Long expected"; - if (message.seatsAllocated != null && message.hasOwnProperty("seatsAllocated")) - if (!$util.isInteger(message.seatsAllocated)) - return "seatsAllocated: integer expected"; - if (message.seatsPending != null && message.hasOwnProperty("seatsPending")) - if (!$util.isInteger(message.seatsPending)) - return "seatsPending: integer expected"; - if (message.tier != null && message.hasOwnProperty("tier")) - if (!$util.isInteger(message.tier)) - return "tier: integer expected"; - if (message.filePlanTypeId != null && message.hasOwnProperty("filePlanTypeId")) - if (!$util.isInteger(message.filePlanTypeId)) - return "filePlanTypeId: integer expected"; - if (message.maxBytes != null && message.hasOwnProperty("maxBytes")) - if (!$util.isInteger(message.maxBytes) && !(message.maxBytes && $util.isInteger(message.maxBytes.low) && $util.isInteger(message.maxBytes.high))) - return "maxBytes: integer|Long expected"; - if (message.storageExpiration != null && message.hasOwnProperty("storageExpiration")) - if (!$util.isInteger(message.storageExpiration) && !(message.storageExpiration && $util.isInteger(message.storageExpiration.low) && $util.isInteger(message.storageExpiration.high))) - return "storageExpiration: integer|Long expected"; - if (message.licenseStatus != null && message.hasOwnProperty("licenseStatus")) - if (!$util.isString(message.licenseStatus)) - return "licenseStatus: string expected"; - if (message.mspPool != null && message.hasOwnProperty("mspPool")) { - 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); - if (error) - return "mspPool." + error; - } - } - if (message.managedBy != null && message.hasOwnProperty("managedBy")) { - let error = $root.Enterprise.MSPContact.verify(message.managedBy, long + 1); - if (error) - return "managedBy." + error; - } - 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.Enterprise.LicenseAddOn.verify(message.addOns[i], long + 1); - if (error) - return "addOns." + error; - } - } - if (message.nextBillingDate != null && message.hasOwnProperty("nextBillingDate")) - if (!$util.isInteger(message.nextBillingDate) && !(message.nextBillingDate && $util.isInteger(message.nextBillingDate.low) && $util.isInteger(message.nextBillingDate.high))) - return "nextBillingDate: integer|Long expected"; - if (message.hasMSPLegacyLog != null && message.hasOwnProperty("hasMSPLegacyLog")) - 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); - if (error) - return "mspPermits." + error; - } - if (message.distributor != null && message.hasOwnProperty("distributor")) - if (typeof message.distributor !== "boolean") - return "distributor: boolean expected"; - return null; - }; - /** * Creates a License message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -77429,6 +62912,8 @@ export const Enterprise = $root.Enterprise = (() => { License.fromObject = function fromObject(object, long) { if (object instanceof $root.Enterprise.License) return object; + if (!$util.isObject(object)) + throw TypeError(".Enterprise.License: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -77495,13 +62980,13 @@ export const Enterprise = $root.Enterprise = (() => { throw TypeError(".Enterprise.License.mspPool: array expected"); message.mspPool = []; for (let i = 0; i < object.mspPool.length; ++i) { - if (typeof object.mspPool[i] !== "object") + if (!$util.isObject(object.mspPool[i])) throw TypeError(".Enterprise.License.mspPool: object expected"); message.mspPool[i] = $root.Enterprise.MSPPool.fromObject(object.mspPool[i], long + 1); } } if (object.managedBy != null) { - if (typeof object.managedBy !== "object") + if (!$util.isObject(object.managedBy)) throw TypeError(".Enterprise.License.managedBy: object expected"); message.managedBy = $root.Enterprise.MSPContact.fromObject(object.managedBy, long + 1); } @@ -77510,7 +62995,7 @@ export const Enterprise = $root.Enterprise = (() => { throw TypeError(".Enterprise.License.addOns: array expected"); message.addOns = []; for (let i = 0; i < object.addOns.length; ++i) { - if (typeof object.addOns[i] !== "object") + if (!$util.isObject(object.addOns[i])) throw TypeError(".Enterprise.License.addOns: object expected"); message.addOns[i] = $root.Enterprise.LicenseAddOn.fromObject(object.addOns[i], long + 1); } @@ -77527,7 +63012,7 @@ export const Enterprise = $root.Enterprise = (() => { if (object.hasMSPLegacyLog != null) message.hasMSPLegacyLog = Boolean(object.hasMSPLegacyLog); if (object.mspPermits != null) { - if (typeof object.mspPermits !== "object") + if (!$util.isObject(object.mspPermits)) throw TypeError(".Enterprise.License.mspPermits: object expected"); message.mspPermits = $root.Enterprise.MSPPermits.fromObject(object.mspPermits, long + 1); } @@ -77598,78 +63083,78 @@ export const Enterprise = $root.Enterprise = (() => { object.mspPermits = null; object.distributor = false; } - if (message.paid != null && message.hasOwnProperty("paid")) + if (message.paid != null && Object.hasOwnProperty.call(message, "paid")) object.paid = message.paid; - if (message.numberOfSeats != null && message.hasOwnProperty("numberOfSeats")) + if (message.numberOfSeats != null && Object.hasOwnProperty.call(message, "numberOfSeats")) object.numberOfSeats = message.numberOfSeats; - if (message.expiration != null && message.hasOwnProperty("expiration")) + if (message.expiration != null && Object.hasOwnProperty.call(message, "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") 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.licenseKeyId != null && message.hasOwnProperty("licenseKeyId")) + if (message.licenseKeyId != null && Object.hasOwnProperty.call(message, "licenseKeyId")) object.licenseKeyId = message.licenseKeyId; - if (message.productTypeId != null && message.hasOwnProperty("productTypeId")) + if (message.productTypeId != null && Object.hasOwnProperty.call(message, "productTypeId")) object.productTypeId = message.productTypeId; - if (message.name != null && message.hasOwnProperty("name")) + if (message.name != null && Object.hasOwnProperty.call(message, "name")) object.name = message.name; - if (message.enterpriseLicenseId != null && message.hasOwnProperty("enterpriseLicenseId")) + if (message.enterpriseLicenseId != null && Object.hasOwnProperty.call(message, "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") 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; - if (message.seatsAllocated != null && message.hasOwnProperty("seatsAllocated")) + if (message.seatsAllocated != null && Object.hasOwnProperty.call(message, "seatsAllocated")) object.seatsAllocated = message.seatsAllocated; - if (message.seatsPending != null && message.hasOwnProperty("seatsPending")) + if (message.seatsPending != null && Object.hasOwnProperty.call(message, "seatsPending")) object.seatsPending = message.seatsPending; - if (message.tier != null && message.hasOwnProperty("tier")) + if (message.tier != null && Object.hasOwnProperty.call(message, "tier")) object.tier = message.tier; - if (message.filePlanTypeId != null && message.hasOwnProperty("filePlanTypeId")) + if (message.filePlanTypeId != null && Object.hasOwnProperty.call(message, "filePlanTypeId")) object.filePlanTypeId = message.filePlanTypeId; - if (message.maxBytes != null && message.hasOwnProperty("maxBytes")) + if (message.maxBytes != null && Object.hasOwnProperty.call(message, "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") 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 (message.storageExpiration != null && Object.hasOwnProperty.call(message, "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") 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; - if (message.licenseStatus != null && message.hasOwnProperty("licenseStatus")) + if (message.licenseStatus != null && Object.hasOwnProperty.call(message, "licenseStatus")) object.licenseStatus = message.licenseStatus; 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); } - if (message.managedBy != null && message.hasOwnProperty("managedBy")) + if (message.managedBy != null && Object.hasOwnProperty.call(message, "managedBy")) object.managedBy = $root.Enterprise.MSPContact.toObject(message.managedBy, options, q + 1); 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); } - if (message.nextBillingDate != null && message.hasOwnProperty("nextBillingDate")) + if (message.nextBillingDate != null && Object.hasOwnProperty.call(message, "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") 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")) + if (message.hasMSPLegacyLog != null && Object.hasOwnProperty.call(message, "hasMSPLegacyLog")) object.hasMSPLegacyLog = message.hasMSPLegacyLog; - if (message.mspPermits != null && message.hasOwnProperty("mspPermits")) + if (message.mspPermits != null && Object.hasOwnProperty.call(message, "mspPermits")) object.mspPermits = $root.Enterprise.MSPPermits.toObject(message.mspPermits, options, q + 1); - if (message.distributor != null && message.hasOwnProperty("distributor")) + if (message.distributor != null && Object.hasOwnProperty.call(message, "distributor")) object.distributor = message.distributor; return object; }; @@ -77812,19 +63297,6 @@ export const Enterprise = $root.Enterprise = (() => { return writer; }; - /** - * Encodes the specified Bridge message, length delimited. Does not implicitly {@link Enterprise.Bridge.verify|verify} messages. - * @function encodeDelimited - * @memberof Enterprise.Bridge - * @static - * @param {Enterprise.IBridge} message Bridge message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Bridge.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a Bridge message from the specified reader or buffer. * @function decode @@ -77877,55 +63349,6 @@ export const Enterprise = $root.Enterprise = (() => { return message; }; - /** - * Decodes a Bridge message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Enterprise.Bridge - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Enterprise.Bridge} Bridge - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Bridge.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a Bridge message. - * @function verify - * @memberof Enterprise.Bridge - * @static - * @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) { - if (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"; - 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"; - if (message.wanIpEnforcement != null && message.hasOwnProperty("wanIpEnforcement")) - if (!$util.isString(message.wanIpEnforcement)) - return "wanIpEnforcement: string expected"; - if (message.lanIpEnforcement != null && message.hasOwnProperty("lanIpEnforcement")) - if (!$util.isString(message.lanIpEnforcement)) - return "lanIpEnforcement: string expected"; - if (message.status != null && message.hasOwnProperty("status")) - if (!$util.isString(message.status)) - return "status: string expected"; - return null; - }; - /** * Creates a Bridge message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -77937,6 +63360,8 @@ export const Enterprise = $root.Enterprise = (() => { Bridge.fromObject = function fromObject(object, long) { if (object instanceof $root.Enterprise.Bridge) return object; + if (!$util.isObject(object)) + throw TypeError(".Enterprise.Bridge: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -78001,25 +63426,25 @@ export const Enterprise = $root.Enterprise = (() => { object.lanIpEnforcement = ""; object.status = ""; } - if (message.bridgeId != null && message.hasOwnProperty("bridgeId")) + if (message.bridgeId != null && Object.hasOwnProperty.call(message, "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") 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 (message.nodeId != null && Object.hasOwnProperty.call(message, "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") 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.wanIpEnforcement != null && message.hasOwnProperty("wanIpEnforcement")) + if (message.wanIpEnforcement != null && Object.hasOwnProperty.call(message, "wanIpEnforcement")) object.wanIpEnforcement = message.wanIpEnforcement; - if (message.lanIpEnforcement != null && message.hasOwnProperty("lanIpEnforcement")) + if (message.lanIpEnforcement != null && Object.hasOwnProperty.call(message, "lanIpEnforcement")) object.lanIpEnforcement = message.lanIpEnforcement; - if (message.status != null && message.hasOwnProperty("status")) + if (message.status != null && Object.hasOwnProperty.call(message, "status")) object.status = message.status; return object; }; @@ -78173,19 +63598,6 @@ export const Enterprise = $root.Enterprise = (() => { return writer; }; - /** - * Encodes the specified Scim message, length delimited. Does not implicitly {@link Enterprise.Scim.verify|verify} messages. - * @function encodeDelimited - * @memberof Enterprise.Scim - * @static - * @param {Enterprise.IScim} message Scim message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Scim.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a Scim message from the specified reader or buffer. * @function decode @@ -78242,58 +63654,6 @@ export const Enterprise = $root.Enterprise = (() => { return message; }; - /** - * Decodes a Scim message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Enterprise.Scim - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Enterprise.Scim} Scim - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Scim.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a Scim message. - * @function verify - * @memberof Enterprise.Scim - * @static - * @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) { - if (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"; - 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"; - if (message.status != null && message.hasOwnProperty("status")) - if (!$util.isString(message.status)) - return "status: string expected"; - if (message.lastSynced != null && message.hasOwnProperty("lastSynced")) - if (!$util.isInteger(message.lastSynced) && !(message.lastSynced && $util.isInteger(message.lastSynced.low) && $util.isInteger(message.lastSynced.high))) - return "lastSynced: integer|Long expected"; - if (message.rolePrefix != null && message.hasOwnProperty("rolePrefix")) - if (!$util.isString(message.rolePrefix)) - return "rolePrefix: string expected"; - if (message.uniqueGroups != null && message.hasOwnProperty("uniqueGroups")) - if (typeof message.uniqueGroups !== "boolean") - return "uniqueGroups: boolean expected"; - return null; - }; - /** * Creates a Scim message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -78305,6 +63665,8 @@ export const Enterprise = $root.Enterprise = (() => { Scim.fromObject = function fromObject(object, long) { if (object instanceof $root.Enterprise.Scim) return object; + if (!$util.isObject(object)) + throw TypeError(".Enterprise.Scim: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -78383,32 +63745,32 @@ export const Enterprise = $root.Enterprise = (() => { object.rolePrefix = ""; object.uniqueGroups = false; } - if (message.scimId != null && message.hasOwnProperty("scimId")) + if (message.scimId != null && Object.hasOwnProperty.call(message, "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") 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 (message.nodeId != null && Object.hasOwnProperty.call(message, "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") 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")) + if (message.status != null && Object.hasOwnProperty.call(message, "status")) object.status = message.status; - if (message.lastSynced != null && message.hasOwnProperty("lastSynced")) + if (message.lastSynced != null && Object.hasOwnProperty.call(message, "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") 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; - if (message.rolePrefix != null && message.hasOwnProperty("rolePrefix")) + if (message.rolePrefix != null && Object.hasOwnProperty.call(message, "rolePrefix")) object.rolePrefix = message.rolePrefix; - if (message.uniqueGroups != null && message.hasOwnProperty("uniqueGroups")) + if (message.uniqueGroups != null && Object.hasOwnProperty.call(message, "uniqueGroups")) object.uniqueGroups = message.uniqueGroups; return object; }; @@ -78540,19 +63902,6 @@ export const Enterprise = $root.Enterprise = (() => { return writer; }; - /** - * Encodes the specified EmailProvision message, length delimited. Does not implicitly {@link Enterprise.EmailProvision.verify|verify} messages. - * @function encodeDelimited - * @memberof Enterprise.EmailProvision - * @static - * @param {Enterprise.IEmailProvision} message EmailProvision message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - EmailProvision.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes an EmailProvision message from the specified reader or buffer. * @function decode @@ -78601,52 +63950,6 @@ export const Enterprise = $root.Enterprise = (() => { return message; }; - /** - * Decodes an EmailProvision message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Enterprise.EmailProvision - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Enterprise.EmailProvision} EmailProvision - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - EmailProvision.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an EmailProvision message. - * @function verify - * @memberof Enterprise.EmailProvision - * @static - * @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) { - if (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.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"; - if (message.domain != null && message.hasOwnProperty("domain")) - if (!$util.isString(message.domain)) - return "domain: string expected"; - if (message.method != null && message.hasOwnProperty("method")) - if (!$util.isString(message.method)) - return "method: string expected"; - return null; - }; - /** * Creates an EmailProvision message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -78658,6 +63961,8 @@ export const Enterprise = $root.Enterprise = (() => { EmailProvision.fromObject = function fromObject(object, long) { if (object instanceof $root.Enterprise.EmailProvision) return object; + if (!$util.isObject(object)) + throw TypeError(".Enterprise.EmailProvision: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -78708,18 +64013,18 @@ export const Enterprise = $root.Enterprise = (() => { object.domain = ""; object.method = ""; } - if (message.id != null && message.hasOwnProperty("id")) + if (message.id != null && Object.hasOwnProperty.call(message, "id")) object.id = message.id; - if (message.nodeId != null && message.hasOwnProperty("nodeId")) + if (message.nodeId != null && Object.hasOwnProperty.call(message, "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") 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.domain != null && message.hasOwnProperty("domain")) + if (message.domain != null && Object.hasOwnProperty.call(message, "domain")) object.domain = message.domain; - if (message.method != null && message.hasOwnProperty("method")) + if (message.method != null && Object.hasOwnProperty.call(message, "method")) object.method = message.method; return object; }; @@ -78851,19 +64156,6 @@ export const Enterprise = $root.Enterprise = (() => { return writer; }; - /** - * Encodes the specified QueuedTeam message, length delimited. Does not implicitly {@link Enterprise.QueuedTeam.verify|verify} messages. - * @function encodeDelimited - * @memberof Enterprise.QueuedTeam - * @static - * @param {Enterprise.IQueuedTeam} message QueuedTeam message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - QueuedTeam.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a QueuedTeam message from the specified reader or buffer. * @function decode @@ -78912,52 +64204,6 @@ export const Enterprise = $root.Enterprise = (() => { return message; }; - /** - * Decodes a QueuedTeam message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Enterprise.QueuedTeam - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Enterprise.QueuedTeam} QueuedTeam - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - QueuedTeam.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a QueuedTeam message. - * @function verify - * @memberof Enterprise.QueuedTeam - * @static - * @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) { - if (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"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - 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"; - if (message.encryptedData != null && message.hasOwnProperty("encryptedData")) - if (!$util.isString(message.encryptedData)) - return "encryptedData: string expected"; - return null; - }; - /** * Creates a QueuedTeam message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -78969,6 +64215,8 @@ export const Enterprise = $root.Enterprise = (() => { QueuedTeam.fromObject = function fromObject(object, long) { if (object instanceof $root.Enterprise.QueuedTeam) return object; + if (!$util.isObject(object)) + throw TypeError(".Enterprise.QueuedTeam: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -79028,18 +64276,18 @@ export const Enterprise = $root.Enterprise = (() => { object.nodeId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; object.encryptedData = ""; } - if (message.teamUid != null && message.hasOwnProperty("teamUid")) + if (message.teamUid != null && Object.hasOwnProperty.call(message, "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.name != null && message.hasOwnProperty("name")) + if (message.name != null && Object.hasOwnProperty.call(message, "name")) object.name = message.name; - if (message.nodeId != null && message.hasOwnProperty("nodeId")) + if (message.nodeId != null && Object.hasOwnProperty.call(message, "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") 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.encryptedData != null && message.hasOwnProperty("encryptedData")) + if (message.encryptedData != null && Object.hasOwnProperty.call(message, "encryptedData")) object.encryptedData = message.encryptedData; return object; }; @@ -79154,19 +64402,6 @@ export const Enterprise = $root.Enterprise = (() => { return writer; }; - /** - * Encodes the specified QueuedTeamUser message, length delimited. Does not implicitly {@link Enterprise.QueuedTeamUser.verify|verify} messages. - * @function encodeDelimited - * @memberof Enterprise.QueuedTeamUser - * @static - * @param {Enterprise.IQueuedTeamUser} message QueuedTeamUser message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - QueuedTeamUser.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a QueuedTeamUser message from the specified reader or buffer. * @function decode @@ -79214,50 +64449,6 @@ export const Enterprise = $root.Enterprise = (() => { return message; }; - /** - * Decodes a QueuedTeamUser message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Enterprise.QueuedTeamUser - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Enterprise.QueuedTeamUser} QueuedTeamUser - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - QueuedTeamUser.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a QueuedTeamUser message. - * @function verify - * @memberof Enterprise.QueuedTeamUser - * @static - * @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) { - if (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"; - 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) - if (!$util.isInteger(message.users[i]) && !(message.users[i] && $util.isInteger(message.users[i].low) && $util.isInteger(message.users[i].high))) - return "users: integer|Long[] expected"; - } - return null; - }; - /** * Creates a QueuedTeamUser message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -79269,6 +64460,8 @@ export const Enterprise = $root.Enterprise = (() => { QueuedTeamUser.fromObject = function fromObject(object, long) { if (object instanceof $root.Enterprise.QueuedTeamUser) return object; + if (!$util.isObject(object)) + throw TypeError(".Enterprise.QueuedTeamUser: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -79323,7 +64516,7 @@ export const Enterprise = $root.Enterprise = (() => { if (options.bytes !== Array) object.teamUid = $util.newBuffer(object.teamUid); } - if (message.teamUid != null && message.hasOwnProperty("teamUid")) + if (message.teamUid != null && Object.hasOwnProperty.call(message, "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.users && message.users.length) { object.users = []; @@ -79474,19 +64667,6 @@ export const Enterprise = $root.Enterprise = (() => { return writer; }; - /** - * Encodes the specified TeamsAddResult message, length delimited. Does not implicitly {@link Enterprise.TeamsAddResult.verify|verify} messages. - * @function encodeDelimited - * @memberof Enterprise.TeamsAddResult - * @static - * @param {Enterprise.ITeamsAddResult} message TeamsAddResult message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TeamsAddResult.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a TeamsAddResult message from the specified reader or buffer. * @function decode @@ -79539,64 +64719,6 @@ export const Enterprise = $root.Enterprise = (() => { return message; }; - /** - * Decodes a TeamsAddResult message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Enterprise.TeamsAddResult - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Enterprise.TeamsAddResult} TeamsAddResult - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TeamsAddResult.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a TeamsAddResult message. - * @function verify - * @memberof Enterprise.TeamsAddResult - * @static - * @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) { - if (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); - if (error) - return "successfulTeamAdd." + error; - } - } - if (message.unsuccessfulTeamAdd != null && message.hasOwnProperty("unsuccessfulTeamAdd")) { - 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); - if (error) - return "unsuccessfulTeamAdd." + error; - } - } - if (message.result != null && message.hasOwnProperty("result")) - if (!$util.isString(message.result)) - return "result: string expected"; - if (message.errorMessage != null && message.hasOwnProperty("errorMessage")) - if (!$util.isString(message.errorMessage)) - return "errorMessage: string expected"; - return null; - }; - /** * Creates a TeamsAddResult message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -79608,6 +64730,8 @@ export const Enterprise = $root.Enterprise = (() => { TeamsAddResult.fromObject = function fromObject(object, long) { if (object instanceof $root.Enterprise.TeamsAddResult) return object; + if (!$util.isObject(object)) + throw TypeError(".Enterprise.TeamsAddResult: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -79618,7 +64742,7 @@ export const Enterprise = $root.Enterprise = (() => { throw TypeError(".Enterprise.TeamsAddResult.successfulTeamAdd: array expected"); message.successfulTeamAdd = []; for (let i = 0; i < object.successfulTeamAdd.length; ++i) { - if (typeof object.successfulTeamAdd[i] !== "object") + if (!$util.isObject(object.successfulTeamAdd[i])) throw TypeError(".Enterprise.TeamsAddResult.successfulTeamAdd: object expected"); message.successfulTeamAdd[i] = $root.Enterprise.TeamAddResult.fromObject(object.successfulTeamAdd[i], long + 1); } @@ -79628,7 +64752,7 @@ export const Enterprise = $root.Enterprise = (() => { throw TypeError(".Enterprise.TeamsAddResult.unsuccessfulTeamAdd: array expected"); message.unsuccessfulTeamAdd = []; for (let i = 0; i < object.unsuccessfulTeamAdd.length; ++i) { - if (typeof object.unsuccessfulTeamAdd[i] !== "object") + if (!$util.isObject(object.unsuccessfulTeamAdd[i])) throw TypeError(".Enterprise.TeamsAddResult.unsuccessfulTeamAdd: object expected"); message.unsuccessfulTeamAdd[i] = $root.Enterprise.TeamAddResult.fromObject(object.unsuccessfulTeamAdd[i], long + 1); } @@ -79675,9 +64799,9 @@ export const Enterprise = $root.Enterprise = (() => { for (let j = 0; j < message.unsuccessfulTeamAdd.length; ++j) object.unsuccessfulTeamAdd[j] = $root.Enterprise.TeamAddResult.toObject(message.unsuccessfulTeamAdd[j], options, q + 1); } - if (message.result != null && message.hasOwnProperty("result")) + if (message.result != null && Object.hasOwnProperty.call(message, "result")) object.result = message.result; - if (message.errorMessage != null && message.hasOwnProperty("errorMessage")) + if (message.errorMessage != null && Object.hasOwnProperty.call(message, "errorMessage")) object.errorMessage = message.errorMessage; return object; }; @@ -79798,19 +64922,6 @@ export const Enterprise = $root.Enterprise = (() => { return writer; }; - /** - * Encodes the specified TeamAddResult message, length delimited. Does not implicitly {@link Enterprise.TeamAddResult.verify|verify} messages. - * @function encodeDelimited - * @memberof Enterprise.TeamAddResult - * @static - * @param {Enterprise.ITeamAddResult} message TeamAddResult message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TeamAddResult.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a TeamAddResult message from the specified reader or buffer. * @function decode @@ -79855,51 +64966,6 @@ export const Enterprise = $root.Enterprise = (() => { return message; }; - /** - * Decodes a TeamAddResult message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Enterprise.TeamAddResult - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Enterprise.TeamAddResult} TeamAddResult - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TeamAddResult.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a TeamAddResult message. - * @function verify - * @memberof Enterprise.TeamAddResult - * @static - * @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) { - if (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); - if (error) - return "team." + error; - } - if (message.result != null && message.hasOwnProperty("result")) - if (!$util.isString(message.result)) - return "result: string expected"; - if (message.errorMessage != null && message.hasOwnProperty("errorMessage")) - if (!$util.isString(message.errorMessage)) - return "errorMessage: string expected"; - return null; - }; - /** * Creates a TeamAddResult message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -79911,13 +64977,15 @@ export const Enterprise = $root.Enterprise = (() => { TeamAddResult.fromObject = function fromObject(object, long) { if (object instanceof $root.Enterprise.TeamAddResult) return object; + if (!$util.isObject(object)) + throw TypeError(".Enterprise.TeamAddResult: object expected"); 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") + if (!$util.isObject(object.team)) throw TypeError(".Enterprise.TeamAddResult.team: object expected"); message.team = $root.Enterprise.Team.fromObject(object.team, long + 1); } @@ -79950,11 +65018,11 @@ export const Enterprise = $root.Enterprise = (() => { object.result = ""; object.errorMessage = ""; } - if (message.team != null && message.hasOwnProperty("team")) + if (message.team != null && Object.hasOwnProperty.call(message, "team")) object.team = $root.Enterprise.Team.toObject(message.team, options, q + 1); - if (message.result != null && message.hasOwnProperty("result")) + if (message.result != null && Object.hasOwnProperty.call(message, "result")) object.result = message.result; - if (message.errorMessage != null && message.hasOwnProperty("errorMessage")) + if (message.errorMessage != null && Object.hasOwnProperty.call(message, "errorMessage")) object.errorMessage = message.errorMessage; return object; }; @@ -80119,19 +65187,6 @@ export const Enterprise = $root.Enterprise = (() => { return writer; }; - /** - * Encodes the specified SsoService message, length delimited. Does not implicitly {@link Enterprise.SsoService.verify|verify} messages. - * @function encodeDelimited - * @memberof Enterprise.SsoService - * @static - * @param {Enterprise.ISsoService} message SsoService message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SsoService.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a SsoService message from the specified reader or buffer. * @function decode @@ -80192,61 +65247,6 @@ export const Enterprise = $root.Enterprise = (() => { return message; }; - /** - * Decodes a SsoService message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Enterprise.SsoService - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Enterprise.SsoService} SsoService - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SsoService.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a SsoService message. - * @function verify - * @memberof Enterprise.SsoService - * @static - * @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) { - if (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"; - 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"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.spUrl != null && message.hasOwnProperty("spUrl")) - if (!$util.isString(message.spUrl)) - return "spUrl: string expected"; - if (message.inviteNewUsers != null && message.hasOwnProperty("inviteNewUsers")) - if (typeof message.inviteNewUsers !== "boolean") - return "inviteNewUsers: boolean expected"; - if (message.active != null && message.hasOwnProperty("active")) - if (typeof message.active !== "boolean") - return "active: boolean expected"; - if (message.isCloud != null && message.hasOwnProperty("isCloud")) - if (typeof message.isCloud !== "boolean") - return "isCloud: boolean expected"; - return null; - }; - /** * Creates a SsoService message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -80258,6 +65258,8 @@ export const Enterprise = $root.Enterprise = (() => { SsoService.fromObject = function fromObject(object, long) { if (object instanceof $root.Enterprise.SsoService) return object; + if (!$util.isObject(object)) + throw TypeError(".Enterprise.SsoService: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -80328,29 +65330,29 @@ export const Enterprise = $root.Enterprise = (() => { object.active = false; object.isCloud = false; } - if (message.ssoServiceProviderId != null && message.hasOwnProperty("ssoServiceProviderId")) + if (message.ssoServiceProviderId != null && Object.hasOwnProperty.call(message, "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") 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 (message.nodeId != null && Object.hasOwnProperty.call(message, "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") 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")) + if (message.name != null && Object.hasOwnProperty.call(message, "name")) object.name = message.name; - if (message.spUrl != null && message.hasOwnProperty("spUrl")) + if (message.spUrl != null && Object.hasOwnProperty.call(message, "spUrl")) object.spUrl = message.spUrl; - if (message.inviteNewUsers != null && message.hasOwnProperty("inviteNewUsers")) + if (message.inviteNewUsers != null && Object.hasOwnProperty.call(message, "inviteNewUsers")) object.inviteNewUsers = message.inviteNewUsers; - if (message.active != null && message.hasOwnProperty("active")) + if (message.active != null && Object.hasOwnProperty.call(message, "active")) object.active = message.active; - if (message.isCloud != null && message.hasOwnProperty("isCloud")) + if (message.isCloud != null && Object.hasOwnProperty.call(message, "isCloud")) object.isCloud = message.isCloud; return object; }; @@ -80460,19 +65462,6 @@ export const Enterprise = $root.Enterprise = (() => { return writer; }; - /** - * Encodes the specified ReportFilterUser message, length delimited. Does not implicitly {@link Enterprise.ReportFilterUser.verify|verify} messages. - * @function encodeDelimited - * @memberof Enterprise.ReportFilterUser - * @static - * @param {Enterprise.IReportFilterUser} message ReportFilterUser message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ReportFilterUser.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a ReportFilterUser message from the specified reader or buffer. * @function decode @@ -80513,46 +65502,6 @@ export const Enterprise = $root.Enterprise = (() => { return message; }; - /** - * Decodes a ReportFilterUser message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Enterprise.ReportFilterUser - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Enterprise.ReportFilterUser} ReportFilterUser - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ReportFilterUser.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a ReportFilterUser message. - * @function verify - * @memberof Enterprise.ReportFilterUser - * @static - * @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) { - if (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"; - if (message.email != null && message.hasOwnProperty("email")) - if (!$util.isString(message.email)) - return "email: string expected"; - return null; - }; - /** * Creates a ReportFilterUser message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -80564,6 +65513,8 @@ export const Enterprise = $root.Enterprise = (() => { ReportFilterUser.fromObject = function fromObject(object, long) { if (object instanceof $root.Enterprise.ReportFilterUser) return object; + if (!$util.isObject(object)) + throw TypeError(".Enterprise.ReportFilterUser: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -80597,9 +65548,9 @@ export const Enterprise = $root.Enterprise = (() => { object.userId = 0; object.email = ""; } - if (message.userId != null && message.hasOwnProperty("userId")) + if (message.userId != null && Object.hasOwnProperty.call(message, "userId")) object.userId = message.userId; - if (message.email != null && message.hasOwnProperty("email")) + if (message.email != null && Object.hasOwnProperty.call(message, "email")) object.email = message.email; return object; }; @@ -80819,19 +65770,6 @@ export const Enterprise = $root.Enterprise = (() => { return writer; }; - /** - * Encodes the specified DeviceRequestForAdminApproval message, length delimited. Does not implicitly {@link Enterprise.DeviceRequestForAdminApproval.verify|verify} messages. - * @function encodeDelimited - * @memberof Enterprise.DeviceRequestForAdminApproval - * @static - * @param {Enterprise.IDeviceRequestForAdminApproval} message DeviceRequestForAdminApproval message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - DeviceRequestForAdminApproval.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a DeviceRequestForAdminApproval message from the specified reader or buffer. * @function decode @@ -80912,76 +65850,6 @@ export const Enterprise = $root.Enterprise = (() => { return message; }; - /** - * Decodes a DeviceRequestForAdminApproval message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Enterprise.DeviceRequestForAdminApproval - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Enterprise.DeviceRequestForAdminApproval} DeviceRequestForAdminApproval - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - DeviceRequestForAdminApproval.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a DeviceRequestForAdminApproval message. - * @function verify - * @memberof Enterprise.DeviceRequestForAdminApproval - * @static - * @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) { - if (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"; - 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"; - if (message.encryptedDeviceToken != null && message.hasOwnProperty("encryptedDeviceToken")) - if (!(message.encryptedDeviceToken && typeof message.encryptedDeviceToken.length === "number" || $util.isString(message.encryptedDeviceToken))) - return "encryptedDeviceToken: buffer expected"; - if (message.devicePublicKey != null && message.hasOwnProperty("devicePublicKey")) - if (!(message.devicePublicKey && typeof message.devicePublicKey.length === "number" || $util.isString(message.devicePublicKey))) - return "devicePublicKey: buffer expected"; - if (message.deviceName != null && message.hasOwnProperty("deviceName")) - if (!$util.isString(message.deviceName)) - return "deviceName: string expected"; - if (message.clientVersion != null && message.hasOwnProperty("clientVersion")) - if (!$util.isString(message.clientVersion)) - return "clientVersion: string expected"; - if (message.deviceType != null && message.hasOwnProperty("deviceType")) - if (!$util.isString(message.deviceType)) - return "deviceType: string expected"; - 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"; - if (message.ipAddress != null && message.hasOwnProperty("ipAddress")) - if (!$util.isString(message.ipAddress)) - return "ipAddress: string expected"; - if (message.location != null && message.hasOwnProperty("location")) - if (!$util.isString(message.location)) - return "location: string expected"; - if (message.email != null && message.hasOwnProperty("email")) - if (!$util.isString(message.email)) - return "email: string expected"; - if (message.accountUid != null && message.hasOwnProperty("accountUid")) - if (!(message.accountUid && typeof message.accountUid.length === "number" || $util.isString(message.accountUid))) - return "accountUid: buffer expected"; - return null; - }; - /** * Creates a DeviceRequestForAdminApproval message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -80993,6 +65861,8 @@ export const Enterprise = $root.Enterprise = (() => { DeviceRequestForAdminApproval.fromObject = function fromObject(object, long) { if (object instanceof $root.Enterprise.DeviceRequestForAdminApproval) return object; + if (!$util.isObject(object)) + throw TypeError(".Enterprise.DeviceRequestForAdminApproval: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -81116,44 +65986,44 @@ export const Enterprise = $root.Enterprise = (() => { object.accountUid = $util.newBuffer(object.accountUid); } } - if (message.deviceId != null && message.hasOwnProperty("deviceId")) + if (message.deviceId != null && Object.hasOwnProperty.call(message, "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") 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 (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, "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") 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.encryptedDeviceToken != null && message.hasOwnProperty("encryptedDeviceToken")) + if (message.encryptedDeviceToken != null && Object.hasOwnProperty.call(message, "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.devicePublicKey != null && message.hasOwnProperty("devicePublicKey")) + if (message.devicePublicKey != null && Object.hasOwnProperty.call(message, "devicePublicKey")) object.devicePublicKey = options.bytes === String ? $util.base64.encode(message.devicePublicKey, 0, message.devicePublicKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.devicePublicKey) : message.devicePublicKey; - if (message.deviceName != null && message.hasOwnProperty("deviceName")) + if (message.deviceName != null && Object.hasOwnProperty.call(message, "deviceName")) object.deviceName = message.deviceName; - if (message.clientVersion != null && message.hasOwnProperty("clientVersion")) + if (message.clientVersion != null && Object.hasOwnProperty.call(message, "clientVersion")) object.clientVersion = message.clientVersion; - if (message.deviceType != null && message.hasOwnProperty("deviceType")) + if (message.deviceType != null && Object.hasOwnProperty.call(message, "deviceType")) object.deviceType = message.deviceType; - if (message.date != null && message.hasOwnProperty("date")) + if (message.date != null && Object.hasOwnProperty.call(message, "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") 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; - if (message.ipAddress != null && message.hasOwnProperty("ipAddress")) + if (message.ipAddress != null && Object.hasOwnProperty.call(message, "ipAddress")) object.ipAddress = message.ipAddress; - if (message.location != null && message.hasOwnProperty("location")) + if (message.location != null && Object.hasOwnProperty.call(message, "location")) object.location = message.location; - if (message.email != null && message.hasOwnProperty("email")) + if (message.email != null && Object.hasOwnProperty.call(message, "email")) object.email = message.email; - if (message.accountUid != null && message.hasOwnProperty("accountUid")) + if (message.accountUid != null && Object.hasOwnProperty.call(message, "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; return object; }; @@ -81348,19 +66218,6 @@ export const Enterprise = $root.Enterprise = (() => { return writer; }; - /** - * Encodes the specified EnterpriseData message, length delimited. Does not implicitly {@link Enterprise.EnterpriseData.verify|verify} messages. - * @function encodeDelimited - * @memberof Enterprise.EnterpriseData - * @static - * @param {Enterprise.IEnterpriseData} message EnterpriseData message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - EnterpriseData.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes an EnterpriseData message from the specified reader or buffer. * @function decode @@ -81407,80 +66264,6 @@ export const Enterprise = $root.Enterprise = (() => { return message; }; - /** - * Decodes an EnterpriseData message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Enterprise.EnterpriseData - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Enterprise.EnterpriseData} EnterpriseData - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - EnterpriseData.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an EnterpriseData message. - * @function verify - * @memberof Enterprise.EnterpriseData - * @static - * @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) { - if (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: - return "entity: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: - case 9: - case 10: - case 11: - case 12: - case 13: - case 14: - case 15: - case 16: - case 17: - case 18: - case 19: - case 20: - case 21: - case 22: - case 23: - break; - } - if (message["delete"] != null && message.hasOwnProperty("delete")) - if (typeof message["delete"] !== "boolean") - return "delete: boolean expected"; - 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) - if (!(message.data[i] && typeof message.data[i].length === "number" || $util.isString(message.data[i]))) - return "data: buffer[] expected"; - } - return null; - }; - /** * Creates an EnterpriseData message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -81492,6 +66275,8 @@ export const Enterprise = $root.Enterprise = (() => { EnterpriseData.fromObject = function fromObject(object, long) { if (object instanceof $root.Enterprise.EnterpriseData) return object; + if (!$util.isObject(object)) + throw TypeError(".Enterprise.EnterpriseData: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -81639,9 +66424,9 @@ export const Enterprise = $root.Enterprise = (() => { object.entity = options.enums === String ? "UNKNOWN" : 0; object["delete"] = false; } - if (message.entity != null && message.hasOwnProperty("entity")) + if (message.entity != null && Object.hasOwnProperty.call(message, "entity")) object.entity = options.enums === String ? $root.Enterprise.EnterpriseDataEntity[message.entity] === undefined ? message.entity : $root.Enterprise.EnterpriseDataEntity[message.entity] : message.entity; - if (message["delete"] != null && message.hasOwnProperty("delete")) + if (message["delete"] != null && Object.hasOwnProperty.call(message, "delete")) object["delete"] = message["delete"]; if (message.data && message.data.length) { object.data = []; @@ -81791,19 +66576,6 @@ export const Enterprise = $root.Enterprise = (() => { return writer; }; - /** - * Encodes the specified EnterpriseDataResponse message, length delimited. Does not implicitly {@link Enterprise.EnterpriseDataResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof Enterprise.EnterpriseDataResponse - * @static - * @param {Enterprise.IEnterpriseDataResponse} message EnterpriseDataResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - EnterpriseDataResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes an EnterpriseDataResponse message from the specified reader or buffer. * @function decode @@ -81858,68 +66630,6 @@ export const Enterprise = $root.Enterprise = (() => { return message; }; - /** - * Decodes an EnterpriseDataResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Enterprise.EnterpriseDataResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Enterprise.EnterpriseDataResponse} EnterpriseDataResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - EnterpriseDataResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an EnterpriseDataResponse message. - * @function verify - * @memberof Enterprise.EnterpriseDataResponse - * @static - * @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) { - if (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"; - if (message.hasMore != null && message.hasOwnProperty("hasMore")) - if (typeof message.hasMore !== "boolean") - return "hasMore: boolean expected"; - if (message.cacheStatus != null && message.hasOwnProperty("cacheStatus")) - switch (message.cacheStatus) { - default: - return "cacheStatus: enum value expected"; - case 0: - case 1: - break; - } - 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.Enterprise.EnterpriseData.verify(message.data[i], long + 1); - if (error) - return "data." + error; - } - } - if (message.generalData != null && message.hasOwnProperty("generalData")) { - let error = $root.Enterprise.GeneralDataEntity.verify(message.generalData, long + 1); - if (error) - return "generalData." + error; - } - return null; - }; - /** * Creates an EnterpriseDataResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -81931,6 +66641,8 @@ export const Enterprise = $root.Enterprise = (() => { EnterpriseDataResponse.fromObject = function fromObject(object, long) { if (object instanceof $root.Enterprise.EnterpriseDataResponse) return object; + if (!$util.isObject(object)) + throw TypeError(".Enterprise.EnterpriseDataResponse: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -81964,13 +66676,13 @@ export const Enterprise = $root.Enterprise = (() => { throw TypeError(".Enterprise.EnterpriseDataResponse.data: array expected"); message.data = []; for (let i = 0; i < object.data.length; ++i) { - if (typeof object.data[i] !== "object") + if (!$util.isObject(object.data[i])) throw TypeError(".Enterprise.EnterpriseDataResponse.data: object expected"); message.data[i] = $root.Enterprise.EnterpriseData.fromObject(object.data[i], long + 1); } } if (object.generalData != null) { - if (typeof object.generalData !== "object") + if (!$util.isObject(object.generalData)) throw TypeError(".Enterprise.EnterpriseDataResponse.generalData: object expected"); message.generalData = $root.Enterprise.GeneralDataEntity.fromObject(object.generalData, long + 1); } @@ -82008,18 +66720,18 @@ export const Enterprise = $root.Enterprise = (() => { object.cacheStatus = options.enums === String ? "KEEP" : 0; object.generalData = null; } - if (message.continuationToken != null && message.hasOwnProperty("continuationToken")) + if (message.continuationToken != null && Object.hasOwnProperty.call(message, "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.hasMore != null && message.hasOwnProperty("hasMore")) + if (message.hasMore != null && Object.hasOwnProperty.call(message, "hasMore")) object.hasMore = message.hasMore; - if (message.cacheStatus != null && message.hasOwnProperty("cacheStatus")) + if (message.cacheStatus != null && Object.hasOwnProperty.call(message, "cacheStatus")) object.cacheStatus = options.enums === String ? $root.Enterprise.CacheStatus[message.cacheStatus] === undefined ? message.cacheStatus : $root.Enterprise.CacheStatus[message.cacheStatus] : message.cacheStatus; 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); } - if (message.generalData != null && message.hasOwnProperty("generalData")) + if (message.generalData != null && Object.hasOwnProperty.call(message, "generalData")) object.generalData = $root.Enterprise.GeneralDataEntity.toObject(message.generalData, options, q + 1); return object; }; @@ -82118,19 +66830,6 @@ export const Enterprise = $root.Enterprise = (() => { return writer; }; - /** - * Encodes the specified BackupRequest message, length delimited. Does not implicitly {@link Enterprise.BackupRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof Enterprise.BackupRequest - * @static - * @param {Enterprise.IBackupRequest} message BackupRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - BackupRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a BackupRequest message from the specified reader or buffer. * @function decode @@ -82167,43 +66866,6 @@ export const Enterprise = $root.Enterprise = (() => { return message; }; - /** - * Decodes a BackupRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Enterprise.BackupRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Enterprise.BackupRequest} BackupRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - BackupRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a BackupRequest message. - * @function verify - * @memberof Enterprise.BackupRequest - * @static - * @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) { - if (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"; - return null; - }; - /** * Creates a BackupRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -82215,6 +66877,8 @@ export const Enterprise = $root.Enterprise = (() => { BackupRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.Enterprise.BackupRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".Enterprise.BackupRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -82253,7 +66917,7 @@ export const Enterprise = $root.Enterprise = (() => { if (options.bytes !== Array) object.continuationToken = $util.newBuffer(object.continuationToken); } - if (message.continuationToken != null && message.hasOwnProperty("continuationToken")) + if (message.continuationToken != null && Object.hasOwnProperty.call(message, "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; return object; }; @@ -82452,19 +67116,6 @@ export const Enterprise = $root.Enterprise = (() => { return writer; }; - /** - * Encodes the specified BackupRecord message, length delimited. Does not implicitly {@link Enterprise.BackupRecord.verify|verify} messages. - * @function encodeDelimited - * @memberof Enterprise.BackupRecord - * @static - * @param {Enterprise.IBackupRecord} message BackupRecord message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - BackupRecord.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a BackupRecord message from the specified reader or buffer. * @function decode @@ -82525,69 +67176,6 @@ export const Enterprise = $root.Enterprise = (() => { return message; }; - /** - * Decodes a BackupRecord message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Enterprise.BackupRecord - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Enterprise.BackupRecord} BackupRecord - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - BackupRecord.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a BackupRecord message. - * @function verify - * @memberof Enterprise.BackupRecord - * @static - * @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) { - if (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"; - 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.key != null && message.hasOwnProperty("key")) - if (!(message.key && typeof message.key.length === "number" || $util.isString(message.key))) - return "key: buffer expected"; - if (message.keyType != null && message.hasOwnProperty("keyType")) - switch (message.keyType) { - default: - return "keyType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - break; - } - if (message.version != null && message.hasOwnProperty("version")) - if (!$util.isInteger(message.version)) - return "version: integer 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.extra != null && message.hasOwnProperty("extra")) - if (!(message.extra && typeof message.extra.length === "number" || $util.isString(message.extra))) - return "extra: buffer expected"; - return null; - }; - /** * Creates a BackupRecord message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -82599,6 +67187,8 @@ export const Enterprise = $root.Enterprise = (() => { BackupRecord.fromObject = function fromObject(object, long) { if (object instanceof $root.Enterprise.BackupRecord) return object; + if (!$util.isObject(object)) + throw TypeError(".Enterprise.BackupRecord: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -82709,19 +67299,19 @@ export const Enterprise = $root.Enterprise = (() => { object.extra = $util.newBuffer(object.extra); } } - if (message.userId != null && message.hasOwnProperty("userId")) + if (message.userId != null && Object.hasOwnProperty.call(message, "userId")) object.userId = message.userId; - if (message.recordUid != null && message.hasOwnProperty("recordUid")) + if (message.recordUid != null && Object.hasOwnProperty.call(message, "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.key != null && message.hasOwnProperty("key")) + if (message.key != null && Object.hasOwnProperty.call(message, "key")) object.key = options.bytes === String ? $util.base64.encode(message.key, 0, message.key.length) : options.bytes === Array ? Array.prototype.slice.call(message.key) : message.key; - if (message.keyType != null && message.hasOwnProperty("keyType")) + if (message.keyType != null && Object.hasOwnProperty.call(message, "keyType")) object.keyType = options.enums === String ? $root.Enterprise.BackupKeyType[message.keyType] === undefined ? message.keyType : $root.Enterprise.BackupKeyType[message.keyType] : message.keyType; - if (message.version != null && message.hasOwnProperty("version")) + if (message.version != null && Object.hasOwnProperty.call(message, "version")) object.version = message.version; - if (message.data != null && message.hasOwnProperty("data")) + if (message.data != null && Object.hasOwnProperty.call(message, "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.extra != null && message.hasOwnProperty("extra")) + if (message.extra != null && Object.hasOwnProperty.call(message, "extra")) object.extra = options.bytes === String ? $util.base64.encode(message.extra, 0, message.extra.length) : options.bytes === Array ? Array.prototype.slice.call(message.extra) : message.extra; return object; }; @@ -82831,19 +67421,6 @@ export const Enterprise = $root.Enterprise = (() => { return writer; }; - /** - * Encodes the specified BackupKey message, length delimited. Does not implicitly {@link Enterprise.BackupKey.verify|verify} messages. - * @function encodeDelimited - * @memberof Enterprise.BackupKey - * @static - * @param {Enterprise.IBackupKey} message BackupKey message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - BackupKey.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a BackupKey message from the specified reader or buffer. * @function decode @@ -82884,46 +67461,6 @@ export const Enterprise = $root.Enterprise = (() => { return message; }; - /** - * Decodes a BackupKey message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Enterprise.BackupKey - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Enterprise.BackupKey} BackupKey - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - BackupKey.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a BackupKey message. - * @function verify - * @memberof Enterprise.BackupKey - * @static - * @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) { - if (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"; - if (message.backupKey != null && message.hasOwnProperty("backupKey")) - if (!(message.backupKey && typeof message.backupKey.length === "number" || $util.isString(message.backupKey))) - return "backupKey: buffer expected"; - return null; - }; - /** * Creates a BackupKey message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -82935,6 +67472,8 @@ export const Enterprise = $root.Enterprise = (() => { BackupKey.fromObject = function fromObject(object, long) { if (object instanceof $root.Enterprise.BackupKey) return object; + if (!$util.isObject(object)) + throw TypeError(".Enterprise.BackupKey: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -82977,9 +67516,9 @@ export const Enterprise = $root.Enterprise = (() => { object.backupKey = $util.newBuffer(object.backupKey); } } - if (message.userId != null && message.hasOwnProperty("userId")) + if (message.userId != null && Object.hasOwnProperty.call(message, "userId")) object.userId = message.userId; - if (message.backupKey != null && message.hasOwnProperty("backupKey")) + if (message.backupKey != null && Object.hasOwnProperty.call(message, "backupKey")) object.backupKey = options.bytes === String ? $util.base64.encode(message.backupKey, 0, message.backupKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.backupKey) : message.backupKey; return object; }; @@ -83168,19 +67707,6 @@ export const Enterprise = $root.Enterprise = (() => { return writer; }; - /** - * Encodes the specified BackupUser message, length delimited. Does not implicitly {@link Enterprise.BackupUser.verify|verify} messages. - * @function encodeDelimited - * @memberof Enterprise.BackupUser - * @static - * @param {Enterprise.IBackupUser} message BackupUser message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - BackupUser.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a BackupUser message from the specified reader or buffer. * @function decode @@ -83251,86 +67777,6 @@ export const Enterprise = $root.Enterprise = (() => { return message; }; - /** - * Decodes a BackupUser message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Enterprise.BackupUser - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Enterprise.BackupUser} BackupUser - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - BackupUser.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a BackupUser message. - * @function verify - * @memberof Enterprise.BackupUser - * @static - * @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) { - if (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"; - if (message.userName != null && message.hasOwnProperty("userName")) - if (!$util.isString(message.userName)) - return "userName: string expected"; - if (message.dataKey != null && message.hasOwnProperty("dataKey")) - if (!(message.dataKey && typeof message.dataKey.length === "number" || $util.isString(message.dataKey))) - return "dataKey: buffer expected"; - if (message.dataKeyType != null && message.hasOwnProperty("dataKeyType")) - switch (message.dataKeyType) { - default: - return "dataKeyType: enum value expected"; - case 0: - case 1: - break; - } - if (message.privateKey != null && message.hasOwnProperty("privateKey")) - if (!(message.privateKey && typeof message.privateKey.length === "number" || $util.isString(message.privateKey))) - return "privateKey: buffer expected"; - if (message.treeKey != null && message.hasOwnProperty("treeKey")) - if (!(message.treeKey && typeof message.treeKey.length === "number" || $util.isString(message.treeKey))) - return "treeKey: buffer expected"; - if (message.treeKeyType != null && message.hasOwnProperty("treeKeyType")) - switch (message.treeKeyType) { - default: - return "treeKeyType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - break; - } - if (message.backupKeys != null && message.hasOwnProperty("backupKeys")) { - 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); - if (error) - return "backupKeys." + error; - } - } - if (message.privateECKey != null && message.hasOwnProperty("privateECKey")) - if (!(message.privateECKey && typeof message.privateECKey.length === "number" || $util.isString(message.privateECKey))) - return "privateECKey: buffer expected"; - return null; - }; - /** * Creates a BackupUser message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -83342,6 +67788,8 @@ export const Enterprise = $root.Enterprise = (() => { BackupUser.fromObject = function fromObject(object, long) { if (object instanceof $root.Enterprise.BackupUser) return object; + if (!$util.isObject(object)) + throw TypeError(".Enterprise.BackupUser: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -83415,7 +67863,7 @@ export const Enterprise = $root.Enterprise = (() => { throw TypeError(".Enterprise.BackupUser.backupKeys: array expected"); message.backupKeys = []; for (let i = 0; i < object.backupKeys.length; ++i) { - if (typeof object.backupKeys[i] !== "object") + if (!$util.isObject(object.backupKeys[i])) throw TypeError(".Enterprise.BackupUser.backupKeys: object expected"); message.backupKeys[i] = $root.Enterprise.BackupKey.fromObject(object.backupKeys[i], long + 1); } @@ -83481,26 +67929,26 @@ export const Enterprise = $root.Enterprise = (() => { object.privateECKey = $util.newBuffer(object.privateECKey); } } - if (message.userId != null && message.hasOwnProperty("userId")) + if (message.userId != null && Object.hasOwnProperty.call(message, "userId")) object.userId = message.userId; - if (message.userName != null && message.hasOwnProperty("userName")) + if (message.userName != null && Object.hasOwnProperty.call(message, "userName")) object.userName = message.userName; - if (message.dataKey != null && message.hasOwnProperty("dataKey")) + if (message.dataKey != null && Object.hasOwnProperty.call(message, "dataKey")) object.dataKey = options.bytes === String ? $util.base64.encode(message.dataKey, 0, message.dataKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.dataKey) : message.dataKey; - if (message.dataKeyType != null && message.hasOwnProperty("dataKeyType")) + if (message.dataKeyType != null && Object.hasOwnProperty.call(message, "dataKeyType")) object.dataKeyType = options.enums === String ? $root.Enterprise.BackupUserDataKeyType[message.dataKeyType] === undefined ? message.dataKeyType : $root.Enterprise.BackupUserDataKeyType[message.dataKeyType] : message.dataKeyType; - if (message.privateKey != null && message.hasOwnProperty("privateKey")) + if (message.privateKey != null && Object.hasOwnProperty.call(message, "privateKey")) object.privateKey = options.bytes === String ? $util.base64.encode(message.privateKey, 0, message.privateKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.privateKey) : message.privateKey; - if (message.treeKey != null && message.hasOwnProperty("treeKey")) + if (message.treeKey != null && Object.hasOwnProperty.call(message, "treeKey")) object.treeKey = options.bytes === String ? $util.base64.encode(message.treeKey, 0, message.treeKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.treeKey) : message.treeKey; - if (message.treeKeyType != null && message.hasOwnProperty("treeKeyType")) + if (message.treeKeyType != null && Object.hasOwnProperty.call(message, "treeKeyType")) object.treeKeyType = options.enums === String ? $root.Enterprise.BackupKeyType[message.treeKeyType] === undefined ? message.treeKeyType : $root.Enterprise.BackupKeyType[message.treeKeyType] : message.treeKeyType; 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); } - if (message.privateECKey != null && message.hasOwnProperty("privateECKey")) + if (message.privateECKey != null && Object.hasOwnProperty.call(message, "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; return object; }; @@ -83636,19 +68084,6 @@ export const Enterprise = $root.Enterprise = (() => { return writer; }; - /** - * Encodes the specified BackupResponse message, length delimited. Does not implicitly {@link Enterprise.BackupResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof Enterprise.BackupResponse - * @static - * @param {Enterprise.IBackupResponse} message BackupResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - BackupResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a BackupResponse message from the specified reader or buffer. * @function decode @@ -83701,64 +68136,6 @@ export const Enterprise = $root.Enterprise = (() => { return message; }; - /** - * Decodes a BackupResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Enterprise.BackupResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Enterprise.BackupResponse} BackupResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - BackupResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a BackupResponse message. - * @function verify - * @memberof Enterprise.BackupResponse - * @static - * @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) { - if (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"; - 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.BackupUser.verify(message.users[i], long + 1); - if (error) - return "users." + error; - } - } - 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.Enterprise.BackupRecord.verify(message.records[i], long + 1); - if (error) - return "records." + error; - } - } - if (message.continuationToken != null && message.hasOwnProperty("continuationToken")) - if (!(message.continuationToken && typeof message.continuationToken.length === "number" || $util.isString(message.continuationToken))) - return "continuationToken: buffer expected"; - return null; - }; - /** * Creates a BackupResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -83770,6 +68147,8 @@ export const Enterprise = $root.Enterprise = (() => { BackupResponse.fromObject = function fromObject(object, long) { if (object instanceof $root.Enterprise.BackupResponse) return object; + if (!$util.isObject(object)) + throw TypeError(".Enterprise.BackupResponse: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -83785,7 +68164,7 @@ export const Enterprise = $root.Enterprise = (() => { throw TypeError(".Enterprise.BackupResponse.users: array expected"); message.users = []; for (let i = 0; i < object.users.length; ++i) { - if (typeof object.users[i] !== "object") + if (!$util.isObject(object.users[i])) throw TypeError(".Enterprise.BackupResponse.users: object expected"); message.users[i] = $root.Enterprise.BackupUser.fromObject(object.users[i], long + 1); } @@ -83795,7 +68174,7 @@ export const Enterprise = $root.Enterprise = (() => { throw TypeError(".Enterprise.BackupResponse.records: array expected"); message.records = []; for (let i = 0; i < object.records.length; ++i) { - if (typeof object.records[i] !== "object") + if (!$util.isObject(object.records[i])) throw TypeError(".Enterprise.BackupResponse.records: object expected"); message.records[i] = $root.Enterprise.BackupRecord.fromObject(object.records[i], long + 1); } @@ -83845,7 +68224,7 @@ export const Enterprise = $root.Enterprise = (() => { object.continuationToken = $util.newBuffer(object.continuationToken); } } - if (message.enterpriseEccPrivateKey != null && message.hasOwnProperty("enterpriseEccPrivateKey")) + if (message.enterpriseEccPrivateKey != null && Object.hasOwnProperty.call(message, "enterpriseEccPrivateKey")) object.enterpriseEccPrivateKey = options.bytes === String ? $util.base64.encode(message.enterpriseEccPrivateKey, 0, message.enterpriseEccPrivateKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.enterpriseEccPrivateKey) : message.enterpriseEccPrivateKey; if (message.users && message.users.length) { object.users = []; @@ -83857,7 +68236,7 @@ export const Enterprise = $root.Enterprise = (() => { for (let j = 0; j < message.records.length; ++j) object.records[j] = $root.Enterprise.BackupRecord.toObject(message.records[j], options, q + 1); } - if (message.continuationToken != null && message.hasOwnProperty("continuationToken")) + if (message.continuationToken != null && Object.hasOwnProperty.call(message, "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; return object; }; @@ -84000,19 +68379,6 @@ export const Enterprise = $root.Enterprise = (() => { return writer; }; - /** - * Encodes the specified BackupFile message, length delimited. Does not implicitly {@link Enterprise.BackupFile.verify|verify} messages. - * @function encodeDelimited - * @memberof Enterprise.BackupFile - * @static - * @param {Enterprise.IBackupFile} message BackupFile message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - BackupFile.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a BackupFile message from the specified reader or buffer. * @function decode @@ -84065,55 +68431,6 @@ export const Enterprise = $root.Enterprise = (() => { return message; }; - /** - * Decodes a BackupFile message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Enterprise.BackupFile - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Enterprise.BackupFile} BackupFile - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - BackupFile.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a BackupFile message. - * @function verify - * @memberof Enterprise.BackupFile - * @static - * @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) { - if (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"; - if (message.backupUid != null && message.hasOwnProperty("backupUid")) - if (!(message.backupUid && typeof message.backupUid.length === "number" || $util.isString(message.backupUid))) - return "backupUid: buffer expected"; - if (message.fileName != null && message.hasOwnProperty("fileName")) - if (!$util.isString(message.fileName)) - return "fileName: string expected"; - 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"; - if (message.downloadUrl != null && message.hasOwnProperty("downloadUrl")) - if (!$util.isString(message.downloadUrl)) - return "downloadUrl: string expected"; - return null; - }; - /** * Creates a BackupFile message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -84125,6 +68442,8 @@ export const Enterprise = $root.Enterprise = (() => { BackupFile.fromObject = function fromObject(object, long) { if (object instanceof $root.Enterprise.BackupFile) return object; + if (!$util.isObject(object)) + throw TypeError(".Enterprise.BackupFile: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -84187,20 +68506,20 @@ export const Enterprise = $root.Enterprise = (() => { object.created = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; object.downloadUrl = ""; } - if (message.user != null && message.hasOwnProperty("user")) + if (message.user != null && Object.hasOwnProperty.call(message, "user")) object.user = message.user; - if (message.backupUid != null && message.hasOwnProperty("backupUid")) + if (message.backupUid != null && Object.hasOwnProperty.call(message, "backupUid")) object.backupUid = options.bytes === String ? $util.base64.encode(message.backupUid, 0, message.backupUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.backupUid) : message.backupUid; - if (message.fileName != null && message.hasOwnProperty("fileName")) + if (message.fileName != null && Object.hasOwnProperty.call(message, "fileName")) object.fileName = message.fileName; - if (message.created != null && message.hasOwnProperty("created")) + if (message.created != null && Object.hasOwnProperty.call(message, "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") 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.downloadUrl != null && message.hasOwnProperty("downloadUrl")) + if (message.downloadUrl != null && Object.hasOwnProperty.call(message, "downloadUrl")) object.downloadUrl = message.downloadUrl; return object; }; @@ -84301,19 +68620,6 @@ export const Enterprise = $root.Enterprise = (() => { return writer; }; - /** - * Encodes the specified BackupsResponse message, length delimited. Does not implicitly {@link Enterprise.BackupsResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof Enterprise.BackupsResponse - * @static - * @param {Enterprise.IBackupsResponse} message BackupsResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - BackupsResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a BackupsResponse message from the specified reader or buffer. * @function decode @@ -84352,49 +68658,6 @@ export const Enterprise = $root.Enterprise = (() => { return message; }; - /** - * Decodes a BackupsResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Enterprise.BackupsResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Enterprise.BackupsResponse} BackupsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - BackupsResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a BackupsResponse message. - * @function verify - * @memberof Enterprise.BackupsResponse - * @static - * @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) { - if (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); - if (error) - return "files." + error; - } - } - return null; - }; - /** * Creates a BackupsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -84406,6 +68669,8 @@ export const Enterprise = $root.Enterprise = (() => { BackupsResponse.fromObject = function fromObject(object, long) { if (object instanceof $root.Enterprise.BackupsResponse) return object; + if (!$util.isObject(object)) + throw TypeError(".Enterprise.BackupsResponse: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -84416,7 +68681,7 @@ export const Enterprise = $root.Enterprise = (() => { throw TypeError(".Enterprise.BackupsResponse.files: array expected"); message.files = []; for (let i = 0; i < object.files.length; ++i) { - if (typeof object.files[i] !== "object") + if (!$util.isObject(object.files[i])) throw TypeError(".Enterprise.BackupsResponse.files: object expected"); message.files[i] = $root.Enterprise.BackupFile.fromObject(object.files[i], long + 1); } @@ -84550,19 +68815,6 @@ export const Enterprise = $root.Enterprise = (() => { return writer; }; - /** - * Encodes the specified GetEnterpriseDataKeysRequest message, length delimited. Does not implicitly {@link Enterprise.GetEnterpriseDataKeysRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof Enterprise.GetEnterpriseDataKeysRequest - * @static - * @param {Enterprise.IGetEnterpriseDataKeysRequest} message GetEnterpriseDataKeysRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetEnterpriseDataKeysRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a GetEnterpriseDataKeysRequest message from the specified reader or buffer. * @function decode @@ -84606,47 +68858,6 @@ export const Enterprise = $root.Enterprise = (() => { return message; }; - /** - * Decodes a GetEnterpriseDataKeysRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Enterprise.GetEnterpriseDataKeysRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Enterprise.GetEnterpriseDataKeysRequest} GetEnterpriseDataKeysRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetEnterpriseDataKeysRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a GetEnterpriseDataKeysRequest message. - * @function verify - * @memberof Enterprise.GetEnterpriseDataKeysRequest - * @static - * @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) { - if (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"; - for (let i = 0; i < message.roleId.length; ++i) - if (!$util.isInteger(message.roleId[i]) && !(message.roleId[i] && $util.isInteger(message.roleId[i].low) && $util.isInteger(message.roleId[i].high))) - return "roleId: integer|Long[] expected"; - } - return null; - }; - /** * Creates a GetEnterpriseDataKeysRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -84658,6 +68869,8 @@ export const Enterprise = $root.Enterprise = (() => { GetEnterpriseDataKeysRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.Enterprise.GetEnterpriseDataKeysRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".Enterprise.GetEnterpriseDataKeysRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -84854,19 +69067,6 @@ export const Enterprise = $root.Enterprise = (() => { return writer; }; - /** - * Encodes the specified GetEnterpriseDataKeysResponse message, length delimited. Does not implicitly {@link Enterprise.GetEnterpriseDataKeysResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof Enterprise.GetEnterpriseDataKeysResponse - * @static - * @param {Enterprise.IGetEnterpriseDataKeysResponse} message GetEnterpriseDataKeysResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetEnterpriseDataKeysResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a GetEnterpriseDataKeysResponse message from the specified reader or buffer. * @function decode @@ -84923,73 +69123,6 @@ export const Enterprise = $root.Enterprise = (() => { return message; }; - /** - * Decodes a GetEnterpriseDataKeysResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Enterprise.GetEnterpriseDataKeysResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Enterprise.GetEnterpriseDataKeysResponse} GetEnterpriseDataKeysResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetEnterpriseDataKeysResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a GetEnterpriseDataKeysResponse message. - * @function verify - * @memberof Enterprise.GetEnterpriseDataKeysResponse - * @static - * @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) { - if (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); - if (error) - return "reEncryptedRoleKey." + error; - } - } - if (message.roleKey != null && message.hasOwnProperty("roleKey")) { - 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); - if (error) - return "roleKey." + error; - } - } - if (message.mspKey != null && message.hasOwnProperty("mspKey")) { - let error = $root.Enterprise.MspKey.verify(message.mspKey, long + 1); - if (error) - return "mspKey." + error; - } - if (message.enterpriseKeys != null && message.hasOwnProperty("enterpriseKeys")) { - let error = $root.Enterprise.EnterpriseKeys.verify(message.enterpriseKeys, long + 1); - if (error) - return "enterpriseKeys." + error; - } - if (message.treeKey != null && message.hasOwnProperty("treeKey")) { - let error = $root.Enterprise.TreeKey.verify(message.treeKey, long + 1); - if (error) - return "treeKey." + error; - } - return null; - }; - /** * Creates a GetEnterpriseDataKeysResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -85001,6 +69134,8 @@ export const Enterprise = $root.Enterprise = (() => { GetEnterpriseDataKeysResponse.fromObject = function fromObject(object, long) { if (object instanceof $root.Enterprise.GetEnterpriseDataKeysResponse) return object; + if (!$util.isObject(object)) + throw TypeError(".Enterprise.GetEnterpriseDataKeysResponse: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -85011,7 +69146,7 @@ export const Enterprise = $root.Enterprise = (() => { throw TypeError(".Enterprise.GetEnterpriseDataKeysResponse.reEncryptedRoleKey: array expected"); message.reEncryptedRoleKey = []; for (let i = 0; i < object.reEncryptedRoleKey.length; ++i) { - if (typeof object.reEncryptedRoleKey[i] !== "object") + if (!$util.isObject(object.reEncryptedRoleKey[i])) throw TypeError(".Enterprise.GetEnterpriseDataKeysResponse.reEncryptedRoleKey: object expected"); message.reEncryptedRoleKey[i] = $root.Enterprise.ReEncryptedRoleKey.fromObject(object.reEncryptedRoleKey[i], long + 1); } @@ -85021,23 +69156,23 @@ export const Enterprise = $root.Enterprise = (() => { throw TypeError(".Enterprise.GetEnterpriseDataKeysResponse.roleKey: array expected"); message.roleKey = []; for (let i = 0; i < object.roleKey.length; ++i) { - if (typeof object.roleKey[i] !== "object") + if (!$util.isObject(object.roleKey[i])) throw TypeError(".Enterprise.GetEnterpriseDataKeysResponse.roleKey: object expected"); message.roleKey[i] = $root.Enterprise.RoleKey.fromObject(object.roleKey[i], long + 1); } } if (object.mspKey != null) { - if (typeof object.mspKey !== "object") + if (!$util.isObject(object.mspKey)) throw TypeError(".Enterprise.GetEnterpriseDataKeysResponse.mspKey: object expected"); message.mspKey = $root.Enterprise.MspKey.fromObject(object.mspKey, long + 1); } if (object.enterpriseKeys != null) { - if (typeof object.enterpriseKeys !== "object") + if (!$util.isObject(object.enterpriseKeys)) throw TypeError(".Enterprise.GetEnterpriseDataKeysResponse.enterpriseKeys: object expected"); message.enterpriseKeys = $root.Enterprise.EnterpriseKeys.fromObject(object.enterpriseKeys, long + 1); } if (object.treeKey != null) { - if (typeof object.treeKey !== "object") + if (!$util.isObject(object.treeKey)) throw TypeError(".Enterprise.GetEnterpriseDataKeysResponse.treeKey: object expected"); message.treeKey = $root.Enterprise.TreeKey.fromObject(object.treeKey, long + 1); } @@ -85080,11 +69215,11 @@ export const Enterprise = $root.Enterprise = (() => { for (let j = 0; j < message.roleKey.length; ++j) object.roleKey[j] = $root.Enterprise.RoleKey.toObject(message.roleKey[j], options, q + 1); } - if (message.mspKey != null && message.hasOwnProperty("mspKey")) + if (message.mspKey != null && Object.hasOwnProperty.call(message, "mspKey")) object.mspKey = $root.Enterprise.MspKey.toObject(message.mspKey, options, q + 1); - if (message.enterpriseKeys != null && message.hasOwnProperty("enterpriseKeys")) + if (message.enterpriseKeys != null && Object.hasOwnProperty.call(message, "enterpriseKeys")) object.enterpriseKeys = $root.Enterprise.EnterpriseKeys.toObject(message.enterpriseKeys, options, q + 1); - if (message.treeKey != null && message.hasOwnProperty("treeKey")) + if (message.treeKey != null && Object.hasOwnProperty.call(message, "treeKey")) object.treeKey = $root.Enterprise.TreeKey.toObject(message.treeKey, options, q + 1); return object; }; @@ -85205,19 +69340,6 @@ export const Enterprise = $root.Enterprise = (() => { return writer; }; - /** - * Encodes the specified RoleKey message, length delimited. Does not implicitly {@link Enterprise.RoleKey.verify|verify} messages. - * @function encodeDelimited - * @memberof Enterprise.RoleKey - * @static - * @param {Enterprise.IRoleKey} message RoleKey message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RoleKey.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a RoleKey message from the specified reader or buffer. * @function decode @@ -85262,57 +69384,6 @@ export const Enterprise = $root.Enterprise = (() => { return message; }; - /** - * Decodes a RoleKey message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Enterprise.RoleKey - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Enterprise.RoleKey} RoleKey - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RoleKey.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a RoleKey message. - * @function verify - * @memberof Enterprise.RoleKey - * @static - * @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) { - if (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"; - if (message.encryptedKey != null && message.hasOwnProperty("encryptedKey")) - if (!$util.isString(message.encryptedKey)) - return "encryptedKey: string expected"; - if (message.keyType != null && message.hasOwnProperty("keyType")) - switch (message.keyType) { - default: - return "keyType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - break; - } - return null; - }; - /** * Creates a RoleKey message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -85324,6 +69395,8 @@ export const Enterprise = $root.Enterprise = (() => { RoleKey.fromObject = function fromObject(object, long) { if (object instanceof $root.Enterprise.RoleKey) return object; + if (!$util.isObject(object)) + throw TypeError(".Enterprise.RoleKey: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -85397,16 +69470,16 @@ export const Enterprise = $root.Enterprise = (() => { object.encryptedKey = ""; object.keyType = options.enums === String ? "KT_NO_KEY" : 0; } - if (message.roleId != null && message.hasOwnProperty("roleId")) + if (message.roleId != null && Object.hasOwnProperty.call(message, "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") 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.encryptedKey != null && message.hasOwnProperty("encryptedKey")) + if (message.encryptedKey != null && Object.hasOwnProperty.call(message, "encryptedKey")) object.encryptedKey = message.encryptedKey; - if (message.keyType != null && message.hasOwnProperty("keyType")) + if (message.keyType != null && Object.hasOwnProperty.call(message, "keyType")) object.keyType = options.enums === String ? $root.Enterprise.EncryptedKeyType[message.keyType] === undefined ? message.keyType : $root.Enterprise.EncryptedKeyType[message.keyType] : message.keyType; return object; }; @@ -85516,19 +69589,6 @@ export const Enterprise = $root.Enterprise = (() => { return writer; }; - /** - * Encodes the specified MspKey message, length delimited. Does not implicitly {@link Enterprise.MspKey.verify|verify} messages. - * @function encodeDelimited - * @memberof Enterprise.MspKey - * @static - * @param {Enterprise.IMspKey} message MspKey message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MspKey.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a MspKey message from the specified reader or buffer. * @function decode @@ -85569,54 +69629,6 @@ export const Enterprise = $root.Enterprise = (() => { return message; }; - /** - * Decodes a MspKey message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Enterprise.MspKey - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Enterprise.MspKey} MspKey - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MspKey.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a MspKey message. - * @function verify - * @memberof Enterprise.MspKey - * @static - * @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) { - if (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"; - if (message.encryptedMspTreeKeyType != null && message.hasOwnProperty("encryptedMspTreeKeyType")) - switch (message.encryptedMspTreeKeyType) { - default: - return "encryptedMspTreeKeyType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - break; - } - return null; - }; - /** * Creates a MspKey message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -85628,6 +69640,8 @@ export const Enterprise = $root.Enterprise = (() => { MspKey.fromObject = function fromObject(object, long) { if (object instanceof $root.Enterprise.MspKey) return object; + if (!$util.isObject(object)) + throw TypeError(".Enterprise.MspKey: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -85687,9 +69701,9 @@ export const Enterprise = $root.Enterprise = (() => { object.encryptedMspTreeKey = ""; object.encryptedMspTreeKeyType = options.enums === String ? "KT_NO_KEY" : 0; } - if (message.encryptedMspTreeKey != null && message.hasOwnProperty("encryptedMspTreeKey")) + if (message.encryptedMspTreeKey != null && Object.hasOwnProperty.call(message, "encryptedMspTreeKey")) object.encryptedMspTreeKey = message.encryptedMspTreeKey; - if (message.encryptedMspTreeKeyType != null && message.hasOwnProperty("encryptedMspTreeKeyType")) + if (message.encryptedMspTreeKeyType != null && Object.hasOwnProperty.call(message, "encryptedMspTreeKeyType")) object.encryptedMspTreeKeyType = options.enums === String ? $root.Enterprise.EncryptedKeyType[message.encryptedMspTreeKeyType] === undefined ? message.encryptedMspTreeKeyType : $root.Enterprise.EncryptedKeyType[message.encryptedMspTreeKeyType] : message.encryptedMspTreeKeyType; return object; }; @@ -85841,19 +69855,6 @@ export const Enterprise = $root.Enterprise = (() => { return writer; }; - /** - * Encodes the specified EnterpriseKeys message, length delimited. Does not implicitly {@link Enterprise.EnterpriseKeys.verify|verify} messages. - * @function encodeDelimited - * @memberof Enterprise.EnterpriseKeys - * @static - * @param {Enterprise.IEnterpriseKeys} message EnterpriseKeys message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - EnterpriseKeys.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes an EnterpriseKeys message from the specified reader or buffer. * @function decode @@ -85902,52 +69903,6 @@ export const Enterprise = $root.Enterprise = (() => { return message; }; - /** - * Decodes an EnterpriseKeys message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Enterprise.EnterpriseKeys - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Enterprise.EnterpriseKeys} EnterpriseKeys - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - EnterpriseKeys.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an EnterpriseKeys message. - * @function verify - * @memberof Enterprise.EnterpriseKeys - * @static - * @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) { - if (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"; - if (message.rsaEncryptedPrivateKey != null && message.hasOwnProperty("rsaEncryptedPrivateKey")) - if (!(message.rsaEncryptedPrivateKey && typeof message.rsaEncryptedPrivateKey.length === "number" || $util.isString(message.rsaEncryptedPrivateKey))) - return "rsaEncryptedPrivateKey: buffer expected"; - if (message.eccPublicKey != null && message.hasOwnProperty("eccPublicKey")) - if (!(message.eccPublicKey && typeof message.eccPublicKey.length === "number" || $util.isString(message.eccPublicKey))) - return "eccPublicKey: buffer expected"; - if (message.eccEncryptedPrivateKey != null && message.hasOwnProperty("eccEncryptedPrivateKey")) - if (!(message.eccEncryptedPrivateKey && typeof message.eccEncryptedPrivateKey.length === "number" || $util.isString(message.eccEncryptedPrivateKey))) - return "eccEncryptedPrivateKey: buffer expected"; - return null; - }; - /** * Creates an EnterpriseKeys message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -85959,6 +69914,8 @@ export const Enterprise = $root.Enterprise = (() => { EnterpriseKeys.fromObject = function fromObject(object, long) { if (object instanceof $root.Enterprise.EnterpriseKeys) return object; + if (!$util.isObject(object)) + throw TypeError(".Enterprise.EnterpriseKeys: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -86034,13 +69991,13 @@ export const Enterprise = $root.Enterprise = (() => { object.eccEncryptedPrivateKey = $util.newBuffer(object.eccEncryptedPrivateKey); } } - if (message.rsaPublicKey != null && message.hasOwnProperty("rsaPublicKey")) + if (message.rsaPublicKey != null && Object.hasOwnProperty.call(message, "rsaPublicKey")) object.rsaPublicKey = options.bytes === String ? $util.base64.encode(message.rsaPublicKey, 0, message.rsaPublicKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.rsaPublicKey) : message.rsaPublicKey; - if (message.rsaEncryptedPrivateKey != null && message.hasOwnProperty("rsaEncryptedPrivateKey")) + if (message.rsaEncryptedPrivateKey != null && Object.hasOwnProperty.call(message, "rsaEncryptedPrivateKey")) object.rsaEncryptedPrivateKey = options.bytes === String ? $util.base64.encode(message.rsaEncryptedPrivateKey, 0, message.rsaEncryptedPrivateKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.rsaEncryptedPrivateKey) : message.rsaEncryptedPrivateKey; - if (message.eccPublicKey != null && message.hasOwnProperty("eccPublicKey")) + if (message.eccPublicKey != null && Object.hasOwnProperty.call(message, "eccPublicKey")) object.eccPublicKey = options.bytes === String ? $util.base64.encode(message.eccPublicKey, 0, message.eccPublicKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.eccPublicKey) : message.eccPublicKey; - if (message.eccEncryptedPrivateKey != null && message.hasOwnProperty("eccEncryptedPrivateKey")) + if (message.eccEncryptedPrivateKey != null && Object.hasOwnProperty.call(message, "eccEncryptedPrivateKey")) object.eccEncryptedPrivateKey = options.bytes === String ? $util.base64.encode(message.eccEncryptedPrivateKey, 0, message.eccEncryptedPrivateKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.eccEncryptedPrivateKey) : message.eccEncryptedPrivateKey; return object; }; @@ -86150,19 +70107,6 @@ export const Enterprise = $root.Enterprise = (() => { return writer; }; - /** - * Encodes the specified TreeKey message, length delimited. Does not implicitly {@link Enterprise.TreeKey.verify|verify} messages. - * @function encodeDelimited - * @memberof Enterprise.TreeKey - * @static - * @param {Enterprise.ITreeKey} message TreeKey message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TreeKey.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a TreeKey message from the specified reader or buffer. * @function decode @@ -86203,54 +70147,6 @@ export const Enterprise = $root.Enterprise = (() => { return message; }; - /** - * Decodes a TreeKey message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Enterprise.TreeKey - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Enterprise.TreeKey} TreeKey - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TreeKey.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a TreeKey message. - * @function verify - * @memberof Enterprise.TreeKey - * @static - * @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) { - if (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"; - if (message.keyTypeId != null && message.hasOwnProperty("keyTypeId")) - switch (message.keyTypeId) { - default: - return "keyTypeId: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - break; - } - return null; - }; - /** * Creates a TreeKey message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -86262,6 +70158,8 @@ export const Enterprise = $root.Enterprise = (() => { TreeKey.fromObject = function fromObject(object, long) { if (object instanceof $root.Enterprise.TreeKey) return object; + if (!$util.isObject(object)) + throw TypeError(".Enterprise.TreeKey: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -86321,9 +70219,9 @@ export const Enterprise = $root.Enterprise = (() => { object.treeKey = ""; object.keyTypeId = options.enums === String ? "NO_KEY" : 0; } - if (message.treeKey != null && message.hasOwnProperty("treeKey")) + if (message.treeKey != null && Object.hasOwnProperty.call(message, "treeKey")) object.treeKey = message.treeKey; - if (message.keyTypeId != null && message.hasOwnProperty("keyTypeId")) + if (message.keyTypeId != null && Object.hasOwnProperty.call(message, "keyTypeId")) object.keyTypeId = options.enums === String ? $root.Enterprise.BackupKeyType[message.keyTypeId] === undefined ? message.keyTypeId : $root.Enterprise.BackupKeyType[message.keyTypeId] : message.keyTypeId; return object; }; @@ -86424,19 +70322,6 @@ export const Enterprise = $root.Enterprise = (() => { return writer; }; - /** - * Encodes the specified SharedRecordResponse message, length delimited. Does not implicitly {@link Enterprise.SharedRecordResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof Enterprise.SharedRecordResponse - * @static - * @param {Enterprise.ISharedRecordResponse} message SharedRecordResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SharedRecordResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a SharedRecordResponse message from the specified reader or buffer. * @function decode @@ -86475,49 +70360,6 @@ export const Enterprise = $root.Enterprise = (() => { return message; }; - /** - * Decodes a SharedRecordResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Enterprise.SharedRecordResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Enterprise.SharedRecordResponse} SharedRecordResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SharedRecordResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a SharedRecordResponse message. - * @function verify - * @memberof Enterprise.SharedRecordResponse - * @static - * @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) { - if (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); - if (error) - return "events." + error; - } - } - return null; - }; - /** * Creates a SharedRecordResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -86529,6 +70371,8 @@ export const Enterprise = $root.Enterprise = (() => { SharedRecordResponse.fromObject = function fromObject(object, long) { if (object instanceof $root.Enterprise.SharedRecordResponse) return object; + if (!$util.isObject(object)) + throw TypeError(".Enterprise.SharedRecordResponse: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -86539,7 +70383,7 @@ export const Enterprise = $root.Enterprise = (() => { throw TypeError(".Enterprise.SharedRecordResponse.events: array expected"); message.events = []; for (let i = 0; i < object.events.length; ++i) { - if (typeof object.events[i] !== "object") + if (!$util.isObject(object.events[i])) throw TypeError(".Enterprise.SharedRecordResponse.events: object expected"); message.events[i] = $root.Enterprise.SharedRecordEvent.fromObject(object.events[i], long + 1); } @@ -86712,19 +70556,6 @@ export const Enterprise = $root.Enterprise = (() => { return writer; }; - /** - * Encodes the specified SharedRecordEvent message, length delimited. Does not implicitly {@link Enterprise.SharedRecordEvent.verify|verify} messages. - * @function encodeDelimited - * @memberof Enterprise.SharedRecordEvent - * @static - * @param {Enterprise.ISharedRecordEvent} message SharedRecordEvent message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SharedRecordEvent.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a SharedRecordEvent message from the specified reader or buffer. * @function decode @@ -86777,55 +70608,6 @@ export const Enterprise = $root.Enterprise = (() => { return message; }; - /** - * Decodes a SharedRecordEvent message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Enterprise.SharedRecordEvent - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Enterprise.SharedRecordEvent} SharedRecordEvent - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SharedRecordEvent.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a SharedRecordEvent message. - * @function verify - * @memberof Enterprise.SharedRecordEvent - * @static - * @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) { - if (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.userName != null && message.hasOwnProperty("userName")) - if (!$util.isString(message.userName)) - return "userName: string expected"; - if (message.canEdit != null && message.hasOwnProperty("canEdit")) - if (typeof message.canEdit !== "boolean") - return "canEdit: boolean expected"; - if (message.canReshare != null && message.hasOwnProperty("canReshare")) - if (typeof message.canReshare !== "boolean") - return "canReshare: boolean expected"; - if (message.shareFrom != null && message.hasOwnProperty("shareFrom")) - if (!$util.isInteger(message.shareFrom)) - return "shareFrom: integer expected"; - return null; - }; - /** * Creates a SharedRecordEvent message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -86837,6 +70619,8 @@ export const Enterprise = $root.Enterprise = (() => { SharedRecordEvent.fromObject = function fromObject(object, long) { if (object instanceof $root.Enterprise.SharedRecordEvent) return object; + if (!$util.isObject(object)) + throw TypeError(".Enterprise.SharedRecordEvent: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -86888,15 +70672,15 @@ export const Enterprise = $root.Enterprise = (() => { object.canReshare = false; object.shareFrom = 0; } - if (message.recordUid != null && message.hasOwnProperty("recordUid")) + if (message.recordUid != null && Object.hasOwnProperty.call(message, "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.userName != null && message.hasOwnProperty("userName")) + if (message.userName != null && Object.hasOwnProperty.call(message, "userName")) object.userName = message.userName; - if (message.canEdit != null && message.hasOwnProperty("canEdit")) + if (message.canEdit != null && Object.hasOwnProperty.call(message, "canEdit")) object.canEdit = message.canEdit; - if (message.canReshare != null && message.hasOwnProperty("canReshare")) + if (message.canReshare != null && Object.hasOwnProperty.call(message, "canReshare")) object.canReshare = message.canReshare; - if (message.shareFrom != null && message.hasOwnProperty("shareFrom")) + if (message.shareFrom != null && Object.hasOwnProperty.call(message, "shareFrom")) object.shareFrom = message.shareFrom; return object; }; @@ -87031,19 +70815,6 @@ export const Enterprise = $root.Enterprise = (() => { return writer; }; - /** - * Encodes the specified SetRestrictVisibilityRequest message, length delimited. Does not implicitly {@link Enterprise.SetRestrictVisibilityRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof Enterprise.SetRestrictVisibilityRequest - * @static - * @param {Enterprise.ISetRestrictVisibilityRequest} message SetRestrictVisibilityRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SetRestrictVisibilityRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a SetRestrictVisibilityRequest message from the specified reader or buffer. * @function decode @@ -87080,43 +70851,6 @@ export const Enterprise = $root.Enterprise = (() => { return message; }; - /** - * Decodes a SetRestrictVisibilityRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Enterprise.SetRestrictVisibilityRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Enterprise.SetRestrictVisibilityRequest} SetRestrictVisibilityRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SetRestrictVisibilityRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a SetRestrictVisibilityRequest message. - * @function verify - * @memberof Enterprise.SetRestrictVisibilityRequest - * @static - * @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) { - if (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"; - return null; - }; - /** * Creates a SetRestrictVisibilityRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -87128,6 +70862,8 @@ export const Enterprise = $root.Enterprise = (() => { SetRestrictVisibilityRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.Enterprise.SetRestrictVisibilityRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".Enterprise.SetRestrictVisibilityRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -87168,7 +70904,7 @@ export const Enterprise = $root.Enterprise = (() => { object.nodeId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; } else object.nodeId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; - if (message.nodeId != null && message.hasOwnProperty("nodeId")) + if (message.nodeId != null && Object.hasOwnProperty.call(message, "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") @@ -87349,19 +71085,6 @@ export const Enterprise = $root.Enterprise = (() => { return writer; }; - /** - * Encodes the specified UserAddRequest message, length delimited. Does not implicitly {@link Enterprise.UserAddRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof Enterprise.UserAddRequest - * @static - * @param {Enterprise.IUserAddRequest} message UserAddRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - UserAddRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a UserAddRequest message from the specified reader or buffer. * @function decode @@ -87426,72 +71149,6 @@ export const Enterprise = $root.Enterprise = (() => { return message; }; - /** - * Decodes a UserAddRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Enterprise.UserAddRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Enterprise.UserAddRequest} UserAddRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - UserAddRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a UserAddRequest message. - * @function verify - * @memberof Enterprise.UserAddRequest - * @static - * @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) { - if (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"; - 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"; - if (message.encryptedData != null && message.hasOwnProperty("encryptedData")) - if (!(message.encryptedData && typeof message.encryptedData.length === "number" || $util.isString(message.encryptedData))) - return "encryptedData: buffer expected"; - if (message.keyType != null && message.hasOwnProperty("keyType")) - switch (message.keyType) { - default: - return "keyType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - break; - } - if (message.fullName != null && message.hasOwnProperty("fullName")) - if (!$util.isString(message.fullName)) - return "fullName: string expected"; - if (message.jobTitle != null && message.hasOwnProperty("jobTitle")) - if (!$util.isString(message.jobTitle)) - return "jobTitle: string expected"; - if (message.email != null && message.hasOwnProperty("email")) - if (!$util.isString(message.email)) - return "email: string expected"; - if (message.suppressEmailInvite != null && message.hasOwnProperty("suppressEmailInvite")) - if (typeof message.suppressEmailInvite !== "boolean") - return "suppressEmailInvite: boolean expected"; - return null; - }; - /** * Creates a UserAddRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -87503,6 +71160,8 @@ export const Enterprise = $root.Enterprise = (() => { UserAddRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.Enterprise.UserAddRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".Enterprise.UserAddRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -87611,31 +71270,31 @@ export const Enterprise = $root.Enterprise = (() => { object.email = ""; object.suppressEmailInvite = false; } - if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) + if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, "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") 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 (message.nodeId != null && Object.hasOwnProperty.call(message, "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") 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.encryptedData != null && message.hasOwnProperty("encryptedData")) + if (message.encryptedData != null && Object.hasOwnProperty.call(message, "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; - if (message.keyType != null && message.hasOwnProperty("keyType")) + if (message.keyType != null && Object.hasOwnProperty.call(message, "keyType")) object.keyType = options.enums === String ? $root.Enterprise.EncryptedKeyType[message.keyType] === undefined ? message.keyType : $root.Enterprise.EncryptedKeyType[message.keyType] : message.keyType; - if (message.fullName != null && message.hasOwnProperty("fullName")) + if (message.fullName != null && Object.hasOwnProperty.call(message, "fullName")) object.fullName = message.fullName; - if (message.jobTitle != null && message.hasOwnProperty("jobTitle")) + if (message.jobTitle != null && Object.hasOwnProperty.call(message, "jobTitle")) object.jobTitle = message.jobTitle; - if (message.email != null && message.hasOwnProperty("email")) + if (message.email != null && Object.hasOwnProperty.call(message, "email")) object.email = message.email; - if (message.suppressEmailInvite != null && message.hasOwnProperty("suppressEmailInvite")) + if (message.suppressEmailInvite != null && Object.hasOwnProperty.call(message, "suppressEmailInvite")) object.suppressEmailInvite = message.suppressEmailInvite; return object; }; @@ -87736,19 +71395,6 @@ export const Enterprise = $root.Enterprise = (() => { return writer; }; - /** - * Encodes the specified UserUpdateRequest message, length delimited. Does not implicitly {@link Enterprise.UserUpdateRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof Enterprise.UserUpdateRequest - * @static - * @param {Enterprise.IUserUpdateRequest} message UserUpdateRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - UserUpdateRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a UserUpdateRequest message from the specified reader or buffer. * @function decode @@ -87787,49 +71433,6 @@ export const Enterprise = $root.Enterprise = (() => { return message; }; - /** - * Decodes a UserUpdateRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Enterprise.UserUpdateRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Enterprise.UserUpdateRequest} UserUpdateRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - UserUpdateRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a UserUpdateRequest message. - * @function verify - * @memberof Enterprise.UserUpdateRequest - * @static - * @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) { - if (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); - if (error) - return "users." + error; - } - } - return null; - }; - /** * Creates a UserUpdateRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -87841,6 +71444,8 @@ export const Enterprise = $root.Enterprise = (() => { UserUpdateRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.Enterprise.UserUpdateRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".Enterprise.UserUpdateRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -87851,7 +71456,7 @@ export const Enterprise = $root.Enterprise = (() => { throw TypeError(".Enterprise.UserUpdateRequest.users: array expected"); message.users = []; for (let i = 0; i < object.users.length; ++i) { - if (typeof object.users[i] !== "object") + if (!$util.isObject(object.users[i])) throw TypeError(".Enterprise.UserUpdateRequest.users: object expected"); message.users[i] = $root.Enterprise.UserUpdate.fromObject(object.users[i], long + 1); } @@ -88046,19 +71651,6 @@ export const Enterprise = $root.Enterprise = (() => { return writer; }; - /** - * Encodes the specified UserUpdate message, length delimited. Does not implicitly {@link Enterprise.UserUpdate.verify|verify} messages. - * @function encodeDelimited - * @memberof Enterprise.UserUpdate - * @static - * @param {Enterprise.IUserUpdate} message UserUpdate message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - UserUpdate.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a UserUpdate message from the specified reader or buffer. * @function decode @@ -88119,69 +71711,6 @@ export const Enterprise = $root.Enterprise = (() => { return message; }; - /** - * Decodes a UserUpdate message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Enterprise.UserUpdate - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Enterprise.UserUpdate} UserUpdate - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - UserUpdate.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a UserUpdate message. - * @function verify - * @memberof Enterprise.UserUpdate - * @static - * @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) { - if (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"; - 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"; - if (message.encryptedData != null && message.hasOwnProperty("encryptedData")) - if (!(message.encryptedData && typeof message.encryptedData.length === "number" || $util.isString(message.encryptedData))) - return "encryptedData: buffer expected"; - if (message.keyType != null && message.hasOwnProperty("keyType")) - switch (message.keyType) { - default: - return "keyType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - break; - } - if (message.fullName != null && message.hasOwnProperty("fullName")) - if (!$util.isString(message.fullName)) - return "fullName: string expected"; - if (message.jobTitle != null && message.hasOwnProperty("jobTitle")) - if (!$util.isString(message.jobTitle)) - return "jobTitle: string expected"; - if (message.email != null && message.hasOwnProperty("email")) - if (!$util.isString(message.email)) - return "email: string expected"; - return null; - }; - /** * Creates a UserUpdate message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -88193,6 +71722,8 @@ export const Enterprise = $root.Enterprise = (() => { UserUpdate.fromObject = function fromObject(object, long) { if (object instanceof $root.Enterprise.UserUpdate) return object; + if (!$util.isObject(object)) + throw TypeError(".Enterprise.UserUpdate: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -88298,29 +71829,29 @@ export const Enterprise = $root.Enterprise = (() => { object.jobTitle = ""; object.email = ""; } - if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) + if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, "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") 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 (message.nodeId != null && Object.hasOwnProperty.call(message, "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") 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.encryptedData != null && message.hasOwnProperty("encryptedData")) + if (message.encryptedData != null && Object.hasOwnProperty.call(message, "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; - if (message.keyType != null && message.hasOwnProperty("keyType")) + if (message.keyType != null && Object.hasOwnProperty.call(message, "keyType")) object.keyType = options.enums === String ? $root.Enterprise.EncryptedKeyType[message.keyType] === undefined ? message.keyType : $root.Enterprise.EncryptedKeyType[message.keyType] : message.keyType; - if (message.fullName != null && message.hasOwnProperty("fullName")) + if (message.fullName != null && Object.hasOwnProperty.call(message, "fullName")) object.fullName = message.fullName; - if (message.jobTitle != null && message.hasOwnProperty("jobTitle")) + if (message.jobTitle != null && Object.hasOwnProperty.call(message, "jobTitle")) object.jobTitle = message.jobTitle; - if (message.email != null && message.hasOwnProperty("email")) + if (message.email != null && Object.hasOwnProperty.call(message, "email")) object.email = message.email; return object; }; @@ -88421,19 +71952,6 @@ export const Enterprise = $root.Enterprise = (() => { return writer; }; - /** - * Encodes the specified UserUpdateResponse message, length delimited. Does not implicitly {@link Enterprise.UserUpdateResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof Enterprise.UserUpdateResponse - * @static - * @param {Enterprise.IUserUpdateResponse} message UserUpdateResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - UserUpdateResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a UserUpdateResponse message from the specified reader or buffer. * @function decode @@ -88472,49 +71990,6 @@ export const Enterprise = $root.Enterprise = (() => { return message; }; - /** - * Decodes a UserUpdateResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Enterprise.UserUpdateResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Enterprise.UserUpdateResponse} UserUpdateResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - UserUpdateResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a UserUpdateResponse message. - * @function verify - * @memberof Enterprise.UserUpdateResponse - * @static - * @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) { - if (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); - if (error) - return "users." + error; - } - } - return null; - }; - /** * Creates a UserUpdateResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -88526,6 +72001,8 @@ export const Enterprise = $root.Enterprise = (() => { UserUpdateResponse.fromObject = function fromObject(object, long) { if (object instanceof $root.Enterprise.UserUpdateResponse) return object; + if (!$util.isObject(object)) + throw TypeError(".Enterprise.UserUpdateResponse: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -88536,7 +72013,7 @@ export const Enterprise = $root.Enterprise = (() => { throw TypeError(".Enterprise.UserUpdateResponse.users: array expected"); message.users = []; for (let i = 0; i < object.users.length; ++i) { - if (typeof object.users[i] !== "object") + if (!$util.isObject(object.users[i])) throw TypeError(".Enterprise.UserUpdateResponse.users: object expected"); message.users[i] = $root.Enterprise.UserUpdateResult.fromObject(object.users[i], long + 1); } @@ -88676,19 +72153,6 @@ export const Enterprise = $root.Enterprise = (() => { return writer; }; - /** - * Encodes the specified UserUpdateResult message, length delimited. Does not implicitly {@link Enterprise.UserUpdateResult.verify|verify} messages. - * @function encodeDelimited - * @memberof Enterprise.UserUpdateResult - * @static - * @param {Enterprise.IUserUpdateResult} message UserUpdateResult message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - UserUpdateResult.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a UserUpdateResult message from the specified reader or buffer. * @function decode @@ -88729,51 +72193,6 @@ export const Enterprise = $root.Enterprise = (() => { return message; }; - /** - * Decodes a UserUpdateResult message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Enterprise.UserUpdateResult - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Enterprise.UserUpdateResult} UserUpdateResult - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - UserUpdateResult.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a UserUpdateResult message. - * @function verify - * @memberof Enterprise.UserUpdateResult - * @static - * @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) { - if (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"; - if (message.status != null && message.hasOwnProperty("status")) - switch (message.status) { - default: - return "status: enum value expected"; - case 0: - case 1: - break; - } - return null; - }; - /** * Creates a UserUpdateResult message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -88785,6 +72204,8 @@ export const Enterprise = $root.Enterprise = (() => { UserUpdateResult.fromObject = function fromObject(object, long) { if (object instanceof $root.Enterprise.UserUpdateResult) return object; + if (!$util.isObject(object)) + throw TypeError(".Enterprise.UserUpdateResult: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -88843,14 +72264,14 @@ export const Enterprise = $root.Enterprise = (() => { object.enterpriseUserId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; object.status = options.enums === String ? "USER_UPDATE_OK" : 0; } - if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) + if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, "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") 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.status != null && message.hasOwnProperty("status")) + if (message.status != null && Object.hasOwnProperty.call(message, "status")) object.status = options.enums === String ? $root.Enterprise.UserUpdateStatus[message.status] === undefined ? message.status : $root.Enterprise.UserUpdateStatus[message.status] : message.status; return object; }; @@ -88979,19 +72400,6 @@ export const Enterprise = $root.Enterprise = (() => { return writer; }; - /** - * Encodes the specified ComplianceRecordOwnersRequest message, length delimited. Does not implicitly {@link Enterprise.ComplianceRecordOwnersRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof Enterprise.ComplianceRecordOwnersRequest - * @static - * @param {Enterprise.IComplianceRecordOwnersRequest} message ComplianceRecordOwnersRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ComplianceRecordOwnersRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a ComplianceRecordOwnersRequest message from the specified reader or buffer. * @function decode @@ -89039,50 +72447,6 @@ export const Enterprise = $root.Enterprise = (() => { return message; }; - /** - * Decodes a ComplianceRecordOwnersRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Enterprise.ComplianceRecordOwnersRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Enterprise.ComplianceRecordOwnersRequest} ComplianceRecordOwnersRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ComplianceRecordOwnersRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a ComplianceRecordOwnersRequest message. - * @function verify - * @memberof Enterprise.ComplianceRecordOwnersRequest - * @static - * @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) { - if (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"; - for (let i = 0; i < message.nodeIds.length; ++i) - if (!$util.isInteger(message.nodeIds[i]) && !(message.nodeIds[i] && $util.isInteger(message.nodeIds[i].low) && $util.isInteger(message.nodeIds[i].high))) - return "nodeIds: integer|Long[] expected"; - } - if (message.includeNonShared != null && message.hasOwnProperty("includeNonShared")) - if (typeof message.includeNonShared !== "boolean") - return "includeNonShared: boolean expected"; - return null; - }; - /** * Creates a ComplianceRecordOwnersRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -89094,6 +72458,8 @@ export const Enterprise = $root.Enterprise = (() => { ComplianceRecordOwnersRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.Enterprise.ComplianceRecordOwnersRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".Enterprise.ComplianceRecordOwnersRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -89149,7 +72515,7 @@ export const Enterprise = $root.Enterprise = (() => { 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]; } - if (message.includeNonShared != null && message.hasOwnProperty("includeNonShared")) + if (message.includeNonShared != null && Object.hasOwnProperty.call(message, "includeNonShared")) object.includeNonShared = message.includeNonShared; return object; }; @@ -89250,19 +72616,6 @@ export const Enterprise = $root.Enterprise = (() => { return writer; }; - /** - * Encodes the specified ComplianceRecordOwnersResponse message, length delimited. Does not implicitly {@link Enterprise.ComplianceRecordOwnersResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof Enterprise.ComplianceRecordOwnersResponse - * @static - * @param {Enterprise.IComplianceRecordOwnersResponse} message ComplianceRecordOwnersResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ComplianceRecordOwnersResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a ComplianceRecordOwnersResponse message from the specified reader or buffer. * @function decode @@ -89301,49 +72654,6 @@ export const Enterprise = $root.Enterprise = (() => { return message; }; - /** - * Decodes a ComplianceRecordOwnersResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Enterprise.ComplianceRecordOwnersResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Enterprise.ComplianceRecordOwnersResponse} ComplianceRecordOwnersResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ComplianceRecordOwnersResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a ComplianceRecordOwnersResponse message. - * @function verify - * @memberof Enterprise.ComplianceRecordOwnersResponse - * @static - * @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) { - if (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); - if (error) - return "recordOwners." + error; - } - } - return null; - }; - /** * Creates a ComplianceRecordOwnersResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -89355,6 +72665,8 @@ export const Enterprise = $root.Enterprise = (() => { ComplianceRecordOwnersResponse.fromObject = function fromObject(object, long) { if (object instanceof $root.Enterprise.ComplianceRecordOwnersResponse) return object; + if (!$util.isObject(object)) + throw TypeError(".Enterprise.ComplianceRecordOwnersResponse: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -89365,7 +72677,7 @@ export const Enterprise = $root.Enterprise = (() => { throw TypeError(".Enterprise.ComplianceRecordOwnersResponse.recordOwners: array expected"); message.recordOwners = []; for (let i = 0; i < object.recordOwners.length; ++i) { - if (typeof object.recordOwners[i] !== "object") + if (!$util.isObject(object.recordOwners[i])) throw TypeError(".Enterprise.ComplianceRecordOwnersResponse.recordOwners: object expected"); message.recordOwners[i] = $root.Enterprise.RecordOwner.fromObject(object.recordOwners[i], long + 1); } @@ -89505,19 +72817,6 @@ export const Enterprise = $root.Enterprise = (() => { return writer; }; - /** - * Encodes the specified RecordOwner message, length delimited. Does not implicitly {@link Enterprise.RecordOwner.verify|verify} messages. - * @function encodeDelimited - * @memberof Enterprise.RecordOwner - * @static - * @param {Enterprise.IRecordOwner} message RecordOwner message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RecordOwner.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a RecordOwner message from the specified reader or buffer. * @function decode @@ -89558,46 +72857,6 @@ export const Enterprise = $root.Enterprise = (() => { return message; }; - /** - * Decodes a RecordOwner message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Enterprise.RecordOwner - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Enterprise.RecordOwner} RecordOwner - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RecordOwner.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a RecordOwner message. - * @function verify - * @memberof Enterprise.RecordOwner - * @static - * @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) { - if (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"; - if (message.shared != null && message.hasOwnProperty("shared")) - if (typeof message.shared !== "boolean") - return "shared: boolean expected"; - return null; - }; - /** * Creates a RecordOwner message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -89609,6 +72868,8 @@ export const Enterprise = $root.Enterprise = (() => { RecordOwner.fromObject = function fromObject(object, long) { if (object instanceof $root.Enterprise.RecordOwner) return object; + if (!$util.isObject(object)) + throw TypeError(".Enterprise.RecordOwner: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -89653,14 +72914,14 @@ export const Enterprise = $root.Enterprise = (() => { object.enterpriseUserId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; object.shared = false; } - if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) + if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, "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") 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.shared != null && message.hasOwnProperty("shared")) + if (message.shared != null && Object.hasOwnProperty.call(message, "shared")) object.shared = message.shared; return object; }; @@ -89797,19 +73058,6 @@ export const Enterprise = $root.Enterprise = (() => { return writer; }; - /** - * Encodes the specified PreliminaryComplianceDataRequest message, length delimited. Does not implicitly {@link Enterprise.PreliminaryComplianceDataRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof Enterprise.PreliminaryComplianceDataRequest - * @static - * @param {Enterprise.IPreliminaryComplianceDataRequest} message PreliminaryComplianceDataRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - PreliminaryComplianceDataRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a PreliminaryComplianceDataRequest message from the specified reader or buffer. * @function decode @@ -89865,56 +73113,6 @@ export const Enterprise = $root.Enterprise = (() => { return message; }; - /** - * Decodes a PreliminaryComplianceDataRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Enterprise.PreliminaryComplianceDataRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Enterprise.PreliminaryComplianceDataRequest} PreliminaryComplianceDataRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - PreliminaryComplianceDataRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a PreliminaryComplianceDataRequest message. - * @function verify - * @memberof Enterprise.PreliminaryComplianceDataRequest - * @static - * @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) { - if (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"; - for (let i = 0; i < message.enterpriseUserIds.length; ++i) - if (!$util.isInteger(message.enterpriseUserIds[i]) && !(message.enterpriseUserIds[i] && $util.isInteger(message.enterpriseUserIds[i].low) && $util.isInteger(message.enterpriseUserIds[i].high))) - return "enterpriseUserIds: integer|Long[] expected"; - } - if (message.includeNonShared != null && message.hasOwnProperty("includeNonShared")) - if (typeof message.includeNonShared !== "boolean") - return "includeNonShared: boolean expected"; - if (message.continuationToken != null && message.hasOwnProperty("continuationToken")) - if (!(message.continuationToken && typeof message.continuationToken.length === "number" || $util.isString(message.continuationToken))) - return "continuationToken: buffer expected"; - if (message.includeTotalMatchingRecordsInFirstResponse != null && message.hasOwnProperty("includeTotalMatchingRecordsInFirstResponse")) - if (typeof message.includeTotalMatchingRecordsInFirstResponse !== "boolean") - return "includeTotalMatchingRecordsInFirstResponse: boolean expected"; - return null; - }; - /** * Creates a PreliminaryComplianceDataRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -89926,6 +73124,8 @@ export const Enterprise = $root.Enterprise = (() => { PreliminaryComplianceDataRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.Enterprise.PreliminaryComplianceDataRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".Enterprise.PreliminaryComplianceDataRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -89997,11 +73197,11 @@ export const Enterprise = $root.Enterprise = (() => { 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]; } - if (message.includeNonShared != null && message.hasOwnProperty("includeNonShared")) + if (message.includeNonShared != null && Object.hasOwnProperty.call(message, "includeNonShared")) object.includeNonShared = message.includeNonShared; - if (message.continuationToken != null && message.hasOwnProperty("continuationToken")) + if (message.continuationToken != null && Object.hasOwnProperty.call(message, "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.includeTotalMatchingRecordsInFirstResponse != null && message.hasOwnProperty("includeTotalMatchingRecordsInFirstResponse")) + if (message.includeTotalMatchingRecordsInFirstResponse != null && Object.hasOwnProperty.call(message, "includeTotalMatchingRecordsInFirstResponse")) object.includeTotalMatchingRecordsInFirstResponse = message.includeTotalMatchingRecordsInFirstResponse; return object; }; @@ -90135,19 +73335,6 @@ export const Enterprise = $root.Enterprise = (() => { return writer; }; - /** - * Encodes the specified PreliminaryComplianceDataResponse message, length delimited. Does not implicitly {@link Enterprise.PreliminaryComplianceDataResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof Enterprise.PreliminaryComplianceDataResponse - * @static - * @param {Enterprise.IPreliminaryComplianceDataResponse} message PreliminaryComplianceDataResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - PreliminaryComplianceDataResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a PreliminaryComplianceDataResponse message from the specified reader or buffer. * @function decode @@ -90198,58 +73385,6 @@ export const Enterprise = $root.Enterprise = (() => { return message; }; - /** - * Decodes a PreliminaryComplianceDataResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Enterprise.PreliminaryComplianceDataResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Enterprise.PreliminaryComplianceDataResponse} PreliminaryComplianceDataResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - PreliminaryComplianceDataResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a PreliminaryComplianceDataResponse message. - * @function verify - * @memberof Enterprise.PreliminaryComplianceDataResponse - * @static - * @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) { - if (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); - if (error) - return "auditUserData." + error; - } - } - if (message.continuationToken != null && message.hasOwnProperty("continuationToken")) - if (!(message.continuationToken && typeof message.continuationToken.length === "number" || $util.isString(message.continuationToken))) - return "continuationToken: buffer expected"; - if (message.hasMore != null && message.hasOwnProperty("hasMore")) - if (typeof message.hasMore !== "boolean") - return "hasMore: boolean expected"; - if (message.totalMatchingRecords != null && message.hasOwnProperty("totalMatchingRecords")) - if (!$util.isInteger(message.totalMatchingRecords)) - return "totalMatchingRecords: integer expected"; - return null; - }; - /** * Creates a PreliminaryComplianceDataResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -90261,6 +73396,8 @@ export const Enterprise = $root.Enterprise = (() => { PreliminaryComplianceDataResponse.fromObject = function fromObject(object, long) { if (object instanceof $root.Enterprise.PreliminaryComplianceDataResponse) return object; + if (!$util.isObject(object)) + throw TypeError(".Enterprise.PreliminaryComplianceDataResponse: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -90271,7 +73408,7 @@ export const Enterprise = $root.Enterprise = (() => { throw TypeError(".Enterprise.PreliminaryComplianceDataResponse.auditUserData: array expected"); message.auditUserData = []; for (let i = 0; i < object.auditUserData.length; ++i) { - if (typeof object.auditUserData[i] !== "object") + if (!$util.isObject(object.auditUserData[i])) throw TypeError(".Enterprise.PreliminaryComplianceDataResponse.auditUserData: object expected"); message.auditUserData[i] = $root.Enterprise.AuditUserData.fromObject(object.auditUserData[i], long + 1); } @@ -90323,11 +73460,11 @@ export const Enterprise = $root.Enterprise = (() => { for (let j = 0; j < message.auditUserData.length; ++j) object.auditUserData[j] = $root.Enterprise.AuditUserData.toObject(message.auditUserData[j], options, q + 1); } - if (message.continuationToken != null && message.hasOwnProperty("continuationToken")) + if (message.continuationToken != null && Object.hasOwnProperty.call(message, "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.hasMore != null && message.hasOwnProperty("hasMore")) + if (message.hasMore != null && Object.hasOwnProperty.call(message, "hasMore")) object.hasMore = message.hasMore; - if (message.totalMatchingRecords != null && message.hasOwnProperty("totalMatchingRecords")) + if (message.totalMatchingRecords != null && Object.hasOwnProperty.call(message, "totalMatchingRecords")) object.totalMatchingRecords = message.totalMatchingRecords; return object; }; @@ -90459,19 +73596,6 @@ export const Enterprise = $root.Enterprise = (() => { return writer; }; - /** - * Encodes the specified AuditUserRecord message, length delimited. Does not implicitly {@link Enterprise.AuditUserRecord.verify|verify} messages. - * @function encodeDelimited - * @memberof Enterprise.AuditUserRecord - * @static - * @param {Enterprise.IAuditUserRecord} message AuditUserRecord message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - AuditUserRecord.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes an AuditUserRecord message from the specified reader or buffer. * @function decode @@ -90520,52 +73644,6 @@ export const Enterprise = $root.Enterprise = (() => { return message; }; - /** - * Decodes an AuditUserRecord message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Enterprise.AuditUserRecord - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Enterprise.AuditUserRecord} AuditUserRecord - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - AuditUserRecord.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an AuditUserRecord message. - * @function verify - * @memberof Enterprise.AuditUserRecord - * @static - * @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) { - if (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.encryptedData != null && message.hasOwnProperty("encryptedData")) - if (!(message.encryptedData && typeof message.encryptedData.length === "number" || $util.isString(message.encryptedData))) - return "encryptedData: buffer expected"; - if (message.shared != null && message.hasOwnProperty("shared")) - if (typeof message.shared !== "boolean") - return "shared: boolean expected"; - if (message.isDriveRecord != null && message.hasOwnProperty("isDriveRecord")) - if (typeof message.isDriveRecord !== "boolean") - return "isDriveRecord: boolean expected"; - return null; - }; - /** * Creates an AuditUserRecord message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -90577,6 +73655,8 @@ export const Enterprise = $root.Enterprise = (() => { AuditUserRecord.fromObject = function fromObject(object, long) { if (object instanceof $root.Enterprise.AuditUserRecord) return object; + if (!$util.isObject(object)) + throw TypeError(".Enterprise.AuditUserRecord: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -90634,13 +73714,13 @@ export const Enterprise = $root.Enterprise = (() => { object.shared = false; object.isDriveRecord = false; } - if (message.recordUid != null && message.hasOwnProperty("recordUid")) + if (message.recordUid != null && Object.hasOwnProperty.call(message, "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.encryptedData != null && message.hasOwnProperty("encryptedData")) + if (message.encryptedData != null && Object.hasOwnProperty.call(message, "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; - if (message.shared != null && message.hasOwnProperty("shared")) + if (message.shared != null && Object.hasOwnProperty.call(message, "shared")) object.shared = message.shared; - if (message.isDriveRecord != null && message.hasOwnProperty("isDriveRecord")) + if (message.isDriveRecord != null && Object.hasOwnProperty.call(message, "isDriveRecord")) object.isDriveRecord = message.isDriveRecord; return object; }; @@ -90779,19 +73859,6 @@ export const Enterprise = $root.Enterprise = (() => { return writer; }; - /** - * Encodes the specified AuditUserData message, length delimited. Does not implicitly {@link Enterprise.AuditUserData.verify|verify} messages. - * @function encodeDelimited - * @memberof Enterprise.AuditUserData - * @static - * @param {Enterprise.IAuditUserData} message AuditUserData message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - AuditUserData.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes an AuditUserData message from the specified reader or buffer. * @function decode @@ -90838,61 +73905,6 @@ export const Enterprise = $root.Enterprise = (() => { return message; }; - /** - * Decodes an AuditUserData message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Enterprise.AuditUserData - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Enterprise.AuditUserData} AuditUserData - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - AuditUserData.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an AuditUserData message. - * @function verify - * @memberof Enterprise.AuditUserData - * @static - * @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) { - if (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"; - if (message.auditUserRecords != null && message.hasOwnProperty("auditUserRecords")) { - 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); - if (error) - return "auditUserRecords." + error; - } - } - if (message.status != null && message.hasOwnProperty("status")) - switch (message.status) { - default: - return "status: enum value expected"; - case 0: - case 1: - case 2: - break; - } - return null; - }; - /** * Creates an AuditUserData message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -90904,6 +73916,8 @@ export const Enterprise = $root.Enterprise = (() => { AuditUserData.fromObject = function fromObject(object, long) { if (object instanceof $root.Enterprise.AuditUserData) return object; + if (!$util.isObject(object)) + throw TypeError(".Enterprise.AuditUserData: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -90923,7 +73937,7 @@ export const Enterprise = $root.Enterprise = (() => { throw TypeError(".Enterprise.AuditUserData.auditUserRecords: array expected"); message.auditUserRecords = []; for (let i = 0; i < object.auditUserRecords.length; ++i) { - if (typeof object.auditUserRecords[i] !== "object") + if (!$util.isObject(object.auditUserRecords[i])) throw TypeError(".Enterprise.AuditUserData.auditUserRecords: object expected"); message.auditUserRecords[i] = $root.Enterprise.AuditUserRecord.fromObject(object.auditUserRecords[i], long + 1); } @@ -90978,7 +73992,7 @@ export const Enterprise = $root.Enterprise = (() => { object.enterpriseUserId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; object.status = options.enums === String ? "OK" : 0; } - if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) + if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, "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") @@ -90990,7 +74004,7 @@ export const Enterprise = $root.Enterprise = (() => { for (let j = 0; j < message.auditUserRecords.length; ++j) object.auditUserRecords[j] = $root.Enterprise.AuditUserRecord.toObject(message.auditUserRecords[j], options, q + 1); } - if (message.status != null && message.hasOwnProperty("status")) + if (message.status != null && Object.hasOwnProperty.call(message, "status")) object.status = options.enums === String ? $root.Enterprise.AuditUserStatus[message.status] === undefined ? message.status : $root.Enterprise.AuditUserStatus[message.status] : message.status; return object; }; @@ -91149,19 +74163,6 @@ export const Enterprise = $root.Enterprise = (() => { return writer; }; - /** - * Encodes the specified ComplianceReportFilters message, length delimited. Does not implicitly {@link Enterprise.ComplianceReportFilters.verify|verify} messages. - * @function encodeDelimited - * @memberof Enterprise.ComplianceReportFilters - * @static - * @param {Enterprise.IComplianceReportFilters} message ComplianceReportFilters message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ComplianceReportFilters.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a ComplianceReportFilters message from the specified reader or buffer. * @function decode @@ -91234,75 +74235,6 @@ export const Enterprise = $root.Enterprise = (() => { return message; }; - /** - * Decodes a ComplianceReportFilters message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Enterprise.ComplianceReportFilters - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Enterprise.ComplianceReportFilters} ComplianceReportFilters - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ComplianceReportFilters.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a ComplianceReportFilters message. - * @function verify - * @memberof Enterprise.ComplianceReportFilters - * @static - * @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) { - if (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"; - for (let i = 0; i < message.recordTitles.length; ++i) - if (!$util.isString(message.recordTitles[i])) - return "recordTitles: string[] expected"; - } - if (message.recordUids != null && message.hasOwnProperty("recordUids")) { - if (!Array.isArray(message.recordUids)) - return "recordUids: array expected"; - for (let i = 0; i < message.recordUids.length; ++i) - if (!(message.recordUids[i] && typeof message.recordUids[i].length === "number" || $util.isString(message.recordUids[i]))) - return "recordUids: buffer[] expected"; - } - if (message.jobTitles != null && message.hasOwnProperty("jobTitles")) { - if (!Array.isArray(message.jobTitles)) - return "jobTitles: array expected"; - for (let i = 0; i < message.jobTitles.length; ++i) - if (!$util.isInteger(message.jobTitles[i]) && !(message.jobTitles[i] && $util.isInteger(message.jobTitles[i].low) && $util.isInteger(message.jobTitles[i].high))) - return "jobTitles: integer|Long[] expected"; - } - if (message.urls != null && message.hasOwnProperty("urls")) { - if (!Array.isArray(message.urls)) - return "urls: array expected"; - for (let i = 0; i < message.urls.length; ++i) - if (!$util.isString(message.urls[i])) - return "urls: string[] expected"; - } - if (message.enterpriseUserIds != null && message.hasOwnProperty("enterpriseUserIds")) { - if (!Array.isArray(message.enterpriseUserIds)) - return "enterpriseUserIds: array expected"; - for (let i = 0; i < message.enterpriseUserIds.length; ++i) - if (!$util.isInteger(message.enterpriseUserIds[i]) && !(message.enterpriseUserIds[i] && $util.isInteger(message.enterpriseUserIds[i].low) && $util.isInteger(message.enterpriseUserIds[i].high))) - return "enterpriseUserIds: integer|Long[] expected"; - } - return null; - }; - /** * Creates a ComplianceReportFilters message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -91314,6 +74246,8 @@ export const Enterprise = $root.Enterprise = (() => { ComplianceReportFilters.fromObject = function fromObject(object, long) { if (object instanceof $root.Enterprise.ComplianceReportFilters) return object; + if (!$util.isObject(object)) + throw TypeError(".Enterprise.ComplianceReportFilters: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -91552,19 +74486,6 @@ export const Enterprise = $root.Enterprise = (() => { return writer; }; - /** - * Encodes the specified ComplianceReportRequest message, length delimited. Does not implicitly {@link Enterprise.ComplianceReportRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof Enterprise.ComplianceReportRequest - * @static - * @param {Enterprise.IComplianceReportRequest} message ComplianceReportRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ComplianceReportRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a ComplianceReportRequest message from the specified reader or buffer. * @function decode @@ -91609,51 +74530,6 @@ export const Enterprise = $root.Enterprise = (() => { return message; }; - /** - * Decodes a ComplianceReportRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Enterprise.ComplianceReportRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Enterprise.ComplianceReportRequest} ComplianceReportRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ComplianceReportRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a ComplianceReportRequest message. - * @function verify - * @memberof Enterprise.ComplianceReportRequest - * @static - * @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) { - if (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); - if (error) - return "complianceReportRun." + error; - } - if (message.reportName != null && message.hasOwnProperty("reportName")) - if (!$util.isString(message.reportName)) - return "reportName: string expected"; - if (message.saveReport != null && message.hasOwnProperty("saveReport")) - if (typeof message.saveReport !== "boolean") - return "saveReport: boolean expected"; - return null; - }; - /** * Creates a ComplianceReportRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -91665,13 +74541,15 @@ export const Enterprise = $root.Enterprise = (() => { ComplianceReportRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.Enterprise.ComplianceReportRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".Enterprise.ComplianceReportRequest: object expected"); 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") + if (!$util.isObject(object.complianceReportRun)) throw TypeError(".Enterprise.ComplianceReportRequest.complianceReportRun: object expected"); message.complianceReportRun = $root.Enterprise.ComplianceReportRun.fromObject(object.complianceReportRun, long + 1); } @@ -91704,11 +74582,11 @@ export const Enterprise = $root.Enterprise = (() => { object.reportName = ""; object.saveReport = false; } - if (message.complianceReportRun != null && message.hasOwnProperty("complianceReportRun")) + if (message.complianceReportRun != null && Object.hasOwnProperty.call(message, "complianceReportRun")) object.complianceReportRun = $root.Enterprise.ComplianceReportRun.toObject(message.complianceReportRun, options, q + 1); - if (message.reportName != null && message.hasOwnProperty("reportName")) + if (message.reportName != null && Object.hasOwnProperty.call(message, "reportName")) object.reportName = message.reportName; - if (message.saveReport != null && message.hasOwnProperty("saveReport")) + if (message.saveReport != null && Object.hasOwnProperty.call(message, "saveReport")) object.saveReport = message.saveReport; return object; }; @@ -91836,19 +74714,6 @@ export const Enterprise = $root.Enterprise = (() => { return writer; }; - /** - * Encodes the specified ComplianceReportRun message, length delimited. Does not implicitly {@link Enterprise.ComplianceReportRun.verify|verify} messages. - * @function encodeDelimited - * @memberof Enterprise.ComplianceReportRun - * @static - * @param {Enterprise.IComplianceReportRun} message ComplianceReportRun message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ComplianceReportRun.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a ComplianceReportRun message from the specified reader or buffer. * @function decode @@ -91902,59 +74767,6 @@ export const Enterprise = $root.Enterprise = (() => { return message; }; - /** - * Decodes a ComplianceReportRun message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Enterprise.ComplianceReportRun - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Enterprise.ComplianceReportRun} ComplianceReportRun - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ComplianceReportRun.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a ComplianceReportRun message. - * @function verify - * @memberof Enterprise.ComplianceReportRun - * @static - * @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) { - if (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); - if (error) - return "reportCriteriaAndFilter." + error; - } - 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) - if (!$util.isInteger(message.users[i]) && !(message.users[i] && $util.isInteger(message.users[i].low) && $util.isInteger(message.users[i].high))) - return "users: integer|Long[] 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) - if (!(message.records[i] && typeof message.records[i].length === "number" || $util.isString(message.records[i]))) - return "records: buffer[] expected"; - } - return null; - }; - /** * Creates a ComplianceReportRun message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -91966,13 +74778,15 @@ export const Enterprise = $root.Enterprise = (() => { ComplianceReportRun.fromObject = function fromObject(object, long) { if (object instanceof $root.Enterprise.ComplianceReportRun) return object; + if (!$util.isObject(object)) + throw TypeError(".Enterprise.ComplianceReportRun: object expected"); 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") + if (!$util.isObject(object.reportCriteriaAndFilter)) throw TypeError(".Enterprise.ComplianceReportRun.reportCriteriaAndFilter: object expected"); message.reportCriteriaAndFilter = $root.Enterprise.ComplianceReportCriteriaAndFilter.fromObject(object.reportCriteriaAndFilter, long + 1); } @@ -92026,7 +74840,7 @@ export const Enterprise = $root.Enterprise = (() => { } if (options.defaults) object.reportCriteriaAndFilter = null; - if (message.reportCriteriaAndFilter != null && message.hasOwnProperty("reportCriteriaAndFilter")) + if (message.reportCriteriaAndFilter != null && Object.hasOwnProperty.call(message, "reportCriteriaAndFilter")) object.reportCriteriaAndFilter = $root.Enterprise.ComplianceReportCriteriaAndFilter.toObject(message.reportCriteriaAndFilter, options, q + 1); if (message.users && message.users.length) { object.users = []; @@ -92208,19 +75022,6 @@ export const Enterprise = $root.Enterprise = (() => { return writer; }; - /** - * Encodes the specified ComplianceReportCriteriaAndFilter message, length delimited. Does not implicitly {@link Enterprise.ComplianceReportCriteriaAndFilter.verify|verify} messages. - * @function encodeDelimited - * @memberof Enterprise.ComplianceReportCriteriaAndFilter - * @static - * @param {Enterprise.IComplianceReportCriteriaAndFilter} message ComplianceReportCriteriaAndFilter message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ComplianceReportCriteriaAndFilter.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a ComplianceReportCriteriaAndFilter message from the specified reader or buffer. * @function decode @@ -92283,69 +75084,6 @@ export const Enterprise = $root.Enterprise = (() => { return message; }; - /** - * Decodes a ComplianceReportCriteriaAndFilter message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Enterprise.ComplianceReportCriteriaAndFilter - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Enterprise.ComplianceReportCriteriaAndFilter} ComplianceReportCriteriaAndFilter - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ComplianceReportCriteriaAndFilter.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a ComplianceReportCriteriaAndFilter message. - * @function verify - * @memberof Enterprise.ComplianceReportCriteriaAndFilter - * @static - * @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) { - if (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"; - if (message.criteriaUid != null && message.hasOwnProperty("criteriaUid")) - if (!(message.criteriaUid && typeof message.criteriaUid.length === "number" || $util.isString(message.criteriaUid))) - return "criteriaUid: buffer expected"; - if (message.criteriaName != null && message.hasOwnProperty("criteriaName")) - 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); - if (error) - return "criteria." + error; - } - if (message.filters != null && message.hasOwnProperty("filters")) { - 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); - if (error) - return "filters." + error; - } - } - if (message.lastModified != null && message.hasOwnProperty("lastModified")) - if (!$util.isInteger(message.lastModified) && !(message.lastModified && $util.isInteger(message.lastModified.low) && $util.isInteger(message.lastModified.high))) - return "lastModified: integer|Long expected"; - if (message.nodeEncryptedData != null && message.hasOwnProperty("nodeEncryptedData")) - if (!(message.nodeEncryptedData && typeof message.nodeEncryptedData.length === "number" || $util.isString(message.nodeEncryptedData))) - return "nodeEncryptedData: buffer expected"; - return null; - }; - /** * Creates a ComplianceReportCriteriaAndFilter message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -92357,6 +75095,8 @@ export const Enterprise = $root.Enterprise = (() => { ComplianceReportCriteriaAndFilter.fromObject = function fromObject(object, long) { if (object instanceof $root.Enterprise.ComplianceReportCriteriaAndFilter) return object; + if (!$util.isObject(object)) + throw TypeError(".Enterprise.ComplianceReportCriteriaAndFilter: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -92379,7 +75119,7 @@ export const Enterprise = $root.Enterprise = (() => { if (object.criteriaName != null) message.criteriaName = String(object.criteriaName); if (object.criteria != null) { - if (typeof object.criteria !== "object") + if (!$util.isObject(object.criteria)) throw TypeError(".Enterprise.ComplianceReportCriteriaAndFilter.criteria: object expected"); message.criteria = $root.Enterprise.ComplianceReportCriteria.fromObject(object.criteria, long + 1); } @@ -92388,7 +75128,7 @@ export const Enterprise = $root.Enterprise = (() => { throw TypeError(".Enterprise.ComplianceReportCriteriaAndFilter.filters: array expected"); message.filters = []; for (let i = 0; i < object.filters.length; ++i) { - if (typeof object.filters[i] !== "object") + if (!$util.isObject(object.filters[i])) throw TypeError(".Enterprise.ComplianceReportCriteriaAndFilter.filters: object expected"); message.filters[i] = $root.Enterprise.ComplianceReportFilter.fromObject(object.filters[i], long + 1); } @@ -92457,32 +75197,32 @@ export const Enterprise = $root.Enterprise = (() => { object.nodeEncryptedData = $util.newBuffer(object.nodeEncryptedData); } } - if (message.nodeId != null && message.hasOwnProperty("nodeId")) + if (message.nodeId != null && Object.hasOwnProperty.call(message, "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") 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.criteriaUid != null && message.hasOwnProperty("criteriaUid")) + if (message.criteriaUid != null && Object.hasOwnProperty.call(message, "criteriaUid")) object.criteriaUid = options.bytes === String ? $util.base64.encode(message.criteriaUid, 0, message.criteriaUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.criteriaUid) : message.criteriaUid; - if (message.criteriaName != null && message.hasOwnProperty("criteriaName")) + if (message.criteriaName != null && Object.hasOwnProperty.call(message, "criteriaName")) object.criteriaName = message.criteriaName; - if (message.criteria != null && message.hasOwnProperty("criteria")) + if (message.criteria != null && Object.hasOwnProperty.call(message, "criteria")) object.criteria = $root.Enterprise.ComplianceReportCriteria.toObject(message.criteria, options, q + 1); 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); } - if (message.lastModified != null && message.hasOwnProperty("lastModified")) + if (message.lastModified != null && Object.hasOwnProperty.call(message, "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") 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.nodeEncryptedData != null && message.hasOwnProperty("nodeEncryptedData")) + if (message.nodeEncryptedData != null && Object.hasOwnProperty.call(message, "nodeEncryptedData")) object.nodeEncryptedData = options.bytes === String ? $util.base64.encode(message.nodeEncryptedData, 0, message.nodeEncryptedData.length) : options.bytes === Array ? Array.prototype.slice.call(message.nodeEncryptedData) : message.nodeEncryptedData; return object; }; @@ -92610,19 +75350,6 @@ export const Enterprise = $root.Enterprise = (() => { return writer; }; - /** - * Encodes the specified ComplianceReportCriteria message, length delimited. Does not implicitly {@link Enterprise.ComplianceReportCriteria.verify|verify} messages. - * @function encodeDelimited - * @memberof Enterprise.ComplianceReportCriteria - * @static - * @param {Enterprise.IComplianceReportCriteria} message ComplianceReportCriteria message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ComplianceReportCriteria.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a ComplianceReportCriteria message from the specified reader or buffer. * @function decode @@ -92676,57 +75403,6 @@ export const Enterprise = $root.Enterprise = (() => { return message; }; - /** - * Decodes a ComplianceReportCriteria message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Enterprise.ComplianceReportCriteria - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Enterprise.ComplianceReportCriteria} ComplianceReportCriteria - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ComplianceReportCriteria.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a ComplianceReportCriteria message. - * @function verify - * @memberof Enterprise.ComplianceReportCriteria - * @static - * @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) { - if (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"; - for (let i = 0; i < message.jobTitles.length; ++i) - if (!$util.isString(message.jobTitles[i])) - return "jobTitles: string[] expected"; - } - if (message.enterpriseUserIds != null && message.hasOwnProperty("enterpriseUserIds")) { - if (!Array.isArray(message.enterpriseUserIds)) - return "enterpriseUserIds: array expected"; - for (let i = 0; i < message.enterpriseUserIds.length; ++i) - if (!$util.isInteger(message.enterpriseUserIds[i]) && !(message.enterpriseUserIds[i] && $util.isInteger(message.enterpriseUserIds[i].low) && $util.isInteger(message.enterpriseUserIds[i].high))) - return "enterpriseUserIds: integer|Long[] expected"; - } - if (message.includeNonShared != null && message.hasOwnProperty("includeNonShared")) - if (typeof message.includeNonShared !== "boolean") - return "includeNonShared: boolean expected"; - return null; - }; - /** * Creates a ComplianceReportCriteria message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -92738,6 +75414,8 @@ export const Enterprise = $root.Enterprise = (() => { ComplianceReportCriteria.fromObject = function fromObject(object, long) { if (object instanceof $root.Enterprise.ComplianceReportCriteria) return object; + if (!$util.isObject(object)) + throw TypeError(".Enterprise.ComplianceReportCriteria: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -92807,7 +75485,7 @@ export const Enterprise = $root.Enterprise = (() => { 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]; } - if (message.includeNonShared != null && message.hasOwnProperty("includeNonShared")) + if (message.includeNonShared != null && Object.hasOwnProperty.call(message, "includeNonShared")) object.includeNonShared = message.includeNonShared; return object; }; @@ -92960,19 +75638,6 @@ export const Enterprise = $root.Enterprise = (() => { return writer; }; - /** - * Encodes the specified ComplianceReportFilter message, length delimited. Does not implicitly {@link Enterprise.ComplianceReportFilter.verify|verify} messages. - * @function encodeDelimited - * @memberof Enterprise.ComplianceReportFilter - * @static - * @param {Enterprise.IComplianceReportFilter} message ComplianceReportFilter message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ComplianceReportFilter.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a ComplianceReportFilter message from the specified reader or buffer. * @function decode @@ -93035,75 +75700,6 @@ export const Enterprise = $root.Enterprise = (() => { return message; }; - /** - * Decodes a ComplianceReportFilter message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Enterprise.ComplianceReportFilter - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Enterprise.ComplianceReportFilter} ComplianceReportFilter - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ComplianceReportFilter.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a ComplianceReportFilter message. - * @function verify - * @memberof Enterprise.ComplianceReportFilter - * @static - * @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) { - if (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"; - for (let i = 0; i < message.recordTitles.length; ++i) - if (!$util.isString(message.recordTitles[i])) - return "recordTitles: string[] expected"; - } - if (message.recordUids != null && message.hasOwnProperty("recordUids")) { - if (!Array.isArray(message.recordUids)) - return "recordUids: array expected"; - for (let i = 0; i < message.recordUids.length; ++i) - if (!(message.recordUids[i] && typeof message.recordUids[i].length === "number" || $util.isString(message.recordUids[i]))) - return "recordUids: buffer[] expected"; - } - if (message.jobTitles != null && message.hasOwnProperty("jobTitles")) { - if (!Array.isArray(message.jobTitles)) - return "jobTitles: array expected"; - for (let i = 0; i < message.jobTitles.length; ++i) - if (!$util.isString(message.jobTitles[i])) - return "jobTitles: string[] expected"; - } - if (message.urls != null && message.hasOwnProperty("urls")) { - if (!Array.isArray(message.urls)) - return "urls: array expected"; - for (let i = 0; i < message.urls.length; ++i) - if (!$util.isString(message.urls[i])) - return "urls: string[] expected"; - } - 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) - if (!$util.isString(message.recordTypes[i])) - return "recordTypes: string[] expected"; - } - return null; - }; - /** * Creates a ComplianceReportFilter message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -93115,6 +75711,8 @@ export const Enterprise = $root.Enterprise = (() => { ComplianceReportFilter.fromObject = function fromObject(object, long) { if (object instanceof $root.Enterprise.ComplianceReportFilter) return object; + if (!$util.isObject(object)) + throw TypeError(".Enterprise.ComplianceReportFilter: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -93481,19 +76079,6 @@ export const Enterprise = $root.Enterprise = (() => { return writer; }; - /** - * Encodes the specified ComplianceReportResponse message, length delimited. Does not implicitly {@link Enterprise.ComplianceReportResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof Enterprise.ComplianceReportResponse - * @static - * @param {Enterprise.IComplianceReportResponse} message ComplianceReportResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ComplianceReportResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a ComplianceReportResponse message from the specified reader or buffer. * @function decode @@ -93606,147 +76191,6 @@ export const Enterprise = $root.Enterprise = (() => { return message; }; - /** - * Decodes a ComplianceReportResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Enterprise.ComplianceReportResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Enterprise.ComplianceReportResponse} ComplianceReportResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ComplianceReportResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a ComplianceReportResponse message. - * @function verify - * @memberof Enterprise.ComplianceReportResponse - * @static - * @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) { - if (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"; - if (message.runByUserName != null && message.hasOwnProperty("runByUserName")) - if (!$util.isString(message.runByUserName)) - return "runByUserName: string expected"; - if (message.reportName != null && message.hasOwnProperty("reportName")) - if (!$util.isString(message.reportName)) - return "reportName: string expected"; - if (message.reportUid != null && message.hasOwnProperty("reportUid")) - 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); - if (error) - return "complianceReportRun." + error; - } - if (message.userProfiles != null && message.hasOwnProperty("userProfiles")) { - 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); - if (error) - return "userProfiles." + error; - } - } - if (message.auditTeams != null && message.hasOwnProperty("auditTeams")) { - 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); - if (error) - return "auditTeams." + error; - } - } - if (message.auditRecords != null && message.hasOwnProperty("auditRecords")) { - 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); - if (error) - return "auditRecords." + error; - } - } - if (message.userRecords != null && message.hasOwnProperty("userRecords")) { - 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); - if (error) - return "userRecords." + error; - } - } - if (message.sharedFolderRecords != null && message.hasOwnProperty("sharedFolderRecords")) { - 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); - if (error) - return "sharedFolderRecords." + error; - } - } - if (message.sharedFolderUsers != null && message.hasOwnProperty("sharedFolderUsers")) { - 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); - if (error) - return "sharedFolderUsers." + error; - } - } - if (message.sharedFolderTeams != null && message.hasOwnProperty("sharedFolderTeams")) { - 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); - if (error) - return "sharedFolderTeams." + error; - } - } - if (message.auditTeamUsers != null && message.hasOwnProperty("auditTeamUsers")) { - 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); - if (error) - return "auditTeamUsers." + error; - } - } - if (message.auditRoles != null && message.hasOwnProperty("auditRoles")) { - 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); - if (error) - return "auditRoles." + error; - } - } - if (message.linkedRecords != null && message.hasOwnProperty("linkedRecords")) { - 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); - if (error) - return "linkedRecords." + error; - } - } - return null; - }; - /** * Creates a ComplianceReportResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -93758,6 +76202,8 @@ export const Enterprise = $root.Enterprise = (() => { ComplianceReportResponse.fromObject = function fromObject(object, long) { if (object instanceof $root.Enterprise.ComplianceReportResponse) return object; + if (!$util.isObject(object)) + throw TypeError(".Enterprise.ComplianceReportResponse: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -93782,7 +76228,7 @@ export const Enterprise = $root.Enterprise = (() => { else if (object.reportUid.length >= 0) message.reportUid = object.reportUid; if (object.complianceReportRun != null) { - if (typeof object.complianceReportRun !== "object") + if (!$util.isObject(object.complianceReportRun)) throw TypeError(".Enterprise.ComplianceReportResponse.complianceReportRun: object expected"); message.complianceReportRun = $root.Enterprise.ComplianceReportRun.fromObject(object.complianceReportRun, long + 1); } @@ -93791,7 +76237,7 @@ export const Enterprise = $root.Enterprise = (() => { throw TypeError(".Enterprise.ComplianceReportResponse.userProfiles: array expected"); message.userProfiles = []; for (let i = 0; i < object.userProfiles.length; ++i) { - if (typeof object.userProfiles[i] !== "object") + if (!$util.isObject(object.userProfiles[i])) throw TypeError(".Enterprise.ComplianceReportResponse.userProfiles: object expected"); message.userProfiles[i] = $root.Enterprise.UserProfile.fromObject(object.userProfiles[i], long + 1); } @@ -93801,7 +76247,7 @@ export const Enterprise = $root.Enterprise = (() => { throw TypeError(".Enterprise.ComplianceReportResponse.auditTeams: array expected"); message.auditTeams = []; for (let i = 0; i < object.auditTeams.length; ++i) { - if (typeof object.auditTeams[i] !== "object") + if (!$util.isObject(object.auditTeams[i])) throw TypeError(".Enterprise.ComplianceReportResponse.auditTeams: object expected"); message.auditTeams[i] = $root.Enterprise.AuditTeam.fromObject(object.auditTeams[i], long + 1); } @@ -93811,7 +76257,7 @@ export const Enterprise = $root.Enterprise = (() => { throw TypeError(".Enterprise.ComplianceReportResponse.auditRecords: array expected"); message.auditRecords = []; for (let i = 0; i < object.auditRecords.length; ++i) { - if (typeof object.auditRecords[i] !== "object") + if (!$util.isObject(object.auditRecords[i])) throw TypeError(".Enterprise.ComplianceReportResponse.auditRecords: object expected"); message.auditRecords[i] = $root.Enterprise.AuditRecord.fromObject(object.auditRecords[i], long + 1); } @@ -93821,7 +76267,7 @@ export const Enterprise = $root.Enterprise = (() => { throw TypeError(".Enterprise.ComplianceReportResponse.userRecords: array expected"); message.userRecords = []; for (let i = 0; i < object.userRecords.length; ++i) { - if (typeof object.userRecords[i] !== "object") + if (!$util.isObject(object.userRecords[i])) throw TypeError(".Enterprise.ComplianceReportResponse.userRecords: object expected"); message.userRecords[i] = $root.Enterprise.UserRecord.fromObject(object.userRecords[i], long + 1); } @@ -93831,7 +76277,7 @@ export const Enterprise = $root.Enterprise = (() => { throw TypeError(".Enterprise.ComplianceReportResponse.sharedFolderRecords: array expected"); message.sharedFolderRecords = []; for (let i = 0; i < object.sharedFolderRecords.length; ++i) { - if (typeof object.sharedFolderRecords[i] !== "object") + if (!$util.isObject(object.sharedFolderRecords[i])) throw TypeError(".Enterprise.ComplianceReportResponse.sharedFolderRecords: object expected"); message.sharedFolderRecords[i] = $root.Enterprise.SharedFolderRecord.fromObject(object.sharedFolderRecords[i], long + 1); } @@ -93841,7 +76287,7 @@ export const Enterprise = $root.Enterprise = (() => { throw TypeError(".Enterprise.ComplianceReportResponse.sharedFolderUsers: array expected"); message.sharedFolderUsers = []; for (let i = 0; i < object.sharedFolderUsers.length; ++i) { - if (typeof object.sharedFolderUsers[i] !== "object") + if (!$util.isObject(object.sharedFolderUsers[i])) throw TypeError(".Enterprise.ComplianceReportResponse.sharedFolderUsers: object expected"); message.sharedFolderUsers[i] = $root.Enterprise.SharedFolderUser.fromObject(object.sharedFolderUsers[i], long + 1); } @@ -93851,7 +76297,7 @@ export const Enterprise = $root.Enterprise = (() => { throw TypeError(".Enterprise.ComplianceReportResponse.sharedFolderTeams: array expected"); message.sharedFolderTeams = []; for (let i = 0; i < object.sharedFolderTeams.length; ++i) { - if (typeof object.sharedFolderTeams[i] !== "object") + if (!$util.isObject(object.sharedFolderTeams[i])) throw TypeError(".Enterprise.ComplianceReportResponse.sharedFolderTeams: object expected"); message.sharedFolderTeams[i] = $root.Enterprise.SharedFolderTeam.fromObject(object.sharedFolderTeams[i], long + 1); } @@ -93861,7 +76307,7 @@ export const Enterprise = $root.Enterprise = (() => { throw TypeError(".Enterprise.ComplianceReportResponse.auditTeamUsers: array expected"); message.auditTeamUsers = []; for (let i = 0; i < object.auditTeamUsers.length; ++i) { - if (typeof object.auditTeamUsers[i] !== "object") + if (!$util.isObject(object.auditTeamUsers[i])) throw TypeError(".Enterprise.ComplianceReportResponse.auditTeamUsers: object expected"); message.auditTeamUsers[i] = $root.Enterprise.AuditTeamUser.fromObject(object.auditTeamUsers[i], long + 1); } @@ -93871,7 +76317,7 @@ export const Enterprise = $root.Enterprise = (() => { throw TypeError(".Enterprise.ComplianceReportResponse.auditRoles: array expected"); message.auditRoles = []; for (let i = 0; i < object.auditRoles.length; ++i) { - if (typeof object.auditRoles[i] !== "object") + if (!$util.isObject(object.auditRoles[i])) throw TypeError(".Enterprise.ComplianceReportResponse.auditRoles: object expected"); message.auditRoles[i] = $root.Enterprise.AuditRole.fromObject(object.auditRoles[i], long + 1); } @@ -93881,7 +76327,7 @@ export const Enterprise = $root.Enterprise = (() => { throw TypeError(".Enterprise.ComplianceReportResponse.linkedRecords: array expected"); message.linkedRecords = []; for (let i = 0; i < object.linkedRecords.length; ++i) { - if (typeof object.linkedRecords[i] !== "object") + if (!$util.isObject(object.linkedRecords[i])) throw TypeError(".Enterprise.ComplianceReportResponse.linkedRecords: object expected"); message.linkedRecords[i] = $root.Enterprise.LinkedRecord.fromObject(object.linkedRecords[i], long + 1); } @@ -93935,20 +76381,20 @@ export const Enterprise = $root.Enterprise = (() => { } object.complianceReportRun = null; } - if (message.dateGenerated != null && message.hasOwnProperty("dateGenerated")) + if (message.dateGenerated != null && Object.hasOwnProperty.call(message, "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") 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; - if (message.runByUserName != null && message.hasOwnProperty("runByUserName")) + if (message.runByUserName != null && Object.hasOwnProperty.call(message, "runByUserName")) object.runByUserName = message.runByUserName; - if (message.reportName != null && message.hasOwnProperty("reportName")) + if (message.reportName != null && Object.hasOwnProperty.call(message, "reportName")) object.reportName = message.reportName; - if (message.reportUid != null && message.hasOwnProperty("reportUid")) + if (message.reportUid != null && Object.hasOwnProperty.call(message, "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")) + if (message.complianceReportRun != null && Object.hasOwnProperty.call(message, "complianceReportRun")) object.complianceReportRun = $root.Enterprise.ComplianceReportRun.toObject(message.complianceReportRun, options, q + 1); if (message.userProfiles && message.userProfiles.length) { object.userProfiles = []; @@ -94163,19 +76609,6 @@ export const Enterprise = $root.Enterprise = (() => { return writer; }; - /** - * Encodes the specified AuditRecord message, length delimited. Does not implicitly {@link Enterprise.AuditRecord.verify|verify} messages. - * @function encodeDelimited - * @memberof Enterprise.AuditRecord - * @static - * @param {Enterprise.IAuditRecord} message AuditRecord message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - AuditRecord.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes an AuditRecord message from the specified reader or buffer. * @function decode @@ -94236,61 +76669,6 @@ export const Enterprise = $root.Enterprise = (() => { return message; }; - /** - * Decodes an AuditRecord message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Enterprise.AuditRecord - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Enterprise.AuditRecord} AuditRecord - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - AuditRecord.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an AuditRecord message. - * @function verify - * @memberof Enterprise.AuditRecord - * @static - * @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) { - if (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.auditData != null && message.hasOwnProperty("auditData")) - if (!(message.auditData && typeof message.auditData.length === "number" || $util.isString(message.auditData))) - return "auditData: buffer expected"; - if (message.hasAttachments != null && message.hasOwnProperty("hasAttachments")) - if (typeof message.hasAttachments !== "boolean") - return "hasAttachments: boolean expected"; - if (message.inTrash != null && message.hasOwnProperty("inTrash")) - if (typeof message.inTrash !== "boolean") - return "inTrash: boolean expected"; - if (message.treeLeft != null && message.hasOwnProperty("treeLeft")) - if (!$util.isInteger(message.treeLeft)) - return "treeLeft: integer expected"; - if (message.treeRight != null && message.hasOwnProperty("treeRight")) - if (!$util.isInteger(message.treeRight)) - return "treeRight: integer expected"; - if (message.isDriveRecord != null && message.hasOwnProperty("isDriveRecord")) - if (typeof message.isDriveRecord !== "boolean") - return "isDriveRecord: boolean expected"; - return null; - }; - /** * Creates an AuditRecord message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -94302,6 +76680,8 @@ export const Enterprise = $root.Enterprise = (() => { AuditRecord.fromObject = function fromObject(object, long) { if (object instanceof $root.Enterprise.AuditRecord) return object; + if (!$util.isObject(object)) + throw TypeError(".Enterprise.AuditRecord: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -94368,19 +76748,19 @@ export const Enterprise = $root.Enterprise = (() => { object.treeRight = 0; object.isDriveRecord = false; } - if (message.recordUid != null && message.hasOwnProperty("recordUid")) + if (message.recordUid != null && Object.hasOwnProperty.call(message, "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.auditData != null && message.hasOwnProperty("auditData")) + if (message.auditData != null && Object.hasOwnProperty.call(message, "auditData")) object.auditData = options.bytes === String ? $util.base64.encode(message.auditData, 0, message.auditData.length) : options.bytes === Array ? Array.prototype.slice.call(message.auditData) : message.auditData; - if (message.hasAttachments != null && message.hasOwnProperty("hasAttachments")) + if (message.hasAttachments != null && Object.hasOwnProperty.call(message, "hasAttachments")) object.hasAttachments = message.hasAttachments; - if (message.inTrash != null && message.hasOwnProperty("inTrash")) + if (message.inTrash != null && Object.hasOwnProperty.call(message, "inTrash")) object.inTrash = message.inTrash; - if (message.treeLeft != null && message.hasOwnProperty("treeLeft")) + if (message.treeLeft != null && Object.hasOwnProperty.call(message, "treeLeft")) object.treeLeft = message.treeLeft; - if (message.treeRight != null && message.hasOwnProperty("treeRight")) + if (message.treeRight != null && Object.hasOwnProperty.call(message, "treeRight")) object.treeRight = message.treeRight; - if (message.isDriveRecord != null && message.hasOwnProperty("isDriveRecord")) + if (message.isDriveRecord != null && Object.hasOwnProperty.call(message, "isDriveRecord")) object.isDriveRecord = message.isDriveRecord; return object; }; @@ -94547,19 +76927,6 @@ export const Enterprise = $root.Enterprise = (() => { return writer; }; - /** - * Encodes the specified AuditRole message, length delimited. Does not implicitly {@link Enterprise.AuditRole.verify|verify} messages. - * @function encodeDelimited - * @memberof Enterprise.AuditRole - * @static - * @param {Enterprise.IAuditRole} message AuditRole message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - AuditRole.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes an AuditRole message from the specified reader or buffer. * @function decode @@ -94622,67 +76989,6 @@ export const Enterprise = $root.Enterprise = (() => { return message; }; - /** - * Decodes an AuditRole message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Enterprise.AuditRole - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Enterprise.AuditRole} AuditRole - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - AuditRole.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an AuditRole message. - * @function verify - * @memberof Enterprise.AuditRole - * @static - * @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) { - if (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"; - if (message.encryptedData != null && message.hasOwnProperty("encryptedData")) - if (!(message.encryptedData && typeof message.encryptedData.length === "number" || $util.isString(message.encryptedData))) - return "encryptedData: buffer expected"; - if (message.restrictShareOutsideEnterprise != null && message.hasOwnProperty("restrictShareOutsideEnterprise")) - if (typeof message.restrictShareOutsideEnterprise !== "boolean") - return "restrictShareOutsideEnterprise: boolean expected"; - if (message.restrictShareAll != null && message.hasOwnProperty("restrictShareAll")) - if (typeof message.restrictShareAll !== "boolean") - return "restrictShareAll: boolean expected"; - if (message.restrictShareOfAttachments != null && message.hasOwnProperty("restrictShareOfAttachments")) - if (typeof message.restrictShareOfAttachments !== "boolean") - return "restrictShareOfAttachments: boolean expected"; - if (message.restrictMaskPasswordsWhileEditing != null && message.hasOwnProperty("restrictMaskPasswordsWhileEditing")) - if (typeof message.restrictMaskPasswordsWhileEditing !== "boolean") - return "restrictMaskPasswordsWhileEditing: boolean expected"; - if (message.roleNodeManagements != null && message.hasOwnProperty("roleNodeManagements")) { - 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); - if (error) - return "roleNodeManagements." + error; - } - } - return null; - }; - /** * Creates an AuditRole message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -94694,6 +77000,8 @@ export const Enterprise = $root.Enterprise = (() => { AuditRole.fromObject = function fromObject(object, long) { if (object instanceof $root.Enterprise.AuditRole) return object; + if (!$util.isObject(object)) + throw TypeError(".Enterprise.AuditRole: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -94726,7 +77034,7 @@ export const Enterprise = $root.Enterprise = (() => { throw TypeError(".Enterprise.AuditRole.roleNodeManagements: array expected"); message.roleNodeManagements = []; for (let i = 0; i < object.roleNodeManagements.length; ++i) { - if (typeof object.roleNodeManagements[i] !== "object") + if (!$util.isObject(object.roleNodeManagements[i])) throw TypeError(".Enterprise.AuditRole.roleNodeManagements: object expected"); message.roleNodeManagements[i] = $root.Enterprise.RoleNodeManagement.fromObject(object.roleNodeManagements[i], long + 1); } @@ -94771,22 +77079,22 @@ export const Enterprise = $root.Enterprise = (() => { object.restrictShareOfAttachments = false; object.restrictMaskPasswordsWhileEditing = false; } - if (message.roleId != null && message.hasOwnProperty("roleId")) + if (message.roleId != null && Object.hasOwnProperty.call(message, "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") 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.encryptedData != null && message.hasOwnProperty("encryptedData")) + if (message.encryptedData != null && Object.hasOwnProperty.call(message, "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; - if (message.restrictShareOutsideEnterprise != null && message.hasOwnProperty("restrictShareOutsideEnterprise")) + if (message.restrictShareOutsideEnterprise != null && Object.hasOwnProperty.call(message, "restrictShareOutsideEnterprise")) object.restrictShareOutsideEnterprise = message.restrictShareOutsideEnterprise; - if (message.restrictShareAll != null && message.hasOwnProperty("restrictShareAll")) + if (message.restrictShareAll != null && Object.hasOwnProperty.call(message, "restrictShareAll")) object.restrictShareAll = message.restrictShareAll; - if (message.restrictShareOfAttachments != null && message.hasOwnProperty("restrictShareOfAttachments")) + if (message.restrictShareOfAttachments != null && Object.hasOwnProperty.call(message, "restrictShareOfAttachments")) object.restrictShareOfAttachments = message.restrictShareOfAttachments; - if (message.restrictMaskPasswordsWhileEditing != null && message.hasOwnProperty("restrictMaskPasswordsWhileEditing")) + if (message.restrictMaskPasswordsWhileEditing != null && Object.hasOwnProperty.call(message, "restrictMaskPasswordsWhileEditing")) object.restrictMaskPasswordsWhileEditing = message.restrictMaskPasswordsWhileEditing; if (message.roleNodeManagements && message.roleNodeManagements.length) { object.roleNodeManagements = []; @@ -94923,19 +77231,6 @@ export const Enterprise = $root.Enterprise = (() => { return writer; }; - /** - * Encodes the specified RoleNodeManagement message, length delimited. Does not implicitly {@link Enterprise.RoleNodeManagement.verify|verify} messages. - * @function encodeDelimited - * @memberof Enterprise.RoleNodeManagement - * @static - * @param {Enterprise.IRoleNodeManagement} message RoleNodeManagement message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RoleNodeManagement.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a RoleNodeManagement message from the specified reader or buffer. * @function decode @@ -94984,52 +77279,6 @@ export const Enterprise = $root.Enterprise = (() => { return message; }; - /** - * Decodes a RoleNodeManagement message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Enterprise.RoleNodeManagement - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Enterprise.RoleNodeManagement} RoleNodeManagement - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RoleNodeManagement.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a RoleNodeManagement message. - * @function verify - * @memberof Enterprise.RoleNodeManagement - * @static - * @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) { - if (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"; - if (message.treeRight != null && message.hasOwnProperty("treeRight")) - if (!$util.isInteger(message.treeRight)) - return "treeRight: integer expected"; - if (message.cascade != null && message.hasOwnProperty("cascade")) - if (typeof message.cascade !== "boolean") - return "cascade: boolean expected"; - if (message.privileges != null && message.hasOwnProperty("privileges")) - if (!$util.isInteger(message.privileges)) - return "privileges: integer expected"; - return null; - }; - /** * Creates a RoleNodeManagement message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -95041,6 +77290,8 @@ export const Enterprise = $root.Enterprise = (() => { RoleNodeManagement.fromObject = function fromObject(object, long) { if (object instanceof $root.Enterprise.RoleNodeManagement) return object; + if (!$util.isObject(object)) + throw TypeError(".Enterprise.RoleNodeManagement: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -95080,13 +77331,13 @@ export const Enterprise = $root.Enterprise = (() => { object.cascade = false; object.privileges = 0; } - if (message.treeLeft != null && message.hasOwnProperty("treeLeft")) + if (message.treeLeft != null && Object.hasOwnProperty.call(message, "treeLeft")) object.treeLeft = message.treeLeft; - if (message.treeRight != null && message.hasOwnProperty("treeRight")) + if (message.treeRight != null && Object.hasOwnProperty.call(message, "treeRight")) object.treeRight = message.treeRight; - if (message.cascade != null && message.hasOwnProperty("cascade")) + if (message.cascade != null && Object.hasOwnProperty.call(message, "cascade")) object.cascade = message.cascade; - if (message.privileges != null && message.hasOwnProperty("privileges")) + if (message.privileges != null && Object.hasOwnProperty.call(message, "privileges")) object.privileges = message.privileges; return object; }; @@ -95234,19 +77485,6 @@ export const Enterprise = $root.Enterprise = (() => { return writer; }; - /** - * Encodes the specified UserProfile message, length delimited. Does not implicitly {@link Enterprise.UserProfile.verify|verify} messages. - * @function encodeDelimited - * @memberof Enterprise.UserProfile - * @static - * @param {Enterprise.IUserProfile} message UserProfile message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - UserProfile.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a UserProfile message from the specified reader or buffer. * @function decode @@ -95306,59 +77544,6 @@ export const Enterprise = $root.Enterprise = (() => { return message; }; - /** - * Decodes a UserProfile message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Enterprise.UserProfile - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Enterprise.UserProfile} UserProfile - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - UserProfile.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a UserProfile message. - * @function verify - * @memberof Enterprise.UserProfile - * @static - * @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) { - if (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"; - if (message.fullName != null && message.hasOwnProperty("fullName")) - if (!$util.isString(message.fullName)) - return "fullName: string expected"; - if (message.jobTitle != null && message.hasOwnProperty("jobTitle")) - if (!$util.isString(message.jobTitle)) - return "jobTitle: string expected"; - if (message.email != null && message.hasOwnProperty("email")) - if (!$util.isString(message.email)) - return "email: string expected"; - if (message.roleIds != null && message.hasOwnProperty("roleIds")) { - if (!Array.isArray(message.roleIds)) - return "roleIds: array expected"; - for (let i = 0; i < message.roleIds.length; ++i) - if (!$util.isInteger(message.roleIds[i]) && !(message.roleIds[i] && $util.isInteger(message.roleIds[i].low) && $util.isInteger(message.roleIds[i].high))) - return "roleIds: integer|Long[] expected"; - } - return null; - }; - /** * Creates a UserProfile message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -95370,6 +77555,8 @@ export const Enterprise = $root.Enterprise = (() => { UserProfile.fromObject = function fromObject(object, long) { if (object instanceof $root.Enterprise.UserProfile) return object; + if (!$util.isObject(object)) + throw TypeError(".Enterprise.UserProfile: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -95436,18 +77623,18 @@ export const Enterprise = $root.Enterprise = (() => { object.jobTitle = ""; object.email = ""; } - if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) + if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, "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") 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.fullName != null && message.hasOwnProperty("fullName")) + if (message.fullName != null && Object.hasOwnProperty.call(message, "fullName")) object.fullName = message.fullName; - if (message.jobTitle != null && message.hasOwnProperty("jobTitle")) + if (message.jobTitle != null && Object.hasOwnProperty.call(message, "jobTitle")) object.jobTitle = message.jobTitle; - if (message.email != null && message.hasOwnProperty("email")) + if (message.email != null && Object.hasOwnProperty.call(message, "email")) object.email = message.email; if (message.roleIds && message.roleIds.length) { object.roleIds = []; @@ -95602,19 +77789,6 @@ export const Enterprise = $root.Enterprise = (() => { return writer; }; - /** - * Encodes the specified RecordPermission message, length delimited. Does not implicitly {@link Enterprise.RecordPermission.verify|verify} messages. - * @function encodeDelimited - * @memberof Enterprise.RecordPermission - * @static - * @param {Enterprise.IRecordPermission} message RecordPermission message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RecordPermission.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a RecordPermission message from the specified reader or buffer. * @function decode @@ -95659,59 +77833,6 @@ export const Enterprise = $root.Enterprise = (() => { return message; }; - /** - * Decodes a RecordPermission message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Enterprise.RecordPermission - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Enterprise.RecordPermission} RecordPermission - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RecordPermission.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a RecordPermission message. - * @function verify - * @memberof Enterprise.RecordPermission - * @static - * @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) { - 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))) - return "recordUid: buffer expected"; - if (message.permissionBits != null && message.hasOwnProperty("permissionBits")) { - properties.permission = 1; - if (!$util.isInteger(message.permissionBits)) - return "permissionBits: integer expected"; - } - if (message.drive != null && message.hasOwnProperty("drive")) { - if (properties.permission === 1) - return "permission: multiple values"; - properties.permission = 1; - { - let error = $root.Enterprise.DrivePermission.verify(message.drive, long + 1); - if (error) - return "drive." + error; - } - } - return null; - }; - /** * Creates a RecordPermission message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -95723,6 +77844,8 @@ export const Enterprise = $root.Enterprise = (() => { RecordPermission.fromObject = function fromObject(object, long) { if (object instanceof $root.Enterprise.RecordPermission) return object; + if (!$util.isObject(object)) + throw TypeError(".Enterprise.RecordPermission: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -95736,7 +77859,7 @@ export const Enterprise = $root.Enterprise = (() => { if (object.permissionBits != null) message.permissionBits = object.permissionBits | 0; if (object.drive != null) { - if (typeof object.drive !== "object") + if (!$util.isObject(object.drive)) throw TypeError(".Enterprise.RecordPermission.drive: object expected"); message.drive = $root.Enterprise.DrivePermission.fromObject(object.drive, long + 1); } @@ -95768,14 +77891,14 @@ export const Enterprise = $root.Enterprise = (() => { if (options.bytes !== Array) object.recordUid = $util.newBuffer(object.recordUid); } - if (message.recordUid != null && message.hasOwnProperty("recordUid")) + if (message.recordUid != null && Object.hasOwnProperty.call(message, "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.permissionBits != null && message.hasOwnProperty("permissionBits")) { + if (message.permissionBits != null && Object.hasOwnProperty.call(message, "permissionBits")) { object.permissionBits = message.permissionBits; if (options.oneofs) object.permission = "permissionBits"; } - if (message.drive != null && message.hasOwnProperty("drive")) { + if (message.drive != null && Object.hasOwnProperty.call(message, "drive")) { object.drive = $root.Enterprise.DrivePermission.toObject(message.drive, options, q + 1); if (options.oneofs) object.permission = "drive"; @@ -95950,19 +78073,6 @@ export const Enterprise = $root.Enterprise = (() => { return writer; }; - /** - * Encodes the specified DrivePermission message, length delimited. Does not implicitly {@link Enterprise.DrivePermission.verify|verify} messages. - * @function encodeDelimited - * @memberof Enterprise.DrivePermission - * @static - * @param {Enterprise.IDrivePermission} message DrivePermission message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - DrivePermission.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a DrivePermission message from the specified reader or buffer. * @function decode @@ -96023,73 +78133,6 @@ export const Enterprise = $root.Enterprise = (() => { return message; }; - /** - * Decodes a DrivePermission message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Enterprise.DrivePermission - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Enterprise.DrivePermission} DrivePermission - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - DrivePermission.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a DrivePermission message. - * @function verify - * @memberof Enterprise.DrivePermission - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - DrivePermission.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.owner != null && message.hasOwnProperty("owner")) - if (typeof message.owner !== "boolean") - return "owner: boolean expected"; - if (message.denied != null && message.hasOwnProperty("denied")) - if (typeof message.denied !== "boolean") - return "denied: boolean expected"; - if (message.canEdit != null && message.hasOwnProperty("canEdit")) - if (typeof message.canEdit !== "boolean") - return "canEdit: boolean expected"; - if (message.canShare != null && message.hasOwnProperty("canShare")) - if (typeof message.canShare !== "boolean") - return "canShare: boolean expected"; - if (message.isShareAdmin != null && message.hasOwnProperty("isShareAdmin")) - if (typeof message.isShareAdmin !== "boolean") - return "isShareAdmin: boolean expected"; - if (message.accessType != null && message.hasOwnProperty("accessType")) - switch (message.accessType) { - default: - return "accessType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - break; - } - if (message.folderPermissions != null && message.hasOwnProperty("folderPermissions")) { - let error = $root.Folder.FolderPermissions.verify(message.folderPermissions, long + 1); - if (error) - return "folderPermissions." + error; - } - return null; - }; - /** * Creates a DrivePermission message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -96101,6 +78144,8 @@ export const Enterprise = $root.Enterprise = (() => { DrivePermission.fromObject = function fromObject(object, long) { if (object instanceof $root.Enterprise.DrivePermission) return object; + if (!$util.isObject(object)) + throw TypeError(".Enterprise.DrivePermission: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -96153,7 +78198,7 @@ export const Enterprise = $root.Enterprise = (() => { break; } if (object.folderPermissions != null) { - if (typeof object.folderPermissions !== "object") + if (!$util.isObject(object.folderPermissions)) throw TypeError(".Enterprise.DrivePermission.folderPermissions: object expected"); message.folderPermissions = $root.Folder.FolderPermissions.fromObject(object.folderPermissions, long + 1); } @@ -96186,19 +78231,19 @@ export const Enterprise = $root.Enterprise = (() => { object.accessType = options.enums === String ? "AT_UNKNOWN" : 0; object.folderPermissions = null; } - if (message.owner != null && message.hasOwnProperty("owner")) + if (message.owner != null && Object.hasOwnProperty.call(message, "owner")) object.owner = message.owner; - if (message.denied != null && message.hasOwnProperty("denied")) + if (message.denied != null && Object.hasOwnProperty.call(message, "denied")) object.denied = message.denied; - if (message.canEdit != null && message.hasOwnProperty("canEdit")) + if (message.canEdit != null && Object.hasOwnProperty.call(message, "canEdit")) object.canEdit = message.canEdit; - if (message.canShare != null && message.hasOwnProperty("canShare")) + if (message.canShare != null && Object.hasOwnProperty.call(message, "canShare")) object.canShare = message.canShare; - if (message.isShareAdmin != null && message.hasOwnProperty("isShareAdmin")) + if (message.isShareAdmin != null && Object.hasOwnProperty.call(message, "isShareAdmin")) object.isShareAdmin = message.isShareAdmin; - if (message.accessType != null && message.hasOwnProperty("accessType")) + if (message.accessType != null && Object.hasOwnProperty.call(message, "accessType")) object.accessType = options.enums === String ? $root.Folder.AccessType[message.accessType] === undefined ? message.accessType : $root.Folder.AccessType[message.accessType] : message.accessType; - if (message.folderPermissions != null && message.hasOwnProperty("folderPermissions")) + if (message.folderPermissions != null && Object.hasOwnProperty.call(message, "folderPermissions")) object.folderPermissions = $root.Folder.FolderPermissions.toObject(message.folderPermissions, options, q + 1); return object; }; @@ -96310,19 +78355,6 @@ export const Enterprise = $root.Enterprise = (() => { return writer; }; - /** - * Encodes the specified UserRecord message, length delimited. Does not implicitly {@link Enterprise.UserRecord.verify|verify} messages. - * @function encodeDelimited - * @memberof Enterprise.UserRecord - * @static - * @param {Enterprise.IUserRecord} message UserRecord message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - UserRecord.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a UserRecord message from the specified reader or buffer. * @function decode @@ -96365,52 +78397,6 @@ export const Enterprise = $root.Enterprise = (() => { return message; }; - /** - * Decodes a UserRecord message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Enterprise.UserRecord - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Enterprise.UserRecord} UserRecord - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - UserRecord.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a UserRecord message. - * @function verify - * @memberof Enterprise.UserRecord - * @static - * @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) { - if (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"; - 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.Enterprise.RecordPermission.verify(message.recordPermissions[i], long + 1); - if (error) - return "recordPermissions." + error; - } - } - return null; - }; - /** * Creates a UserRecord message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -96422,6 +78408,8 @@ export const Enterprise = $root.Enterprise = (() => { UserRecord.fromObject = function fromObject(object, long) { if (object instanceof $root.Enterprise.UserRecord) return object; + if (!$util.isObject(object)) + throw TypeError(".Enterprise.UserRecord: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -96441,7 +78429,7 @@ export const Enterprise = $root.Enterprise = (() => { throw TypeError(".Enterprise.UserRecord.recordPermissions: array expected"); message.recordPermissions = []; for (let i = 0; i < object.recordPermissions.length; ++i) { - if (typeof object.recordPermissions[i] !== "object") + if (!$util.isObject(object.recordPermissions[i])) throw TypeError(".Enterprise.UserRecord.recordPermissions: object expected"); message.recordPermissions[i] = $root.Enterprise.RecordPermission.fromObject(object.recordPermissions[i], long + 1); } @@ -96474,7 +78462,7 @@ export const Enterprise = $root.Enterprise = (() => { object.enterpriseUserId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; } else object.enterpriseUserId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; - if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) + if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, "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") @@ -96616,19 +78604,6 @@ export const Enterprise = $root.Enterprise = (() => { return writer; }; - /** - * Encodes the specified AuditTeam message, length delimited. Does not implicitly {@link Enterprise.AuditTeam.verify|verify} messages. - * @function encodeDelimited - * @memberof Enterprise.AuditTeam - * @static - * @param {Enterprise.IAuditTeam} message AuditTeam message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - AuditTeam.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes an AuditTeam message from the specified reader or buffer. * @function decode @@ -96677,52 +78652,6 @@ export const Enterprise = $root.Enterprise = (() => { return message; }; - /** - * Decodes an AuditTeam message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Enterprise.AuditTeam - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Enterprise.AuditTeam} AuditTeam - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - AuditTeam.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an AuditTeam message. - * @function verify - * @memberof Enterprise.AuditTeam - * @static - * @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) { - if (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"; - if (message.teamName != null && message.hasOwnProperty("teamName")) - if (!$util.isString(message.teamName)) - return "teamName: string expected"; - if (message.restrictEdit != null && message.hasOwnProperty("restrictEdit")) - if (typeof message.restrictEdit !== "boolean") - return "restrictEdit: boolean expected"; - if (message.restrictShare != null && message.hasOwnProperty("restrictShare")) - if (typeof message.restrictShare !== "boolean") - return "restrictShare: boolean expected"; - return null; - }; - /** * Creates an AuditTeam message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -96734,6 +78663,8 @@ export const Enterprise = $root.Enterprise = (() => { AuditTeam.fromObject = function fromObject(object, long) { if (object instanceof $root.Enterprise.AuditTeam) return object; + if (!$util.isObject(object)) + throw TypeError(".Enterprise.AuditTeam: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -96782,13 +78713,13 @@ export const Enterprise = $root.Enterprise = (() => { object.restrictEdit = false; object.restrictShare = false; } - if (message.teamUid != null && message.hasOwnProperty("teamUid")) + if (message.teamUid != null && Object.hasOwnProperty.call(message, "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.teamName != null && message.hasOwnProperty("teamName")) + if (message.teamName != null && Object.hasOwnProperty.call(message, "teamName")) object.teamName = message.teamName; - if (message.restrictEdit != null && message.hasOwnProperty("restrictEdit")) + if (message.restrictEdit != null && Object.hasOwnProperty.call(message, "restrictEdit")) object.restrictEdit = message.restrictEdit; - if (message.restrictShare != null && message.hasOwnProperty("restrictShare")) + if (message.restrictShare != null && Object.hasOwnProperty.call(message, "restrictShare")) object.restrictShare = message.restrictShare; return object; }; @@ -96903,19 +78834,6 @@ export const Enterprise = $root.Enterprise = (() => { return writer; }; - /** - * Encodes the specified AuditTeamUser message, length delimited. Does not implicitly {@link Enterprise.AuditTeamUser.verify|verify} messages. - * @function encodeDelimited - * @memberof Enterprise.AuditTeamUser - * @static - * @param {Enterprise.IAuditTeamUser} message AuditTeamUser message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - AuditTeamUser.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes an AuditTeamUser message from the specified reader or buffer. * @function decode @@ -96963,50 +78881,6 @@ export const Enterprise = $root.Enterprise = (() => { return message; }; - /** - * Decodes an AuditTeamUser message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Enterprise.AuditTeamUser - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Enterprise.AuditTeamUser} AuditTeamUser - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - AuditTeamUser.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an AuditTeamUser message. - * @function verify - * @memberof Enterprise.AuditTeamUser - * @static - * @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) { - if (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"; - if (message.enterpriseUserIds != null && message.hasOwnProperty("enterpriseUserIds")) { - if (!Array.isArray(message.enterpriseUserIds)) - return "enterpriseUserIds: array expected"; - for (let i = 0; i < message.enterpriseUserIds.length; ++i) - if (!$util.isInteger(message.enterpriseUserIds[i]) && !(message.enterpriseUserIds[i] && $util.isInteger(message.enterpriseUserIds[i].low) && $util.isInteger(message.enterpriseUserIds[i].high))) - return "enterpriseUserIds: integer|Long[] expected"; - } - return null; - }; - /** * Creates an AuditTeamUser message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -97018,6 +78892,8 @@ export const Enterprise = $root.Enterprise = (() => { AuditTeamUser.fromObject = function fromObject(object, long) { if (object instanceof $root.Enterprise.AuditTeamUser) return object; + if (!$util.isObject(object)) + throw TypeError(".Enterprise.AuditTeamUser: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -97072,7 +78948,7 @@ export const Enterprise = $root.Enterprise = (() => { if (options.bytes !== Array) object.teamUid = $util.newBuffer(object.teamUid); } - if (message.teamUid != null && message.hasOwnProperty("teamUid")) + if (message.teamUid != null && Object.hasOwnProperty.call(message, "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.enterpriseUserIds && message.enterpriseUserIds.length) { object.enterpriseUserIds = []; @@ -97207,19 +79083,6 @@ export const Enterprise = $root.Enterprise = (() => { return writer; }; - /** - * Encodes the specified SharedFolderRecord message, length delimited. Does not implicitly {@link Enterprise.SharedFolderRecord.verify|verify} messages. - * @function encodeDelimited - * @memberof Enterprise.SharedFolderRecord - * @static - * @param {Enterprise.ISharedFolderRecord} message SharedFolderRecord message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SharedFolderRecord.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a SharedFolderRecord message from the specified reader or buffer. * @function decode @@ -97268,61 +79131,6 @@ export const Enterprise = $root.Enterprise = (() => { return message; }; - /** - * Decodes a SharedFolderRecord message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Enterprise.SharedFolderRecord - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Enterprise.SharedFolderRecord} SharedFolderRecord - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SharedFolderRecord.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a SharedFolderRecord message. - * @function verify - * @memberof Enterprise.SharedFolderRecord - * @static - * @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) { - if (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"; - 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.Enterprise.RecordPermission.verify(message.recordPermissions[i], long + 1); - if (error) - return "recordPermissions." + error; - } - } - if (message.shareAdminRecords != null && message.hasOwnProperty("shareAdminRecords")) { - 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); - if (error) - return "shareAdminRecords." + error; - } - } - return null; - }; - /** * Creates a SharedFolderRecord message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -97334,6 +79142,8 @@ export const Enterprise = $root.Enterprise = (() => { SharedFolderRecord.fromObject = function fromObject(object, long) { if (object instanceof $root.Enterprise.SharedFolderRecord) return object; + if (!$util.isObject(object)) + throw TypeError(".Enterprise.SharedFolderRecord: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -97349,7 +79159,7 @@ export const Enterprise = $root.Enterprise = (() => { throw TypeError(".Enterprise.SharedFolderRecord.recordPermissions: array expected"); message.recordPermissions = []; for (let i = 0; i < object.recordPermissions.length; ++i) { - if (typeof object.recordPermissions[i] !== "object") + if (!$util.isObject(object.recordPermissions[i])) throw TypeError(".Enterprise.SharedFolderRecord.recordPermissions: object expected"); message.recordPermissions[i] = $root.Enterprise.RecordPermission.fromObject(object.recordPermissions[i], long + 1); } @@ -97359,7 +79169,7 @@ export const Enterprise = $root.Enterprise = (() => { throw TypeError(".Enterprise.SharedFolderRecord.shareAdminRecords: array expected"); message.shareAdminRecords = []; for (let i = 0; i < object.shareAdminRecords.length; ++i) { - if (typeof object.shareAdminRecords[i] !== "object") + if (!$util.isObject(object.shareAdminRecords[i])) throw TypeError(".Enterprise.SharedFolderRecord.shareAdminRecords: object expected"); message.shareAdminRecords[i] = $root.Enterprise.ShareAdminRecord.fromObject(object.shareAdminRecords[i], long + 1); } @@ -97396,7 +79206,7 @@ export const Enterprise = $root.Enterprise = (() => { if (options.bytes !== Array) object.sharedFolderUid = $util.newBuffer(object.sharedFolderUid); } - if (message.sharedFolderUid != null && message.hasOwnProperty("sharedFolderUid")) + if (message.sharedFolderUid != null && Object.hasOwnProperty.call(message, "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.recordPermissions && message.recordPermissions.length) { object.recordPermissions = []; @@ -97521,19 +79331,6 @@ export const Enterprise = $root.Enterprise = (() => { return writer; }; - /** - * Encodes the specified ShareAdminRecord message, length delimited. Does not implicitly {@link Enterprise.ShareAdminRecord.verify|verify} messages. - * @function encodeDelimited - * @memberof Enterprise.ShareAdminRecord - * @static - * @param {Enterprise.IShareAdminRecord} message ShareAdminRecord message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ShareAdminRecord.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a ShareAdminRecord message from the specified reader or buffer. * @function decode @@ -97581,50 +79378,6 @@ export const Enterprise = $root.Enterprise = (() => { return message; }; - /** - * Decodes a ShareAdminRecord message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Enterprise.ShareAdminRecord - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Enterprise.ShareAdminRecord} ShareAdminRecord - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ShareAdminRecord.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a ShareAdminRecord message. - * @function verify - * @memberof Enterprise.ShareAdminRecord - * @static - * @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) { - if (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"; - if (message.recordPermissionIndexes != null && message.hasOwnProperty("recordPermissionIndexes")) { - if (!Array.isArray(message.recordPermissionIndexes)) - return "recordPermissionIndexes: array expected"; - for (let i = 0; i < message.recordPermissionIndexes.length; ++i) - if (!$util.isInteger(message.recordPermissionIndexes[i])) - return "recordPermissionIndexes: integer[] expected"; - } - return null; - }; - /** * Creates a ShareAdminRecord message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -97636,6 +79389,8 @@ export const Enterprise = $root.Enterprise = (() => { ShareAdminRecord.fromObject = function fromObject(object, long) { if (object instanceof $root.Enterprise.ShareAdminRecord) return object; + if (!$util.isObject(object)) + throw TypeError(".Enterprise.ShareAdminRecord: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -97685,7 +79440,7 @@ export const Enterprise = $root.Enterprise = (() => { object.enterpriseUserId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; } else object.enterpriseUserId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; - if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) + if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, "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") @@ -97810,19 +79565,6 @@ export const Enterprise = $root.Enterprise = (() => { return writer; }; - /** - * Encodes the specified SharedFolderUser message, length delimited. Does not implicitly {@link Enterprise.SharedFolderUser.verify|verify} messages. - * @function encodeDelimited - * @memberof Enterprise.SharedFolderUser - * @static - * @param {Enterprise.ISharedFolderUser} message SharedFolderUser message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SharedFolderUser.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a SharedFolderUser message from the specified reader or buffer. * @function decode @@ -97870,50 +79612,6 @@ export const Enterprise = $root.Enterprise = (() => { return message; }; - /** - * Decodes a SharedFolderUser message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Enterprise.SharedFolderUser - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Enterprise.SharedFolderUser} SharedFolderUser - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SharedFolderUser.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a SharedFolderUser message. - * @function verify - * @memberof Enterprise.SharedFolderUser - * @static - * @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) { - if (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"; - if (message.enterpriseUserIds != null && message.hasOwnProperty("enterpriseUserIds")) { - if (!Array.isArray(message.enterpriseUserIds)) - return "enterpriseUserIds: array expected"; - for (let i = 0; i < message.enterpriseUserIds.length; ++i) - if (!$util.isInteger(message.enterpriseUserIds[i]) && !(message.enterpriseUserIds[i] && $util.isInteger(message.enterpriseUserIds[i].low) && $util.isInteger(message.enterpriseUserIds[i].high))) - return "enterpriseUserIds: integer|Long[] expected"; - } - return null; - }; - /** * Creates a SharedFolderUser message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -97925,6 +79623,8 @@ export const Enterprise = $root.Enterprise = (() => { SharedFolderUser.fromObject = function fromObject(object, long) { if (object instanceof $root.Enterprise.SharedFolderUser) return object; + if (!$util.isObject(object)) + throw TypeError(".Enterprise.SharedFolderUser: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -97979,7 +79679,7 @@ export const Enterprise = $root.Enterprise = (() => { if (options.bytes !== Array) object.sharedFolderUid = $util.newBuffer(object.sharedFolderUid); } - if (message.sharedFolderUid != null && message.hasOwnProperty("sharedFolderUid")) + if (message.sharedFolderUid != null && Object.hasOwnProperty.call(message, "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.enterpriseUserIds && message.enterpriseUserIds.length) { object.enterpriseUserIds = []; @@ -98101,19 +79801,6 @@ export const Enterprise = $root.Enterprise = (() => { return writer; }; - /** - * Encodes the specified SharedFolderTeam message, length delimited. Does not implicitly {@link Enterprise.SharedFolderTeam.verify|verify} messages. - * @function encodeDelimited - * @memberof Enterprise.SharedFolderTeam - * @static - * @param {Enterprise.ISharedFolderTeam} message SharedFolderTeam message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SharedFolderTeam.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a SharedFolderTeam message from the specified reader or buffer. * @function decode @@ -98156,50 +79843,6 @@ export const Enterprise = $root.Enterprise = (() => { return message; }; - /** - * Decodes a SharedFolderTeam message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Enterprise.SharedFolderTeam - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Enterprise.SharedFolderTeam} SharedFolderTeam - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SharedFolderTeam.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a SharedFolderTeam message. - * @function verify - * @memberof Enterprise.SharedFolderTeam - * @static - * @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) { - if (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"; - if (message.teamUids != null && message.hasOwnProperty("teamUids")) { - if (!Array.isArray(message.teamUids)) - return "teamUids: array expected"; - for (let i = 0; i < message.teamUids.length; ++i) - if (!(message.teamUids[i] && typeof message.teamUids[i].length === "number" || $util.isString(message.teamUids[i]))) - return "teamUids: buffer[] expected"; - } - return null; - }; - /** * Creates a SharedFolderTeam message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -98211,6 +79854,8 @@ export const Enterprise = $root.Enterprise = (() => { SharedFolderTeam.fromObject = function fromObject(object, long) { if (object instanceof $root.Enterprise.SharedFolderTeam) return object; + if (!$util.isObject(object)) + throw TypeError(".Enterprise.SharedFolderTeam: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -98261,7 +79906,7 @@ export const Enterprise = $root.Enterprise = (() => { if (options.bytes !== Array) object.sharedFolderUid = $util.newBuffer(object.sharedFolderUid); } - if (message.sharedFolderUid != null && message.hasOwnProperty("sharedFolderUid")) + if (message.sharedFolderUid != null && Object.hasOwnProperty.call(message, "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.teamUids && message.teamUids.length) { object.teamUids = []; @@ -98365,19 +80010,6 @@ export const Enterprise = $root.Enterprise = (() => { return writer; }; - /** - * Encodes the specified GetComplianceReportRequest message, length delimited. Does not implicitly {@link Enterprise.GetComplianceReportRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof Enterprise.GetComplianceReportRequest - * @static - * @param {Enterprise.IGetComplianceReportRequest} message GetComplianceReportRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetComplianceReportRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a GetComplianceReportRequest message from the specified reader or buffer. * @function decode @@ -98414,43 +80046,6 @@ export const Enterprise = $root.Enterprise = (() => { return message; }; - /** - * Decodes a GetComplianceReportRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Enterprise.GetComplianceReportRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Enterprise.GetComplianceReportRequest} GetComplianceReportRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetComplianceReportRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a GetComplianceReportRequest message. - * @function verify - * @memberof Enterprise.GetComplianceReportRequest - * @static - * @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) { - if (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"; - return null; - }; - /** * Creates a GetComplianceReportRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -98462,6 +80057,8 @@ export const Enterprise = $root.Enterprise = (() => { GetComplianceReportRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.Enterprise.GetComplianceReportRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".Enterprise.GetComplianceReportRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -98500,7 +80097,7 @@ export const Enterprise = $root.Enterprise = (() => { if (options.bytes !== Array) object.reportUid = $util.newBuffer(object.reportUid); } - if (message.reportUid != null && message.hasOwnProperty("reportUid")) + if (message.reportUid != null && Object.hasOwnProperty.call(message, "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; return object; }; @@ -98599,19 +80196,6 @@ export const Enterprise = $root.Enterprise = (() => { return writer; }; - /** - * Encodes the specified GetComplianceReportResponse message, length delimited. Does not implicitly {@link Enterprise.GetComplianceReportResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof Enterprise.GetComplianceReportResponse - * @static - * @param {Enterprise.IGetComplianceReportResponse} message GetComplianceReportResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetComplianceReportResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a GetComplianceReportResponse message from the specified reader or buffer. * @function decode @@ -98648,43 +80232,6 @@ export const Enterprise = $root.Enterprise = (() => { return message; }; - /** - * Decodes a GetComplianceReportResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Enterprise.GetComplianceReportResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Enterprise.GetComplianceReportResponse} GetComplianceReportResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetComplianceReportResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a GetComplianceReportResponse message. - * @function verify - * @memberof Enterprise.GetComplianceReportResponse - * @static - * @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) { - if (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"; - return null; - }; - /** * Creates a GetComplianceReportResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -98696,6 +80243,8 @@ export const Enterprise = $root.Enterprise = (() => { GetComplianceReportResponse.fromObject = function fromObject(object, long) { if (object instanceof $root.Enterprise.GetComplianceReportResponse) return object; + if (!$util.isObject(object)) + throw TypeError(".Enterprise.GetComplianceReportResponse: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -98725,7 +80274,7 @@ export const Enterprise = $root.Enterprise = (() => { let object = {}; if (options.defaults) object.downloadUrl = ""; - if (message.downloadUrl != null && message.hasOwnProperty("downloadUrl")) + if (message.downloadUrl != null && Object.hasOwnProperty.call(message, "downloadUrl")) object.downloadUrl = message.downloadUrl; return object; }; @@ -98824,19 +80373,6 @@ export const Enterprise = $root.Enterprise = (() => { return writer; }; - /** - * Encodes the specified ComplianceReportCriteriaRequest message, length delimited. Does not implicitly {@link Enterprise.ComplianceReportCriteriaRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof Enterprise.ComplianceReportCriteriaRequest - * @static - * @param {Enterprise.IComplianceReportCriteriaRequest} message ComplianceReportCriteriaRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ComplianceReportCriteriaRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a ComplianceReportCriteriaRequest message from the specified reader or buffer. * @function decode @@ -98873,43 +80409,6 @@ export const Enterprise = $root.Enterprise = (() => { return message; }; - /** - * Decodes a ComplianceReportCriteriaRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Enterprise.ComplianceReportCriteriaRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Enterprise.ComplianceReportCriteriaRequest} ComplianceReportCriteriaRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ComplianceReportCriteriaRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a ComplianceReportCriteriaRequest message. - * @function verify - * @memberof Enterprise.ComplianceReportCriteriaRequest - * @static - * @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) { - if (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"; - return null; - }; - /** * Creates a ComplianceReportCriteriaRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -98921,6 +80420,8 @@ export const Enterprise = $root.Enterprise = (() => { ComplianceReportCriteriaRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.Enterprise.ComplianceReportCriteriaRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".Enterprise.ComplianceReportCriteriaRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -98959,7 +80460,7 @@ export const Enterprise = $root.Enterprise = (() => { if (options.bytes !== Array) object.criteriaUid = $util.newBuffer(object.criteriaUid); } - if (message.criteriaUid != null && message.hasOwnProperty("criteriaUid")) + if (message.criteriaUid != null && Object.hasOwnProperty.call(message, "criteriaUid")) object.criteriaUid = options.bytes === String ? $util.base64.encode(message.criteriaUid, 0, message.criteriaUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.criteriaUid) : message.criteriaUid; return object; }; @@ -99058,19 +80559,6 @@ export const Enterprise = $root.Enterprise = (() => { return writer; }; - /** - * Encodes the specified SaveComplianceReportCriteriaResponse message, length delimited. Does not implicitly {@link Enterprise.SaveComplianceReportCriteriaResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof Enterprise.SaveComplianceReportCriteriaResponse - * @static - * @param {Enterprise.ISaveComplianceReportCriteriaResponse} message SaveComplianceReportCriteriaResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SaveComplianceReportCriteriaResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a SaveComplianceReportCriteriaResponse message from the specified reader or buffer. * @function decode @@ -99107,43 +80595,6 @@ export const Enterprise = $root.Enterprise = (() => { return message; }; - /** - * Decodes a SaveComplianceReportCriteriaResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Enterprise.SaveComplianceReportCriteriaResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Enterprise.SaveComplianceReportCriteriaResponse} SaveComplianceReportCriteriaResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SaveComplianceReportCriteriaResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a SaveComplianceReportCriteriaResponse message. - * @function verify - * @memberof Enterprise.SaveComplianceReportCriteriaResponse - * @static - * @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) { - if (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"; - return null; - }; - /** * Creates a SaveComplianceReportCriteriaResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -99155,6 +80606,8 @@ export const Enterprise = $root.Enterprise = (() => { SaveComplianceReportCriteriaResponse.fromObject = function fromObject(object, long) { if (object instanceof $root.Enterprise.SaveComplianceReportCriteriaResponse) return object; + if (!$util.isObject(object)) + throw TypeError(".Enterprise.SaveComplianceReportCriteriaResponse: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -99193,7 +80646,7 @@ export const Enterprise = $root.Enterprise = (() => { if (options.bytes !== Array) object.criteriaUid = $util.newBuffer(object.criteriaUid); } - if (message.criteriaUid != null && message.hasOwnProperty("criteriaUid")) + if (message.criteriaUid != null && Object.hasOwnProperty.call(message, "criteriaUid")) object.criteriaUid = options.bytes === String ? $util.base64.encode(message.criteriaUid, 0, message.criteriaUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.criteriaUid) : message.criteriaUid; return object; }; @@ -99305,19 +80758,6 @@ export const Enterprise = $root.Enterprise = (() => { return writer; }; - /** - * Encodes the specified LinkedRecord message, length delimited. Does not implicitly {@link Enterprise.LinkedRecord.verify|verify} messages. - * @function encodeDelimited - * @memberof Enterprise.LinkedRecord - * @static - * @param {Enterprise.ILinkedRecord} message LinkedRecord message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - LinkedRecord.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a LinkedRecord message from the specified reader or buffer. * @function decode @@ -99360,50 +80800,6 @@ export const Enterprise = $root.Enterprise = (() => { return message; }; - /** - * Decodes a LinkedRecord message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Enterprise.LinkedRecord - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Enterprise.LinkedRecord} LinkedRecord - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - LinkedRecord.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a LinkedRecord message. - * @function verify - * @memberof Enterprise.LinkedRecord - * @static - * @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) { - if (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"; - if (message.recordUids != null && message.hasOwnProperty("recordUids")) { - if (!Array.isArray(message.recordUids)) - return "recordUids: array expected"; - for (let i = 0; i < message.recordUids.length; ++i) - if (!(message.recordUids[i] && typeof message.recordUids[i].length === "number" || $util.isString(message.recordUids[i]))) - return "recordUids: buffer[] expected"; - } - return null; - }; - /** * Creates a LinkedRecord message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -99415,6 +80811,8 @@ export const Enterprise = $root.Enterprise = (() => { LinkedRecord.fromObject = function fromObject(object, long) { if (object instanceof $root.Enterprise.LinkedRecord) return object; + if (!$util.isObject(object)) + throw TypeError(".Enterprise.LinkedRecord: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -99465,7 +80863,7 @@ export const Enterprise = $root.Enterprise = (() => { if (options.bytes !== Array) object.ownerUid = $util.newBuffer(object.ownerUid); } - if (message.ownerUid != null && message.hasOwnProperty("ownerUid")) + if (message.ownerUid != null && Object.hasOwnProperty.call(message, "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.recordUids && message.recordUids.length) { object.recordUids = []; @@ -99591,19 +80989,6 @@ export const Enterprise = $root.Enterprise = (() => { return writer; }; - /** - * Encodes the specified GetSharingAdminsRequest message, length delimited. Does not implicitly {@link Enterprise.GetSharingAdminsRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof Enterprise.GetSharingAdminsRequest - * @static - * @param {Enterprise.IGetSharingAdminsRequest} message GetSharingAdminsRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetSharingAdminsRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a GetSharingAdminsRequest message from the specified reader or buffer. * @function decode @@ -99648,49 +81033,6 @@ export const Enterprise = $root.Enterprise = (() => { return message; }; - /** - * Decodes a GetSharingAdminsRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Enterprise.GetSharingAdminsRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Enterprise.GetSharingAdminsRequest} GetSharingAdminsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetSharingAdminsRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a GetSharingAdminsRequest message. - * @function verify - * @memberof Enterprise.GetSharingAdminsRequest - * @static - * @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) { - if (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"; - 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.username != null && message.hasOwnProperty("username")) - if (!$util.isString(message.username)) - return "username: string expected"; - return null; - }; - /** * Creates a GetSharingAdminsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -99702,6 +81044,8 @@ export const Enterprise = $root.Enterprise = (() => { GetSharingAdminsRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.Enterprise.GetSharingAdminsRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".Enterprise.GetSharingAdminsRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -99756,11 +81100,11 @@ export const Enterprise = $root.Enterprise = (() => { } object.username = ""; } - if (message.sharedFolderUid != null && message.hasOwnProperty("sharedFolderUid")) + if (message.sharedFolderUid != null && Object.hasOwnProperty.call(message, "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")) + if (message.recordUid != null && Object.hasOwnProperty.call(message, "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.username != null && message.hasOwnProperty("username")) + if (message.username != null && Object.hasOwnProperty.call(message, "username")) object.username = message.username; return object; }; @@ -99936,19 +81280,6 @@ export const Enterprise = $root.Enterprise = (() => { return writer; }; - /** - * Encodes the specified UserProfileExt message, length delimited. Does not implicitly {@link Enterprise.UserProfileExt.verify|verify} messages. - * @function encodeDelimited - * @memberof Enterprise.UserProfileExt - * @static - * @param {Enterprise.IUserProfileExt} message UserProfileExt message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - UserProfileExt.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a UserProfileExt message from the specified reader or buffer. * @function decode @@ -100013,64 +81344,6 @@ export const Enterprise = $root.Enterprise = (() => { return message; }; - /** - * Decodes a UserProfileExt message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Enterprise.UserProfileExt - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Enterprise.UserProfileExt} UserProfileExt - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - UserProfileExt.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a UserProfileExt message. - * @function verify - * @memberof Enterprise.UserProfileExt - * @static - * @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) { - if (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"; - if (message.fullName != null && message.hasOwnProperty("fullName")) - if (!$util.isString(message.fullName)) - return "fullName: string expected"; - if (message.jobTitle != null && message.hasOwnProperty("jobTitle")) - if (!$util.isString(message.jobTitle)) - return "jobTitle: string expected"; - if (message.isMSPMCAdmin != null && message.hasOwnProperty("isMSPMCAdmin")) - if (typeof message.isMSPMCAdmin !== "boolean") - return "isMSPMCAdmin: boolean expected"; - if (message.isInSharedFolder != null && message.hasOwnProperty("isInSharedFolder")) - if (typeof message.isInSharedFolder !== "boolean") - return "isInSharedFolder: boolean expected"; - if (message.isShareAdminForRequestedObject != null && message.hasOwnProperty("isShareAdminForRequestedObject")) - if (typeof message.isShareAdminForRequestedObject !== "boolean") - return "isShareAdminForRequestedObject: boolean expected"; - if (message.isShareAdminForSharedFolderOwner != null && message.hasOwnProperty("isShareAdminForSharedFolderOwner")) - if (typeof message.isShareAdminForSharedFolderOwner !== "boolean") - return "isShareAdminForSharedFolderOwner: boolean expected"; - if (message.hasAccessToObject != null && message.hasOwnProperty("hasAccessToObject")) - if (typeof message.hasAccessToObject !== "boolean") - return "hasAccessToObject: boolean expected"; - return null; - }; - /** * Creates a UserProfileExt message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -100082,6 +81355,8 @@ export const Enterprise = $root.Enterprise = (() => { UserProfileExt.fromObject = function fromObject(object, long) { if (object instanceof $root.Enterprise.UserProfileExt) return object; + if (!$util.isObject(object)) + throw TypeError(".Enterprise.UserProfileExt: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -100133,21 +81408,21 @@ export const Enterprise = $root.Enterprise = (() => { object.isShareAdminForSharedFolderOwner = false; object.hasAccessToObject = false; } - if (message.email != null && message.hasOwnProperty("email")) + if (message.email != null && Object.hasOwnProperty.call(message, "email")) object.email = message.email; - if (message.fullName != null && message.hasOwnProperty("fullName")) + if (message.fullName != null && Object.hasOwnProperty.call(message, "fullName")) object.fullName = message.fullName; - if (message.jobTitle != null && message.hasOwnProperty("jobTitle")) + if (message.jobTitle != null && Object.hasOwnProperty.call(message, "jobTitle")) object.jobTitle = message.jobTitle; - if (message.isMSPMCAdmin != null && message.hasOwnProperty("isMSPMCAdmin")) + if (message.isMSPMCAdmin != null && Object.hasOwnProperty.call(message, "isMSPMCAdmin")) object.isMSPMCAdmin = message.isMSPMCAdmin; - if (message.isInSharedFolder != null && message.hasOwnProperty("isInSharedFolder")) + if (message.isInSharedFolder != null && Object.hasOwnProperty.call(message, "isInSharedFolder")) object.isInSharedFolder = message.isInSharedFolder; - if (message.isShareAdminForRequestedObject != null && message.hasOwnProperty("isShareAdminForRequestedObject")) + if (message.isShareAdminForRequestedObject != null && Object.hasOwnProperty.call(message, "isShareAdminForRequestedObject")) object.isShareAdminForRequestedObject = message.isShareAdminForRequestedObject; - if (message.isShareAdminForSharedFolderOwner != null && message.hasOwnProperty("isShareAdminForSharedFolderOwner")) + if (message.isShareAdminForSharedFolderOwner != null && Object.hasOwnProperty.call(message, "isShareAdminForSharedFolderOwner")) object.isShareAdminForSharedFolderOwner = message.isShareAdminForSharedFolderOwner; - if (message.hasAccessToObject != null && message.hasOwnProperty("hasAccessToObject")) + if (message.hasAccessToObject != null && Object.hasOwnProperty.call(message, "hasAccessToObject")) object.hasAccessToObject = message.hasAccessToObject; return object; }; @@ -100248,19 +81523,6 @@ export const Enterprise = $root.Enterprise = (() => { return writer; }; - /** - * Encodes the specified GetSharingAdminsResponse message, length delimited. Does not implicitly {@link Enterprise.GetSharingAdminsResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof Enterprise.GetSharingAdminsResponse - * @static - * @param {Enterprise.IGetSharingAdminsResponse} message GetSharingAdminsResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetSharingAdminsResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a GetSharingAdminsResponse message from the specified reader or buffer. * @function decode @@ -100299,49 +81561,6 @@ export const Enterprise = $root.Enterprise = (() => { return message; }; - /** - * Decodes a GetSharingAdminsResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Enterprise.GetSharingAdminsResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Enterprise.GetSharingAdminsResponse} GetSharingAdminsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetSharingAdminsResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a GetSharingAdminsResponse message. - * @function verify - * @memberof Enterprise.GetSharingAdminsResponse - * @static - * @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) { - if (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); - if (error) - return "userProfileExts." + error; - } - } - return null; - }; - /** * Creates a GetSharingAdminsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -100353,6 +81572,8 @@ export const Enterprise = $root.Enterprise = (() => { GetSharingAdminsResponse.fromObject = function fromObject(object, long) { if (object instanceof $root.Enterprise.GetSharingAdminsResponse) return object; + if (!$util.isObject(object)) + throw TypeError(".Enterprise.GetSharingAdminsResponse: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -100363,7 +81584,7 @@ export const Enterprise = $root.Enterprise = (() => { throw TypeError(".Enterprise.GetSharingAdminsResponse.userProfileExts: array expected"); message.userProfileExts = []; for (let i = 0; i < object.userProfileExts.length; ++i) { - if (typeof object.userProfileExts[i] !== "object") + if (!$util.isObject(object.userProfileExts[i])) throw TypeError(".Enterprise.GetSharingAdminsResponse.userProfileExts: object expected"); message.userProfileExts[i] = $root.Enterprise.UserProfileExt.fromObject(object.userProfileExts[i], long + 1); } @@ -100494,19 +81715,6 @@ export const Enterprise = $root.Enterprise = (() => { return writer; }; - /** - * Encodes the specified TeamsEnterpriseUsersAddRequest message, length delimited. Does not implicitly {@link Enterprise.TeamsEnterpriseUsersAddRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof Enterprise.TeamsEnterpriseUsersAddRequest - * @static - * @param {Enterprise.ITeamsEnterpriseUsersAddRequest} message TeamsEnterpriseUsersAddRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TeamsEnterpriseUsersAddRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a TeamsEnterpriseUsersAddRequest message from the specified reader or buffer. * @function decode @@ -100545,49 +81753,6 @@ export const Enterprise = $root.Enterprise = (() => { return message; }; - /** - * Decodes a TeamsEnterpriseUsersAddRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Enterprise.TeamsEnterpriseUsersAddRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Enterprise.TeamsEnterpriseUsersAddRequest} TeamsEnterpriseUsersAddRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TeamsEnterpriseUsersAddRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a TeamsEnterpriseUsersAddRequest message. - * @function verify - * @memberof Enterprise.TeamsEnterpriseUsersAddRequest - * @static - * @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) { - if (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); - if (error) - return "teams." + error; - } - } - return null; - }; - /** * Creates a TeamsEnterpriseUsersAddRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -100599,6 +81764,8 @@ export const Enterprise = $root.Enterprise = (() => { TeamsEnterpriseUsersAddRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.Enterprise.TeamsEnterpriseUsersAddRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".Enterprise.TeamsEnterpriseUsersAddRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -100609,7 +81776,7 @@ export const Enterprise = $root.Enterprise = (() => { throw TypeError(".Enterprise.TeamsEnterpriseUsersAddRequest.teams: array expected"); message.teams = []; for (let i = 0; i < object.teams.length; ++i) { - if (typeof object.teams[i] !== "object") + if (!$util.isObject(object.teams[i])) throw TypeError(".Enterprise.TeamsEnterpriseUsersAddRequest.teams: object expected"); message.teams[i] = $root.Enterprise.TeamsEnterpriseUsersAddTeamRequest.fromObject(object.teams[i], long + 1); } @@ -100751,19 +81918,6 @@ export const Enterprise = $root.Enterprise = (() => { return writer; }; - /** - * Encodes the specified TeamsEnterpriseUsersAddTeamRequest message, length delimited. Does not implicitly {@link Enterprise.TeamsEnterpriseUsersAddTeamRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof Enterprise.TeamsEnterpriseUsersAddTeamRequest - * @static - * @param {Enterprise.ITeamsEnterpriseUsersAddTeamRequest} message TeamsEnterpriseUsersAddTeamRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TeamsEnterpriseUsersAddTeamRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a TeamsEnterpriseUsersAddTeamRequest message from the specified reader or buffer. * @function decode @@ -100806,52 +81960,6 @@ export const Enterprise = $root.Enterprise = (() => { return message; }; - /** - * Decodes a TeamsEnterpriseUsersAddTeamRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Enterprise.TeamsEnterpriseUsersAddTeamRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Enterprise.TeamsEnterpriseUsersAddTeamRequest} TeamsEnterpriseUsersAddTeamRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TeamsEnterpriseUsersAddTeamRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a TeamsEnterpriseUsersAddTeamRequest message. - * @function verify - * @memberof Enterprise.TeamsEnterpriseUsersAddTeamRequest - * @static - * @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) { - if (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"; - 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.TeamsEnterpriseUsersAddUserRequest.verify(message.users[i], long + 1); - if (error) - return "users." + error; - } - } - return null; - }; - /** * Creates a TeamsEnterpriseUsersAddTeamRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -100863,6 +81971,8 @@ export const Enterprise = $root.Enterprise = (() => { TeamsEnterpriseUsersAddTeamRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.Enterprise.TeamsEnterpriseUsersAddTeamRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".Enterprise.TeamsEnterpriseUsersAddTeamRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -100878,7 +81988,7 @@ export const Enterprise = $root.Enterprise = (() => { throw TypeError(".Enterprise.TeamsEnterpriseUsersAddTeamRequest.users: array expected"); message.users = []; for (let i = 0; i < object.users.length; ++i) { - if (typeof object.users[i] !== "object") + if (!$util.isObject(object.users[i])) throw TypeError(".Enterprise.TeamsEnterpriseUsersAddTeamRequest.users: object expected"); message.users[i] = $root.Enterprise.TeamsEnterpriseUsersAddUserRequest.fromObject(object.users[i], long + 1); } @@ -100913,7 +82023,7 @@ export const Enterprise = $root.Enterprise = (() => { if (options.bytes !== Array) object.teamUid = $util.newBuffer(object.teamUid); } - if (message.teamUid != null && message.hasOwnProperty("teamUid")) + if (message.teamUid != null && Object.hasOwnProperty.call(message, "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.users && message.users.length) { object.users = []; @@ -101050,19 +82160,6 @@ export const Enterprise = $root.Enterprise = (() => { return writer; }; - /** - * Encodes the specified TeamsEnterpriseUsersAddUserRequest message, length delimited. Does not implicitly {@link Enterprise.TeamsEnterpriseUsersAddUserRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof Enterprise.TeamsEnterpriseUsersAddUserRequest - * @static - * @param {Enterprise.ITeamsEnterpriseUsersAddUserRequest} message TeamsEnterpriseUsersAddUserRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TeamsEnterpriseUsersAddUserRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a TeamsEnterpriseUsersAddUserRequest message from the specified reader or buffer. * @function decode @@ -101111,60 +82208,6 @@ export const Enterprise = $root.Enterprise = (() => { return message; }; - /** - * Decodes a TeamsEnterpriseUsersAddUserRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Enterprise.TeamsEnterpriseUsersAddUserRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Enterprise.TeamsEnterpriseUsersAddUserRequest} TeamsEnterpriseUsersAddUserRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TeamsEnterpriseUsersAddUserRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a TeamsEnterpriseUsersAddUserRequest message. - * @function verify - * @memberof Enterprise.TeamsEnterpriseUsersAddUserRequest - * @static - * @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) { - if (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"; - if (message.userType != null && message.hasOwnProperty("userType")) - switch (message.userType) { - default: - return "userType: enum value expected"; - case 0: - case 1: - case 2: - break; - } - if (message.teamKey != null && message.hasOwnProperty("teamKey")) - 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); - if (error) - return "typedTeamKey." + error; - } - return null; - }; - /** * Creates a TeamsEnterpriseUsersAddUserRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -101176,6 +82219,8 @@ export const Enterprise = $root.Enterprise = (() => { TeamsEnterpriseUsersAddUserRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.Enterprise.TeamsEnterpriseUsersAddUserRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".Enterprise.TeamsEnterpriseUsersAddUserRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -101213,7 +82258,7 @@ export const Enterprise = $root.Enterprise = (() => { if (object.teamKey != null) message.teamKey = String(object.teamKey); if (object.typedTeamKey != null) { - if (typeof object.typedTeamKey !== "object") + if (!$util.isObject(object.typedTeamKey)) throw TypeError(".Enterprise.TeamsEnterpriseUsersAddUserRequest.typedTeamKey: object expected"); message.typedTeamKey = $root.Enterprise.TypedKey.fromObject(object.typedTeamKey, long + 1); } @@ -101247,18 +82292,18 @@ export const Enterprise = $root.Enterprise = (() => { object.teamKey = ""; object.typedTeamKey = null; } - if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) + if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, "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") 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.userType != null && message.hasOwnProperty("userType")) + if (message.userType != null && Object.hasOwnProperty.call(message, "userType")) object.userType = options.enums === String ? $root.Enterprise.TeamUserType[message.userType] === undefined ? message.userType : $root.Enterprise.TeamUserType[message.userType] : message.userType; - if (message.teamKey != null && message.hasOwnProperty("teamKey")) + if (message.teamKey != null && Object.hasOwnProperty.call(message, "teamKey")) object.teamKey = message.teamKey; - if (message.typedTeamKey != null && message.hasOwnProperty("typedTeamKey")) + if (message.typedTeamKey != null && Object.hasOwnProperty.call(message, "typedTeamKey")) object.typedTeamKey = $root.Enterprise.TypedKey.toObject(message.typedTeamKey, options, q + 1); return object; }; @@ -101368,19 +82413,6 @@ export const Enterprise = $root.Enterprise = (() => { return writer; }; - /** - * Encodes the specified TypedKey message, length delimited. Does not implicitly {@link Enterprise.TypedKey.verify|verify} messages. - * @function encodeDelimited - * @memberof Enterprise.TypedKey - * @static - * @param {Enterprise.ITypedKey} message TypedKey message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TypedKey.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a TypedKey message from the specified reader or buffer. * @function decode @@ -101421,54 +82453,6 @@ export const Enterprise = $root.Enterprise = (() => { return message; }; - /** - * Decodes a TypedKey message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Enterprise.TypedKey - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Enterprise.TypedKey} TypedKey - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TypedKey.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a TypedKey message. - * @function verify - * @memberof Enterprise.TypedKey - * @static - * @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) { - if (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"; - if (message.keyType != null && message.hasOwnProperty("keyType")) - switch (message.keyType) { - default: - return "keyType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - break; - } - return null; - }; - /** * Creates a TypedKey message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -101480,6 +82464,8 @@ export const Enterprise = $root.Enterprise = (() => { TypedKey.fromObject = function fromObject(object, long) { if (object instanceof $root.Enterprise.TypedKey) return object; + if (!$util.isObject(object)) + throw TypeError(".Enterprise.TypedKey: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -101548,9 +82534,9 @@ export const Enterprise = $root.Enterprise = (() => { } object.keyType = options.enums === String ? "KT_NO_KEY" : 0; } - if (message.key != null && message.hasOwnProperty("key")) + if (message.key != null && Object.hasOwnProperty.call(message, "key")) object.key = options.bytes === String ? $util.base64.encode(message.key, 0, message.key.length) : options.bytes === Array ? Array.prototype.slice.call(message.key) : message.key; - if (message.keyType != null && message.hasOwnProperty("keyType")) + if (message.keyType != null && Object.hasOwnProperty.call(message, "keyType")) object.keyType = options.enums === String ? $root.Enterprise.EncryptedKeyType[message.keyType] === undefined ? message.keyType : $root.Enterprise.EncryptedKeyType[message.keyType] : message.keyType; return object; }; @@ -101678,19 +82664,6 @@ export const Enterprise = $root.Enterprise = (() => { return writer; }; - /** - * Encodes the specified TeamsEnterpriseUsersAddResponse message, length delimited. Does not implicitly {@link Enterprise.TeamsEnterpriseUsersAddResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof Enterprise.TeamsEnterpriseUsersAddResponse - * @static - * @param {Enterprise.ITeamsEnterpriseUsersAddResponse} message TeamsEnterpriseUsersAddResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TeamsEnterpriseUsersAddResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a TeamsEnterpriseUsersAddResponse message from the specified reader or buffer. * @function decode @@ -101733,52 +82706,6 @@ export const Enterprise = $root.Enterprise = (() => { return message; }; - /** - * Decodes a TeamsEnterpriseUsersAddResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Enterprise.TeamsEnterpriseUsersAddResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Enterprise.TeamsEnterpriseUsersAddResponse} TeamsEnterpriseUsersAddResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TeamsEnterpriseUsersAddResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a TeamsEnterpriseUsersAddResponse message. - * @function verify - * @memberof Enterprise.TeamsEnterpriseUsersAddResponse - * @static - * @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) { - if (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); - if (error) - return "teams." + error; - } - } - 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"; - return null; - }; - /** * Creates a TeamsEnterpriseUsersAddResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -101790,6 +82717,8 @@ export const Enterprise = $root.Enterprise = (() => { TeamsEnterpriseUsersAddResponse.fromObject = function fromObject(object, long) { if (object instanceof $root.Enterprise.TeamsEnterpriseUsersAddResponse) return object; + if (!$util.isObject(object)) + throw TypeError(".Enterprise.TeamsEnterpriseUsersAddResponse: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -101800,7 +82729,7 @@ export const Enterprise = $root.Enterprise = (() => { throw TypeError(".Enterprise.TeamsEnterpriseUsersAddResponse.teams: array expected"); message.teams = []; for (let i = 0; i < object.teams.length; ++i) { - if (typeof object.teams[i] !== "object") + if (!$util.isObject(object.teams[i])) throw TypeError(".Enterprise.TeamsEnterpriseUsersAddResponse.teams: object expected"); message.teams[i] = $root.Enterprise.TeamsEnterpriseUsersAddTeamResponse.fromObject(object.teams[i], long + 1); } @@ -101847,7 +82776,7 @@ export const Enterprise = $root.Enterprise = (() => { for (let j = 0; j < message.teams.length; ++j) object.teams[j] = $root.Enterprise.TeamsEnterpriseUsersAddTeamResponse.toObject(message.teams[j], options, q + 1); } - if (message.revision != null && message.hasOwnProperty("revision")) + if (message.revision != null && Object.hasOwnProperty.call(message, "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") @@ -102008,19 +82937,6 @@ export const Enterprise = $root.Enterprise = (() => { return writer; }; - /** - * Encodes the specified TeamsEnterpriseUsersAddTeamResponse message, length delimited. Does not implicitly {@link Enterprise.TeamsEnterpriseUsersAddTeamResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof Enterprise.TeamsEnterpriseUsersAddTeamResponse - * @static - * @param {Enterprise.ITeamsEnterpriseUsersAddTeamResponse} message TeamsEnterpriseUsersAddTeamResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TeamsEnterpriseUsersAddTeamResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a TeamsEnterpriseUsersAddTeamResponse message from the specified reader or buffer. * @function decode @@ -102079,64 +82995,6 @@ export const Enterprise = $root.Enterprise = (() => { return message; }; - /** - * Decodes a TeamsEnterpriseUsersAddTeamResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Enterprise.TeamsEnterpriseUsersAddTeamResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Enterprise.TeamsEnterpriseUsersAddTeamResponse} TeamsEnterpriseUsersAddTeamResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TeamsEnterpriseUsersAddTeamResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a TeamsEnterpriseUsersAddTeamResponse message. - * @function verify - * @memberof Enterprise.TeamsEnterpriseUsersAddTeamResponse - * @static - * @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) { - if (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"; - 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.TeamsEnterpriseUsersAddUserResponse.verify(message.users[i], long + 1); - if (error) - return "users." + error; - } - } - if (message.success != null && message.hasOwnProperty("success")) - if (typeof message.success !== "boolean") - return "success: boolean expected"; - if (message.message != null && message.hasOwnProperty("message")) - if (!$util.isString(message.message)) - return "message: string expected"; - if (message.resultCode != null && message.hasOwnProperty("resultCode")) - if (!$util.isString(message.resultCode)) - return "resultCode: string expected"; - if (message.additionalInfo != null && message.hasOwnProperty("additionalInfo")) - if (!$util.isString(message.additionalInfo)) - return "additionalInfo: string expected"; - return null; - }; - /** * Creates a TeamsEnterpriseUsersAddTeamResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -102148,6 +83006,8 @@ export const Enterprise = $root.Enterprise = (() => { TeamsEnterpriseUsersAddTeamResponse.fromObject = function fromObject(object, long) { if (object instanceof $root.Enterprise.TeamsEnterpriseUsersAddTeamResponse) return object; + if (!$util.isObject(object)) + throw TypeError(".Enterprise.TeamsEnterpriseUsersAddTeamResponse: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -102163,7 +83023,7 @@ export const Enterprise = $root.Enterprise = (() => { throw TypeError(".Enterprise.TeamsEnterpriseUsersAddTeamResponse.users: array expected"); message.users = []; for (let i = 0; i < object.users.length; ++i) { - if (typeof object.users[i] !== "object") + if (!$util.isObject(object.users[i])) throw TypeError(".Enterprise.TeamsEnterpriseUsersAddTeamResponse.users: object expected"); message.users[i] = $root.Enterprise.TeamsEnterpriseUsersAddUserResponse.fromObject(object.users[i], long + 1); } @@ -102211,20 +83071,20 @@ export const Enterprise = $root.Enterprise = (() => { object.resultCode = ""; object.additionalInfo = ""; } - if (message.teamUid != null && message.hasOwnProperty("teamUid")) + if (message.teamUid != null && Object.hasOwnProperty.call(message, "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.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); } - if (message.success != null && message.hasOwnProperty("success")) + if (message.success != null && Object.hasOwnProperty.call(message, "success")) object.success = message.success; - if (message.message != null && message.hasOwnProperty("message")) + if (message.message != null && Object.hasOwnProperty.call(message, "message")) object.message = message.message; - if (message.resultCode != null && message.hasOwnProperty("resultCode")) + if (message.resultCode != null && Object.hasOwnProperty.call(message, "resultCode")) object.resultCode = message.resultCode; - if (message.additionalInfo != null && message.hasOwnProperty("additionalInfo")) + if (message.additionalInfo != null && Object.hasOwnProperty.call(message, "additionalInfo")) object.additionalInfo = message.additionalInfo; return object; }; @@ -102378,19 +83238,6 @@ export const Enterprise = $root.Enterprise = (() => { return writer; }; - /** - * Encodes the specified TeamsEnterpriseUsersAddUserResponse message, length delimited. Does not implicitly {@link Enterprise.TeamsEnterpriseUsersAddUserResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof Enterprise.TeamsEnterpriseUsersAddUserResponse - * @static - * @param {Enterprise.ITeamsEnterpriseUsersAddUserResponse} message TeamsEnterpriseUsersAddUserResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TeamsEnterpriseUsersAddUserResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a TeamsEnterpriseUsersAddUserResponse message from the specified reader or buffer. * @function decode @@ -102447,58 +83294,6 @@ export const Enterprise = $root.Enterprise = (() => { return message; }; - /** - * Decodes a TeamsEnterpriseUsersAddUserResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Enterprise.TeamsEnterpriseUsersAddUserResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Enterprise.TeamsEnterpriseUsersAddUserResponse} TeamsEnterpriseUsersAddUserResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TeamsEnterpriseUsersAddUserResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a TeamsEnterpriseUsersAddUserResponse message. - * @function verify - * @memberof Enterprise.TeamsEnterpriseUsersAddUserResponse - * @static - * @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) { - if (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"; - 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"; - if (message.success != null && message.hasOwnProperty("success")) - if (typeof message.success !== "boolean") - return "success: boolean expected"; - if (message.message != null && message.hasOwnProperty("message")) - if (!$util.isString(message.message)) - return "message: string expected"; - if (message.resultCode != null && message.hasOwnProperty("resultCode")) - if (!$util.isString(message.resultCode)) - return "resultCode: string expected"; - if (message.additionalInfo != null && message.hasOwnProperty("additionalInfo")) - if (!$util.isString(message.additionalInfo)) - return "additionalInfo: string expected"; - return null; - }; - /** * Creates a TeamsEnterpriseUsersAddUserResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -102510,6 +83305,8 @@ export const Enterprise = $root.Enterprise = (() => { TeamsEnterpriseUsersAddUserResponse.fromObject = function fromObject(object, long) { if (object instanceof $root.Enterprise.TeamsEnterpriseUsersAddUserResponse) return object; + if (!$util.isObject(object)) + throw TypeError(".Enterprise.TeamsEnterpriseUsersAddUserResponse: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -102577,27 +83374,27 @@ export const Enterprise = $root.Enterprise = (() => { object.resultCode = ""; object.additionalInfo = ""; } - if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) + if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, "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") 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 (message.revision != null && Object.hasOwnProperty.call(message, "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") 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.success != null && message.hasOwnProperty("success")) + if (message.success != null && Object.hasOwnProperty.call(message, "success")) object.success = message.success; - if (message.message != null && message.hasOwnProperty("message")) + if (message.message != null && Object.hasOwnProperty.call(message, "message")) object.message = message.message; - if (message.resultCode != null && message.hasOwnProperty("resultCode")) + if (message.resultCode != null && Object.hasOwnProperty.call(message, "resultCode")) object.resultCode = message.resultCode; - if (message.additionalInfo != null && message.hasOwnProperty("additionalInfo")) + if (message.additionalInfo != null && Object.hasOwnProperty.call(message, "additionalInfo")) object.additionalInfo = message.additionalInfo; return object; }; @@ -102707,19 +83504,6 @@ export const Enterprise = $root.Enterprise = (() => { return writer; }; - /** - * Encodes the specified TeamEnterpriseUserRemove message, length delimited. Does not implicitly {@link Enterprise.TeamEnterpriseUserRemove.verify|verify} messages. - * @function encodeDelimited - * @memberof Enterprise.TeamEnterpriseUserRemove - * @static - * @param {Enterprise.ITeamEnterpriseUserRemove} message TeamEnterpriseUserRemove message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TeamEnterpriseUserRemove.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a TeamEnterpriseUserRemove message from the specified reader or buffer. * @function decode @@ -102760,46 +83544,6 @@ export const Enterprise = $root.Enterprise = (() => { return message; }; - /** - * Decodes a TeamEnterpriseUserRemove message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Enterprise.TeamEnterpriseUserRemove - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Enterprise.TeamEnterpriseUserRemove} TeamEnterpriseUserRemove - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TeamEnterpriseUserRemove.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a TeamEnterpriseUserRemove message. - * @function verify - * @memberof Enterprise.TeamEnterpriseUserRemove - * @static - * @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) { - if (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"; - 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"; - return null; - }; - /** * Creates a TeamEnterpriseUserRemove message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -102811,6 +83555,8 @@ export const Enterprise = $root.Enterprise = (() => { TeamEnterpriseUserRemove.fromObject = function fromObject(object, long) { if (object instanceof $root.Enterprise.TeamEnterpriseUserRemove) return object; + if (!$util.isObject(object)) + throw TypeError(".Enterprise.TeamEnterpriseUserRemove: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -102864,9 +83610,9 @@ export const Enterprise = $root.Enterprise = (() => { } else object.enterpriseUserId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; } - if (message.teamUid != null && message.hasOwnProperty("teamUid")) + if (message.teamUid != null && Object.hasOwnProperty.call(message, "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 (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, "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") @@ -102972,19 +83718,6 @@ export const Enterprise = $root.Enterprise = (() => { return writer; }; - /** - * Encodes the specified TeamEnterpriseUserRemovesRequest message, length delimited. Does not implicitly {@link Enterprise.TeamEnterpriseUserRemovesRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof Enterprise.TeamEnterpriseUserRemovesRequest - * @static - * @param {Enterprise.ITeamEnterpriseUserRemovesRequest} message TeamEnterpriseUserRemovesRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TeamEnterpriseUserRemovesRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a TeamEnterpriseUserRemovesRequest message from the specified reader or buffer. * @function decode @@ -103023,49 +83756,6 @@ export const Enterprise = $root.Enterprise = (() => { return message; }; - /** - * Decodes a TeamEnterpriseUserRemovesRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Enterprise.TeamEnterpriseUserRemovesRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Enterprise.TeamEnterpriseUserRemovesRequest} TeamEnterpriseUserRemovesRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TeamEnterpriseUserRemovesRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a TeamEnterpriseUserRemovesRequest message. - * @function verify - * @memberof Enterprise.TeamEnterpriseUserRemovesRequest - * @static - * @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) { - if (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); - if (error) - return "teamEnterpriseUserRemove." + error; - } - } - return null; - }; - /** * Creates a TeamEnterpriseUserRemovesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -103077,6 +83767,8 @@ export const Enterprise = $root.Enterprise = (() => { TeamEnterpriseUserRemovesRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.Enterprise.TeamEnterpriseUserRemovesRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".Enterprise.TeamEnterpriseUserRemovesRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -103087,7 +83779,7 @@ export const Enterprise = $root.Enterprise = (() => { throw TypeError(".Enterprise.TeamEnterpriseUserRemovesRequest.teamEnterpriseUserRemove: array expected"); message.teamEnterpriseUserRemove = []; for (let i = 0; i < object.teamEnterpriseUserRemove.length; ++i) { - if (typeof object.teamEnterpriseUserRemove[i] !== "object") + if (!$util.isObject(object.teamEnterpriseUserRemove[i])) throw TypeError(".Enterprise.TeamEnterpriseUserRemovesRequest.teamEnterpriseUserRemove: object expected"); message.teamEnterpriseUserRemove[i] = $root.Enterprise.TeamEnterpriseUserRemove.fromObject(object.teamEnterpriseUserRemove[i], long + 1); } @@ -103218,19 +83910,6 @@ export const Enterprise = $root.Enterprise = (() => { return writer; }; - /** - * Encodes the specified TeamEnterpriseUserRemovesResponse message, length delimited. Does not implicitly {@link Enterprise.TeamEnterpriseUserRemovesResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof Enterprise.TeamEnterpriseUserRemovesResponse - * @static - * @param {Enterprise.ITeamEnterpriseUserRemovesResponse} message TeamEnterpriseUserRemovesResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TeamEnterpriseUserRemovesResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a TeamEnterpriseUserRemovesResponse message from the specified reader or buffer. * @function decode @@ -103269,49 +83948,6 @@ export const Enterprise = $root.Enterprise = (() => { return message; }; - /** - * Decodes a TeamEnterpriseUserRemovesResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Enterprise.TeamEnterpriseUserRemovesResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Enterprise.TeamEnterpriseUserRemovesResponse} TeamEnterpriseUserRemovesResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TeamEnterpriseUserRemovesResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a TeamEnterpriseUserRemovesResponse message. - * @function verify - * @memberof Enterprise.TeamEnterpriseUserRemovesResponse - * @static - * @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) { - if (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); - if (error) - return "teamEnterpriseUserRemoveResponse." + error; - } - } - return null; - }; - /** * Creates a TeamEnterpriseUserRemovesResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -103323,6 +83959,8 @@ export const Enterprise = $root.Enterprise = (() => { TeamEnterpriseUserRemovesResponse.fromObject = function fromObject(object, long) { if (object instanceof $root.Enterprise.TeamEnterpriseUserRemovesResponse) return object; + if (!$util.isObject(object)) + throw TypeError(".Enterprise.TeamEnterpriseUserRemovesResponse: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -103333,7 +83971,7 @@ export const Enterprise = $root.Enterprise = (() => { throw TypeError(".Enterprise.TeamEnterpriseUserRemovesResponse.teamEnterpriseUserRemoveResponse: array expected"); message.teamEnterpriseUserRemoveResponse = []; for (let i = 0; i < object.teamEnterpriseUserRemoveResponse.length; ++i) { - if (typeof object.teamEnterpriseUserRemoveResponse[i] !== "object") + if (!$util.isObject(object.teamEnterpriseUserRemoveResponse[i])) throw TypeError(".Enterprise.TeamEnterpriseUserRemovesResponse.teamEnterpriseUserRemoveResponse: object expected"); message.teamEnterpriseUserRemoveResponse[i] = $root.Enterprise.TeamEnterpriseUserRemoveResponse.fromObject(object.teamEnterpriseUserRemoveResponse[i], long + 1); } @@ -103506,19 +84144,6 @@ export const Enterprise = $root.Enterprise = (() => { return writer; }; - /** - * Encodes the specified TeamEnterpriseUserRemoveResponse message, length delimited. Does not implicitly {@link Enterprise.TeamEnterpriseUserRemoveResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof Enterprise.TeamEnterpriseUserRemoveResponse - * @static - * @param {Enterprise.ITeamEnterpriseUserRemoveResponse} message TeamEnterpriseUserRemoveResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TeamEnterpriseUserRemoveResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a TeamEnterpriseUserRemoveResponse message from the specified reader or buffer. * @function decode @@ -103571,57 +84196,6 @@ export const Enterprise = $root.Enterprise = (() => { return message; }; - /** - * Decodes a TeamEnterpriseUserRemoveResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Enterprise.TeamEnterpriseUserRemoveResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Enterprise.TeamEnterpriseUserRemoveResponse} TeamEnterpriseUserRemoveResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TeamEnterpriseUserRemoveResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a TeamEnterpriseUserRemoveResponse message. - * @function verify - * @memberof Enterprise.TeamEnterpriseUserRemoveResponse - * @static - * @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) { - if (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); - if (error) - return "teamEnterpriseUserRemove." + error; - } - if (message.success != null && message.hasOwnProperty("success")) - if (typeof message.success !== "boolean") - return "success: boolean expected"; - if (message.resultCode != null && message.hasOwnProperty("resultCode")) - if (!$util.isString(message.resultCode)) - return "resultCode: string expected"; - if (message.message != null && message.hasOwnProperty("message")) - if (!$util.isString(message.message)) - return "message: string expected"; - if (message.additionalInfo != null && message.hasOwnProperty("additionalInfo")) - if (!$util.isString(message.additionalInfo)) - return "additionalInfo: string expected"; - return null; - }; - /** * Creates a TeamEnterpriseUserRemoveResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -103633,13 +84207,15 @@ export const Enterprise = $root.Enterprise = (() => { TeamEnterpriseUserRemoveResponse.fromObject = function fromObject(object, long) { if (object instanceof $root.Enterprise.TeamEnterpriseUserRemoveResponse) return object; + if (!$util.isObject(object)) + throw TypeError(".Enterprise.TeamEnterpriseUserRemoveResponse: object expected"); 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") + if (!$util.isObject(object.teamEnterpriseUserRemove)) throw TypeError(".Enterprise.TeamEnterpriseUserRemoveResponse.teamEnterpriseUserRemove: object expected"); message.teamEnterpriseUserRemove = $root.Enterprise.TeamEnterpriseUserRemove.fromObject(object.teamEnterpriseUserRemove, long + 1); } @@ -103678,15 +84254,15 @@ export const Enterprise = $root.Enterprise = (() => { object.message = ""; object.additionalInfo = ""; } - if (message.teamEnterpriseUserRemove != null && message.hasOwnProperty("teamEnterpriseUserRemove")) + if (message.teamEnterpriseUserRemove != null && Object.hasOwnProperty.call(message, "teamEnterpriseUserRemove")) object.teamEnterpriseUserRemove = $root.Enterprise.TeamEnterpriseUserRemove.toObject(message.teamEnterpriseUserRemove, options, q + 1); - if (message.success != null && message.hasOwnProperty("success")) + if (message.success != null && Object.hasOwnProperty.call(message, "success")) object.success = message.success; - if (message.resultCode != null && message.hasOwnProperty("resultCode")) + if (message.resultCode != null && Object.hasOwnProperty.call(message, "resultCode")) object.resultCode = message.resultCode; - if (message.message != null && message.hasOwnProperty("message")) + if (message.message != null && Object.hasOwnProperty.call(message, "message")) object.message = message.message; - if (message.additionalInfo != null && message.hasOwnProperty("additionalInfo")) + if (message.additionalInfo != null && Object.hasOwnProperty.call(message, "additionalInfo")) object.additionalInfo = message.additionalInfo; return object; }; @@ -103818,19 +84394,6 @@ export const Enterprise = $root.Enterprise = (() => { return writer; }; - /** - * Encodes the specified DomainAlias message, length delimited. Does not implicitly {@link Enterprise.DomainAlias.verify|verify} messages. - * @function encodeDelimited - * @memberof Enterprise.DomainAlias - * @static - * @param {Enterprise.IDomainAlias} message DomainAlias message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - DomainAlias.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a DomainAlias message from the specified reader or buffer. * @function decode @@ -103879,52 +84442,6 @@ export const Enterprise = $root.Enterprise = (() => { return message; }; - /** - * Decodes a DomainAlias message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Enterprise.DomainAlias - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Enterprise.DomainAlias} DomainAlias - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - DomainAlias.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a DomainAlias message. - * @function verify - * @memberof Enterprise.DomainAlias - * @static - * @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) { - if (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"; - if (message.alias != null && message.hasOwnProperty("alias")) - if (!$util.isString(message.alias)) - return "alias: string expected"; - if (message.status != null && message.hasOwnProperty("status")) - if (!$util.isInteger(message.status)) - return "status: integer expected"; - if (message.message != null && message.hasOwnProperty("message")) - if (!$util.isString(message.message)) - return "message: string expected"; - return null; - }; - /** * Creates a DomainAlias message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -103936,6 +84453,8 @@ export const Enterprise = $root.Enterprise = (() => { DomainAlias.fromObject = function fromObject(object, long) { if (object instanceof $root.Enterprise.DomainAlias) return object; + if (!$util.isObject(object)) + throw TypeError(".Enterprise.DomainAlias: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -103975,13 +84494,13 @@ export const Enterprise = $root.Enterprise = (() => { object.status = 0; object.message = ""; } - if (message.domain != null && message.hasOwnProperty("domain")) + if (message.domain != null && Object.hasOwnProperty.call(message, "domain")) object.domain = message.domain; - if (message.alias != null && message.hasOwnProperty("alias")) + if (message.alias != null && Object.hasOwnProperty.call(message, "alias")) object.alias = message.alias; - if (message.status != null && message.hasOwnProperty("status")) + if (message.status != null && Object.hasOwnProperty.call(message, "status")) object.status = message.status; - if (message.message != null && message.hasOwnProperty("message")) + if (message.message != null && Object.hasOwnProperty.call(message, "message")) object.message = message.message; return object; }; @@ -104082,19 +84601,6 @@ export const Enterprise = $root.Enterprise = (() => { return writer; }; - /** - * Encodes the specified DomainAliasRequest message, length delimited. Does not implicitly {@link Enterprise.DomainAliasRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof Enterprise.DomainAliasRequest - * @static - * @param {Enterprise.IDomainAliasRequest} message DomainAliasRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - DomainAliasRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a DomainAliasRequest message from the specified reader or buffer. * @function decode @@ -104133,49 +84639,6 @@ export const Enterprise = $root.Enterprise = (() => { return message; }; - /** - * Decodes a DomainAliasRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Enterprise.DomainAliasRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Enterprise.DomainAliasRequest} DomainAliasRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - DomainAliasRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a DomainAliasRequest message. - * @function verify - * @memberof Enterprise.DomainAliasRequest - * @static - * @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) { - if (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); - if (error) - return "domainAlias." + error; - } - } - return null; - }; - /** * Creates a DomainAliasRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -104187,6 +84650,8 @@ export const Enterprise = $root.Enterprise = (() => { DomainAliasRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.Enterprise.DomainAliasRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".Enterprise.DomainAliasRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -104197,7 +84662,7 @@ export const Enterprise = $root.Enterprise = (() => { throw TypeError(".Enterprise.DomainAliasRequest.domainAlias: array expected"); message.domainAlias = []; for (let i = 0; i < object.domainAlias.length; ++i) { - if (typeof object.domainAlias[i] !== "object") + if (!$util.isObject(object.domainAlias[i])) throw TypeError(".Enterprise.DomainAliasRequest.domainAlias: object expected"); message.domainAlias[i] = $root.Enterprise.DomainAlias.fromObject(object.domainAlias[i], long + 1); } @@ -104328,19 +84793,6 @@ export const Enterprise = $root.Enterprise = (() => { return writer; }; - /** - * Encodes the specified DomainAliasResponse message, length delimited. Does not implicitly {@link Enterprise.DomainAliasResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof Enterprise.DomainAliasResponse - * @static - * @param {Enterprise.IDomainAliasResponse} message DomainAliasResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - DomainAliasResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a DomainAliasResponse message from the specified reader or buffer. * @function decode @@ -104379,49 +84831,6 @@ export const Enterprise = $root.Enterprise = (() => { return message; }; - /** - * Decodes a DomainAliasResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Enterprise.DomainAliasResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Enterprise.DomainAliasResponse} DomainAliasResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - DomainAliasResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a DomainAliasResponse message. - * @function verify - * @memberof Enterprise.DomainAliasResponse - * @static - * @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) { - if (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); - if (error) - return "domainAlias." + error; - } - } - return null; - }; - /** * Creates a DomainAliasResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -104433,6 +84842,8 @@ export const Enterprise = $root.Enterprise = (() => { DomainAliasResponse.fromObject = function fromObject(object, long) { if (object instanceof $root.Enterprise.DomainAliasResponse) return object; + if (!$util.isObject(object)) + throw TypeError(".Enterprise.DomainAliasResponse: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -104443,7 +84854,7 @@ export const Enterprise = $root.Enterprise = (() => { throw TypeError(".Enterprise.DomainAliasResponse.domainAlias: array expected"); message.domainAlias = []; for (let i = 0; i < object.domainAlias.length; ++i) { - if (typeof object.domainAlias[i] !== "object") + if (!$util.isObject(object.domainAlias[i])) throw TypeError(".Enterprise.DomainAliasResponse.domainAlias: object expected"); message.domainAlias[i] = $root.Enterprise.DomainAlias.fromObject(object.domainAlias[i], long + 1); } @@ -104585,19 +84996,6 @@ export const Enterprise = $root.Enterprise = (() => { return writer; }; - /** - * Encodes the specified EnterpriseUsersProvisionRequest message, length delimited. Does not implicitly {@link Enterprise.EnterpriseUsersProvisionRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof Enterprise.EnterpriseUsersProvisionRequest - * @static - * @param {Enterprise.IEnterpriseUsersProvisionRequest} message EnterpriseUsersProvisionRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - EnterpriseUsersProvisionRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes an EnterpriseUsersProvisionRequest message from the specified reader or buffer. * @function decode @@ -104640,52 +85038,6 @@ export const Enterprise = $root.Enterprise = (() => { return message; }; - /** - * Decodes an EnterpriseUsersProvisionRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Enterprise.EnterpriseUsersProvisionRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Enterprise.EnterpriseUsersProvisionRequest} EnterpriseUsersProvisionRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - EnterpriseUsersProvisionRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an EnterpriseUsersProvisionRequest message. - * @function verify - * @memberof Enterprise.EnterpriseUsersProvisionRequest - * @static - * @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) { - if (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); - if (error) - return "users." + error; - } - } - if (message.clientVersion != null && message.hasOwnProperty("clientVersion")) - if (!$util.isString(message.clientVersion)) - return "clientVersion: string expected"; - return null; - }; - /** * Creates an EnterpriseUsersProvisionRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -104697,6 +85049,8 @@ export const Enterprise = $root.Enterprise = (() => { EnterpriseUsersProvisionRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.Enterprise.EnterpriseUsersProvisionRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".Enterprise.EnterpriseUsersProvisionRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -104707,7 +85061,7 @@ export const Enterprise = $root.Enterprise = (() => { throw TypeError(".Enterprise.EnterpriseUsersProvisionRequest.users: array expected"); message.users = []; for (let i = 0; i < object.users.length; ++i) { - if (typeof object.users[i] !== "object") + if (!$util.isObject(object.users[i])) throw TypeError(".Enterprise.EnterpriseUsersProvisionRequest.users: object expected"); message.users[i] = $root.Enterprise.EnterpriseUsersProvision.fromObject(object.users[i], long + 1); } @@ -104743,7 +85097,7 @@ export const Enterprise = $root.Enterprise = (() => { for (let j = 0; j < message.users.length; ++j) object.users[j] = $root.Enterprise.EnterpriseUsersProvision.toObject(message.users[j], options, q + 1); } - if (message.clientVersion != null && message.hasOwnProperty("clientVersion")) + if (message.clientVersion != null && Object.hasOwnProperty.call(message, "clientVersion")) object.clientVersion = message.clientVersion; return object; }; @@ -105007,19 +85361,6 @@ export const Enterprise = $root.Enterprise = (() => { return writer; }; - /** - * Encodes the specified EnterpriseUsersProvision message, length delimited. Does not implicitly {@link Enterprise.EnterpriseUsersProvision.verify|verify} messages. - * @function encodeDelimited - * @memberof Enterprise.EnterpriseUsersProvision - * @static - * @param {Enterprise.IEnterpriseUsersProvision} message EnterpriseUsersProvision message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - EnterpriseUsersProvision.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes an EnterpriseUsersProvision message from the specified reader or buffer. * @function decode @@ -105116,96 +85457,6 @@ export const Enterprise = $root.Enterprise = (() => { return message; }; - /** - * Decodes an EnterpriseUsersProvision message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Enterprise.EnterpriseUsersProvision - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Enterprise.EnterpriseUsersProvision} EnterpriseUsersProvision - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - EnterpriseUsersProvision.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an EnterpriseUsersProvision message. - * @function verify - * @memberof Enterprise.EnterpriseUsersProvision - * @static - * @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) { - if (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"; - if (message.username != null && message.hasOwnProperty("username")) - if (!$util.isString(message.username)) - return "username: string expected"; - 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"; - if (message.encryptedData != null && message.hasOwnProperty("encryptedData")) - if (!$util.isString(message.encryptedData)) - return "encryptedData: string expected"; - if (message.keyType != null && message.hasOwnProperty("keyType")) - switch (message.keyType) { - default: - return "keyType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - break; - } - if (message.fullName != null && message.hasOwnProperty("fullName")) - if (!$util.isString(message.fullName)) - return "fullName: string expected"; - if (message.jobTitle != null && message.hasOwnProperty("jobTitle")) - if (!$util.isString(message.jobTitle)) - return "jobTitle: string expected"; - if (message.enterpriseUsersDataKey != null && message.hasOwnProperty("enterpriseUsersDataKey")) - if (!(message.enterpriseUsersDataKey && typeof message.enterpriseUsersDataKey.length === "number" || $util.isString(message.enterpriseUsersDataKey))) - return "enterpriseUsersDataKey: buffer expected"; - if (message.authVerifier != null && message.hasOwnProperty("authVerifier")) - if (!(message.authVerifier && typeof message.authVerifier.length === "number" || $util.isString(message.authVerifier))) - return "authVerifier: buffer expected"; - if (message.encryptionParams != null && message.hasOwnProperty("encryptionParams")) - if (!(message.encryptionParams && typeof message.encryptionParams.length === "number" || $util.isString(message.encryptionParams))) - return "encryptionParams: buffer expected"; - if (message.rsaPublicKey != null && message.hasOwnProperty("rsaPublicKey")) - if (!(message.rsaPublicKey && typeof message.rsaPublicKey.length === "number" || $util.isString(message.rsaPublicKey))) - return "rsaPublicKey: buffer expected"; - if (message.rsaEncryptedPrivateKey != null && message.hasOwnProperty("rsaEncryptedPrivateKey")) - if (!(message.rsaEncryptedPrivateKey && typeof message.rsaEncryptedPrivateKey.length === "number" || $util.isString(message.rsaEncryptedPrivateKey))) - return "rsaEncryptedPrivateKey: buffer expected"; - if (message.eccPublicKey != null && message.hasOwnProperty("eccPublicKey")) - if (!(message.eccPublicKey && typeof message.eccPublicKey.length === "number" || $util.isString(message.eccPublicKey))) - return "eccPublicKey: buffer expected"; - if (message.eccEncryptedPrivateKey != null && message.hasOwnProperty("eccEncryptedPrivateKey")) - if (!(message.eccEncryptedPrivateKey && typeof message.eccEncryptedPrivateKey.length === "number" || $util.isString(message.eccEncryptedPrivateKey))) - return "eccEncryptedPrivateKey: buffer expected"; - if (message.encryptedDeviceToken != null && message.hasOwnProperty("encryptedDeviceToken")) - if (!(message.encryptedDeviceToken && typeof message.encryptedDeviceToken.length === "number" || $util.isString(message.encryptedDeviceToken))) - return "encryptedDeviceToken: buffer expected"; - if (message.encryptedClientKey != null && message.hasOwnProperty("encryptedClientKey")) - if (!(message.encryptedClientKey && typeof message.encryptedClientKey.length === "number" || $util.isString(message.encryptedClientKey))) - return "encryptedClientKey: buffer expected"; - return null; - }; - /** * Creates an EnterpriseUsersProvision message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -105217,6 +85468,8 @@ export const Enterprise = $root.Enterprise = (() => { EnterpriseUsersProvision.fromObject = function fromObject(object, long) { if (object instanceof $root.Enterprise.EnterpriseUsersProvision) return object; + if (!$util.isObject(object)) + throw TypeError(".Enterprise.EnterpriseUsersProvision: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -105421,47 +85674,47 @@ export const Enterprise = $root.Enterprise = (() => { object.encryptedClientKey = $util.newBuffer(object.encryptedClientKey); } } - if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) + if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, "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") 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")) + if (message.username != null && Object.hasOwnProperty.call(message, "username")) object.username = message.username; - if (message.nodeId != null && message.hasOwnProperty("nodeId")) + if (message.nodeId != null && Object.hasOwnProperty.call(message, "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") 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.encryptedData != null && message.hasOwnProperty("encryptedData")) + if (message.encryptedData != null && Object.hasOwnProperty.call(message, "encryptedData")) object.encryptedData = message.encryptedData; - if (message.keyType != null && message.hasOwnProperty("keyType")) + if (message.keyType != null && Object.hasOwnProperty.call(message, "keyType")) object.keyType = options.enums === String ? $root.Enterprise.EncryptedKeyType[message.keyType] === undefined ? message.keyType : $root.Enterprise.EncryptedKeyType[message.keyType] : message.keyType; - if (message.fullName != null && message.hasOwnProperty("fullName")) + if (message.fullName != null && Object.hasOwnProperty.call(message, "fullName")) object.fullName = message.fullName; - if (message.jobTitle != null && message.hasOwnProperty("jobTitle")) + if (message.jobTitle != null && Object.hasOwnProperty.call(message, "jobTitle")) object.jobTitle = message.jobTitle; - if (message.enterpriseUsersDataKey != null && message.hasOwnProperty("enterpriseUsersDataKey")) + if (message.enterpriseUsersDataKey != null && Object.hasOwnProperty.call(message, "enterpriseUsersDataKey")) object.enterpriseUsersDataKey = options.bytes === String ? $util.base64.encode(message.enterpriseUsersDataKey, 0, message.enterpriseUsersDataKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.enterpriseUsersDataKey) : message.enterpriseUsersDataKey; - if (message.authVerifier != null && message.hasOwnProperty("authVerifier")) + if (message.authVerifier != null && Object.hasOwnProperty.call(message, "authVerifier")) object.authVerifier = options.bytes === String ? $util.base64.encode(message.authVerifier, 0, message.authVerifier.length) : options.bytes === Array ? Array.prototype.slice.call(message.authVerifier) : message.authVerifier; - if (message.encryptionParams != null && message.hasOwnProperty("encryptionParams")) + if (message.encryptionParams != null && Object.hasOwnProperty.call(message, "encryptionParams")) object.encryptionParams = options.bytes === String ? $util.base64.encode(message.encryptionParams, 0, message.encryptionParams.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptionParams) : message.encryptionParams; - if (message.rsaPublicKey != null && message.hasOwnProperty("rsaPublicKey")) + if (message.rsaPublicKey != null && Object.hasOwnProperty.call(message, "rsaPublicKey")) object.rsaPublicKey = options.bytes === String ? $util.base64.encode(message.rsaPublicKey, 0, message.rsaPublicKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.rsaPublicKey) : message.rsaPublicKey; - if (message.rsaEncryptedPrivateKey != null && message.hasOwnProperty("rsaEncryptedPrivateKey")) + if (message.rsaEncryptedPrivateKey != null && Object.hasOwnProperty.call(message, "rsaEncryptedPrivateKey")) object.rsaEncryptedPrivateKey = options.bytes === String ? $util.base64.encode(message.rsaEncryptedPrivateKey, 0, message.rsaEncryptedPrivateKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.rsaEncryptedPrivateKey) : message.rsaEncryptedPrivateKey; - if (message.eccPublicKey != null && message.hasOwnProperty("eccPublicKey")) + if (message.eccPublicKey != null && Object.hasOwnProperty.call(message, "eccPublicKey")) object.eccPublicKey = options.bytes === String ? $util.base64.encode(message.eccPublicKey, 0, message.eccPublicKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.eccPublicKey) : message.eccPublicKey; - if (message.eccEncryptedPrivateKey != null && message.hasOwnProperty("eccEncryptedPrivateKey")) + if (message.eccEncryptedPrivateKey != null && Object.hasOwnProperty.call(message, "eccEncryptedPrivateKey")) object.eccEncryptedPrivateKey = options.bytes === String ? $util.base64.encode(message.eccEncryptedPrivateKey, 0, message.eccEncryptedPrivateKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.eccEncryptedPrivateKey) : message.eccEncryptedPrivateKey; - if (message.encryptedDeviceToken != null && message.hasOwnProperty("encryptedDeviceToken")) + if (message.encryptedDeviceToken != null && Object.hasOwnProperty.call(message, "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.encryptedClientKey != null && message.hasOwnProperty("encryptedClientKey")) + if (message.encryptedClientKey != null && Object.hasOwnProperty.call(message, "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; return object; }; @@ -105562,19 +85815,6 @@ export const Enterprise = $root.Enterprise = (() => { return writer; }; - /** - * Encodes the specified EnterpriseUsersProvisionResponse message, length delimited. Does not implicitly {@link Enterprise.EnterpriseUsersProvisionResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof Enterprise.EnterpriseUsersProvisionResponse - * @static - * @param {Enterprise.IEnterpriseUsersProvisionResponse} message EnterpriseUsersProvisionResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - EnterpriseUsersProvisionResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes an EnterpriseUsersProvisionResponse message from the specified reader or buffer. * @function decode @@ -105613,49 +85853,6 @@ export const Enterprise = $root.Enterprise = (() => { return message; }; - /** - * Decodes an EnterpriseUsersProvisionResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Enterprise.EnterpriseUsersProvisionResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Enterprise.EnterpriseUsersProvisionResponse} EnterpriseUsersProvisionResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - EnterpriseUsersProvisionResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an EnterpriseUsersProvisionResponse message. - * @function verify - * @memberof Enterprise.EnterpriseUsersProvisionResponse - * @static - * @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) { - if (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); - if (error) - return "results." + error; - } - } - return null; - }; - /** * Creates an EnterpriseUsersProvisionResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -105667,6 +85864,8 @@ export const Enterprise = $root.Enterprise = (() => { EnterpriseUsersProvisionResponse.fromObject = function fromObject(object, long) { if (object instanceof $root.Enterprise.EnterpriseUsersProvisionResponse) return object; + if (!$util.isObject(object)) + throw TypeError(".Enterprise.EnterpriseUsersProvisionResponse: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -105677,7 +85876,7 @@ export const Enterprise = $root.Enterprise = (() => { throw TypeError(".Enterprise.EnterpriseUsersProvisionResponse.results: array expected"); message.results = []; for (let i = 0; i < object.results.length; ++i) { - if (typeof object.results[i] !== "object") + if (!$util.isObject(object.results[i])) throw TypeError(".Enterprise.EnterpriseUsersProvisionResponse.results: object expected"); message.results[i] = $root.Enterprise.EnterpriseUsersProvisionResult.fromObject(object.results[i], long + 1); } @@ -105839,19 +86038,6 @@ export const Enterprise = $root.Enterprise = (() => { return writer; }; - /** - * Encodes the specified EnterpriseUsersProvisionResult message, length delimited. Does not implicitly {@link Enterprise.EnterpriseUsersProvisionResult.verify|verify} messages. - * @function encodeDelimited - * @memberof Enterprise.EnterpriseUsersProvisionResult - * @static - * @param {Enterprise.IEnterpriseUsersProvisionResult} message EnterpriseUsersProvisionResult message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - EnterpriseUsersProvisionResult.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes an EnterpriseUsersProvisionResult message from the specified reader or buffer. * @function decode @@ -105900,52 +86086,6 @@ export const Enterprise = $root.Enterprise = (() => { return message; }; - /** - * Decodes an EnterpriseUsersProvisionResult message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Enterprise.EnterpriseUsersProvisionResult - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Enterprise.EnterpriseUsersProvisionResult} EnterpriseUsersProvisionResult - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - EnterpriseUsersProvisionResult.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an EnterpriseUsersProvisionResult message. - * @function verify - * @memberof Enterprise.EnterpriseUsersProvisionResult - * @static - * @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) { - if (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"; - if (message.code != null && message.hasOwnProperty("code")) - if (!$util.isString(message.code)) - return "code: string expected"; - if (message.message != null && message.hasOwnProperty("message")) - if (!$util.isString(message.message)) - return "message: string expected"; - if (message.additionalInfo != null && message.hasOwnProperty("additionalInfo")) - if (!$util.isString(message.additionalInfo)) - return "additionalInfo: string expected"; - return null; - }; - /** * Creates an EnterpriseUsersProvisionResult message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -105957,6 +86097,8 @@ export const Enterprise = $root.Enterprise = (() => { EnterpriseUsersProvisionResult.fromObject = function fromObject(object, long) { if (object instanceof $root.Enterprise.EnterpriseUsersProvisionResult) return object; + if (!$util.isObject(object)) + throw TypeError(".Enterprise.EnterpriseUsersProvisionResult: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -106007,18 +86149,18 @@ export const Enterprise = $root.Enterprise = (() => { object.message = ""; object.additionalInfo = ""; } - if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) + if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, "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") 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.code != null && message.hasOwnProperty("code")) + if (message.code != null && Object.hasOwnProperty.call(message, "code")) object.code = message.code; - if (message.message != null && message.hasOwnProperty("message")) + if (message.message != null && Object.hasOwnProperty.call(message, "message")) object.message = message.message; - if (message.additionalInfo != null && message.hasOwnProperty("additionalInfo")) + if (message.additionalInfo != null && Object.hasOwnProperty.call(message, "additionalInfo")) object.additionalInfo = message.additionalInfo; return object; }; @@ -106130,19 +86272,6 @@ export const Enterprise = $root.Enterprise = (() => { return writer; }; - /** - * Encodes the specified EnterpriseUsersAddRequest message, length delimited. Does not implicitly {@link Enterprise.EnterpriseUsersAddRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof Enterprise.EnterpriseUsersAddRequest - * @static - * @param {Enterprise.IEnterpriseUsersAddRequest} message EnterpriseUsersAddRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - EnterpriseUsersAddRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes an EnterpriseUsersAddRequest message from the specified reader or buffer. * @function decode @@ -106185,52 +86314,6 @@ export const Enterprise = $root.Enterprise = (() => { return message; }; - /** - * Decodes an EnterpriseUsersAddRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Enterprise.EnterpriseUsersAddRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Enterprise.EnterpriseUsersAddRequest} EnterpriseUsersAddRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - EnterpriseUsersAddRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an EnterpriseUsersAddRequest message. - * @function verify - * @memberof Enterprise.EnterpriseUsersAddRequest - * @static - * @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) { - if (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); - if (error) - return "users." + error; - } - } - if (message.clientVersion != null && message.hasOwnProperty("clientVersion")) - if (!$util.isString(message.clientVersion)) - return "clientVersion: string expected"; - return null; - }; - /** * Creates an EnterpriseUsersAddRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -106242,6 +86325,8 @@ export const Enterprise = $root.Enterprise = (() => { EnterpriseUsersAddRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.Enterprise.EnterpriseUsersAddRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".Enterprise.EnterpriseUsersAddRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -106252,7 +86337,7 @@ export const Enterprise = $root.Enterprise = (() => { throw TypeError(".Enterprise.EnterpriseUsersAddRequest.users: array expected"); message.users = []; for (let i = 0; i < object.users.length; ++i) { - if (typeof object.users[i] !== "object") + if (!$util.isObject(object.users[i])) throw TypeError(".Enterprise.EnterpriseUsersAddRequest.users: object expected"); message.users[i] = $root.Enterprise.EnterpriseUsersAdd.fromObject(object.users[i], long + 1); } @@ -106288,7 +86373,7 @@ export const Enterprise = $root.Enterprise = (() => { for (let j = 0; j < message.users.length; ++j) object.users[j] = $root.Enterprise.EnterpriseUsersAdd.toObject(message.users[j], options, q + 1); } - if (message.clientVersion != null && message.hasOwnProperty("clientVersion")) + if (message.clientVersion != null && Object.hasOwnProperty.call(message, "clientVersion")) object.clientVersion = message.clientVersion; return object; }; @@ -106497,19 +86582,6 @@ export const Enterprise = $root.Enterprise = (() => { return writer; }; - /** - * Encodes the specified EnterpriseUsersAdd message, length delimited. Does not implicitly {@link Enterprise.EnterpriseUsersAdd.verify|verify} messages. - * @function encodeDelimited - * @memberof Enterprise.EnterpriseUsersAdd - * @static - * @param {Enterprise.IEnterpriseUsersAdd} message EnterpriseUsersAdd message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - EnterpriseUsersAdd.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes an EnterpriseUsersAdd message from the specified reader or buffer. * @function decode @@ -106586,81 +86658,6 @@ export const Enterprise = $root.Enterprise = (() => { return message; }; - /** - * Decodes an EnterpriseUsersAdd message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Enterprise.EnterpriseUsersAdd - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Enterprise.EnterpriseUsersAdd} EnterpriseUsersAdd - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - EnterpriseUsersAdd.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an EnterpriseUsersAdd message. - * @function verify - * @memberof Enterprise.EnterpriseUsersAdd - * @static - * @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) { - if (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"; - if (message.username != null && message.hasOwnProperty("username")) - if (!$util.isString(message.username)) - return "username: string expected"; - 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"; - if (message.encryptedData != null && message.hasOwnProperty("encryptedData")) - if (!$util.isString(message.encryptedData)) - return "encryptedData: string expected"; - if (message.keyType != null && message.hasOwnProperty("keyType")) - switch (message.keyType) { - default: - return "keyType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - break; - } - if (message.fullName != null && message.hasOwnProperty("fullName")) - if (!$util.isString(message.fullName)) - return "fullName: string expected"; - if (message.jobTitle != null && message.hasOwnProperty("jobTitle")) - if (!$util.isString(message.jobTitle)) - return "jobTitle: string expected"; - if (message.suppressEmailInvite != null && message.hasOwnProperty("suppressEmailInvite")) - if (typeof message.suppressEmailInvite !== "boolean") - return "suppressEmailInvite: boolean expected"; - if (message.inviteeLocale != null && message.hasOwnProperty("inviteeLocale")) - if (!$util.isString(message.inviteeLocale)) - return "inviteeLocale: string expected"; - if (message.move != null && message.hasOwnProperty("move")) - if (typeof message.move !== "boolean") - return "move: boolean expected"; - 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"; - return null; - }; - /** * Creates an EnterpriseUsersAdd message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -106672,6 +86669,8 @@ export const Enterprise = $root.Enterprise = (() => { EnterpriseUsersAdd.fromObject = function fromObject(object, long) { if (object instanceof $root.Enterprise.EnterpriseUsersAdd) return object; + if (!$util.isObject(object)) + throw TypeError(".Enterprise.EnterpriseUsersAdd: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -106791,37 +86790,37 @@ export const Enterprise = $root.Enterprise = (() => { } else object.roleId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; } - if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) + if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, "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") 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")) + if (message.username != null && Object.hasOwnProperty.call(message, "username")) object.username = message.username; - if (message.nodeId != null && message.hasOwnProperty("nodeId")) + if (message.nodeId != null && Object.hasOwnProperty.call(message, "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") 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.encryptedData != null && message.hasOwnProperty("encryptedData")) + if (message.encryptedData != null && Object.hasOwnProperty.call(message, "encryptedData")) object.encryptedData = message.encryptedData; - if (message.keyType != null && message.hasOwnProperty("keyType")) + if (message.keyType != null && Object.hasOwnProperty.call(message, "keyType")) object.keyType = options.enums === String ? $root.Enterprise.EncryptedKeyType[message.keyType] === undefined ? message.keyType : $root.Enterprise.EncryptedKeyType[message.keyType] : message.keyType; - if (message.fullName != null && message.hasOwnProperty("fullName")) + if (message.fullName != null && Object.hasOwnProperty.call(message, "fullName")) object.fullName = message.fullName; - if (message.jobTitle != null && message.hasOwnProperty("jobTitle")) + if (message.jobTitle != null && Object.hasOwnProperty.call(message, "jobTitle")) object.jobTitle = message.jobTitle; - if (message.suppressEmailInvite != null && message.hasOwnProperty("suppressEmailInvite")) + if (message.suppressEmailInvite != null && Object.hasOwnProperty.call(message, "suppressEmailInvite")) object.suppressEmailInvite = message.suppressEmailInvite; - if (message.inviteeLocale != null && message.hasOwnProperty("inviteeLocale")) + if (message.inviteeLocale != null && Object.hasOwnProperty.call(message, "inviteeLocale")) object.inviteeLocale = message.inviteeLocale; - if (message.move != null && message.hasOwnProperty("move")) + if (message.move != null && Object.hasOwnProperty.call(message, "move")) object.move = message.move; - if (message.roleId != null && message.hasOwnProperty("roleId")) + if (message.roleId != null && Object.hasOwnProperty.call(message, "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") @@ -106971,19 +86970,6 @@ export const Enterprise = $root.Enterprise = (() => { return writer; }; - /** - * Encodes the specified EnterpriseUsersAddResponse message, length delimited. Does not implicitly {@link Enterprise.EnterpriseUsersAddResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof Enterprise.EnterpriseUsersAddResponse - * @static - * @param {Enterprise.IEnterpriseUsersAddResponse} message EnterpriseUsersAddResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - EnterpriseUsersAddResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes an EnterpriseUsersAddResponse message from the specified reader or buffer. * @function decode @@ -107038,61 +87024,6 @@ export const Enterprise = $root.Enterprise = (() => { return message; }; - /** - * Decodes an EnterpriseUsersAddResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Enterprise.EnterpriseUsersAddResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Enterprise.EnterpriseUsersAddResponse} EnterpriseUsersAddResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - EnterpriseUsersAddResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an EnterpriseUsersAddResponse message. - * @function verify - * @memberof Enterprise.EnterpriseUsersAddResponse - * @static - * @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) { - if (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); - if (error) - return "results." + error; - } - } - if (message.success != null && message.hasOwnProperty("success")) - if (typeof message.success !== "boolean") - return "success: boolean expected"; - if (message.code != null && message.hasOwnProperty("code")) - if (!$util.isString(message.code)) - return "code: string expected"; - if (message.message != null && message.hasOwnProperty("message")) - if (!$util.isString(message.message)) - return "message: string expected"; - if (message.additionalInfo != null && message.hasOwnProperty("additionalInfo")) - if (!$util.isString(message.additionalInfo)) - return "additionalInfo: string expected"; - return null; - }; - /** * Creates an EnterpriseUsersAddResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -107104,6 +87035,8 @@ export const Enterprise = $root.Enterprise = (() => { EnterpriseUsersAddResponse.fromObject = function fromObject(object, long) { if (object instanceof $root.Enterprise.EnterpriseUsersAddResponse) return object; + if (!$util.isObject(object)) + throw TypeError(".Enterprise.EnterpriseUsersAddResponse: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -107114,7 +87047,7 @@ export const Enterprise = $root.Enterprise = (() => { throw TypeError(".Enterprise.EnterpriseUsersAddResponse.results: array expected"); message.results = []; for (let i = 0; i < object.results.length; ++i) { - if (typeof object.results[i] !== "object") + if (!$util.isObject(object.results[i])) throw TypeError(".Enterprise.EnterpriseUsersAddResponse.results: object expected"); message.results[i] = $root.Enterprise.EnterpriseUsersAddResult.fromObject(object.results[i], long + 1); } @@ -107160,13 +87093,13 @@ export const Enterprise = $root.Enterprise = (() => { for (let j = 0; j < message.results.length; ++j) object.results[j] = $root.Enterprise.EnterpriseUsersAddResult.toObject(message.results[j], options, q + 1); } - if (message.success != null && message.hasOwnProperty("success")) + if (message.success != null && Object.hasOwnProperty.call(message, "success")) object.success = message.success; - if (message.code != null && message.hasOwnProperty("code")) + if (message.code != null && Object.hasOwnProperty.call(message, "code")) object.code = message.code; - if (message.message != null && message.hasOwnProperty("message")) + if (message.message != null && Object.hasOwnProperty.call(message, "message")) object.message = message.message; - if (message.additionalInfo != null && message.hasOwnProperty("additionalInfo")) + if (message.additionalInfo != null && Object.hasOwnProperty.call(message, "additionalInfo")) object.additionalInfo = message.additionalInfo; return object; }; @@ -107320,19 +87253,6 @@ export const Enterprise = $root.Enterprise = (() => { return writer; }; - /** - * Encodes the specified EnterpriseUsersAddResult message, length delimited. Does not implicitly {@link Enterprise.EnterpriseUsersAddResult.verify|verify} messages. - * @function encodeDelimited - * @memberof Enterprise.EnterpriseUsersAddResult - * @static - * @param {Enterprise.IEnterpriseUsersAddResult} message EnterpriseUsersAddResult message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - EnterpriseUsersAddResult.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes an EnterpriseUsersAddResult message from the specified reader or buffer. * @function decode @@ -107389,58 +87309,6 @@ export const Enterprise = $root.Enterprise = (() => { return message; }; - /** - * Decodes an EnterpriseUsersAddResult message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Enterprise.EnterpriseUsersAddResult - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Enterprise.EnterpriseUsersAddResult} EnterpriseUsersAddResult - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - EnterpriseUsersAddResult.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an EnterpriseUsersAddResult message. - * @function verify - * @memberof Enterprise.EnterpriseUsersAddResult - * @static - * @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) { - if (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"; - if (message.success != null && message.hasOwnProperty("success")) - if (typeof message.success !== "boolean") - return "success: boolean expected"; - if (message.verificationCode != null && message.hasOwnProperty("verificationCode")) - if (!$util.isString(message.verificationCode)) - return "verificationCode: string expected"; - if (message.code != null && message.hasOwnProperty("code")) - if (!$util.isString(message.code)) - return "code: string expected"; - if (message.message != null && message.hasOwnProperty("message")) - if (!$util.isString(message.message)) - return "message: string expected"; - if (message.additionalInfo != null && message.hasOwnProperty("additionalInfo")) - if (!$util.isString(message.additionalInfo)) - return "additionalInfo: string expected"; - return null; - }; - /** * Creates an EnterpriseUsersAddResult message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -107452,6 +87320,8 @@ export const Enterprise = $root.Enterprise = (() => { EnterpriseUsersAddResult.fromObject = function fromObject(object, long) { if (object instanceof $root.Enterprise.EnterpriseUsersAddResult) return object; + if (!$util.isObject(object)) + throw TypeError(".Enterprise.EnterpriseUsersAddResult: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -107508,22 +87378,22 @@ export const Enterprise = $root.Enterprise = (() => { object.message = ""; object.additionalInfo = ""; } - if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) + if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, "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") 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.success != null && message.hasOwnProperty("success")) + if (message.success != null && Object.hasOwnProperty.call(message, "success")) object.success = message.success; - if (message.verificationCode != null && message.hasOwnProperty("verificationCode")) + if (message.verificationCode != null && Object.hasOwnProperty.call(message, "verificationCode")) object.verificationCode = message.verificationCode; - if (message.code != null && message.hasOwnProperty("code")) + if (message.code != null && Object.hasOwnProperty.call(message, "code")) object.code = message.code; - if (message.message != null && message.hasOwnProperty("message")) + if (message.message != null && Object.hasOwnProperty.call(message, "message")) object.message = message.message; - if (message.additionalInfo != null && message.hasOwnProperty("additionalInfo")) + if (message.additionalInfo != null && Object.hasOwnProperty.call(message, "additionalInfo")) object.additionalInfo = message.additionalInfo; return object; }; @@ -107681,19 +87551,6 @@ export const Enterprise = $root.Enterprise = (() => { return writer; }; - /** - * Encodes the specified UpdateMSPPermitsRequest message, length delimited. Does not implicitly {@link Enterprise.UpdateMSPPermitsRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof Enterprise.UpdateMSPPermitsRequest - * @static - * @param {Enterprise.IUpdateMSPPermitsRequest} message UpdateMSPPermitsRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - UpdateMSPPermitsRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes an UpdateMSPPermitsRequest message from the specified reader or buffer. * @function decode @@ -107754,66 +87611,6 @@ export const Enterprise = $root.Enterprise = (() => { return message; }; - /** - * Decodes an UpdateMSPPermitsRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Enterprise.UpdateMSPPermitsRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Enterprise.UpdateMSPPermitsRequest} UpdateMSPPermitsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - UpdateMSPPermitsRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an UpdateMSPPermitsRequest message. - * @function verify - * @memberof Enterprise.UpdateMSPPermitsRequest - * @static - * @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) { - if (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"; - if (message.maxAllowedLicenses != null && message.hasOwnProperty("maxAllowedLicenses")) - if (!$util.isInteger(message.maxAllowedLicenses)) - return "maxAllowedLicenses: integer expected"; - if (message.allowedMcProducts != null && message.hasOwnProperty("allowedMcProducts")) { - if (!Array.isArray(message.allowedMcProducts)) - return "allowedMcProducts: array expected"; - for (let i = 0; i < message.allowedMcProducts.length; ++i) - if (!$util.isString(message.allowedMcProducts[i])) - return "allowedMcProducts: string[] expected"; - } - if (message.allowedAddOns != null && message.hasOwnProperty("allowedAddOns")) { - if (!Array.isArray(message.allowedAddOns)) - return "allowedAddOns: array expected"; - for (let i = 0; i < message.allowedAddOns.length; ++i) - if (!$util.isString(message.allowedAddOns[i])) - return "allowedAddOns: string[] expected"; - } - if (message.maxFilePlanType != null && message.hasOwnProperty("maxFilePlanType")) - if (!$util.isString(message.maxFilePlanType)) - return "maxFilePlanType: string expected"; - if (message.allowUnlimitedLicenses != null && message.hasOwnProperty("allowUnlimitedLicenses")) - if (typeof message.allowUnlimitedLicenses !== "boolean") - return "allowUnlimitedLicenses: boolean expected"; - return null; - }; - /** * Creates an UpdateMSPPermitsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -107825,6 +87622,8 @@ export const Enterprise = $root.Enterprise = (() => { UpdateMSPPermitsRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.Enterprise.UpdateMSPPermitsRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".Enterprise.UpdateMSPPermitsRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -107882,9 +87681,9 @@ export const Enterprise = $root.Enterprise = (() => { object.maxFilePlanType = ""; object.allowUnlimitedLicenses = false; } - if (message.mspEnterpriseId != null && message.hasOwnProperty("mspEnterpriseId")) + if (message.mspEnterpriseId != null && Object.hasOwnProperty.call(message, "mspEnterpriseId")) object.mspEnterpriseId = message.mspEnterpriseId; - if (message.maxAllowedLicenses != null && message.hasOwnProperty("maxAllowedLicenses")) + if (message.maxAllowedLicenses != null && Object.hasOwnProperty.call(message, "maxAllowedLicenses")) object.maxAllowedLicenses = message.maxAllowedLicenses; if (message.allowedMcProducts && message.allowedMcProducts.length) { object.allowedMcProducts = []; @@ -107896,9 +87695,9 @@ export const Enterprise = $root.Enterprise = (() => { for (let j = 0; j < message.allowedAddOns.length; ++j) object.allowedAddOns[j] = message.allowedAddOns[j]; } - if (message.maxFilePlanType != null && message.hasOwnProperty("maxFilePlanType")) + if (message.maxFilePlanType != null && Object.hasOwnProperty.call(message, "maxFilePlanType")) object.maxFilePlanType = message.maxFilePlanType; - if (message.allowUnlimitedLicenses != null && message.hasOwnProperty("allowUnlimitedLicenses")) + if (message.allowUnlimitedLicenses != null && Object.hasOwnProperty.call(message, "allowUnlimitedLicenses")) object.allowUnlimitedLicenses = message.allowUnlimitedLicenses; return object; }; @@ -108022,19 +87821,6 @@ export const Enterprise = $root.Enterprise = (() => { return writer; }; - /** - * Encodes the specified DeleteEnterpriseUsersRequest message, length delimited. Does not implicitly {@link Enterprise.DeleteEnterpriseUsersRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof Enterprise.DeleteEnterpriseUsersRequest - * @static - * @param {Enterprise.IDeleteEnterpriseUsersRequest} message DeleteEnterpriseUsersRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - DeleteEnterpriseUsersRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a DeleteEnterpriseUsersRequest message from the specified reader or buffer. * @function decode @@ -108078,47 +87864,6 @@ export const Enterprise = $root.Enterprise = (() => { return message; }; - /** - * Decodes a DeleteEnterpriseUsersRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Enterprise.DeleteEnterpriseUsersRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Enterprise.DeleteEnterpriseUsersRequest} DeleteEnterpriseUsersRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - DeleteEnterpriseUsersRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a DeleteEnterpriseUsersRequest message. - * @function verify - * @memberof Enterprise.DeleteEnterpriseUsersRequest - * @static - * @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) { - if (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"; - for (let i = 0; i < message.enterpriseUserIds.length; ++i) - if (!$util.isInteger(message.enterpriseUserIds[i]) && !(message.enterpriseUserIds[i] && $util.isInteger(message.enterpriseUserIds[i].low) && $util.isInteger(message.enterpriseUserIds[i].high))) - return "enterpriseUserIds: integer|Long[] expected"; - } - return null; - }; - /** * Creates a DeleteEnterpriseUsersRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -108130,6 +87875,8 @@ export const Enterprise = $root.Enterprise = (() => { DeleteEnterpriseUsersRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.Enterprise.DeleteEnterpriseUsersRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".Enterprise.DeleteEnterpriseUsersRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -108309,19 +88056,6 @@ export const Enterprise = $root.Enterprise = (() => { return writer; }; - /** - * Encodes the specified DeleteEnterpriseUserStatus message, length delimited. Does not implicitly {@link Enterprise.DeleteEnterpriseUserStatus.verify|verify} messages. - * @function encodeDelimited - * @memberof Enterprise.DeleteEnterpriseUserStatus - * @static - * @param {Enterprise.IDeleteEnterpriseUserStatus} message DeleteEnterpriseUserStatus message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - DeleteEnterpriseUserStatus.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a DeleteEnterpriseUserStatus message from the specified reader or buffer. * @function decode @@ -108362,54 +88096,6 @@ export const Enterprise = $root.Enterprise = (() => { return message; }; - /** - * Decodes a DeleteEnterpriseUserStatus message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Enterprise.DeleteEnterpriseUserStatus - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Enterprise.DeleteEnterpriseUserStatus} DeleteEnterpriseUserStatus - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - DeleteEnterpriseUserStatus.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a DeleteEnterpriseUserStatus message. - * @function verify - * @memberof Enterprise.DeleteEnterpriseUserStatus - * @static - * @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) { - if (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"; - if (message.status != null && message.hasOwnProperty("status")) - switch (message.status) { - default: - return "status: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - break; - } - return null; - }; - /** * Creates a DeleteEnterpriseUserStatus message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -108421,6 +88107,8 @@ export const Enterprise = $root.Enterprise = (() => { DeleteEnterpriseUserStatus.fromObject = function fromObject(object, long) { if (object instanceof $root.Enterprise.DeleteEnterpriseUserStatus) return object; + if (!$util.isObject(object)) + throw TypeError(".Enterprise.DeleteEnterpriseUserStatus: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -108491,14 +88179,14 @@ export const Enterprise = $root.Enterprise = (() => { object.enterpriseUserId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; object.status = options.enums === String ? "SUCCESS" : 0; } - if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) + if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, "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") 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.status != null && message.hasOwnProperty("status")) + if (message.status != null && Object.hasOwnProperty.call(message, "status")) object.status = options.enums === String ? $root.Enterprise.DeleteEnterpriseUsersResult[message.status] === undefined ? message.status : $root.Enterprise.DeleteEnterpriseUsersResult[message.status] : message.status; return object; }; @@ -108599,19 +88287,6 @@ export const Enterprise = $root.Enterprise = (() => { return writer; }; - /** - * Encodes the specified DeleteEnterpriseUsersResponse message, length delimited. Does not implicitly {@link Enterprise.DeleteEnterpriseUsersResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof Enterprise.DeleteEnterpriseUsersResponse - * @static - * @param {Enterprise.IDeleteEnterpriseUsersResponse} message DeleteEnterpriseUsersResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - DeleteEnterpriseUsersResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a DeleteEnterpriseUsersResponse message from the specified reader or buffer. * @function decode @@ -108650,49 +88325,6 @@ export const Enterprise = $root.Enterprise = (() => { return message; }; - /** - * Decodes a DeleteEnterpriseUsersResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Enterprise.DeleteEnterpriseUsersResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Enterprise.DeleteEnterpriseUsersResponse} DeleteEnterpriseUsersResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - DeleteEnterpriseUsersResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a DeleteEnterpriseUsersResponse message. - * @function verify - * @memberof Enterprise.DeleteEnterpriseUsersResponse - * @static - * @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) { - if (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); - if (error) - return "deleteStatus." + error; - } - } - return null; - }; - /** * Creates a DeleteEnterpriseUsersResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -108704,6 +88336,8 @@ export const Enterprise = $root.Enterprise = (() => { DeleteEnterpriseUsersResponse.fromObject = function fromObject(object, long) { if (object instanceof $root.Enterprise.DeleteEnterpriseUsersResponse) return object; + if (!$util.isObject(object)) + throw TypeError(".Enterprise.DeleteEnterpriseUsersResponse: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -108714,7 +88348,7 @@ export const Enterprise = $root.Enterprise = (() => { throw TypeError(".Enterprise.DeleteEnterpriseUsersResponse.deleteStatus: array expected"); message.deleteStatus = []; for (let i = 0; i < object.deleteStatus.length; ++i) { - if (typeof object.deleteStatus[i] !== "object") + if (!$util.isObject(object.deleteStatus[i])) throw TypeError(".Enterprise.DeleteEnterpriseUsersResponse.deleteStatus: object expected"); message.deleteStatus[i] = $root.Enterprise.DeleteEnterpriseUserStatus.fromObject(object.deleteStatus[i], long + 1); } @@ -108886,19 +88520,6 @@ export const Enterprise = $root.Enterprise = (() => { return writer; }; - /** - * Encodes the specified ClearSecurityDataRequest message, length delimited. Does not implicitly {@link Enterprise.ClearSecurityDataRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof Enterprise.ClearSecurityDataRequest - * @static - * @param {Enterprise.IClearSecurityDataRequest} message ClearSecurityDataRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ClearSecurityDataRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a ClearSecurityDataRequest message from the specified reader or buffer. * @function decode @@ -108950,59 +88571,6 @@ export const Enterprise = $root.Enterprise = (() => { return message; }; - /** - * Decodes a ClearSecurityDataRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Enterprise.ClearSecurityDataRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Enterprise.ClearSecurityDataRequest} ClearSecurityDataRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ClearSecurityDataRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a ClearSecurityDataRequest message. - * @function verify - * @memberof Enterprise.ClearSecurityDataRequest - * @static - * @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) { - if (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"; - for (let i = 0; i < message.enterpriseUserId.length; ++i) - if (!$util.isInteger(message.enterpriseUserId[i]) && !(message.enterpriseUserId[i] && $util.isInteger(message.enterpriseUserId[i].low) && $util.isInteger(message.enterpriseUserId[i].high))) - return "enterpriseUserId: integer|Long[] expected"; - } - if (message.allUsers != null && message.hasOwnProperty("allUsers")) - if (typeof message.allUsers !== "boolean") - return "allUsers: boolean expected"; - if (message.type != null && message.hasOwnProperty("type")) - switch (message.type) { - default: - return "type: enum value expected"; - case 0: - case 1: - case 2: - break; - } - return null; - }; - /** * Creates a ClearSecurityDataRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -109014,6 +88582,8 @@ export const Enterprise = $root.Enterprise = (() => { ClearSecurityDataRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.Enterprise.ClearSecurityDataRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".Enterprise.ClearSecurityDataRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -109091,9 +88661,9 @@ export const Enterprise = $root.Enterprise = (() => { 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]; } - if (message.allUsers != null && message.hasOwnProperty("allUsers")) + if (message.allUsers != null && Object.hasOwnProperty.call(message, "allUsers")) object.allUsers = message.allUsers; - if (message.type != null && message.hasOwnProperty("type")) + if (message.type != null && Object.hasOwnProperty.call(message, "type")) object.type = options.enums === String ? $root.Enterprise.ClearSecurityDataType[message.type] === undefined ? message.type : $root.Enterprise.ClearSecurityDataType[message.type] : message.type; return object; }; @@ -109194,19 +88764,6 @@ export const Enterprise = $root.Enterprise = (() => { return writer; }; - /** - * Encodes the specified ListDomainsResponse message, length delimited. Does not implicitly {@link Enterprise.ListDomainsResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof Enterprise.ListDomainsResponse - * @static - * @param {Enterprise.IListDomainsResponse} message ListDomainsResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ListDomainsResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a ListDomainsResponse message from the specified reader or buffer. * @function decode @@ -109245,47 +88802,6 @@ export const Enterprise = $root.Enterprise = (() => { return message; }; - /** - * Decodes a ListDomainsResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Enterprise.ListDomainsResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Enterprise.ListDomainsResponse} ListDomainsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ListDomainsResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a ListDomainsResponse message. - * @function verify - * @memberof Enterprise.ListDomainsResponse - * @static - * @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) { - if (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"; - for (let i = 0; i < message.domain.length; ++i) - if (!$util.isString(message.domain[i])) - return "domain: string[] expected"; - } - return null; - }; - /** * Creates a ListDomainsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -109297,6 +88813,8 @@ export const Enterprise = $root.Enterprise = (() => { ListDomainsResponse.fromObject = function fromObject(object, long) { if (object instanceof $root.Enterprise.ListDomainsResponse) return object; + if (!$util.isObject(object)) + throw TypeError(".Enterprise.ListDomainsResponse: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -109460,19 +88978,6 @@ export const Enterprise = $root.Enterprise = (() => { return writer; }; - /** - * Encodes the specified ReserveDomainRequest message, length delimited. Does not implicitly {@link Enterprise.ReserveDomainRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof Enterprise.ReserveDomainRequest - * @static - * @param {Enterprise.IReserveDomainRequest} message ReserveDomainRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ReserveDomainRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a ReserveDomainRequest message from the specified reader or buffer. * @function decode @@ -109513,52 +89018,6 @@ export const Enterprise = $root.Enterprise = (() => { return message; }; - /** - * Decodes a ReserveDomainRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Enterprise.ReserveDomainRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Enterprise.ReserveDomainRequest} ReserveDomainRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ReserveDomainRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a ReserveDomainRequest message. - * @function verify - * @memberof Enterprise.ReserveDomainRequest - * @static - * @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) { - if (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: - return "reserveDomainAction: enum value expected"; - case 0: - case 1: - case 2: - break; - } - if (message.domain != null && message.hasOwnProperty("domain")) - if (!$util.isString(message.domain)) - return "domain: string expected"; - return null; - }; - /** * Creates a ReserveDomainRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -109570,6 +89029,8 @@ export const Enterprise = $root.Enterprise = (() => { ReserveDomainRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.Enterprise.ReserveDomainRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".Enterprise.ReserveDomainRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -109621,9 +89082,9 @@ export const Enterprise = $root.Enterprise = (() => { object.reserveDomainAction = options.enums === String ? "DOMAIN_TOKEN" : 0; object.domain = ""; } - if (message.reserveDomainAction != null && message.hasOwnProperty("reserveDomainAction")) + if (message.reserveDomainAction != null && Object.hasOwnProperty.call(message, "reserveDomainAction")) object.reserveDomainAction = options.enums === String ? $root.Enterprise.ReserveDomainAction[message.reserveDomainAction] === undefined ? message.reserveDomainAction : $root.Enterprise.ReserveDomainAction[message.reserveDomainAction] : message.reserveDomainAction; - if (message.domain != null && message.hasOwnProperty("domain")) + if (message.domain != null && Object.hasOwnProperty.call(message, "domain")) object.domain = message.domain; return object; }; @@ -109722,19 +89183,6 @@ export const Enterprise = $root.Enterprise = (() => { return writer; }; - /** - * Encodes the specified ReserveDomainResponse message, length delimited. Does not implicitly {@link Enterprise.ReserveDomainResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof Enterprise.ReserveDomainResponse - * @static - * @param {Enterprise.IReserveDomainResponse} message ReserveDomainResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ReserveDomainResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a ReserveDomainResponse message from the specified reader or buffer. * @function decode @@ -109771,43 +89219,6 @@ export const Enterprise = $root.Enterprise = (() => { return message; }; - /** - * Decodes a ReserveDomainResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Enterprise.ReserveDomainResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Enterprise.ReserveDomainResponse} ReserveDomainResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ReserveDomainResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a ReserveDomainResponse message. - * @function verify - * @memberof Enterprise.ReserveDomainResponse - * @static - * @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) { - if (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"; - return null; - }; - /** * Creates a ReserveDomainResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -109819,6 +89230,8 @@ export const Enterprise = $root.Enterprise = (() => { ReserveDomainResponse.fromObject = function fromObject(object, long) { if (object instanceof $root.Enterprise.ReserveDomainResponse) return object; + if (!$util.isObject(object)) + throw TypeError(".Enterprise.ReserveDomainResponse: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -109848,7 +89261,7 @@ export const Enterprise = $root.Enterprise = (() => { let object = {}; if (options.defaults) object.token = ""; - if (message.token != null && message.hasOwnProperty("token")) + if (message.token != null && Object.hasOwnProperty.call(message, "token")) object.token = message.token; return object; }; @@ -109963,19 +89376,6 @@ export const Enterprise = $root.Enterprise = (() => { return writer; }; - /** - * Encodes the specified RolesByTeam message, length delimited. Does not implicitly {@link Enterprise.RolesByTeam.verify|verify} messages. - * @function encodeDelimited - * @memberof Enterprise.RolesByTeam - * @static - * @param {Enterprise.IRolesByTeam} message RolesByTeam message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RolesByTeam.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a RolesByTeam message from the specified reader or buffer. * @function decode @@ -110023,50 +89423,6 @@ export const Enterprise = $root.Enterprise = (() => { return message; }; - /** - * Decodes a RolesByTeam message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Enterprise.RolesByTeam - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Enterprise.RolesByTeam} RolesByTeam - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RolesByTeam.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a RolesByTeam message. - * @function verify - * @memberof Enterprise.RolesByTeam - * @static - * @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) { - if (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"; - if (message.roleId != null && message.hasOwnProperty("roleId")) { - if (!Array.isArray(message.roleId)) - return "roleId: array expected"; - for (let i = 0; i < message.roleId.length; ++i) - if (!$util.isInteger(message.roleId[i]) && !(message.roleId[i] && $util.isInteger(message.roleId[i].low) && $util.isInteger(message.roleId[i].high))) - return "roleId: integer|Long[] expected"; - } - return null; - }; - /** * Creates a RolesByTeam message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -110078,6 +89434,8 @@ export const Enterprise = $root.Enterprise = (() => { RolesByTeam.fromObject = function fromObject(object, long) { if (object instanceof $root.Enterprise.RolesByTeam) return object; + if (!$util.isObject(object)) + throw TypeError(".Enterprise.RolesByTeam: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -110132,7 +89490,7 @@ export const Enterprise = $root.Enterprise = (() => { if (options.bytes !== Array) object.teamUid = $util.newBuffer(object.teamUid); } - if (message.teamUid != null && message.hasOwnProperty("teamUid")) + if (message.teamUid != null && Object.hasOwnProperty.call(message, "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.roleId && message.roleId.length) { object.roleId = []; @@ -110289,19 +89647,6 @@ export const Enterprise = $root.Enterprise = (() => { return writer; }; - /** - * Encodes the specified LockUsersRequest message, length delimited. Does not implicitly {@link Enterprise.LockUsersRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof Enterprise.LockUsersRequest - * @static - * @param {Enterprise.ILockUsersRequest} message LockUsersRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - LockUsersRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a LockUsersRequest message from the specified reader or buffer. * @function decode @@ -110371,64 +89716,6 @@ export const Enterprise = $root.Enterprise = (() => { return message; }; - /** - * Decodes a LockUsersRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Enterprise.LockUsersRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Enterprise.LockUsersRequest} LockUsersRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - LockUsersRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a LockUsersRequest message. - * @function verify - * @memberof Enterprise.LockUsersRequest - * @static - * @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) { - if (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"; - for (let i = 0; i < message.lockEnterpriseUserIds.length; ++i) - if (!$util.isInteger(message.lockEnterpriseUserIds[i]) && !(message.lockEnterpriseUserIds[i] && $util.isInteger(message.lockEnterpriseUserIds[i].low) && $util.isInteger(message.lockEnterpriseUserIds[i].high))) - return "lockEnterpriseUserIds: integer|Long[] expected"; - } - if (message.disableEnterpriseUserIds != null && message.hasOwnProperty("disableEnterpriseUserIds")) { - if (!Array.isArray(message.disableEnterpriseUserIds)) - return "disableEnterpriseUserIds: array expected"; - for (let i = 0; i < message.disableEnterpriseUserIds.length; ++i) - if (!$util.isInteger(message.disableEnterpriseUserIds[i]) && !(message.disableEnterpriseUserIds[i] && $util.isInteger(message.disableEnterpriseUserIds[i].low) && $util.isInteger(message.disableEnterpriseUserIds[i].high))) - return "disableEnterpriseUserIds: integer|Long[] expected"; - } - if (message.unlockEnterpriseUserIds != null && message.hasOwnProperty("unlockEnterpriseUserIds")) { - if (!Array.isArray(message.unlockEnterpriseUserIds)) - return "unlockEnterpriseUserIds: array expected"; - for (let i = 0; i < message.unlockEnterpriseUserIds.length; ++i) - if (!$util.isInteger(message.unlockEnterpriseUserIds[i]) && !(message.unlockEnterpriseUserIds[i] && $util.isInteger(message.unlockEnterpriseUserIds[i].low) && $util.isInteger(message.unlockEnterpriseUserIds[i].high))) - return "unlockEnterpriseUserIds: integer|Long[] expected"; - } - if (message.deleteIfPending != null && message.hasOwnProperty("deleteIfPending")) - if (typeof message.deleteIfPending !== "boolean") - return "deleteIfPending: boolean expected"; - return null; - }; - /** * Creates a LockUsersRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -110440,6 +89727,8 @@ export const Enterprise = $root.Enterprise = (() => { LockUsersRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.Enterprise.LockUsersRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".Enterprise.LockUsersRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -110546,7 +89835,7 @@ export const Enterprise = $root.Enterprise = (() => { 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]; } - if (message.deleteIfPending != null && message.hasOwnProperty("deleteIfPending")) + if (message.deleteIfPending != null && Object.hasOwnProperty.call(message, "deleteIfPending")) object.deleteIfPending = message.deleteIfPending; return object; }; @@ -110647,19 +89936,6 @@ export const Enterprise = $root.Enterprise = (() => { return writer; }; - /** - * Encodes the specified LockUsersResponse message, length delimited. Does not implicitly {@link Enterprise.LockUsersResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof Enterprise.LockUsersResponse - * @static - * @param {Enterprise.ILockUsersResponse} message LockUsersResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - LockUsersResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a LockUsersResponse message from the specified reader or buffer. * @function decode @@ -110698,49 +89974,6 @@ export const Enterprise = $root.Enterprise = (() => { return message; }; - /** - * Decodes a LockUsersResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Enterprise.LockUsersResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Enterprise.LockUsersResponse} LockUsersResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - LockUsersResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a LockUsersResponse message. - * @function verify - * @memberof Enterprise.LockUsersResponse - * @static - * @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) { - if (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); - if (error) - return "response." + error; - } - } - return null; - }; - /** * Creates a LockUsersResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -110752,6 +89985,8 @@ export const Enterprise = $root.Enterprise = (() => { LockUsersResponse.fromObject = function fromObject(object, long) { if (object instanceof $root.Enterprise.LockUsersResponse) return object; + if (!$util.isObject(object)) + throw TypeError(".Enterprise.LockUsersResponse: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -110762,7 +89997,7 @@ export const Enterprise = $root.Enterprise = (() => { throw TypeError(".Enterprise.LockUsersResponse.response: array expected"); message.response = []; for (let i = 0; i < object.response.length; ++i) { - if (typeof object.response[i] !== "object") + if (!$util.isObject(object.response[i])) throw TypeError(".Enterprise.LockUsersResponse.response: object expected"); message.response[i] = $root.Enterprise.LockUserResponse.fromObject(object.response[i], long + 1); } @@ -110935,19 +90170,6 @@ export const Enterprise = $root.Enterprise = (() => { return writer; }; - /** - * Encodes the specified LockUserResponse message, length delimited. Does not implicitly {@link Enterprise.LockUserResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof Enterprise.LockUserResponse - * @static - * @param {Enterprise.ILockUserResponse} message LockUserResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - LockUserResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a LockUserResponse message from the specified reader or buffer. * @function decode @@ -110992,58 +90214,6 @@ export const Enterprise = $root.Enterprise = (() => { return message; }; - /** - * Decodes a LockUserResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Enterprise.LockUserResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Enterprise.LockUserResponse} LockUserResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - LockUserResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a LockUserResponse message. - * @function verify - * @memberof Enterprise.LockUserResponse - * @static - * @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) { - if (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"; - if (message.status != null && message.hasOwnProperty("status")) - switch (message.status) { - default: - return "status: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - break; - } - if (message.errorMessage != null && message.hasOwnProperty("errorMessage")) - if (!$util.isString(message.errorMessage)) - return "errorMessage: string expected"; - return null; - }; - /** * Creates a LockUserResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -111055,6 +90225,8 @@ export const Enterprise = $root.Enterprise = (() => { LockUserResponse.fromObject = function fromObject(object, long) { if (object instanceof $root.Enterprise.LockUserResponse) return object; + if (!$util.isObject(object)) + throw TypeError(".Enterprise.LockUserResponse: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -111132,16 +90304,16 @@ export const Enterprise = $root.Enterprise = (() => { object.status = options.enums === String ? "UNKNOWN_LOCK_STATUS" : 0; object.errorMessage = ""; } - if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) + if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, "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") 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.status != null && message.hasOwnProperty("status")) + if (message.status != null && Object.hasOwnProperty.call(message, "status")) object.status = options.enums === String ? $root.Enterprise.UserLockStatus[message.status] === undefined ? message.status : $root.Enterprise.UserLockStatus[message.status] : message.status; - if (message.errorMessage != null && message.hasOwnProperty("errorMessage")) + if (message.errorMessage != null && Object.hasOwnProperty.call(message, "errorMessage")) object.errorMessage = message.errorMessage; return object; }; @@ -111331,19 +90503,6 @@ export const Folder = $root.Folder = (() => { return writer; }; - /** - * Encodes the specified EncryptedDataKey message, length delimited. Does not implicitly {@link Folder.EncryptedDataKey.verify|verify} messages. - * @function encodeDelimited - * @memberof Folder.EncryptedDataKey - * @static - * @param {Folder.IEncryptedDataKey} message EncryptedDataKey message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - EncryptedDataKey.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes an EncryptedDataKey message from the specified reader or buffer. * @function decode @@ -111384,54 +90543,6 @@ export const Folder = $root.Folder = (() => { return message; }; - /** - * Decodes an EncryptedDataKey message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Folder.EncryptedDataKey - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Folder.EncryptedDataKey} EncryptedDataKey - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - EncryptedDataKey.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an EncryptedDataKey message. - * @function verify - * @memberof Folder.EncryptedDataKey - * @static - * @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) { - if (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"; - if (message.encryptedKeyType != null && message.hasOwnProperty("encryptedKeyType")) - switch (message.encryptedKeyType) { - default: - return "encryptedKeyType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - break; - } - return null; - }; - /** * Creates an EncryptedDataKey message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -111443,6 +90554,8 @@ export const Folder = $root.Folder = (() => { EncryptedDataKey.fromObject = function fromObject(object, long) { if (object instanceof $root.Folder.EncryptedDataKey) return object; + if (!$util.isObject(object)) + throw TypeError(".Folder.EncryptedDataKey: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -111511,9 +90624,9 @@ export const Folder = $root.Folder = (() => { } object.encryptedKeyType = options.enums === String ? "no_key" : 0; } - if (message.encryptedKey != null && message.hasOwnProperty("encryptedKey")) + if (message.encryptedKey != null && Object.hasOwnProperty.call(message, "encryptedKey")) object.encryptedKey = options.bytes === String ? $util.base64.encode(message.encryptedKey, 0, message.encryptedKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedKey) : message.encryptedKey; - if (message.encryptedKeyType != null && message.hasOwnProperty("encryptedKeyType")) + if (message.encryptedKeyType != null && Object.hasOwnProperty.call(message, "encryptedKeyType")) object.encryptedKeyType = options.enums === String ? $root.Folder.EncryptedKeyType[message.encryptedKeyType] === undefined ? message.encryptedKeyType : $root.Folder.EncryptedKeyType[message.encryptedKeyType] : message.encryptedKeyType; return object; }; @@ -111647,19 +90760,6 @@ export const Folder = $root.Folder = (() => { return writer; }; - /** - * Encodes the specified SharedFolderRecordData message, length delimited. Does not implicitly {@link Folder.SharedFolderRecordData.verify|verify} messages. - * @function encodeDelimited - * @memberof Folder.SharedFolderRecordData - * @static - * @param {Folder.ISharedFolderRecordData} message SharedFolderRecordData message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SharedFolderRecordData.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a SharedFolderRecordData message from the specified reader or buffer. * @function decode @@ -111710,58 +90810,6 @@ export const Folder = $root.Folder = (() => { return message; }; - /** - * Decodes a SharedFolderRecordData message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Folder.SharedFolderRecordData - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Folder.SharedFolderRecordData} SharedFolderRecordData - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SharedFolderRecordData.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a SharedFolderRecordData message. - * @function verify - * @memberof Folder.SharedFolderRecordData - * @static - * @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) { - if (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.recordUid != null && message.hasOwnProperty("recordUid")) - if (!(message.recordUid && typeof message.recordUid.length === "number" || $util.isString(message.recordUid))) - return "recordUid: buffer expected"; - if (message.userId != null && message.hasOwnProperty("userId")) - if (!$util.isInteger(message.userId)) - return "userId: integer expected"; - if (message.encryptedDataKey != null && message.hasOwnProperty("encryptedDataKey")) { - 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); - if (error) - return "encryptedDataKey." + error; - } - } - return null; - }; - /** * Creates a SharedFolderRecordData message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -111773,6 +90821,8 @@ export const Folder = $root.Folder = (() => { SharedFolderRecordData.fromObject = function fromObject(object, long) { if (object instanceof $root.Folder.SharedFolderRecordData) return object; + if (!$util.isObject(object)) + throw TypeError(".Folder.SharedFolderRecordData: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -111795,7 +90845,7 @@ export const Folder = $root.Folder = (() => { throw TypeError(".Folder.SharedFolderRecordData.encryptedDataKey: array expected"); message.encryptedDataKey = []; for (let i = 0; i < object.encryptedDataKey.length; ++i) { - if (typeof object.encryptedDataKey[i] !== "object") + if (!$util.isObject(object.encryptedDataKey[i])) throw TypeError(".Folder.SharedFolderRecordData.encryptedDataKey: object expected"); message.encryptedDataKey[i] = $root.Folder.EncryptedDataKey.fromObject(object.encryptedDataKey[i], long + 1); } @@ -111839,11 +90889,11 @@ export const Folder = $root.Folder = (() => { } object.userId = 0; } - if (message.folderUid != null && message.hasOwnProperty("folderUid")) + if (message.folderUid != null && Object.hasOwnProperty.call(message, "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")) + if (message.recordUid != null && Object.hasOwnProperty.call(message, "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.userId != null && message.hasOwnProperty("userId")) + if (message.userId != null && Object.hasOwnProperty.call(message, "userId")) object.userId = message.userId; if (message.encryptedDataKey && message.encryptedDataKey.length) { object.encryptedDataKey = []; @@ -111949,19 +90999,6 @@ export const Folder = $root.Folder = (() => { return writer; }; - /** - * Encodes the specified SharedFolderRecordDataList message, length delimited. Does not implicitly {@link Folder.SharedFolderRecordDataList.verify|verify} messages. - * @function encodeDelimited - * @memberof Folder.SharedFolderRecordDataList - * @static - * @param {Folder.ISharedFolderRecordDataList} message SharedFolderRecordDataList message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SharedFolderRecordDataList.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a SharedFolderRecordDataList message from the specified reader or buffer. * @function decode @@ -112000,49 +91037,6 @@ export const Folder = $root.Folder = (() => { return message; }; - /** - * Decodes a SharedFolderRecordDataList message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Folder.SharedFolderRecordDataList - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Folder.SharedFolderRecordDataList} SharedFolderRecordDataList - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SharedFolderRecordDataList.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a SharedFolderRecordDataList message. - * @function verify - * @memberof Folder.SharedFolderRecordDataList - * @static - * @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) { - if (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); - if (error) - return "sharedFolderRecordData." + error; - } - } - return null; - }; - /** * Creates a SharedFolderRecordDataList message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -112054,6 +91048,8 @@ export const Folder = $root.Folder = (() => { SharedFolderRecordDataList.fromObject = function fromObject(object, long) { if (object instanceof $root.Folder.SharedFolderRecordDataList) return object; + if (!$util.isObject(object)) + throw TypeError(".Folder.SharedFolderRecordDataList: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -112064,7 +91060,7 @@ export const Folder = $root.Folder = (() => { throw TypeError(".Folder.SharedFolderRecordDataList.sharedFolderRecordData: array expected"); message.sharedFolderRecordData = []; for (let i = 0; i < object.sharedFolderRecordData.length; ++i) { - if (typeof object.sharedFolderRecordData[i] !== "object") + if (!$util.isObject(object.sharedFolderRecordData[i])) throw TypeError(".Folder.SharedFolderRecordDataList.sharedFolderRecordData: object expected"); message.sharedFolderRecordData[i] = $root.Folder.SharedFolderRecordData.fromObject(object.sharedFolderRecordData[i], long + 1); } @@ -112215,19 +91211,6 @@ export const Folder = $root.Folder = (() => { return writer; }; - /** - * Encodes the specified SharedFolderRecordFix message, length delimited. Does not implicitly {@link Folder.SharedFolderRecordFix.verify|verify} messages. - * @function encodeDelimited - * @memberof Folder.SharedFolderRecordFix - * @static - * @param {Folder.ISharedFolderRecordFix} message SharedFolderRecordFix message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SharedFolderRecordFix.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a SharedFolderRecordFix message from the specified reader or buffer. * @function decode @@ -112272,49 +91255,6 @@ export const Folder = $root.Folder = (() => { return message; }; - /** - * Decodes a SharedFolderRecordFix message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Folder.SharedFolderRecordFix - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Folder.SharedFolderRecordFix} SharedFolderRecordFix - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SharedFolderRecordFix.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a SharedFolderRecordFix message. - * @function verify - * @memberof Folder.SharedFolderRecordFix - * @static - * @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) { - if (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.recordUid != null && message.hasOwnProperty("recordUid")) - if (!(message.recordUid && typeof message.recordUid.length === "number" || $util.isString(message.recordUid))) - return "recordUid: buffer expected"; - if (message.encryptedRecordFolderKey != null && message.hasOwnProperty("encryptedRecordFolderKey")) - if (!(message.encryptedRecordFolderKey && typeof message.encryptedRecordFolderKey.length === "number" || $util.isString(message.encryptedRecordFolderKey))) - return "encryptedRecordFolderKey: buffer expected"; - return null; - }; - /** * Creates a SharedFolderRecordFix message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -112326,6 +91266,8 @@ export const Folder = $root.Folder = (() => { SharedFolderRecordFix.fromObject = function fromObject(object, long) { if (object instanceof $root.Folder.SharedFolderRecordFix) return object; + if (!$util.isObject(object)) + throw TypeError(".Folder.SharedFolderRecordFix: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -112389,11 +91331,11 @@ export const Folder = $root.Folder = (() => { object.encryptedRecordFolderKey = $util.newBuffer(object.encryptedRecordFolderKey); } } - if (message.folderUid != null && message.hasOwnProperty("folderUid")) + if (message.folderUid != null && Object.hasOwnProperty.call(message, "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")) + if (message.recordUid != null && Object.hasOwnProperty.call(message, "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.encryptedRecordFolderKey != null && message.hasOwnProperty("encryptedRecordFolderKey")) + if (message.encryptedRecordFolderKey != null && Object.hasOwnProperty.call(message, "encryptedRecordFolderKey")) object.encryptedRecordFolderKey = options.bytes === String ? $util.base64.encode(message.encryptedRecordFolderKey, 0, message.encryptedRecordFolderKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedRecordFolderKey) : message.encryptedRecordFolderKey; return object; }; @@ -112494,19 +91436,6 @@ export const Folder = $root.Folder = (() => { return writer; }; - /** - * Encodes the specified SharedFolderRecordFixList message, length delimited. Does not implicitly {@link Folder.SharedFolderRecordFixList.verify|verify} messages. - * @function encodeDelimited - * @memberof Folder.SharedFolderRecordFixList - * @static - * @param {Folder.ISharedFolderRecordFixList} message SharedFolderRecordFixList message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SharedFolderRecordFixList.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a SharedFolderRecordFixList message from the specified reader or buffer. * @function decode @@ -112545,49 +91474,6 @@ export const Folder = $root.Folder = (() => { return message; }; - /** - * Decodes a SharedFolderRecordFixList message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Folder.SharedFolderRecordFixList - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Folder.SharedFolderRecordFixList} SharedFolderRecordFixList - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SharedFolderRecordFixList.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a SharedFolderRecordFixList message. - * @function verify - * @memberof Folder.SharedFolderRecordFixList - * @static - * @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) { - if (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); - if (error) - return "sharedFolderRecordFix." + error; - } - } - return null; - }; - /** * Creates a SharedFolderRecordFixList message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -112599,6 +91485,8 @@ export const Folder = $root.Folder = (() => { SharedFolderRecordFixList.fromObject = function fromObject(object, long) { if (object instanceof $root.Folder.SharedFolderRecordFixList) return object; + if (!$util.isObject(object)) + throw TypeError(".Folder.SharedFolderRecordFixList: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -112609,7 +91497,7 @@ export const Folder = $root.Folder = (() => { throw TypeError(".Folder.SharedFolderRecordFixList.sharedFolderRecordFix: array expected"); message.sharedFolderRecordFix = []; for (let i = 0; i < object.sharedFolderRecordFix.length; ++i) { - if (typeof object.sharedFolderRecordFix[i] !== "object") + if (!$util.isObject(object.sharedFolderRecordFix[i])) throw TypeError(".Folder.SharedFolderRecordFixList.sharedFolderRecordFix: object expected"); message.sharedFolderRecordFix[i] = $root.Folder.SharedFolderRecordFix.fromObject(object.sharedFolderRecordFix[i], long + 1); } @@ -112853,19 +91741,6 @@ export const Folder = $root.Folder = (() => { return writer; }; - /** - * Encodes the specified RecordRequest message, length delimited. Does not implicitly {@link Folder.RecordRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof Folder.RecordRequest - * @static - * @param {Folder.IRecordRequest} message RecordRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RecordRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a RecordRequest message from the specified reader or buffer. * @function decode @@ -112949,88 +91824,6 @@ export const Folder = $root.Folder = (() => { return message; }; - /** - * Decodes a RecordRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Folder.RecordRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Folder.RecordRequest} RecordRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RecordRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a RecordRequest message. - * @function verify - * @memberof Folder.RecordRequest - * @static - * @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) { - if (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.recordType != null && message.hasOwnProperty("recordType")) - switch (message.recordType) { - default: - return "recordType: enum value expected"; - case 0: - break; - } - if (message.recordData != null && message.hasOwnProperty("recordData")) - if (!(message.recordData && typeof message.recordData.length === "number" || $util.isString(message.recordData))) - return "recordData: buffer expected"; - if (message.encryptedRecordKey != null && message.hasOwnProperty("encryptedRecordKey")) - if (!(message.encryptedRecordKey && typeof message.encryptedRecordKey.length === "number" || $util.isString(message.encryptedRecordKey))) - return "encryptedRecordKey: buffer expected"; - if (message.folderType != null && message.hasOwnProperty("folderType")) - switch (message.folderType) { - default: - return "folderType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - break; - } - if (message.howLongAgo != null && message.hasOwnProperty("howLongAgo")) - if (!$util.isInteger(message.howLongAgo) && !(message.howLongAgo && $util.isInteger(message.howLongAgo.low) && $util.isInteger(message.howLongAgo.high))) - return "howLongAgo: integer|Long 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.encryptedRecordFolderKey != null && message.hasOwnProperty("encryptedRecordFolderKey")) - if (!(message.encryptedRecordFolderKey && typeof message.encryptedRecordFolderKey.length === "number" || $util.isString(message.encryptedRecordFolderKey))) - return "encryptedRecordFolderKey: buffer expected"; - if (message.extra != null && message.hasOwnProperty("extra")) - if (!(message.extra && typeof message.extra.length === "number" || $util.isString(message.extra))) - return "extra: 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.fileIds != null && message.hasOwnProperty("fileIds")) { - if (!Array.isArray(message.fileIds)) - return "fileIds: array expected"; - for (let i = 0; i < message.fileIds.length; ++i) - if (!$util.isInteger(message.fileIds[i]) && !(message.fileIds[i] && $util.isInteger(message.fileIds[i].low) && $util.isInteger(message.fileIds[i].high))) - return "fileIds: integer|Long[] expected"; - } - return null; - }; - /** * Creates a RecordRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -113042,6 +91835,8 @@ export const Folder = $root.Folder = (() => { RecordRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.Folder.RecordRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".Folder.RecordRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -113221,30 +92016,30 @@ export const Folder = $root.Folder = (() => { object.nonSharedData = $util.newBuffer(object.nonSharedData); } } - if (message.recordUid != null && message.hasOwnProperty("recordUid")) + if (message.recordUid != null && Object.hasOwnProperty.call(message, "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.recordType != null && message.hasOwnProperty("recordType")) + if (message.recordType != null && Object.hasOwnProperty.call(message, "recordType")) object.recordType = options.enums === String ? $root.Folder.RecordType[message.recordType] === undefined ? message.recordType : $root.Folder.RecordType[message.recordType] : message.recordType; - if (message.recordData != null && message.hasOwnProperty("recordData")) + if (message.recordData != null && Object.hasOwnProperty.call(message, "recordData")) object.recordData = options.bytes === String ? $util.base64.encode(message.recordData, 0, message.recordData.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordData) : message.recordData; - if (message.encryptedRecordKey != null && message.hasOwnProperty("encryptedRecordKey")) + if (message.encryptedRecordKey != null && Object.hasOwnProperty.call(message, "encryptedRecordKey")) object.encryptedRecordKey = options.bytes === String ? $util.base64.encode(message.encryptedRecordKey, 0, message.encryptedRecordKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedRecordKey) : message.encryptedRecordKey; - if (message.folderType != null && message.hasOwnProperty("folderType")) + if (message.folderType != null && Object.hasOwnProperty.call(message, "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 (message.howLongAgo != null && Object.hasOwnProperty.call(message, "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") 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; - if (message.folderUid != null && message.hasOwnProperty("folderUid")) + if (message.folderUid != null && Object.hasOwnProperty.call(message, "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.encryptedRecordFolderKey != null && message.hasOwnProperty("encryptedRecordFolderKey")) + if (message.encryptedRecordFolderKey != null && Object.hasOwnProperty.call(message, "encryptedRecordFolderKey")) object.encryptedRecordFolderKey = options.bytes === String ? $util.base64.encode(message.encryptedRecordFolderKey, 0, message.encryptedRecordFolderKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedRecordFolderKey) : message.encryptedRecordFolderKey; - if (message.extra != null && message.hasOwnProperty("extra")) + if (message.extra != null && Object.hasOwnProperty.call(message, "extra")) object.extra = options.bytes === String ? $util.base64.encode(message.extra, 0, message.extra.length) : options.bytes === Array ? Array.prototype.slice.call(message.extra) : message.extra; - if (message.nonSharedData != null && message.hasOwnProperty("nonSharedData")) + if (message.nonSharedData != null && Object.hasOwnProperty.call(message, "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.fileIds && message.fileIds.length) { object.fileIds = []; @@ -113375,19 +92170,6 @@ export const Folder = $root.Folder = (() => { return writer; }; - /** - * Encodes the specified RecordResponse message, length delimited. Does not implicitly {@link Folder.RecordResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof Folder.RecordResponse - * @static - * @param {Folder.IRecordResponse} message RecordResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RecordResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a RecordResponse message from the specified reader or buffer. * @function decode @@ -113432,49 +92214,6 @@ export const Folder = $root.Folder = (() => { return message; }; - /** - * Decodes a RecordResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Folder.RecordResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Folder.RecordResponse} RecordResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RecordResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a RecordResponse message. - * @function verify - * @memberof Folder.RecordResponse - * @static - * @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) { - if (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.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"; - if (message.status != null && message.hasOwnProperty("status")) - if (!$util.isString(message.status)) - return "status: string expected"; - return null; - }; - /** * Creates a RecordResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -113486,6 +92225,8 @@ export const Folder = $root.Folder = (() => { RecordResponse.fromObject = function fromObject(object, long) { if (object instanceof $root.Folder.RecordResponse) return object; + if (!$util.isObject(object)) + throw TypeError(".Folder.RecordResponse: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -113542,16 +92283,16 @@ export const Folder = $root.Folder = (() => { object.revision = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; object.status = ""; } - if (message.recordUid != null && message.hasOwnProperty("recordUid")) + if (message.recordUid != null && Object.hasOwnProperty.call(message, "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 (message.revision != null && Object.hasOwnProperty.call(message, "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") 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.status != null && message.hasOwnProperty("status")) + if (message.status != null && Object.hasOwnProperty.call(message, "status")) object.status = message.status; return object; }; @@ -113694,19 +92435,6 @@ export const Folder = $root.Folder = (() => { return writer; }; - /** - * Encodes the specified SharedFolderFields message, length delimited. Does not implicitly {@link Folder.SharedFolderFields.verify|verify} messages. - * @function encodeDelimited - * @memberof Folder.SharedFolderFields - * @static - * @param {Folder.ISharedFolderFields} message SharedFolderFields message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SharedFolderFields.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a SharedFolderFields message from the specified reader or buffer. * @function decode @@ -113759,55 +92487,6 @@ export const Folder = $root.Folder = (() => { return message; }; - /** - * Decodes a SharedFolderFields message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Folder.SharedFolderFields - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Folder.SharedFolderFields} SharedFolderFields - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SharedFolderFields.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a SharedFolderFields message. - * @function verify - * @memberof Folder.SharedFolderFields - * @static - * @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) { - if (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"; - if (message.manageUsers != null && message.hasOwnProperty("manageUsers")) - if (typeof message.manageUsers !== "boolean") - return "manageUsers: boolean expected"; - if (message.manageRecords != null && message.hasOwnProperty("manageRecords")) - if (typeof message.manageRecords !== "boolean") - return "manageRecords: boolean expected"; - if (message.canEdit != null && message.hasOwnProperty("canEdit")) - if (typeof message.canEdit !== "boolean") - return "canEdit: boolean expected"; - if (message.canShare != null && message.hasOwnProperty("canShare")) - if (typeof message.canShare !== "boolean") - return "canShare: boolean expected"; - return null; - }; - /** * Creates a SharedFolderFields message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -113819,6 +92498,8 @@ export const Folder = $root.Folder = (() => { SharedFolderFields.fromObject = function fromObject(object, long) { if (object instanceof $root.Folder.SharedFolderFields) return object; + if (!$util.isObject(object)) + throw TypeError(".Folder.SharedFolderFields: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -113870,15 +92551,15 @@ export const Folder = $root.Folder = (() => { object.canEdit = false; object.canShare = false; } - if (message.encryptedFolderName != null && message.hasOwnProperty("encryptedFolderName")) + if (message.encryptedFolderName != null && Object.hasOwnProperty.call(message, "encryptedFolderName")) object.encryptedFolderName = options.bytes === String ? $util.base64.encode(message.encryptedFolderName, 0, message.encryptedFolderName.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedFolderName) : message.encryptedFolderName; - if (message.manageUsers != null && message.hasOwnProperty("manageUsers")) + if (message.manageUsers != null && Object.hasOwnProperty.call(message, "manageUsers")) object.manageUsers = message.manageUsers; - if (message.manageRecords != null && message.hasOwnProperty("manageRecords")) + if (message.manageRecords != null && Object.hasOwnProperty.call(message, "manageRecords")) object.manageRecords = message.manageRecords; - if (message.canEdit != null && message.hasOwnProperty("canEdit")) + if (message.canEdit != null && Object.hasOwnProperty.call(message, "canEdit")) object.canEdit = message.canEdit; - if (message.canShare != null && message.hasOwnProperty("canShare")) + if (message.canShare != null && Object.hasOwnProperty.call(message, "canShare")) object.canShare = message.canShare; return object; }; @@ -113977,19 +92658,6 @@ export const Folder = $root.Folder = (() => { return writer; }; - /** - * Encodes the specified SharedFolderFolderFields message, length delimited. Does not implicitly {@link Folder.SharedFolderFolderFields.verify|verify} messages. - * @function encodeDelimited - * @memberof Folder.SharedFolderFolderFields - * @static - * @param {Folder.ISharedFolderFolderFields} message SharedFolderFolderFields message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SharedFolderFolderFields.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a SharedFolderFolderFields message from the specified reader or buffer. * @function decode @@ -114026,43 +92694,6 @@ export const Folder = $root.Folder = (() => { return message; }; - /** - * Decodes a SharedFolderFolderFields message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Folder.SharedFolderFolderFields - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Folder.SharedFolderFolderFields} SharedFolderFolderFields - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SharedFolderFolderFields.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a SharedFolderFolderFields message. - * @function verify - * @memberof Folder.SharedFolderFolderFields - * @static - * @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) { - if (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"; - return null; - }; - /** * Creates a SharedFolderFolderFields message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -114074,6 +92705,8 @@ export const Folder = $root.Folder = (() => { SharedFolderFolderFields.fromObject = function fromObject(object, long) { if (object instanceof $root.Folder.SharedFolderFolderFields) return object; + if (!$util.isObject(object)) + throw TypeError(".Folder.SharedFolderFolderFields: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -114112,7 +92745,7 @@ export const Folder = $root.Folder = (() => { if (options.bytes !== Array) object.sharedFolderUid = $util.newBuffer(object.sharedFolderUid); } - if (message.sharedFolderUid != null && message.hasOwnProperty("sharedFolderUid")) + if (message.sharedFolderUid != null && Object.hasOwnProperty.call(message, "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; return object; }; @@ -114277,19 +92910,6 @@ export const Folder = $root.Folder = (() => { return writer; }; - /** - * Encodes the specified FolderRequest message, length delimited. Does not implicitly {@link Folder.FolderRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof Folder.FolderRequest - * @static - * @param {Folder.IFolderRequest} message FolderRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - FolderRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a FolderRequest message from the specified reader or buffer. * @function decode @@ -114350,72 +92970,6 @@ export const Folder = $root.Folder = (() => { return message; }; - /** - * Decodes a FolderRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Folder.FolderRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Folder.FolderRequest} FolderRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - FolderRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a FolderRequest message. - * @function verify - * @memberof Folder.FolderRequest - * @static - * @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) { - if (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.folderType != null && message.hasOwnProperty("folderType")) - switch (message.folderType) { - default: - return "folderType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - break; - } - if (message.parentFolderUid != null && message.hasOwnProperty("parentFolderUid")) - if (!(message.parentFolderUid && typeof message.parentFolderUid.length === "number" || $util.isString(message.parentFolderUid))) - return "parentFolderUid: buffer expected"; - if (message.folderData != null && message.hasOwnProperty("folderData")) - if (!(message.folderData && typeof message.folderData.length === "number" || $util.isString(message.folderData))) - return "folderData: buffer expected"; - if (message.encryptedFolderKey != null && message.hasOwnProperty("encryptedFolderKey")) - 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); - if (error) - return "sharedFolderFields." + error; - } - if (message.sharedFolderFolderFields != null && message.hasOwnProperty("sharedFolderFolderFields")) { - let error = $root.Folder.SharedFolderFolderFields.verify(message.sharedFolderFolderFields, long + 1); - if (error) - return "sharedFolderFolderFields." + error; - } - return null; - }; - /** * Creates a FolderRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -114427,6 +92981,8 @@ export const Folder = $root.Folder = (() => { FolderRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.Folder.FolderRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".Folder.FolderRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -114477,12 +93033,12 @@ export const Folder = $root.Folder = (() => { else if (object.encryptedFolderKey.length >= 0) message.encryptedFolderKey = object.encryptedFolderKey; if (object.sharedFolderFields != null) { - if (typeof object.sharedFolderFields !== "object") + if (!$util.isObject(object.sharedFolderFields)) throw TypeError(".Folder.FolderRequest.sharedFolderFields: object expected"); message.sharedFolderFields = $root.Folder.SharedFolderFields.fromObject(object.sharedFolderFields, long + 1); } if (object.sharedFolderFolderFields != null) { - if (typeof object.sharedFolderFolderFields !== "object") + if (!$util.isObject(object.sharedFolderFolderFields)) throw TypeError(".Folder.FolderRequest.sharedFolderFolderFields: object expected"); message.sharedFolderFolderFields = $root.Folder.SharedFolderFolderFields.fromObject(object.sharedFolderFolderFields, long + 1); } @@ -114539,19 +93095,19 @@ export const Folder = $root.Folder = (() => { object.sharedFolderFields = null; object.sharedFolderFolderFields = null; } - if (message.folderUid != null && message.hasOwnProperty("folderUid")) + if (message.folderUid != null && Object.hasOwnProperty.call(message, "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.folderType != null && message.hasOwnProperty("folderType")) + if (message.folderType != null && Object.hasOwnProperty.call(message, "folderType")) object.folderType = options.enums === String ? $root.Folder.FolderType[message.folderType] === undefined ? message.folderType : $root.Folder.FolderType[message.folderType] : message.folderType; - if (message.parentFolderUid != null && message.hasOwnProperty("parentFolderUid")) + if (message.parentFolderUid != null && Object.hasOwnProperty.call(message, "parentFolderUid")) object.parentFolderUid = options.bytes === String ? $util.base64.encode(message.parentFolderUid, 0, message.parentFolderUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.parentFolderUid) : message.parentFolderUid; - if (message.folderData != null && message.hasOwnProperty("folderData")) + if (message.folderData != null && Object.hasOwnProperty.call(message, "folderData")) object.folderData = options.bytes === String ? $util.base64.encode(message.folderData, 0, message.folderData.length) : options.bytes === Array ? Array.prototype.slice.call(message.folderData) : message.folderData; - if (message.encryptedFolderKey != null && message.hasOwnProperty("encryptedFolderKey")) + if (message.encryptedFolderKey != null && Object.hasOwnProperty.call(message, "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")) + if (message.sharedFolderFields != null && Object.hasOwnProperty.call(message, "sharedFolderFields")) object.sharedFolderFields = $root.Folder.SharedFolderFields.toObject(message.sharedFolderFields, options, q + 1); - if (message.sharedFolderFolderFields != null && message.hasOwnProperty("sharedFolderFolderFields")) + if (message.sharedFolderFolderFields != null && Object.hasOwnProperty.call(message, "sharedFolderFolderFields")) object.sharedFolderFolderFields = $root.Folder.SharedFolderFolderFields.toObject(message.sharedFolderFolderFields, options, q + 1); return object; }; @@ -114672,19 +93228,6 @@ export const Folder = $root.Folder = (() => { return writer; }; - /** - * Encodes the specified FolderResponse message, length delimited. Does not implicitly {@link Folder.FolderResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof Folder.FolderResponse - * @static - * @param {Folder.IFolderResponse} message FolderResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - FolderResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a FolderResponse message from the specified reader or buffer. * @function decode @@ -114729,49 +93272,6 @@ export const Folder = $root.Folder = (() => { return message; }; - /** - * Decodes a FolderResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Folder.FolderResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Folder.FolderResponse} FolderResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - FolderResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a FolderResponse message. - * @function verify - * @memberof Folder.FolderResponse - * @static - * @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) { - if (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.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"; - if (message.status != null && message.hasOwnProperty("status")) - if (!$util.isString(message.status)) - return "status: string expected"; - return null; - }; - /** * Creates a FolderResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -114783,6 +93283,8 @@ export const Folder = $root.Folder = (() => { FolderResponse.fromObject = function fromObject(object, long) { if (object instanceof $root.Folder.FolderResponse) return object; + if (!$util.isObject(object)) + throw TypeError(".Folder.FolderResponse: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -114839,16 +93341,16 @@ export const Folder = $root.Folder = (() => { object.revision = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; object.status = ""; } - if (message.folderUid != null && message.hasOwnProperty("folderUid")) + if (message.folderUid != null && Object.hasOwnProperty.call(message, "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 (message.revision != null && Object.hasOwnProperty.call(message, "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") 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.status != null && message.hasOwnProperty("status")) + if (message.status != null && Object.hasOwnProperty.call(message, "status")) object.status = message.status; return object; }; @@ -114962,19 +93464,6 @@ export const Folder = $root.Folder = (() => { return writer; }; - /** - * Encodes the specified ImportFolderRecordRequest message, length delimited. Does not implicitly {@link Folder.ImportFolderRecordRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof Folder.ImportFolderRecordRequest - * @static - * @param {Folder.IImportFolderRecordRequest} message ImportFolderRecordRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ImportFolderRecordRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes an ImportFolderRecordRequest message from the specified reader or buffer. * @function decode @@ -115019,58 +93508,6 @@ export const Folder = $root.Folder = (() => { return message; }; - /** - * Decodes an ImportFolderRecordRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Folder.ImportFolderRecordRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Folder.ImportFolderRecordRequest} ImportFolderRecordRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ImportFolderRecordRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an ImportFolderRecordRequest message. - * @function verify - * @memberof Folder.ImportFolderRecordRequest - * @static - * @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) { - if (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); - if (error) - return "folderRequest." + error; - } - } - if (message.recordRequest != null && message.hasOwnProperty("recordRequest")) { - 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); - if (error) - return "recordRequest." + error; - } - } - return null; - }; - /** * Creates an ImportFolderRecordRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -115082,6 +93519,8 @@ export const Folder = $root.Folder = (() => { ImportFolderRecordRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.Folder.ImportFolderRecordRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".Folder.ImportFolderRecordRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -115092,7 +93531,7 @@ export const Folder = $root.Folder = (() => { throw TypeError(".Folder.ImportFolderRecordRequest.folderRequest: array expected"); message.folderRequest = []; for (let i = 0; i < object.folderRequest.length; ++i) { - if (typeof object.folderRequest[i] !== "object") + if (!$util.isObject(object.folderRequest[i])) throw TypeError(".Folder.ImportFolderRecordRequest.folderRequest: object expected"); message.folderRequest[i] = $root.Folder.FolderRequest.fromObject(object.folderRequest[i], long + 1); } @@ -115102,7 +93541,7 @@ export const Folder = $root.Folder = (() => { throw TypeError(".Folder.ImportFolderRecordRequest.recordRequest: array expected"); message.recordRequest = []; for (let i = 0; i < object.recordRequest.length; ++i) { - if (typeof object.recordRequest[i] !== "object") + if (!$util.isObject(object.recordRequest[i])) throw TypeError(".Folder.ImportFolderRecordRequest.recordRequest: object expected"); message.recordRequest[i] = $root.Folder.RecordRequest.fromObject(object.recordRequest[i], long + 1); } @@ -115253,19 +93692,6 @@ export const Folder = $root.Folder = (() => { return writer; }; - /** - * Encodes the specified ImportFolderRecordResponse message, length delimited. Does not implicitly {@link Folder.ImportFolderRecordResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof Folder.ImportFolderRecordResponse - * @static - * @param {Folder.IImportFolderRecordResponse} message ImportFolderRecordResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ImportFolderRecordResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes an ImportFolderRecordResponse message from the specified reader or buffer. * @function decode @@ -115310,58 +93736,6 @@ export const Folder = $root.Folder = (() => { return message; }; - /** - * Decodes an ImportFolderRecordResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Folder.ImportFolderRecordResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Folder.ImportFolderRecordResponse} ImportFolderRecordResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ImportFolderRecordResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an ImportFolderRecordResponse message. - * @function verify - * @memberof Folder.ImportFolderRecordResponse - * @static - * @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) { - if (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); - if (error) - return "folderResponse." + error; - } - } - if (message.recordResponse != null && message.hasOwnProperty("recordResponse")) { - 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); - if (error) - return "recordResponse." + error; - } - } - return null; - }; - /** * Creates an ImportFolderRecordResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -115373,6 +93747,8 @@ export const Folder = $root.Folder = (() => { ImportFolderRecordResponse.fromObject = function fromObject(object, long) { if (object instanceof $root.Folder.ImportFolderRecordResponse) return object; + if (!$util.isObject(object)) + throw TypeError(".Folder.ImportFolderRecordResponse: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -115383,7 +93759,7 @@ export const Folder = $root.Folder = (() => { throw TypeError(".Folder.ImportFolderRecordResponse.folderResponse: array expected"); message.folderResponse = []; for (let i = 0; i < object.folderResponse.length; ++i) { - if (typeof object.folderResponse[i] !== "object") + if (!$util.isObject(object.folderResponse[i])) throw TypeError(".Folder.ImportFolderRecordResponse.folderResponse: object expected"); message.folderResponse[i] = $root.Folder.FolderResponse.fromObject(object.folderResponse[i], long + 1); } @@ -115393,7 +93769,7 @@ export const Folder = $root.Folder = (() => { throw TypeError(".Folder.ImportFolderRecordResponse.recordResponse: array expected"); message.recordResponse = []; for (let i = 0; i < object.recordResponse.length; ++i) { - if (typeof object.recordResponse[i] !== "object") + if (!$util.isObject(object.recordResponse[i])) throw TypeError(".Folder.ImportFolderRecordResponse.recordResponse: object expected"); message.recordResponse[i] = $root.Folder.RecordResponse.fromObject(object.recordResponse[i], long + 1); } @@ -115644,19 +94020,6 @@ export const Folder = $root.Folder = (() => { return writer; }; - /** - * Encodes the specified SharedFolderUpdateRecord message, length delimited. Does not implicitly {@link Folder.SharedFolderUpdateRecord.verify|verify} messages. - * @function encodeDelimited - * @memberof Folder.SharedFolderUpdateRecord - * @static - * @param {Folder.ISharedFolderUpdateRecord} message SharedFolderUpdateRecord message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SharedFolderUpdateRecord.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a SharedFolderUpdateRecord message from the specified reader or buffer. * @function decode @@ -115729,88 +94092,6 @@ export const Folder = $root.Folder = (() => { return message; }; - /** - * Decodes a SharedFolderUpdateRecord message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Folder.SharedFolderUpdateRecord - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Folder.SharedFolderUpdateRecord} SharedFolderUpdateRecord - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SharedFolderUpdateRecord.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a SharedFolderUpdateRecord message. - * @function verify - * @memberof Folder.SharedFolderUpdateRecord - * @static - * @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) { - if (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.sharedFolderUid != null && message.hasOwnProperty("sharedFolderUid")) - if (!(message.sharedFolderUid && typeof message.sharedFolderUid.length === "number" || $util.isString(message.sharedFolderUid))) - return "sharedFolderUid: buffer expected"; - if (message.teamUid != null && message.hasOwnProperty("teamUid")) - if (!(message.teamUid && typeof message.teamUid.length === "number" || $util.isString(message.teamUid))) - return "teamUid: buffer expected"; - if (message.canEdit != null && message.hasOwnProperty("canEdit")) - switch (message.canEdit) { - default: - return "canEdit: enum value expected"; - case 0: - case 1: - case 2: - break; - } - if (message.canShare != null && message.hasOwnProperty("canShare")) - switch (message.canShare) { - default: - return "canShare: enum value expected"; - case 0: - case 1: - case 2: - break; - } - if (message.encryptedRecordKey != null && message.hasOwnProperty("encryptedRecordKey")) - if (!(message.encryptedRecordKey && typeof message.encryptedRecordKey.length === "number" || $util.isString(message.encryptedRecordKey))) - return "encryptedRecordKey: buffer expected"; - if (message.revision != null && message.hasOwnProperty("revision")) - if (!$util.isInteger(message.revision)) - return "revision: integer expected"; - 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"; - if (message.timerNotificationType != null && message.hasOwnProperty("timerNotificationType")) - switch (message.timerNotificationType) { - default: - return "timerNotificationType: enum value expected"; - case 0: - case 1: - case 2: - break; - } - if (message.rotateOnExpiration != null && message.hasOwnProperty("rotateOnExpiration")) - if (typeof message.rotateOnExpiration !== "boolean") - return "rotateOnExpiration: boolean expected"; - return null; - }; - /** * Creates a SharedFolderUpdateRecord message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -115822,6 +94103,8 @@ export const Folder = $root.Folder = (() => { SharedFolderUpdateRecord.fromObject = function fromObject(object, long) { if (object instanceof $root.Folder.SharedFolderUpdateRecord) return object; + if (!$util.isObject(object)) + throw TypeError(".Folder.SharedFolderUpdateRecord: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -115980,30 +94263,30 @@ export const Folder = $root.Folder = (() => { object.timerNotificationType = options.enums === String ? "NOTIFICATION_OFF" : 0; object.rotateOnExpiration = false; } - if (message.recordUid != null && message.hasOwnProperty("recordUid")) + if (message.recordUid != null && Object.hasOwnProperty.call(message, "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.sharedFolderUid != null && message.hasOwnProperty("sharedFolderUid")) + if (message.sharedFolderUid != null && Object.hasOwnProperty.call(message, "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")) + if (message.teamUid != null && Object.hasOwnProperty.call(message, "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.canEdit != null && message.hasOwnProperty("canEdit")) + if (message.canEdit != null && Object.hasOwnProperty.call(message, "canEdit")) object.canEdit = options.enums === String ? $root.Folder.SetBooleanValue[message.canEdit] === undefined ? message.canEdit : $root.Folder.SetBooleanValue[message.canEdit] : message.canEdit; - if (message.canShare != null && message.hasOwnProperty("canShare")) + if (message.canShare != null && Object.hasOwnProperty.call(message, "canShare")) object.canShare = options.enums === String ? $root.Folder.SetBooleanValue[message.canShare] === undefined ? message.canShare : $root.Folder.SetBooleanValue[message.canShare] : message.canShare; - if (message.encryptedRecordKey != null && message.hasOwnProperty("encryptedRecordKey")) + if (message.encryptedRecordKey != null && Object.hasOwnProperty.call(message, "encryptedRecordKey")) object.encryptedRecordKey = options.bytes === String ? $util.base64.encode(message.encryptedRecordKey, 0, message.encryptedRecordKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedRecordKey) : message.encryptedRecordKey; - if (message.revision != null && message.hasOwnProperty("revision")) + if (message.revision != null && Object.hasOwnProperty.call(message, "revision")) object.revision = message.revision; - if (message.expiration != null && message.hasOwnProperty("expiration")) + if (message.expiration != null && Object.hasOwnProperty.call(message, "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") 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")) + if (message.timerNotificationType != null && Object.hasOwnProperty.call(message, "timerNotificationType")) object.timerNotificationType = options.enums === String ? $root.Records.TimerNotificationType[message.timerNotificationType] === undefined ? message.timerNotificationType : $root.Records.TimerNotificationType[message.timerNotificationType] : message.timerNotificationType; - if (message.rotateOnExpiration != null && message.hasOwnProperty("rotateOnExpiration")) + if (message.rotateOnExpiration != null && Object.hasOwnProperty.call(message, "rotateOnExpiration")) object.rotateOnExpiration = message.rotateOnExpiration; return object; }; @@ -116179,19 +94462,6 @@ export const Folder = $root.Folder = (() => { return writer; }; - /** - * Encodes the specified SharedFolderUpdateUser message, length delimited. Does not implicitly {@link Folder.SharedFolderUpdateUser.verify|verify} messages. - * @function encodeDelimited - * @memberof Folder.SharedFolderUpdateUser - * @static - * @param {Folder.ISharedFolderUpdateUser} message SharedFolderUpdateUser message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SharedFolderUpdateUser.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a SharedFolderUpdateUser message from the specified reader or buffer. * @function decode @@ -116256,84 +94526,6 @@ export const Folder = $root.Folder = (() => { return message; }; - /** - * Decodes a SharedFolderUpdateUser message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Folder.SharedFolderUpdateUser - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Folder.SharedFolderUpdateUser} SharedFolderUpdateUser - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SharedFolderUpdateUser.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a SharedFolderUpdateUser message. - * @function verify - * @memberof Folder.SharedFolderUpdateUser - * @static - * @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) { - if (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"; - if (message.manageUsers != null && message.hasOwnProperty("manageUsers")) - switch (message.manageUsers) { - default: - return "manageUsers: enum value expected"; - case 0: - case 1: - case 2: - break; - } - if (message.manageRecords != null && message.hasOwnProperty("manageRecords")) - switch (message.manageRecords) { - default: - return "manageRecords: enum value expected"; - case 0: - case 1: - case 2: - break; - } - if (message.sharedFolderKey != null && message.hasOwnProperty("sharedFolderKey")) - if (!(message.sharedFolderKey && typeof message.sharedFolderKey.length === "number" || $util.isString(message.sharedFolderKey))) - return "sharedFolderKey: buffer expected"; - 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"; - if (message.timerNotificationType != null && message.hasOwnProperty("timerNotificationType")) - switch (message.timerNotificationType) { - default: - return "timerNotificationType: enum value expected"; - case 0: - case 1: - case 2: - break; - } - if (message.typedSharedFolderKey != null && message.hasOwnProperty("typedSharedFolderKey")) { - let error = $root.Folder.EncryptedDataKey.verify(message.typedSharedFolderKey, long + 1); - if (error) - return "typedSharedFolderKey." + error; - } - if (message.rotateOnExpiration != null && message.hasOwnProperty("rotateOnExpiration")) - if (typeof message.rotateOnExpiration !== "boolean") - return "rotateOnExpiration: boolean expected"; - return null; - }; - /** * Creates a SharedFolderUpdateUser message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -116345,6 +94537,8 @@ export const Folder = $root.Folder = (() => { SharedFolderUpdateUser.fromObject = function fromObject(object, long) { if (object instanceof $root.Folder.SharedFolderUpdateUser) return object; + if (!$util.isObject(object)) + throw TypeError(".Folder.SharedFolderUpdateUser: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -116427,7 +94621,7 @@ export const Folder = $root.Folder = (() => { break; } if (object.typedSharedFolderKey != null) { - if (typeof object.typedSharedFolderKey !== "object") + if (!$util.isObject(object.typedSharedFolderKey)) throw TypeError(".Folder.SharedFolderUpdateUser.typedSharedFolderKey: object expected"); message.typedSharedFolderKey = $root.Folder.EncryptedDataKey.fromObject(object.typedSharedFolderKey, long + 1); } @@ -116473,26 +94667,26 @@ export const Folder = $root.Folder = (() => { object.typedSharedFolderKey = null; object.rotateOnExpiration = false; } - if (message.username != null && message.hasOwnProperty("username")) + if (message.username != null && Object.hasOwnProperty.call(message, "username")) object.username = message.username; - if (message.manageUsers != null && message.hasOwnProperty("manageUsers")) + if (message.manageUsers != null && Object.hasOwnProperty.call(message, "manageUsers")) object.manageUsers = options.enums === String ? $root.Folder.SetBooleanValue[message.manageUsers] === undefined ? message.manageUsers : $root.Folder.SetBooleanValue[message.manageUsers] : message.manageUsers; - if (message.manageRecords != null && message.hasOwnProperty("manageRecords")) + if (message.manageRecords != null && Object.hasOwnProperty.call(message, "manageRecords")) object.manageRecords = options.enums === String ? $root.Folder.SetBooleanValue[message.manageRecords] === undefined ? message.manageRecords : $root.Folder.SetBooleanValue[message.manageRecords] : message.manageRecords; - if (message.sharedFolderKey != null && message.hasOwnProperty("sharedFolderKey")) + if (message.sharedFolderKey != null && Object.hasOwnProperty.call(message, "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 (message.expiration != null && Object.hasOwnProperty.call(message, "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") 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")) + if (message.timerNotificationType != null && Object.hasOwnProperty.call(message, "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")) + if (message.typedSharedFolderKey != null && Object.hasOwnProperty.call(message, "typedSharedFolderKey")) object.typedSharedFolderKey = $root.Folder.EncryptedDataKey.toObject(message.typedSharedFolderKey, options, q + 1); - if (message.rotateOnExpiration != null && message.hasOwnProperty("rotateOnExpiration")) + if (message.rotateOnExpiration != null && Object.hasOwnProperty.call(message, "rotateOnExpiration")) object.rotateOnExpiration = message.rotateOnExpiration; return object; }; @@ -116668,19 +94862,6 @@ export const Folder = $root.Folder = (() => { return writer; }; - /** - * Encodes the specified SharedFolderUpdateTeam message, length delimited. Does not implicitly {@link Folder.SharedFolderUpdateTeam.verify|verify} messages. - * @function encodeDelimited - * @memberof Folder.SharedFolderUpdateTeam - * @static - * @param {Folder.ISharedFolderUpdateTeam} message SharedFolderUpdateTeam message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SharedFolderUpdateTeam.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a SharedFolderUpdateTeam message from the specified reader or buffer. * @function decode @@ -116745,72 +94926,6 @@ export const Folder = $root.Folder = (() => { return message; }; - /** - * Decodes a SharedFolderUpdateTeam message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Folder.SharedFolderUpdateTeam - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Folder.SharedFolderUpdateTeam} SharedFolderUpdateTeam - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SharedFolderUpdateTeam.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a SharedFolderUpdateTeam message. - * @function verify - * @memberof Folder.SharedFolderUpdateTeam - * @static - * @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) { - if (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"; - if (message.manageUsers != null && message.hasOwnProperty("manageUsers")) - if (typeof message.manageUsers !== "boolean") - return "manageUsers: boolean expected"; - if (message.manageRecords != null && message.hasOwnProperty("manageRecords")) - if (typeof message.manageRecords !== "boolean") - return "manageRecords: boolean expected"; - if (message.sharedFolderKey != null && message.hasOwnProperty("sharedFolderKey")) - if (!(message.sharedFolderKey && typeof message.sharedFolderKey.length === "number" || $util.isString(message.sharedFolderKey))) - return "sharedFolderKey: buffer expected"; - 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"; - if (message.timerNotificationType != null && message.hasOwnProperty("timerNotificationType")) - switch (message.timerNotificationType) { - default: - return "timerNotificationType: enum value expected"; - case 0: - case 1: - case 2: - break; - } - if (message.typedSharedFolderKey != null && message.hasOwnProperty("typedSharedFolderKey")) { - let error = $root.Folder.EncryptedDataKey.verify(message.typedSharedFolderKey, long + 1); - if (error) - return "typedSharedFolderKey." + error; - } - if (message.rotateOnExpiration != null && message.hasOwnProperty("rotateOnExpiration")) - if (typeof message.rotateOnExpiration !== "boolean") - return "rotateOnExpiration: boolean expected"; - return null; - }; - /** * Creates a SharedFolderUpdateTeam message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -116822,6 +94937,8 @@ export const Folder = $root.Folder = (() => { SharedFolderUpdateTeam.fromObject = function fromObject(object, long) { if (object instanceof $root.Folder.SharedFolderUpdateTeam) return object; + if (!$util.isObject(object)) + throw TypeError(".Folder.SharedFolderUpdateTeam: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -116871,7 +94988,7 @@ export const Folder = $root.Folder = (() => { break; } if (object.typedSharedFolderKey != null) { - if (typeof object.typedSharedFolderKey !== "object") + if (!$util.isObject(object.typedSharedFolderKey)) throw TypeError(".Folder.SharedFolderUpdateTeam.typedSharedFolderKey: object expected"); message.typedSharedFolderKey = $root.Folder.EncryptedDataKey.fromObject(object.typedSharedFolderKey, long + 1); } @@ -116923,26 +95040,26 @@ export const Folder = $root.Folder = (() => { object.typedSharedFolderKey = null; object.rotateOnExpiration = false; } - if (message.teamUid != null && message.hasOwnProperty("teamUid")) + if (message.teamUid != null && Object.hasOwnProperty.call(message, "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.manageUsers != null && message.hasOwnProperty("manageUsers")) + if (message.manageUsers != null && Object.hasOwnProperty.call(message, "manageUsers")) object.manageUsers = message.manageUsers; - if (message.manageRecords != null && message.hasOwnProperty("manageRecords")) + if (message.manageRecords != null && Object.hasOwnProperty.call(message, "manageRecords")) object.manageRecords = message.manageRecords; - if (message.sharedFolderKey != null && message.hasOwnProperty("sharedFolderKey")) + if (message.sharedFolderKey != null && Object.hasOwnProperty.call(message, "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 (message.expiration != null && Object.hasOwnProperty.call(message, "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") 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")) + if (message.timerNotificationType != null && Object.hasOwnProperty.call(message, "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")) + if (message.typedSharedFolderKey != null && Object.hasOwnProperty.call(message, "typedSharedFolderKey")) object.typedSharedFolderKey = $root.Folder.EncryptedDataKey.toObject(message.typedSharedFolderKey, options, q + 1); - if (message.rotateOnExpiration != null && message.hasOwnProperty("rotateOnExpiration")) + if (message.rotateOnExpiration != null && Object.hasOwnProperty.call(message, "rotateOnExpiration")) object.rotateOnExpiration = message.rotateOnExpiration; return object; }; @@ -117268,19 +95385,6 @@ export const Folder = $root.Folder = (() => { return writer; }; - /** - * Encodes the specified SharedFolderUpdateV3Request message, length delimited. Does not implicitly {@link Folder.SharedFolderUpdateV3Request.verify|verify} messages. - * @function encodeDelimited - * @memberof Folder.SharedFolderUpdateV3Request - * @static - * @param {Folder.ISharedFolderUpdateV3Request} message SharedFolderUpdateV3Request message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SharedFolderUpdateV3Request.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a SharedFolderUpdateV3Request message from the specified reader or buffer. * @function decode @@ -117411,172 +95515,6 @@ export const Folder = $root.Folder = (() => { return message; }; - /** - * Decodes a SharedFolderUpdateV3Request message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Folder.SharedFolderUpdateV3Request - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Folder.SharedFolderUpdateV3Request} SharedFolderUpdateV3Request - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SharedFolderUpdateV3Request.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a SharedFolderUpdateV3Request message. - * @function verify - * @memberof Folder.SharedFolderUpdateV3Request - * @static - * @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) { - if (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"; - if (message.sharedFolderUid != null && message.hasOwnProperty("sharedFolderUid")) - if (!(message.sharedFolderUid && typeof message.sharedFolderUid.length === "number" || $util.isString(message.sharedFolderUid))) - return "sharedFolderUid: buffer expected"; - if (message.encryptedSharedFolderName != null && message.hasOwnProperty("encryptedSharedFolderName")) - if (!(message.encryptedSharedFolderName && typeof message.encryptedSharedFolderName.length === "number" || $util.isString(message.encryptedSharedFolderName))) - return "encryptedSharedFolderName: buffer expected"; - 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"; - if (message.forceUpdate != null && message.hasOwnProperty("forceUpdate")) - if (typeof message.forceUpdate !== "boolean") - return "forceUpdate: boolean expected"; - if (message.fromTeamUid != null && message.hasOwnProperty("fromTeamUid")) - if (!(message.fromTeamUid && typeof message.fromTeamUid.length === "number" || $util.isString(message.fromTeamUid))) - return "fromTeamUid: buffer expected"; - if (message.defaultManageUsers != null && message.hasOwnProperty("defaultManageUsers")) - switch (message.defaultManageUsers) { - default: - return "defaultManageUsers: enum value expected"; - case 0: - case 1: - case 2: - break; - } - if (message.defaultManageRecords != null && message.hasOwnProperty("defaultManageRecords")) - switch (message.defaultManageRecords) { - default: - return "defaultManageRecords: enum value expected"; - case 0: - case 1: - case 2: - break; - } - if (message.defaultCanEdit != null && message.hasOwnProperty("defaultCanEdit")) - switch (message.defaultCanEdit) { - default: - return "defaultCanEdit: enum value expected"; - case 0: - case 1: - case 2: - break; - } - if (message.defaultCanShare != null && message.hasOwnProperty("defaultCanShare")) - switch (message.defaultCanShare) { - default: - return "defaultCanShare: enum value expected"; - case 0: - case 1: - case 2: - break; - } - if (message.sharedFolderAddRecord != null && message.hasOwnProperty("sharedFolderAddRecord")) { - 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); - if (error) - return "sharedFolderAddRecord." + error; - } - } - if (message.sharedFolderAddUser != null && message.hasOwnProperty("sharedFolderAddUser")) { - 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); - if (error) - return "sharedFolderAddUser." + error; - } - } - if (message.sharedFolderAddTeam != null && message.hasOwnProperty("sharedFolderAddTeam")) { - 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); - if (error) - return "sharedFolderAddTeam." + error; - } - } - if (message.sharedFolderUpdateRecord != null && message.hasOwnProperty("sharedFolderUpdateRecord")) { - 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); - if (error) - return "sharedFolderUpdateRecord." + error; - } - } - if (message.sharedFolderUpdateUser != null && message.hasOwnProperty("sharedFolderUpdateUser")) { - 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); - if (error) - return "sharedFolderUpdateUser." + error; - } - } - if (message.sharedFolderUpdateTeam != null && message.hasOwnProperty("sharedFolderUpdateTeam")) { - 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); - if (error) - return "sharedFolderUpdateTeam." + error; - } - } - if (message.sharedFolderRemoveRecord != null && message.hasOwnProperty("sharedFolderRemoveRecord")) { - if (!Array.isArray(message.sharedFolderRemoveRecord)) - return "sharedFolderRemoveRecord: array expected"; - for (let i = 0; i < message.sharedFolderRemoveRecord.length; ++i) - if (!(message.sharedFolderRemoveRecord[i] && typeof message.sharedFolderRemoveRecord[i].length === "number" || $util.isString(message.sharedFolderRemoveRecord[i]))) - return "sharedFolderRemoveRecord: buffer[] expected"; - } - if (message.sharedFolderRemoveUser != null && message.hasOwnProperty("sharedFolderRemoveUser")) { - if (!Array.isArray(message.sharedFolderRemoveUser)) - return "sharedFolderRemoveUser: array expected"; - for (let i = 0; i < message.sharedFolderRemoveUser.length; ++i) - if (!$util.isString(message.sharedFolderRemoveUser[i])) - return "sharedFolderRemoveUser: string[] expected"; - } - if (message.sharedFolderRemoveTeam != null && message.hasOwnProperty("sharedFolderRemoveTeam")) { - if (!Array.isArray(message.sharedFolderRemoveTeam)) - return "sharedFolderRemoveTeam: array expected"; - for (let i = 0; i < message.sharedFolderRemoveTeam.length; ++i) - if (!(message.sharedFolderRemoveTeam[i] && typeof message.sharedFolderRemoveTeam[i].length === "number" || $util.isString(message.sharedFolderRemoveTeam[i]))) - return "sharedFolderRemoveTeam: buffer[] expected"; - } - if (message.sharedFolderOwner != null && message.hasOwnProperty("sharedFolderOwner")) - if (!$util.isString(message.sharedFolderOwner)) - return "sharedFolderOwner: string expected"; - return null; - }; - /** * Creates a SharedFolderUpdateV3Request message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -117588,6 +95526,8 @@ export const Folder = $root.Folder = (() => { SharedFolderUpdateV3Request.fromObject = function fromObject(object, long) { if (object instanceof $root.Folder.SharedFolderUpdateV3Request) return object; + if (!$util.isObject(object)) + throw TypeError(".Folder.SharedFolderUpdateV3Request: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -117706,7 +95646,7 @@ export const Folder = $root.Folder = (() => { throw TypeError(".Folder.SharedFolderUpdateV3Request.sharedFolderAddRecord: array expected"); message.sharedFolderAddRecord = []; for (let i = 0; i < object.sharedFolderAddRecord.length; ++i) { - if (typeof object.sharedFolderAddRecord[i] !== "object") + if (!$util.isObject(object.sharedFolderAddRecord[i])) throw TypeError(".Folder.SharedFolderUpdateV3Request.sharedFolderAddRecord: object expected"); message.sharedFolderAddRecord[i] = $root.Folder.SharedFolderUpdateRecord.fromObject(object.sharedFolderAddRecord[i], long + 1); } @@ -117716,7 +95656,7 @@ export const Folder = $root.Folder = (() => { throw TypeError(".Folder.SharedFolderUpdateV3Request.sharedFolderAddUser: array expected"); message.sharedFolderAddUser = []; for (let i = 0; i < object.sharedFolderAddUser.length; ++i) { - if (typeof object.sharedFolderAddUser[i] !== "object") + if (!$util.isObject(object.sharedFolderAddUser[i])) throw TypeError(".Folder.SharedFolderUpdateV3Request.sharedFolderAddUser: object expected"); message.sharedFolderAddUser[i] = $root.Folder.SharedFolderUpdateUser.fromObject(object.sharedFolderAddUser[i], long + 1); } @@ -117726,7 +95666,7 @@ export const Folder = $root.Folder = (() => { throw TypeError(".Folder.SharedFolderUpdateV3Request.sharedFolderAddTeam: array expected"); message.sharedFolderAddTeam = []; for (let i = 0; i < object.sharedFolderAddTeam.length; ++i) { - if (typeof object.sharedFolderAddTeam[i] !== "object") + if (!$util.isObject(object.sharedFolderAddTeam[i])) throw TypeError(".Folder.SharedFolderUpdateV3Request.sharedFolderAddTeam: object expected"); message.sharedFolderAddTeam[i] = $root.Folder.SharedFolderUpdateTeam.fromObject(object.sharedFolderAddTeam[i], long + 1); } @@ -117736,7 +95676,7 @@ export const Folder = $root.Folder = (() => { throw TypeError(".Folder.SharedFolderUpdateV3Request.sharedFolderUpdateRecord: array expected"); message.sharedFolderUpdateRecord = []; for (let i = 0; i < object.sharedFolderUpdateRecord.length; ++i) { - if (typeof object.sharedFolderUpdateRecord[i] !== "object") + if (!$util.isObject(object.sharedFolderUpdateRecord[i])) throw TypeError(".Folder.SharedFolderUpdateV3Request.sharedFolderUpdateRecord: object expected"); message.sharedFolderUpdateRecord[i] = $root.Folder.SharedFolderUpdateRecord.fromObject(object.sharedFolderUpdateRecord[i], long + 1); } @@ -117746,7 +95686,7 @@ export const Folder = $root.Folder = (() => { throw TypeError(".Folder.SharedFolderUpdateV3Request.sharedFolderUpdateUser: array expected"); message.sharedFolderUpdateUser = []; for (let i = 0; i < object.sharedFolderUpdateUser.length; ++i) { - if (typeof object.sharedFolderUpdateUser[i] !== "object") + if (!$util.isObject(object.sharedFolderUpdateUser[i])) throw TypeError(".Folder.SharedFolderUpdateV3Request.sharedFolderUpdateUser: object expected"); message.sharedFolderUpdateUser[i] = $root.Folder.SharedFolderUpdateUser.fromObject(object.sharedFolderUpdateUser[i], long + 1); } @@ -117756,7 +95696,7 @@ export const Folder = $root.Folder = (() => { throw TypeError(".Folder.SharedFolderUpdateV3Request.sharedFolderUpdateTeam: array expected"); message.sharedFolderUpdateTeam = []; for (let i = 0; i < object.sharedFolderUpdateTeam.length; ++i) { - if (typeof object.sharedFolderUpdateTeam[i] !== "object") + if (!$util.isObject(object.sharedFolderUpdateTeam[i])) throw TypeError(".Folder.SharedFolderUpdateV3Request.sharedFolderUpdateTeam: object expected"); message.sharedFolderUpdateTeam[i] = $root.Folder.SharedFolderUpdateTeam.fromObject(object.sharedFolderUpdateTeam[i], long + 1); } @@ -117856,30 +95796,30 @@ export const Folder = $root.Folder = (() => { object.defaultCanShare = options.enums === String ? "BOOLEAN_NO_CHANGE" : 0; object.sharedFolderOwner = ""; } - if (message.sharedFolderUpdateOperationDontUse != null && message.hasOwnProperty("sharedFolderUpdateOperationDontUse")) + if (message.sharedFolderUpdateOperationDontUse != null && Object.hasOwnProperty.call(message, "sharedFolderUpdateOperationDontUse")) object.sharedFolderUpdateOperationDontUse = message.sharedFolderUpdateOperationDontUse; - if (message.sharedFolderUid != null && message.hasOwnProperty("sharedFolderUid")) + if (message.sharedFolderUid != null && Object.hasOwnProperty.call(message, "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.encryptedSharedFolderName != null && message.hasOwnProperty("encryptedSharedFolderName")) + if (message.encryptedSharedFolderName != null && Object.hasOwnProperty.call(message, "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 (message.revision != null && Object.hasOwnProperty.call(message, "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") 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.forceUpdate != null && message.hasOwnProperty("forceUpdate")) + if (message.forceUpdate != null && Object.hasOwnProperty.call(message, "forceUpdate")) object.forceUpdate = message.forceUpdate; - if (message.fromTeamUid != null && message.hasOwnProperty("fromTeamUid")) + if (message.fromTeamUid != null && Object.hasOwnProperty.call(message, "fromTeamUid")) object.fromTeamUid = options.bytes === String ? $util.base64.encode(message.fromTeamUid, 0, message.fromTeamUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.fromTeamUid) : message.fromTeamUid; - if (message.defaultManageUsers != null && message.hasOwnProperty("defaultManageUsers")) + if (message.defaultManageUsers != null && Object.hasOwnProperty.call(message, "defaultManageUsers")) object.defaultManageUsers = options.enums === String ? $root.Folder.SetBooleanValue[message.defaultManageUsers] === undefined ? message.defaultManageUsers : $root.Folder.SetBooleanValue[message.defaultManageUsers] : message.defaultManageUsers; - if (message.defaultManageRecords != null && message.hasOwnProperty("defaultManageRecords")) + if (message.defaultManageRecords != null && Object.hasOwnProperty.call(message, "defaultManageRecords")) object.defaultManageRecords = options.enums === String ? $root.Folder.SetBooleanValue[message.defaultManageRecords] === undefined ? message.defaultManageRecords : $root.Folder.SetBooleanValue[message.defaultManageRecords] : message.defaultManageRecords; - if (message.defaultCanEdit != null && message.hasOwnProperty("defaultCanEdit")) + if (message.defaultCanEdit != null && Object.hasOwnProperty.call(message, "defaultCanEdit")) object.defaultCanEdit = options.enums === String ? $root.Folder.SetBooleanValue[message.defaultCanEdit] === undefined ? message.defaultCanEdit : $root.Folder.SetBooleanValue[message.defaultCanEdit] : message.defaultCanEdit; - if (message.defaultCanShare != null && message.hasOwnProperty("defaultCanShare")) + if (message.defaultCanShare != null && Object.hasOwnProperty.call(message, "defaultCanShare")) object.defaultCanShare = options.enums === String ? $root.Folder.SetBooleanValue[message.defaultCanShare] === undefined ? message.defaultCanShare : $root.Folder.SetBooleanValue[message.defaultCanShare] : message.defaultCanShare; if (message.sharedFolderAddRecord && message.sharedFolderAddRecord.length) { object.sharedFolderAddRecord = []; @@ -117926,7 +95866,7 @@ export const Folder = $root.Folder = (() => { for (let j = 0; j < message.sharedFolderRemoveTeam.length; ++j) object.sharedFolderRemoveTeam[j] = options.bytes === String ? $util.base64.encode(message.sharedFolderRemoveTeam[j], 0, message.sharedFolderRemoveTeam[j].length) : options.bytes === Array ? Array.prototype.slice.call(message.sharedFolderRemoveTeam[j]) : message.sharedFolderRemoveTeam[j]; } - if (message.sharedFolderOwner != null && message.hasOwnProperty("sharedFolderOwner")) + if (message.sharedFolderOwner != null && Object.hasOwnProperty.call(message, "sharedFolderOwner")) object.sharedFolderOwner = message.sharedFolderOwner; return object; }; @@ -118027,19 +95967,6 @@ export const Folder = $root.Folder = (() => { return writer; }; - /** - * Encodes the specified SharedFolderUpdateV3RequestV2 message, length delimited. Does not implicitly {@link Folder.SharedFolderUpdateV3RequestV2.verify|verify} messages. - * @function encodeDelimited - * @memberof Folder.SharedFolderUpdateV3RequestV2 - * @static - * @param {Folder.ISharedFolderUpdateV3RequestV2} message SharedFolderUpdateV3RequestV2 message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SharedFolderUpdateV3RequestV2.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a SharedFolderUpdateV3RequestV2 message from the specified reader or buffer. * @function decode @@ -118078,49 +96005,6 @@ export const Folder = $root.Folder = (() => { return message; }; - /** - * Decodes a SharedFolderUpdateV3RequestV2 message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Folder.SharedFolderUpdateV3RequestV2 - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Folder.SharedFolderUpdateV3RequestV2} SharedFolderUpdateV3RequestV2 - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SharedFolderUpdateV3RequestV2.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a SharedFolderUpdateV3RequestV2 message. - * @function verify - * @memberof Folder.SharedFolderUpdateV3RequestV2 - * @static - * @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) { - if (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); - if (error) - return "sharedFoldersUpdateV3." + error; - } - } - return null; - }; - /** * Creates a SharedFolderUpdateV3RequestV2 message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -118132,6 +96016,8 @@ export const Folder = $root.Folder = (() => { SharedFolderUpdateV3RequestV2.fromObject = function fromObject(object, long) { if (object instanceof $root.Folder.SharedFolderUpdateV3RequestV2) return object; + if (!$util.isObject(object)) + throw TypeError(".Folder.SharedFolderUpdateV3RequestV2: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -118142,7 +96028,7 @@ export const Folder = $root.Folder = (() => { throw TypeError(".Folder.SharedFolderUpdateV3RequestV2.sharedFoldersUpdateV3: array expected"); message.sharedFoldersUpdateV3 = []; for (let i = 0; i < object.sharedFoldersUpdateV3.length; ++i) { - if (typeof object.sharedFoldersUpdateV3[i] !== "object") + if (!$util.isObject(object.sharedFoldersUpdateV3[i])) throw TypeError(".Folder.SharedFolderUpdateV3RequestV2.sharedFoldersUpdateV3: object expected"); message.sharedFoldersUpdateV3[i] = $root.Folder.SharedFolderUpdateV3Request.fromObject(object.sharedFoldersUpdateV3[i], long + 1); } @@ -118282,19 +96168,6 @@ export const Folder = $root.Folder = (() => { return writer; }; - /** - * Encodes the specified SharedFolderUpdateRecordStatus message, length delimited. Does not implicitly {@link Folder.SharedFolderUpdateRecordStatus.verify|verify} messages. - * @function encodeDelimited - * @memberof Folder.SharedFolderUpdateRecordStatus - * @static - * @param {Folder.ISharedFolderUpdateRecordStatus} message SharedFolderUpdateRecordStatus message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SharedFolderUpdateRecordStatus.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a SharedFolderUpdateRecordStatus message from the specified reader or buffer. * @function decode @@ -118335,46 +96208,6 @@ export const Folder = $root.Folder = (() => { return message; }; - /** - * Decodes a SharedFolderUpdateRecordStatus message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Folder.SharedFolderUpdateRecordStatus - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Folder.SharedFolderUpdateRecordStatus} SharedFolderUpdateRecordStatus - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SharedFolderUpdateRecordStatus.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a SharedFolderUpdateRecordStatus message. - * @function verify - * @memberof Folder.SharedFolderUpdateRecordStatus - * @static - * @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) { - if (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.status != null && message.hasOwnProperty("status")) - if (!$util.isString(message.status)) - return "status: string expected"; - return null; - }; - /** * Creates a SharedFolderUpdateRecordStatus message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -118386,6 +96219,8 @@ export const Folder = $root.Folder = (() => { SharedFolderUpdateRecordStatus.fromObject = function fromObject(object, long) { if (object instanceof $root.Folder.SharedFolderUpdateRecordStatus) return object; + if (!$util.isObject(object)) + throw TypeError(".Folder.SharedFolderUpdateRecordStatus: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -118428,9 +96263,9 @@ export const Folder = $root.Folder = (() => { } object.status = ""; } - if (message.recordUid != null && message.hasOwnProperty("recordUid")) + if (message.recordUid != null && Object.hasOwnProperty.call(message, "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.status != null && message.hasOwnProperty("status")) + if (message.status != null && Object.hasOwnProperty.call(message, "status")) object.status = message.status; return object; }; @@ -118540,19 +96375,6 @@ export const Folder = $root.Folder = (() => { return writer; }; - /** - * Encodes the specified SharedFolderUpdateUserStatus message, length delimited. Does not implicitly {@link Folder.SharedFolderUpdateUserStatus.verify|verify} messages. - * @function encodeDelimited - * @memberof Folder.SharedFolderUpdateUserStatus - * @static - * @param {Folder.ISharedFolderUpdateUserStatus} message SharedFolderUpdateUserStatus message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SharedFolderUpdateUserStatus.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a SharedFolderUpdateUserStatus message from the specified reader or buffer. * @function decode @@ -118593,46 +96415,6 @@ export const Folder = $root.Folder = (() => { return message; }; - /** - * Decodes a SharedFolderUpdateUserStatus message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Folder.SharedFolderUpdateUserStatus - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Folder.SharedFolderUpdateUserStatus} SharedFolderUpdateUserStatus - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SharedFolderUpdateUserStatus.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a SharedFolderUpdateUserStatus message. - * @function verify - * @memberof Folder.SharedFolderUpdateUserStatus - * @static - * @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) { - if (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"; - if (message.status != null && message.hasOwnProperty("status")) - if (!$util.isString(message.status)) - return "status: string expected"; - return null; - }; - /** * Creates a SharedFolderUpdateUserStatus message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -118644,6 +96426,8 @@ export const Folder = $root.Folder = (() => { SharedFolderUpdateUserStatus.fromObject = function fromObject(object, long) { if (object instanceof $root.Folder.SharedFolderUpdateUserStatus) return object; + if (!$util.isObject(object)) + throw TypeError(".Folder.SharedFolderUpdateUserStatus: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -118677,9 +96461,9 @@ export const Folder = $root.Folder = (() => { object.username = ""; object.status = ""; } - if (message.username != null && message.hasOwnProperty("username")) + if (message.username != null && Object.hasOwnProperty.call(message, "username")) object.username = message.username; - if (message.status != null && message.hasOwnProperty("status")) + if (message.status != null && Object.hasOwnProperty.call(message, "status")) object.status = message.status; return object; }; @@ -118789,19 +96573,6 @@ export const Folder = $root.Folder = (() => { return writer; }; - /** - * Encodes the specified SharedFolderUpdateTeamStatus message, length delimited. Does not implicitly {@link Folder.SharedFolderUpdateTeamStatus.verify|verify} messages. - * @function encodeDelimited - * @memberof Folder.SharedFolderUpdateTeamStatus - * @static - * @param {Folder.ISharedFolderUpdateTeamStatus} message SharedFolderUpdateTeamStatus message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SharedFolderUpdateTeamStatus.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a SharedFolderUpdateTeamStatus message from the specified reader or buffer. * @function decode @@ -118842,46 +96613,6 @@ export const Folder = $root.Folder = (() => { return message; }; - /** - * Decodes a SharedFolderUpdateTeamStatus message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Folder.SharedFolderUpdateTeamStatus - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Folder.SharedFolderUpdateTeamStatus} SharedFolderUpdateTeamStatus - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SharedFolderUpdateTeamStatus.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a SharedFolderUpdateTeamStatus message. - * @function verify - * @memberof Folder.SharedFolderUpdateTeamStatus - * @static - * @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) { - if (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"; - if (message.status != null && message.hasOwnProperty("status")) - if (!$util.isString(message.status)) - return "status: string expected"; - return null; - }; - /** * Creates a SharedFolderUpdateTeamStatus message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -118893,6 +96624,8 @@ export const Folder = $root.Folder = (() => { SharedFolderUpdateTeamStatus.fromObject = function fromObject(object, long) { if (object instanceof $root.Folder.SharedFolderUpdateTeamStatus) return object; + if (!$util.isObject(object)) + throw TypeError(".Folder.SharedFolderUpdateTeamStatus: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -118935,9 +96668,9 @@ export const Folder = $root.Folder = (() => { } object.status = ""; } - if (message.teamUid != null && message.hasOwnProperty("teamUid")) + if (message.teamUid != null && Object.hasOwnProperty.call(message, "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.status != null && message.hasOwnProperty("status")) + if (message.status != null && Object.hasOwnProperty.call(message, "status")) object.status = message.status; return object; }; @@ -119175,19 +96908,6 @@ export const Folder = $root.Folder = (() => { return writer; }; - /** - * Encodes the specified SharedFolderUpdateV3Response message, length delimited. Does not implicitly {@link Folder.SharedFolderUpdateV3Response.verify|verify} messages. - * @function encodeDelimited - * @memberof Folder.SharedFolderUpdateV3Response - * @static - * @param {Folder.ISharedFolderUpdateV3Response} message SharedFolderUpdateV3Response message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SharedFolderUpdateV3Response.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a SharedFolderUpdateV3Response message from the specified reader or buffer. * @function decode @@ -119286,130 +97006,6 @@ export const Folder = $root.Folder = (() => { return message; }; - /** - * Decodes a SharedFolderUpdateV3Response message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Folder.SharedFolderUpdateV3Response - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Folder.SharedFolderUpdateV3Response} SharedFolderUpdateV3Response - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SharedFolderUpdateV3Response.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a SharedFolderUpdateV3Response message. - * @function verify - * @memberof Folder.SharedFolderUpdateV3Response - * @static - * @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) { - if (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"; - if (message.sharedFolderAddRecordStatus != null && message.hasOwnProperty("sharedFolderAddRecordStatus")) { - 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); - if (error) - return "sharedFolderAddRecordStatus." + error; - } - } - if (message.sharedFolderAddUserStatus != null && message.hasOwnProperty("sharedFolderAddUserStatus")) { - 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); - if (error) - return "sharedFolderAddUserStatus." + error; - } - } - if (message.sharedFolderAddTeamStatus != null && message.hasOwnProperty("sharedFolderAddTeamStatus")) { - 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); - if (error) - return "sharedFolderAddTeamStatus." + error; - } - } - if (message.sharedFolderUpdateRecordStatus != null && message.hasOwnProperty("sharedFolderUpdateRecordStatus")) { - 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); - if (error) - return "sharedFolderUpdateRecordStatus." + error; - } - } - if (message.sharedFolderUpdateUserStatus != null && message.hasOwnProperty("sharedFolderUpdateUserStatus")) { - 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); - if (error) - return "sharedFolderUpdateUserStatus." + error; - } - } - if (message.sharedFolderUpdateTeamStatus != null && message.hasOwnProperty("sharedFolderUpdateTeamStatus")) { - 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); - if (error) - return "sharedFolderUpdateTeamStatus." + error; - } - } - if (message.sharedFolderRemoveRecordStatus != null && message.hasOwnProperty("sharedFolderRemoveRecordStatus")) { - 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); - if (error) - return "sharedFolderRemoveRecordStatus." + error; - } - } - if (message.sharedFolderRemoveUserStatus != null && message.hasOwnProperty("sharedFolderRemoveUserStatus")) { - 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); - if (error) - return "sharedFolderRemoveUserStatus." + error; - } - } - if (message.sharedFolderRemoveTeamStatus != null && message.hasOwnProperty("sharedFolderRemoveTeamStatus")) { - 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); - if (error) - return "sharedFolderRemoveTeamStatus." + error; - } - } - if (message.sharedFolderUid != null && message.hasOwnProperty("sharedFolderUid")) - if (!(message.sharedFolderUid && typeof message.sharedFolderUid.length === "number" || $util.isString(message.sharedFolderUid))) - return "sharedFolderUid: buffer expected"; - if (message.status != null && message.hasOwnProperty("status")) - if (!$util.isString(message.status)) - return "status: string expected"; - return null; - }; - /** * Creates a SharedFolderUpdateV3Response message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -119421,6 +97017,8 @@ export const Folder = $root.Folder = (() => { SharedFolderUpdateV3Response.fromObject = function fromObject(object, long) { if (object instanceof $root.Folder.SharedFolderUpdateV3Response) return object; + if (!$util.isObject(object)) + throw TypeError(".Folder.SharedFolderUpdateV3Response: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -119440,7 +97038,7 @@ export const Folder = $root.Folder = (() => { throw TypeError(".Folder.SharedFolderUpdateV3Response.sharedFolderAddRecordStatus: array expected"); message.sharedFolderAddRecordStatus = []; for (let i = 0; i < object.sharedFolderAddRecordStatus.length; ++i) { - if (typeof object.sharedFolderAddRecordStatus[i] !== "object") + if (!$util.isObject(object.sharedFolderAddRecordStatus[i])) throw TypeError(".Folder.SharedFolderUpdateV3Response.sharedFolderAddRecordStatus: object expected"); message.sharedFolderAddRecordStatus[i] = $root.Folder.SharedFolderUpdateRecordStatus.fromObject(object.sharedFolderAddRecordStatus[i], long + 1); } @@ -119450,7 +97048,7 @@ export const Folder = $root.Folder = (() => { throw TypeError(".Folder.SharedFolderUpdateV3Response.sharedFolderAddUserStatus: array expected"); message.sharedFolderAddUserStatus = []; for (let i = 0; i < object.sharedFolderAddUserStatus.length; ++i) { - if (typeof object.sharedFolderAddUserStatus[i] !== "object") + if (!$util.isObject(object.sharedFolderAddUserStatus[i])) throw TypeError(".Folder.SharedFolderUpdateV3Response.sharedFolderAddUserStatus: object expected"); message.sharedFolderAddUserStatus[i] = $root.Folder.SharedFolderUpdateUserStatus.fromObject(object.sharedFolderAddUserStatus[i], long + 1); } @@ -119460,7 +97058,7 @@ export const Folder = $root.Folder = (() => { throw TypeError(".Folder.SharedFolderUpdateV3Response.sharedFolderAddTeamStatus: array expected"); message.sharedFolderAddTeamStatus = []; for (let i = 0; i < object.sharedFolderAddTeamStatus.length; ++i) { - if (typeof object.sharedFolderAddTeamStatus[i] !== "object") + if (!$util.isObject(object.sharedFolderAddTeamStatus[i])) throw TypeError(".Folder.SharedFolderUpdateV3Response.sharedFolderAddTeamStatus: object expected"); message.sharedFolderAddTeamStatus[i] = $root.Folder.SharedFolderUpdateTeamStatus.fromObject(object.sharedFolderAddTeamStatus[i], long + 1); } @@ -119470,7 +97068,7 @@ export const Folder = $root.Folder = (() => { throw TypeError(".Folder.SharedFolderUpdateV3Response.sharedFolderUpdateRecordStatus: array expected"); message.sharedFolderUpdateRecordStatus = []; for (let i = 0; i < object.sharedFolderUpdateRecordStatus.length; ++i) { - if (typeof object.sharedFolderUpdateRecordStatus[i] !== "object") + if (!$util.isObject(object.sharedFolderUpdateRecordStatus[i])) throw TypeError(".Folder.SharedFolderUpdateV3Response.sharedFolderUpdateRecordStatus: object expected"); message.sharedFolderUpdateRecordStatus[i] = $root.Folder.SharedFolderUpdateRecordStatus.fromObject(object.sharedFolderUpdateRecordStatus[i], long + 1); } @@ -119480,7 +97078,7 @@ export const Folder = $root.Folder = (() => { throw TypeError(".Folder.SharedFolderUpdateV3Response.sharedFolderUpdateUserStatus: array expected"); message.sharedFolderUpdateUserStatus = []; for (let i = 0; i < object.sharedFolderUpdateUserStatus.length; ++i) { - if (typeof object.sharedFolderUpdateUserStatus[i] !== "object") + if (!$util.isObject(object.sharedFolderUpdateUserStatus[i])) throw TypeError(".Folder.SharedFolderUpdateV3Response.sharedFolderUpdateUserStatus: object expected"); message.sharedFolderUpdateUserStatus[i] = $root.Folder.SharedFolderUpdateUserStatus.fromObject(object.sharedFolderUpdateUserStatus[i], long + 1); } @@ -119490,7 +97088,7 @@ export const Folder = $root.Folder = (() => { throw TypeError(".Folder.SharedFolderUpdateV3Response.sharedFolderUpdateTeamStatus: array expected"); message.sharedFolderUpdateTeamStatus = []; for (let i = 0; i < object.sharedFolderUpdateTeamStatus.length; ++i) { - if (typeof object.sharedFolderUpdateTeamStatus[i] !== "object") + if (!$util.isObject(object.sharedFolderUpdateTeamStatus[i])) throw TypeError(".Folder.SharedFolderUpdateV3Response.sharedFolderUpdateTeamStatus: object expected"); message.sharedFolderUpdateTeamStatus[i] = $root.Folder.SharedFolderUpdateTeamStatus.fromObject(object.sharedFolderUpdateTeamStatus[i], long + 1); } @@ -119500,7 +97098,7 @@ export const Folder = $root.Folder = (() => { throw TypeError(".Folder.SharedFolderUpdateV3Response.sharedFolderRemoveRecordStatus: array expected"); message.sharedFolderRemoveRecordStatus = []; for (let i = 0; i < object.sharedFolderRemoveRecordStatus.length; ++i) { - if (typeof object.sharedFolderRemoveRecordStatus[i] !== "object") + if (!$util.isObject(object.sharedFolderRemoveRecordStatus[i])) throw TypeError(".Folder.SharedFolderUpdateV3Response.sharedFolderRemoveRecordStatus: object expected"); message.sharedFolderRemoveRecordStatus[i] = $root.Folder.SharedFolderUpdateRecordStatus.fromObject(object.sharedFolderRemoveRecordStatus[i], long + 1); } @@ -119510,7 +97108,7 @@ export const Folder = $root.Folder = (() => { throw TypeError(".Folder.SharedFolderUpdateV3Response.sharedFolderRemoveUserStatus: array expected"); message.sharedFolderRemoveUserStatus = []; for (let i = 0; i < object.sharedFolderRemoveUserStatus.length; ++i) { - if (typeof object.sharedFolderRemoveUserStatus[i] !== "object") + if (!$util.isObject(object.sharedFolderRemoveUserStatus[i])) throw TypeError(".Folder.SharedFolderUpdateV3Response.sharedFolderRemoveUserStatus: object expected"); message.sharedFolderRemoveUserStatus[i] = $root.Folder.SharedFolderUpdateUserStatus.fromObject(object.sharedFolderRemoveUserStatus[i], long + 1); } @@ -119520,7 +97118,7 @@ export const Folder = $root.Folder = (() => { throw TypeError(".Folder.SharedFolderUpdateV3Response.sharedFolderRemoveTeamStatus: array expected"); message.sharedFolderRemoveTeamStatus = []; for (let i = 0; i < object.sharedFolderRemoveTeamStatus.length; ++i) { - if (typeof object.sharedFolderRemoveTeamStatus[i] !== "object") + if (!$util.isObject(object.sharedFolderRemoveTeamStatus[i])) throw TypeError(".Folder.SharedFolderUpdateV3Response.sharedFolderRemoveTeamStatus: object expected"); message.sharedFolderRemoveTeamStatus[i] = $root.Folder.SharedFolderUpdateTeamStatus.fromObject(object.sharedFolderRemoveTeamStatus[i], long + 1); } @@ -119578,7 +97176,7 @@ export const Folder = $root.Folder = (() => { } object.status = ""; } - if (message.revision != null && message.hasOwnProperty("revision")) + if (message.revision != null && Object.hasOwnProperty.call(message, "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") @@ -119630,9 +97228,9 @@ export const Folder = $root.Folder = (() => { for (let j = 0; j < message.sharedFolderRemoveTeamStatus.length; ++j) object.sharedFolderRemoveTeamStatus[j] = $root.Folder.SharedFolderUpdateTeamStatus.toObject(message.sharedFolderRemoveTeamStatus[j], options, q + 1); } - if (message.sharedFolderUid != null && message.hasOwnProperty("sharedFolderUid")) + if (message.sharedFolderUid != null && Object.hasOwnProperty.call(message, "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.status != null && message.hasOwnProperty("status")) + if (message.status != null && Object.hasOwnProperty.call(message, "status")) object.status = message.status; return object; }; @@ -119733,19 +97331,6 @@ export const Folder = $root.Folder = (() => { return writer; }; - /** - * Encodes the specified SharedFolderUpdateV3ResponseV2 message, length delimited. Does not implicitly {@link Folder.SharedFolderUpdateV3ResponseV2.verify|verify} messages. - * @function encodeDelimited - * @memberof Folder.SharedFolderUpdateV3ResponseV2 - * @static - * @param {Folder.ISharedFolderUpdateV3ResponseV2} message SharedFolderUpdateV3ResponseV2 message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SharedFolderUpdateV3ResponseV2.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a SharedFolderUpdateV3ResponseV2 message from the specified reader or buffer. * @function decode @@ -119784,49 +97369,6 @@ export const Folder = $root.Folder = (() => { return message; }; - /** - * Decodes a SharedFolderUpdateV3ResponseV2 message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Folder.SharedFolderUpdateV3ResponseV2 - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Folder.SharedFolderUpdateV3ResponseV2} SharedFolderUpdateV3ResponseV2 - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SharedFolderUpdateV3ResponseV2.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a SharedFolderUpdateV3ResponseV2 message. - * @function verify - * @memberof Folder.SharedFolderUpdateV3ResponseV2 - * @static - * @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) { - if (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); - if (error) - return "sharedFoldersUpdateV3Response." + error; - } - } - return null; - }; - /** * Creates a SharedFolderUpdateV3ResponseV2 message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -119838,6 +97380,8 @@ export const Folder = $root.Folder = (() => { SharedFolderUpdateV3ResponseV2.fromObject = function fromObject(object, long) { if (object instanceof $root.Folder.SharedFolderUpdateV3ResponseV2) return object; + if (!$util.isObject(object)) + throw TypeError(".Folder.SharedFolderUpdateV3ResponseV2: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -119848,7 +97392,7 @@ export const Folder = $root.Folder = (() => { throw TypeError(".Folder.SharedFolderUpdateV3ResponseV2.sharedFoldersUpdateV3Response: array expected"); message.sharedFoldersUpdateV3Response = []; for (let i = 0; i < object.sharedFoldersUpdateV3Response.length; ++i) { - if (typeof object.sharedFoldersUpdateV3Response[i] !== "object") + if (!$util.isObject(object.sharedFoldersUpdateV3Response[i])) throw TypeError(".Folder.SharedFolderUpdateV3ResponseV2.sharedFoldersUpdateV3Response: object expected"); message.sharedFoldersUpdateV3Response[i] = $root.Folder.SharedFolderUpdateV3Response.fromObject(object.sharedFoldersUpdateV3Response[i], long + 1); } @@ -120018,19 +97562,6 @@ export const Folder = $root.Folder = (() => { return writer; }; - /** - * Encodes the specified GetDeletedSharedFoldersAndRecordsResponse message, length delimited. Does not implicitly {@link Folder.GetDeletedSharedFoldersAndRecordsResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof Folder.GetDeletedSharedFoldersAndRecordsResponse - * @static - * @param {Folder.IGetDeletedSharedFoldersAndRecordsResponse} message GetDeletedSharedFoldersAndRecordsResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetDeletedSharedFoldersAndRecordsResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a GetDeletedSharedFoldersAndRecordsResponse message from the specified reader or buffer. * @function decode @@ -120087,76 +97618,6 @@ export const Folder = $root.Folder = (() => { return message; }; - /** - * Decodes a GetDeletedSharedFoldersAndRecordsResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Folder.GetDeletedSharedFoldersAndRecordsResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Folder.GetDeletedSharedFoldersAndRecordsResponse} GetDeletedSharedFoldersAndRecordsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetDeletedSharedFoldersAndRecordsResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a GetDeletedSharedFoldersAndRecordsResponse message. - * @function verify - * @memberof Folder.GetDeletedSharedFoldersAndRecordsResponse - * @static - * @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) { - if (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); - if (error) - return "sharedFolders." + error; - } - } - if (message.sharedFolderRecords != null && message.hasOwnProperty("sharedFolderRecords")) { - 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); - if (error) - return "sharedFolderRecords." + error; - } - } - if (message.deletedRecordData != null && message.hasOwnProperty("deletedRecordData")) { - 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); - if (error) - return "deletedRecordData." + error; - } - } - if (message.usernames != null && message.hasOwnProperty("usernames")) { - 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); - if (error) - return "usernames." + error; - } - } - return null; - }; - /** * Creates a GetDeletedSharedFoldersAndRecordsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -120168,6 +97629,8 @@ export const Folder = $root.Folder = (() => { GetDeletedSharedFoldersAndRecordsResponse.fromObject = function fromObject(object, long) { if (object instanceof $root.Folder.GetDeletedSharedFoldersAndRecordsResponse) return object; + if (!$util.isObject(object)) + throw TypeError(".Folder.GetDeletedSharedFoldersAndRecordsResponse: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -120178,7 +97641,7 @@ export const Folder = $root.Folder = (() => { throw TypeError(".Folder.GetDeletedSharedFoldersAndRecordsResponse.sharedFolders: array expected"); message.sharedFolders = []; for (let i = 0; i < object.sharedFolders.length; ++i) { - if (typeof object.sharedFolders[i] !== "object") + if (!$util.isObject(object.sharedFolders[i])) throw TypeError(".Folder.GetDeletedSharedFoldersAndRecordsResponse.sharedFolders: object expected"); message.sharedFolders[i] = $root.Folder.DeletedSharedFolder.fromObject(object.sharedFolders[i], long + 1); } @@ -120188,7 +97651,7 @@ export const Folder = $root.Folder = (() => { throw TypeError(".Folder.GetDeletedSharedFoldersAndRecordsResponse.sharedFolderRecords: array expected"); message.sharedFolderRecords = []; for (let i = 0; i < object.sharedFolderRecords.length; ++i) { - if (typeof object.sharedFolderRecords[i] !== "object") + if (!$util.isObject(object.sharedFolderRecords[i])) throw TypeError(".Folder.GetDeletedSharedFoldersAndRecordsResponse.sharedFolderRecords: object expected"); message.sharedFolderRecords[i] = $root.Folder.DeletedSharedFolderRecord.fromObject(object.sharedFolderRecords[i], long + 1); } @@ -120198,7 +97661,7 @@ export const Folder = $root.Folder = (() => { throw TypeError(".Folder.GetDeletedSharedFoldersAndRecordsResponse.deletedRecordData: array expected"); message.deletedRecordData = []; for (let i = 0; i < object.deletedRecordData.length; ++i) { - if (typeof object.deletedRecordData[i] !== "object") + if (!$util.isObject(object.deletedRecordData[i])) throw TypeError(".Folder.GetDeletedSharedFoldersAndRecordsResponse.deletedRecordData: object expected"); message.deletedRecordData[i] = $root.Folder.DeletedRecordData.fromObject(object.deletedRecordData[i], long + 1); } @@ -120208,7 +97671,7 @@ export const Folder = $root.Folder = (() => { throw TypeError(".Folder.GetDeletedSharedFoldersAndRecordsResponse.usernames: array expected"); message.usernames = []; for (let i = 0; i < object.usernames.length; ++i) { - if (typeof object.usernames[i] !== "object") + if (!$util.isObject(object.usernames[i])) throw TypeError(".Folder.GetDeletedSharedFoldersAndRecordsResponse.usernames: object expected"); message.usernames[i] = $root.Folder.Username.fromObject(object.usernames[i], long + 1); } @@ -120433,19 +97896,6 @@ export const Folder = $root.Folder = (() => { return writer; }; - /** - * Encodes the specified DeletedSharedFolder message, length delimited. Does not implicitly {@link Folder.DeletedSharedFolder.verify|verify} messages. - * @function encodeDelimited - * @memberof Folder.DeletedSharedFolder - * @static - * @param {Folder.IDeletedSharedFolder} message DeletedSharedFolder message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - DeletedSharedFolder.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a DeletedSharedFolder message from the specified reader or buffer. * @function decode @@ -120510,74 +97960,6 @@ export const Folder = $root.Folder = (() => { return message; }; - /** - * Decodes a DeletedSharedFolder message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Folder.DeletedSharedFolder - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Folder.DeletedSharedFolder} DeletedSharedFolder - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - DeletedSharedFolder.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a DeletedSharedFolder message. - * @function verify - * @memberof Folder.DeletedSharedFolder - * @static - * @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) { - if (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"; - 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.parentUid != null && message.hasOwnProperty("parentUid")) - if (!(message.parentUid && typeof message.parentUid.length === "number" || $util.isString(message.parentUid))) - return "parentUid: buffer expected"; - if (message.sharedFolderKey != null && message.hasOwnProperty("sharedFolderKey")) - if (!(message.sharedFolderKey && typeof message.sharedFolderKey.length === "number" || $util.isString(message.sharedFolderKey))) - return "sharedFolderKey: buffer expected"; - if (message.folderKeyType != null && message.hasOwnProperty("folderKeyType")) - switch (message.folderKeyType) { - default: - return "folderKeyType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - break; - } - 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.dateDeleted != null && message.hasOwnProperty("dateDeleted")) - if (!$util.isInteger(message.dateDeleted) && !(message.dateDeleted && $util.isInteger(message.dateDeleted.low) && $util.isInteger(message.dateDeleted.high))) - return "dateDeleted: integer|Long expected"; - 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"; - return null; - }; - /** * Creates a DeletedSharedFolder message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -120589,6 +97971,8 @@ export const Folder = $root.Folder = (() => { DeletedSharedFolder.fromObject = function fromObject(object, long) { if (object instanceof $root.Folder.DeletedSharedFolder) return object; + if (!$util.isObject(object)) + throw TypeError(".Folder.DeletedSharedFolder: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -120741,26 +98125,26 @@ export const Folder = $root.Folder = (() => { } else object.revision = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; } - if (message.sharedFolderUid != null && message.hasOwnProperty("sharedFolderUid")) + if (message.sharedFolderUid != null && Object.hasOwnProperty.call(message, "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.folderUid != null && message.hasOwnProperty("folderUid")) + if (message.folderUid != null && Object.hasOwnProperty.call(message, "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.parentUid != null && message.hasOwnProperty("parentUid")) + if (message.parentUid != null && Object.hasOwnProperty.call(message, "parentUid")) object.parentUid = options.bytes === String ? $util.base64.encode(message.parentUid, 0, message.parentUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.parentUid) : message.parentUid; - if (message.sharedFolderKey != null && message.hasOwnProperty("sharedFolderKey")) + if (message.sharedFolderKey != null && Object.hasOwnProperty.call(message, "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.folderKeyType != null && message.hasOwnProperty("folderKeyType")) + if (message.folderKeyType != null && Object.hasOwnProperty.call(message, "folderKeyType")) object.folderKeyType = options.enums === String ? $root.Records.RecordKeyType[message.folderKeyType] === undefined ? message.folderKeyType : $root.Records.RecordKeyType[message.folderKeyType] : message.folderKeyType; - if (message.data != null && message.hasOwnProperty("data")) + if (message.data != null && Object.hasOwnProperty.call(message, "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 (message.dateDeleted != null && Object.hasOwnProperty.call(message, "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") 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 (message.revision != null && Object.hasOwnProperty.call(message, "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") @@ -120908,19 +98292,6 @@ export const Folder = $root.Folder = (() => { return writer; }; - /** - * Encodes the specified DeletedSharedFolderRecord message, length delimited. Does not implicitly {@link Folder.DeletedSharedFolderRecord.verify|verify} messages. - * @function encodeDelimited - * @memberof Folder.DeletedSharedFolderRecord - * @static - * @param {Folder.IDeletedSharedFolderRecord} message DeletedSharedFolderRecord message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - DeletedSharedFolderRecord.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a DeletedSharedFolderRecord message from the specified reader or buffer. * @function decode @@ -120973,55 +98344,6 @@ export const Folder = $root.Folder = (() => { return message; }; - /** - * Decodes a DeletedSharedFolderRecord message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Folder.DeletedSharedFolderRecord - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Folder.DeletedSharedFolderRecord} DeletedSharedFolderRecord - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - DeletedSharedFolderRecord.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a DeletedSharedFolderRecord message. - * @function verify - * @memberof Folder.DeletedSharedFolderRecord - * @static - * @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) { - if (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.recordUid != null && message.hasOwnProperty("recordUid")) - if (!(message.recordUid && typeof message.recordUid.length === "number" || $util.isString(message.recordUid))) - return "recordUid: buffer expected"; - if (message.sharedRecordKey != null && message.hasOwnProperty("sharedRecordKey")) - if (!(message.sharedRecordKey && typeof message.sharedRecordKey.length === "number" || $util.isString(message.sharedRecordKey))) - return "sharedRecordKey: buffer expected"; - if (message.dateDeleted != null && message.hasOwnProperty("dateDeleted")) - if (!$util.isInteger(message.dateDeleted) && !(message.dateDeleted && $util.isInteger(message.dateDeleted.low) && $util.isInteger(message.dateDeleted.high))) - return "dateDeleted: integer|Long expected"; - 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"; - return null; - }; - /** * Creates a DeletedSharedFolderRecord message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -121033,6 +98355,8 @@ export const Folder = $root.Folder = (() => { DeletedSharedFolderRecord.fromObject = function fromObject(object, long) { if (object instanceof $root.Folder.DeletedSharedFolderRecord) return object; + if (!$util.isObject(object)) + throw TypeError(".Folder.DeletedSharedFolderRecord: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -121124,20 +98448,20 @@ export const Folder = $root.Folder = (() => { } else object.revision = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; } - if (message.folderUid != null && message.hasOwnProperty("folderUid")) + if (message.folderUid != null && Object.hasOwnProperty.call(message, "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")) + if (message.recordUid != null && Object.hasOwnProperty.call(message, "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.sharedRecordKey != null && message.hasOwnProperty("sharedRecordKey")) + if (message.sharedRecordKey != null && Object.hasOwnProperty.call(message, "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 (message.dateDeleted != null && Object.hasOwnProperty.call(message, "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") 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 (message.revision != null && Object.hasOwnProperty.call(message, "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") @@ -121296,19 +98620,6 @@ export const Folder = $root.Folder = (() => { return writer; }; - /** - * Encodes the specified DeletedRecordData message, length delimited. Does not implicitly {@link Folder.DeletedRecordData.verify|verify} messages. - * @function encodeDelimited - * @memberof Folder.DeletedRecordData - * @static - * @param {Folder.IDeletedRecordData} message DeletedRecordData message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - DeletedRecordData.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a DeletedRecordData message from the specified reader or buffer. * @function decode @@ -121365,58 +98676,6 @@ export const Folder = $root.Folder = (() => { return message; }; - /** - * Decodes a DeletedRecordData message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Folder.DeletedRecordData - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Folder.DeletedRecordData} DeletedRecordData - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - DeletedRecordData.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a DeletedRecordData message. - * @function verify - * @memberof Folder.DeletedRecordData - * @static - * @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) { - if (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.ownerUid != null && message.hasOwnProperty("ownerUid")) - if (!(message.ownerUid && typeof message.ownerUid.length === "number" || $util.isString(message.ownerUid))) - return "ownerUid: buffer expected"; - 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"; - 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.version != null && message.hasOwnProperty("version")) - if (!$util.isInteger(message.version)) - return "version: integer expected"; - return null; - }; - /** * Creates a DeletedRecordData message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -121428,6 +98687,8 @@ export const Folder = $root.Folder = (() => { DeletedRecordData.fromObject = function fromObject(object, long) { if (object instanceof $root.Folder.DeletedRecordData) return object; + if (!$util.isObject(object)) + throw TypeError(".Folder.DeletedRecordData: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -121522,27 +98783,27 @@ export const Folder = $root.Folder = (() => { } object.version = 0; } - if (message.recordUid != null && message.hasOwnProperty("recordUid")) + if (message.recordUid != null && Object.hasOwnProperty.call(message, "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.ownerUid != null && message.hasOwnProperty("ownerUid")) + if (message.ownerUid != null && Object.hasOwnProperty.call(message, "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 (message.revision != null && Object.hasOwnProperty.call(message, "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") 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 (message.clientModifiedTime != null && Object.hasOwnProperty.call(message, "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") 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")) + if (message.data != null && Object.hasOwnProperty.call(message, "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.version != null && message.hasOwnProperty("version")) + if (message.version != null && Object.hasOwnProperty.call(message, "version")) object.version = message.version; return object; }; @@ -121652,19 +98913,6 @@ export const Folder = $root.Folder = (() => { return writer; }; - /** - * Encodes the specified Username message, length delimited. Does not implicitly {@link Folder.Username.verify|verify} messages. - * @function encodeDelimited - * @memberof Folder.Username - * @static - * @param {Folder.IUsername} message Username message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Username.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a Username message from the specified reader or buffer. * @function decode @@ -121705,46 +98953,6 @@ export const Folder = $root.Folder = (() => { return message; }; - /** - * Decodes a Username message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Folder.Username - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Folder.Username} Username - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Username.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a Username message. - * @function verify - * @memberof Folder.Username - * @static - * @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) { - if (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"; - if (message.username != null && message.hasOwnProperty("username")) - if (!$util.isString(message.username)) - return "username: string expected"; - return null; - }; - /** * Creates a Username message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -121756,6 +98964,8 @@ export const Folder = $root.Folder = (() => { Username.fromObject = function fromObject(object, long) { if (object instanceof $root.Folder.Username) return object; + if (!$util.isObject(object)) + throw TypeError(".Folder.Username: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -121798,9 +99008,9 @@ export const Folder = $root.Folder = (() => { } object.username = ""; } - if (message.accountUid != null && message.hasOwnProperty("accountUid")) + if (message.accountUid != null && Object.hasOwnProperty.call(message, "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.username != null && message.hasOwnProperty("username")) + if (message.username != null && Object.hasOwnProperty.call(message, "username")) object.username = message.username; return object; }; @@ -121914,19 +99124,6 @@ export const Folder = $root.Folder = (() => { return writer; }; - /** - * Encodes the specified RestoreDeletedSharedFoldersAndRecordsRequest message, length delimited. Does not implicitly {@link Folder.RestoreDeletedSharedFoldersAndRecordsRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof Folder.RestoreDeletedSharedFoldersAndRecordsRequest - * @static - * @param {Folder.IRestoreDeletedSharedFoldersAndRecordsRequest} message RestoreDeletedSharedFoldersAndRecordsRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RestoreDeletedSharedFoldersAndRecordsRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a RestoreDeletedSharedFoldersAndRecordsRequest message from the specified reader or buffer. * @function decode @@ -121971,58 +99168,6 @@ export const Folder = $root.Folder = (() => { return message; }; - /** - * Decodes a RestoreDeletedSharedFoldersAndRecordsRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Folder.RestoreDeletedSharedFoldersAndRecordsRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Folder.RestoreDeletedSharedFoldersAndRecordsRequest} RestoreDeletedSharedFoldersAndRecordsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RestoreDeletedSharedFoldersAndRecordsRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a RestoreDeletedSharedFoldersAndRecordsRequest message. - * @function verify - * @memberof Folder.RestoreDeletedSharedFoldersAndRecordsRequest - * @static - * @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) { - if (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); - if (error) - return "folders." + error; - } - } - 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.Folder.RestoreSharedObject.verify(message.records[i], long + 1); - if (error) - return "records." + error; - } - } - return null; - }; - /** * Creates a RestoreDeletedSharedFoldersAndRecordsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -122034,6 +99179,8 @@ export const Folder = $root.Folder = (() => { RestoreDeletedSharedFoldersAndRecordsRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.Folder.RestoreDeletedSharedFoldersAndRecordsRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".Folder.RestoreDeletedSharedFoldersAndRecordsRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -122044,7 +99191,7 @@ export const Folder = $root.Folder = (() => { throw TypeError(".Folder.RestoreDeletedSharedFoldersAndRecordsRequest.folders: array expected"); message.folders = []; for (let i = 0; i < object.folders.length; ++i) { - if (typeof object.folders[i] !== "object") + if (!$util.isObject(object.folders[i])) throw TypeError(".Folder.RestoreDeletedSharedFoldersAndRecordsRequest.folders: object expected"); message.folders[i] = $root.Folder.RestoreSharedObject.fromObject(object.folders[i], long + 1); } @@ -122054,7 +99201,7 @@ export const Folder = $root.Folder = (() => { throw TypeError(".Folder.RestoreDeletedSharedFoldersAndRecordsRequest.records: array expected"); message.records = []; for (let i = 0; i < object.records.length; ++i) { - if (typeof object.records[i] !== "object") + if (!$util.isObject(object.records[i])) throw TypeError(".Folder.RestoreDeletedSharedFoldersAndRecordsRequest.records: object expected"); message.records[i] = $root.Folder.RestoreSharedObject.fromObject(object.records[i], long + 1); } @@ -122203,19 +99350,6 @@ export const Folder = $root.Folder = (() => { return writer; }; - /** - * Encodes the specified RestoreSharedObject message, length delimited. Does not implicitly {@link Folder.RestoreSharedObject.verify|verify} messages. - * @function encodeDelimited - * @memberof Folder.RestoreSharedObject - * @static - * @param {Folder.IRestoreSharedObject} message RestoreSharedObject message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RestoreSharedObject.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a RestoreSharedObject message from the specified reader or buffer. * @function decode @@ -122258,50 +99392,6 @@ export const Folder = $root.Folder = (() => { return message; }; - /** - * Decodes a RestoreSharedObject message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Folder.RestoreSharedObject - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Folder.RestoreSharedObject} RestoreSharedObject - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RestoreSharedObject.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a RestoreSharedObject message. - * @function verify - * @memberof Folder.RestoreSharedObject - * @static - * @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) { - if (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.recordUids != null && message.hasOwnProperty("recordUids")) { - if (!Array.isArray(message.recordUids)) - return "recordUids: array expected"; - for (let i = 0; i < message.recordUids.length; ++i) - if (!(message.recordUids[i] && typeof message.recordUids[i].length === "number" || $util.isString(message.recordUids[i]))) - return "recordUids: buffer[] expected"; - } - return null; - }; - /** * Creates a RestoreSharedObject message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -122313,6 +99403,8 @@ export const Folder = $root.Folder = (() => { RestoreSharedObject.fromObject = function fromObject(object, long) { if (object instanceof $root.Folder.RestoreSharedObject) return object; + if (!$util.isObject(object)) + throw TypeError(".Folder.RestoreSharedObject: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -122363,7 +99455,7 @@ export const Folder = $root.Folder = (() => { if (options.bytes !== Array) object.folderUid = $util.newBuffer(object.folderUid); } - if (message.folderUid != null && message.hasOwnProperty("folderUid")) + if (message.folderUid != null && Object.hasOwnProperty.call(message, "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.recordUids && message.recordUids.length) { object.recordUids = []; @@ -122574,19 +99666,6 @@ export const Folder = $root.Folder = (() => { return writer; }; - /** - * Encodes the specified FolderData message, length delimited. Does not implicitly {@link Folder.FolderData.verify|verify} messages. - * @function encodeDelimited - * @memberof Folder.FolderData - * @static - * @param {Folder.IFolderData} message FolderData message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - FolderData.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a FolderData message from the specified reader or buffer. * @function decode @@ -122655,82 +99734,6 @@ export const Folder = $root.Folder = (() => { return message; }; - /** - * Decodes a FolderData message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Folder.FolderData - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Folder.FolderData} FolderData - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - FolderData.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a FolderData message. - * @function verify - * @memberof Folder.FolderData - * @static - * @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) { - if (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.parentUid != null && message.hasOwnProperty("parentUid")) - if (!(message.parentUid && typeof message.parentUid.length === "number" || $util.isString(message.parentUid))) - return "parentUid: buffer 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.type != null && message.hasOwnProperty("type")) - switch (message.type) { - default: - return "type: enum value expected"; - case 0: - case 1: - case 2: - case 3: - break; - } - if (message.inheritUserPermissions != null && message.hasOwnProperty("inheritUserPermissions")) - switch (message.inheritUserPermissions) { - default: - return "inheritUserPermissions: enum value expected"; - case 0: - case 1: - case 2: - break; - } - if (message.folderKey != null && message.hasOwnProperty("folderKey")) - 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); - if (error) - return "ownerInfo." + error; - } - if (message.dateCreated != null && message.hasOwnProperty("dateCreated")) - if (!$util.isInteger(message.dateCreated) && !(message.dateCreated && $util.isInteger(message.dateCreated.low) && $util.isInteger(message.dateCreated.high))) - return "dateCreated: integer|Long expected"; - if (message.lastModified != null && message.hasOwnProperty("lastModified")) - if (!$util.isInteger(message.lastModified) && !(message.lastModified && $util.isInteger(message.lastModified.low) && $util.isInteger(message.lastModified.high))) - return "lastModified: integer|Long expected"; - return null; - }; - /** * Creates a FolderData message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -122742,6 +99745,8 @@ export const Folder = $root.Folder = (() => { FolderData.fromObject = function fromObject(object, long) { if (object instanceof $root.Folder.FolderData) return object; + if (!$util.isObject(object)) + throw TypeError(".Folder.FolderData: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -122812,7 +99817,7 @@ export const Folder = $root.Folder = (() => { else if (object.folderKey.length >= 0) message.folderKey = object.folderKey; if (object.ownerInfo != null) { - if (typeof object.ownerInfo !== "object") + if (!$util.isObject(object.ownerInfo)) throw TypeError(".Folder.FolderData.ownerInfo: object expected"); message.ownerInfo = $root.Folder.UserInfo.fromObject(object.ownerInfo, long + 1); } @@ -122897,28 +99902,28 @@ export const Folder = $root.Folder = (() => { } else object.lastModified = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; } - if (message.folderUid != null && message.hasOwnProperty("folderUid")) + if (message.folderUid != null && Object.hasOwnProperty.call(message, "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.parentUid != null && message.hasOwnProperty("parentUid")) + if (message.parentUid != null && Object.hasOwnProperty.call(message, "parentUid")) object.parentUid = options.bytes === String ? $util.base64.encode(message.parentUid, 0, message.parentUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.parentUid) : message.parentUid; - if (message.data != null && message.hasOwnProperty("data")) + if (message.data != null && Object.hasOwnProperty.call(message, "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.type != null && message.hasOwnProperty("type")) + if (message.type != null && Object.hasOwnProperty.call(message, "type")) object.type = options.enums === String ? $root.Folder.FolderUsageType[message.type] === undefined ? message.type : $root.Folder.FolderUsageType[message.type] : message.type; - if (message.inheritUserPermissions != null && message.hasOwnProperty("inheritUserPermissions")) + if (message.inheritUserPermissions != null && Object.hasOwnProperty.call(message, "inheritUserPermissions")) object.inheritUserPermissions = options.enums === String ? $root.Folder.SetBooleanValue[message.inheritUserPermissions] === undefined ? message.inheritUserPermissions : $root.Folder.SetBooleanValue[message.inheritUserPermissions] : message.inheritUserPermissions; - if (message.folderKey != null && message.hasOwnProperty("folderKey")) + if (message.folderKey != null && Object.hasOwnProperty.call(message, "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")) + if (message.ownerInfo != null && Object.hasOwnProperty.call(message, "ownerInfo")) object.ownerInfo = $root.Folder.UserInfo.toObject(message.ownerInfo, options, q + 1); - if (message.dateCreated != null && message.hasOwnProperty("dateCreated")) + if (message.dateCreated != null && Object.hasOwnProperty.call(message, "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") 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 (message.lastModified != null && Object.hasOwnProperty.call(message, "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") @@ -123055,19 +100060,6 @@ export const Folder = $root.Folder = (() => { return writer; }; - /** - * Encodes the specified FolderKey message, length delimited. Does not implicitly {@link Folder.FolderKey.verify|verify} messages. - * @function encodeDelimited - * @memberof Folder.FolderKey - * @static - * @param {Folder.IFolderKey} message FolderKey message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - FolderKey.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a FolderKey message from the specified reader or buffer. * @function decode @@ -123116,58 +100108,6 @@ export const Folder = $root.Folder = (() => { return message; }; - /** - * Decodes a FolderKey message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Folder.FolderKey - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Folder.FolderKey} FolderKey - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - FolderKey.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a FolderKey message. - * @function verify - * @memberof Folder.FolderKey - * @static - * @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) { - if (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.parentUid != null && message.hasOwnProperty("parentUid")) - if (!(message.parentUid && typeof message.parentUid.length === "number" || $util.isString(message.parentUid))) - return "parentUid: buffer expected"; - if (message.folderKey != null && message.hasOwnProperty("folderKey")) - if (!(message.folderKey && typeof message.folderKey.length === "number" || $util.isString(message.folderKey))) - return "folderKey: buffer expected"; - if (message.encryptedBy != null && message.hasOwnProperty("encryptedBy")) - switch (message.encryptedBy) { - default: - return "encryptedBy: enum value expected"; - case 0: - case 1: - case 2: - break; - } - return null; - }; - /** * Creates a FolderKey message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -123179,6 +100119,8 @@ export const Folder = $root.Folder = (() => { FolderKey.fromObject = function fromObject(object, long) { if (object instanceof $root.Folder.FolderKey) return object; + if (!$util.isObject(object)) + throw TypeError(".Folder.FolderKey: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -123263,13 +100205,13 @@ export const Folder = $root.Folder = (() => { } object.encryptedBy = options.enums === String ? "ENCRYPTED_BY_USER_KEY" : 0; } - if (message.folderUid != null && message.hasOwnProperty("folderUid")) + if (message.folderUid != null && Object.hasOwnProperty.call(message, "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.parentUid != null && message.hasOwnProperty("parentUid")) + if (message.parentUid != null && Object.hasOwnProperty.call(message, "parentUid")) object.parentUid = options.bytes === String ? $util.base64.encode(message.parentUid, 0, message.parentUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.parentUid) : message.parentUid; - if (message.folderKey != null && message.hasOwnProperty("folderKey")) + if (message.folderKey != null && Object.hasOwnProperty.call(message, "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.encryptedBy != null && message.hasOwnProperty("encryptedBy")) + if (message.encryptedBy != null && Object.hasOwnProperty.call(message, "encryptedBy")) object.encryptedBy = options.enums === String ? $root.Folder.FolderKeyEncryptionType[message.encryptedBy] === undefined ? message.encryptedBy : $root.Folder.FolderKeyEncryptionType[message.encryptedBy] : message.encryptedBy; return object; }; @@ -123386,19 +100328,6 @@ export const Folder = $root.Folder = (() => { return writer; }; - /** - * Encodes the specified FolderAddRequest message, length delimited. Does not implicitly {@link Folder.FolderAddRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof Folder.FolderAddRequest - * @static - * @param {Folder.IFolderAddRequest} message FolderAddRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - FolderAddRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a FolderAddRequest message from the specified reader or buffer. * @function decode @@ -123437,49 +100366,6 @@ export const Folder = $root.Folder = (() => { return message; }; - /** - * Decodes a FolderAddRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Folder.FolderAddRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Folder.FolderAddRequest} FolderAddRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - FolderAddRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a FolderAddRequest message. - * @function verify - * @memberof Folder.FolderAddRequest - * @static - * @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) { - if (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); - if (error) - return "folderData." + error; - } - } - return null; - }; - /** * Creates a FolderAddRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -123491,6 +100377,8 @@ export const Folder = $root.Folder = (() => { FolderAddRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.Folder.FolderAddRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".Folder.FolderAddRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -123501,7 +100389,7 @@ export const Folder = $root.Folder = (() => { throw TypeError(".Folder.FolderAddRequest.folderData: array expected"); message.folderData = []; for (let i = 0; i < object.folderData.length; ++i) { - if (typeof object.folderData[i] !== "object") + if (!$util.isObject(object.folderData[i])) throw TypeError(".Folder.FolderAddRequest.folderData: object expected"); message.folderData[i] = $root.Folder.FolderData.fromObject(object.folderData[i], long + 1); } @@ -123670,19 +100558,6 @@ export const Folder = $root.Folder = (() => { return writer; }; - /** - * Encodes the specified FolderModifyResult message, length delimited. Does not implicitly {@link Folder.FolderModifyResult.verify|verify} messages. - * @function encodeDelimited - * @memberof Folder.FolderModifyResult - * @static - * @param {Folder.IFolderModifyResult} message FolderModifyResult message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - FolderModifyResult.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a FolderModifyResult message from the specified reader or buffer. * @function decode @@ -123727,56 +100602,6 @@ export const Folder = $root.Folder = (() => { return message; }; - /** - * Decodes a FolderModifyResult message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Folder.FolderModifyResult - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Folder.FolderModifyResult} FolderModifyResult - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - FolderModifyResult.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a FolderModifyResult message. - * @function verify - * @memberof Folder.FolderModifyResult - * @static - * @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) { - if (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.status != null && message.hasOwnProperty("status")) - switch (message.status) { - default: - return "status: enum value expected"; - case 0: - case 1: - case 2: - case 3: - break; - } - if (message.message != null && message.hasOwnProperty("message")) - if (!$util.isString(message.message)) - return "message: string expected"; - return null; - }; - /** * Creates a FolderModifyResult message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -123788,6 +100613,8 @@ export const Folder = $root.Folder = (() => { FolderModifyResult.fromObject = function fromObject(object, long) { if (object instanceof $root.Folder.FolderModifyResult) return object; + if (!$util.isObject(object)) + throw TypeError(".Folder.FolderModifyResult: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -123855,11 +100682,11 @@ export const Folder = $root.Folder = (() => { object.status = options.enums === String ? "SUCCESS" : 0; object.message = ""; } - if (message.folderUid != null && message.hasOwnProperty("folderUid")) + if (message.folderUid != null && Object.hasOwnProperty.call(message, "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.status != null && message.hasOwnProperty("status")) + if (message.status != null && Object.hasOwnProperty.call(message, "status")) object.status = options.enums === String ? $root.Folder.FolderModifyStatus[message.status] === undefined ? message.status : $root.Folder.FolderModifyStatus[message.status] : message.status; - if (message.message != null && message.hasOwnProperty("message")) + if (message.message != null && Object.hasOwnProperty.call(message, "message")) object.message = message.message; return object; }; @@ -123960,19 +100787,6 @@ export const Folder = $root.Folder = (() => { return writer; }; - /** - * Encodes the specified FolderAddResponse message, length delimited. Does not implicitly {@link Folder.FolderAddResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof Folder.FolderAddResponse - * @static - * @param {Folder.IFolderAddResponse} message FolderAddResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - FolderAddResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a FolderAddResponse message from the specified reader or buffer. * @function decode @@ -124011,49 +100825,6 @@ export const Folder = $root.Folder = (() => { return message; }; - /** - * Decodes a FolderAddResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Folder.FolderAddResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Folder.FolderAddResponse} FolderAddResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - FolderAddResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a FolderAddResponse message. - * @function verify - * @memberof Folder.FolderAddResponse - * @static - * @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) { - if (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); - if (error) - return "folderAddResults." + error; - } - } - return null; - }; - /** * Creates a FolderAddResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -124065,6 +100836,8 @@ export const Folder = $root.Folder = (() => { FolderAddResponse.fromObject = function fromObject(object, long) { if (object instanceof $root.Folder.FolderAddResponse) return object; + if (!$util.isObject(object)) + throw TypeError(".Folder.FolderAddResponse: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -124075,7 +100848,7 @@ export const Folder = $root.Folder = (() => { throw TypeError(".Folder.FolderAddResponse.folderAddResults: array expected"); message.folderAddResults = []; for (let i = 0; i < object.folderAddResults.length; ++i) { - if (typeof object.folderAddResults[i] !== "object") + if (!$util.isObject(object.folderAddResults[i])) throw TypeError(".Folder.FolderAddResponse.folderAddResults: object expected"); message.folderAddResults[i] = $root.Folder.FolderModifyResult.fromObject(object.folderAddResults[i], long + 1); } @@ -124206,19 +100979,6 @@ export const Folder = $root.Folder = (() => { return writer; }; - /** - * Encodes the specified FolderUpdateRequest message, length delimited. Does not implicitly {@link Folder.FolderUpdateRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof Folder.FolderUpdateRequest - * @static - * @param {Folder.IFolderUpdateRequest} message FolderUpdateRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - FolderUpdateRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a FolderUpdateRequest message from the specified reader or buffer. * @function decode @@ -124257,49 +101017,6 @@ export const Folder = $root.Folder = (() => { return message; }; - /** - * Decodes a FolderUpdateRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Folder.FolderUpdateRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Folder.FolderUpdateRequest} FolderUpdateRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - FolderUpdateRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a FolderUpdateRequest message. - * @function verify - * @memberof Folder.FolderUpdateRequest - * @static - * @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) { - if (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); - if (error) - return "folderData." + error; - } - } - return null; - }; - /** * Creates a FolderUpdateRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -124311,6 +101028,8 @@ export const Folder = $root.Folder = (() => { FolderUpdateRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.Folder.FolderUpdateRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".Folder.FolderUpdateRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -124321,7 +101040,7 @@ export const Folder = $root.Folder = (() => { throw TypeError(".Folder.FolderUpdateRequest.folderData: array expected"); message.folderData = []; for (let i = 0; i < object.folderData.length; ++i) { - if (typeof object.folderData[i] !== "object") + if (!$util.isObject(object.folderData[i])) throw TypeError(".Folder.FolderUpdateRequest.folderData: object expected"); message.folderData[i] = $root.Folder.FolderData.fromObject(object.folderData[i], long + 1); } @@ -124452,19 +101171,6 @@ export const Folder = $root.Folder = (() => { return writer; }; - /** - * Encodes the specified FolderUpdateResponse message, length delimited. Does not implicitly {@link Folder.FolderUpdateResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof Folder.FolderUpdateResponse - * @static - * @param {Folder.IFolderUpdateResponse} message FolderUpdateResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - FolderUpdateResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a FolderUpdateResponse message from the specified reader or buffer. * @function decode @@ -124503,49 +101209,6 @@ export const Folder = $root.Folder = (() => { return message; }; - /** - * Decodes a FolderUpdateResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Folder.FolderUpdateResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Folder.FolderUpdateResponse} FolderUpdateResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - FolderUpdateResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a FolderUpdateResponse message. - * @function verify - * @memberof Folder.FolderUpdateResponse - * @static - * @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) { - if (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); - if (error) - return "folderUpdateResults." + error; - } - } - return null; - }; - /** * Creates a FolderUpdateResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -124557,6 +101220,8 @@ export const Folder = $root.Folder = (() => { FolderUpdateResponse.fromObject = function fromObject(object, long) { if (object instanceof $root.Folder.FolderUpdateResponse) return object; + if (!$util.isObject(object)) + throw TypeError(".Folder.FolderUpdateResponse: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -124567,7 +101232,7 @@ export const Folder = $root.Folder = (() => { throw TypeError(".Folder.FolderUpdateResponse.folderUpdateResults: array expected"); message.folderUpdateResults = []; for (let i = 0; i < object.folderUpdateResults.length; ++i) { - if (typeof object.folderUpdateResults[i] !== "object") + if (!$util.isObject(object.folderUpdateResults[i])) throw TypeError(".Folder.FolderUpdateResponse.folderUpdateResults: object expected"); message.folderUpdateResults[i] = $root.Folder.FolderModifyResult.fromObject(object.folderUpdateResults[i], long + 1); } @@ -124866,19 +101531,6 @@ export const Folder = $root.Folder = (() => { return writer; }; - /** - * Encodes the specified FolderPermissions message, length delimited. Does not implicitly {@link Folder.FolderPermissions.verify|verify} messages. - * @function encodeDelimited - * @memberof Folder.FolderPermissions - * @static - * @param {Folder.IFolderPermissions} message FolderPermissions message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - FolderPermissions.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a FolderPermissions message from the specified reader or buffer. * @function decode @@ -124963,79 +101615,6 @@ export const Folder = $root.Folder = (() => { return message; }; - /** - * Decodes a FolderPermissions message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Folder.FolderPermissions - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Folder.FolderPermissions} FolderPermissions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - FolderPermissions.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a FolderPermissions message. - * @function verify - * @memberof Folder.FolderPermissions - * @static - * @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) { - if (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"; - if (message.canRemove != null && message.hasOwnProperty("canRemove")) - if (typeof message.canRemove !== "boolean") - return "canRemove: boolean expected"; - if (message.canDelete != null && message.hasOwnProperty("canDelete")) - if (typeof message.canDelete !== "boolean") - return "canDelete: boolean expected"; - if (message.canListAccess != null && message.hasOwnProperty("canListAccess")) - if (typeof message.canListAccess !== "boolean") - return "canListAccess: boolean expected"; - if (message.canUpdateAccess != null && message.hasOwnProperty("canUpdateAccess")) - if (typeof message.canUpdateAccess !== "boolean") - return "canUpdateAccess: boolean expected"; - if (message.canChangeOwnership != null && message.hasOwnProperty("canChangeOwnership")) - if (typeof message.canChangeOwnership !== "boolean") - return "canChangeOwnership: boolean expected"; - if (message.canEditRecords != null && message.hasOwnProperty("canEditRecords")) - if (typeof message.canEditRecords !== "boolean") - return "canEditRecords: boolean expected"; - if (message.canViewRecords != null && message.hasOwnProperty("canViewRecords")) - if (typeof message.canViewRecords !== "boolean") - return "canViewRecords: boolean expected"; - if (message.canApproveAccess != null && message.hasOwnProperty("canApproveAccess")) - if (typeof message.canApproveAccess !== "boolean") - return "canApproveAccess: boolean expected"; - if (message.canRequestAccess != null && message.hasOwnProperty("canRequestAccess")) - if (typeof message.canRequestAccess !== "boolean") - return "canRequestAccess: boolean expected"; - if (message.canUpdateSetting != null && message.hasOwnProperty("canUpdateSetting")) - if (typeof message.canUpdateSetting !== "boolean") - return "canUpdateSetting: boolean expected"; - if (message.canListRecords != null && message.hasOwnProperty("canListRecords")) - if (typeof message.canListRecords !== "boolean") - return "canListRecords: boolean expected"; - if (message.canListFolders != null && message.hasOwnProperty("canListFolders")) - if (typeof message.canListFolders !== "boolean") - return "canListFolders: boolean expected"; - return null; - }; - /** * Creates a FolderPermissions message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -125047,6 +101626,8 @@ export const Folder = $root.Folder = (() => { FolderPermissions.fromObject = function fromObject(object, long) { if (object instanceof $root.Folder.FolderPermissions) return object; + if (!$util.isObject(object)) + throw TypeError(".Folder.FolderPermissions: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -125113,31 +101694,31 @@ export const Folder = $root.Folder = (() => { object.canListRecords = false; object.canListFolders = false; } - if (message.canAdd != null && message.hasOwnProperty("canAdd")) + if (message.canAdd != null && Object.hasOwnProperty.call(message, "canAdd")) object.canAdd = message.canAdd; - if (message.canRemove != null && message.hasOwnProperty("canRemove")) + if (message.canRemove != null && Object.hasOwnProperty.call(message, "canRemove")) object.canRemove = message.canRemove; - if (message.canDelete != null && message.hasOwnProperty("canDelete")) + if (message.canDelete != null && Object.hasOwnProperty.call(message, "canDelete")) object.canDelete = message.canDelete; - if (message.canListAccess != null && message.hasOwnProperty("canListAccess")) + if (message.canListAccess != null && Object.hasOwnProperty.call(message, "canListAccess")) object.canListAccess = message.canListAccess; - if (message.canUpdateAccess != null && message.hasOwnProperty("canUpdateAccess")) + if (message.canUpdateAccess != null && Object.hasOwnProperty.call(message, "canUpdateAccess")) object.canUpdateAccess = message.canUpdateAccess; - if (message.canChangeOwnership != null && message.hasOwnProperty("canChangeOwnership")) + if (message.canChangeOwnership != null && Object.hasOwnProperty.call(message, "canChangeOwnership")) object.canChangeOwnership = message.canChangeOwnership; - if (message.canEditRecords != null && message.hasOwnProperty("canEditRecords")) + if (message.canEditRecords != null && Object.hasOwnProperty.call(message, "canEditRecords")) object.canEditRecords = message.canEditRecords; - if (message.canViewRecords != null && message.hasOwnProperty("canViewRecords")) + if (message.canViewRecords != null && Object.hasOwnProperty.call(message, "canViewRecords")) object.canViewRecords = message.canViewRecords; - if (message.canApproveAccess != null && message.hasOwnProperty("canApproveAccess")) + if (message.canApproveAccess != null && Object.hasOwnProperty.call(message, "canApproveAccess")) object.canApproveAccess = message.canApproveAccess; - if (message.canRequestAccess != null && message.hasOwnProperty("canRequestAccess")) + if (message.canRequestAccess != null && Object.hasOwnProperty.call(message, "canRequestAccess")) object.canRequestAccess = message.canRequestAccess; - if (message.canUpdateSetting != null && message.hasOwnProperty("canUpdateSetting")) + if (message.canUpdateSetting != null && Object.hasOwnProperty.call(message, "canUpdateSetting")) object.canUpdateSetting = message.canUpdateSetting; - if (message.canListRecords != null && message.hasOwnProperty("canListRecords")) + if (message.canListRecords != null && Object.hasOwnProperty.call(message, "canListRecords")) object.canListRecords = message.canListRecords; - if (message.canListFolders != null && message.hasOwnProperty("canListFolders")) + if (message.canListFolders != null && Object.hasOwnProperty.call(message, "canListFolders")) object.canListFolders = message.canListFolders; return object; }; @@ -125368,19 +101949,6 @@ export const Folder = $root.Folder = (() => { return writer; }; - /** - * Encodes the specified Capabilities message, length delimited. Does not implicitly {@link Folder.Capabilities.verify|verify} messages. - * @function encodeDelimited - * @memberof Folder.Capabilities - * @static - * @param {Folder.ICapabilities} message Capabilities message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Capabilities.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a Capabilities message from the specified reader or buffer. * @function decode @@ -125465,157 +102033,6 @@ export const Folder = $root.Folder = (() => { return message; }; - /** - * Decodes a Capabilities message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Folder.Capabilities - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Folder.Capabilities} Capabilities - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Capabilities.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a Capabilities message. - * @function verify - * @memberof Folder.Capabilities - * @static - * @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) { - if (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: - return "canAdd: enum value expected"; - case 0: - case 1: - case 2: - break; - } - if (message.canRemove != null && message.hasOwnProperty("canRemove")) - switch (message.canRemove) { - default: - return "canRemove: enum value expected"; - case 0: - case 1: - case 2: - break; - } - if (message.canDelete != null && message.hasOwnProperty("canDelete")) - switch (message.canDelete) { - default: - return "canDelete: enum value expected"; - case 0: - case 1: - case 2: - break; - } - if (message.canListAccess != null && message.hasOwnProperty("canListAccess")) - switch (message.canListAccess) { - default: - return "canListAccess: enum value expected"; - case 0: - case 1: - case 2: - break; - } - if (message.canUpdateAccess != null && message.hasOwnProperty("canUpdateAccess")) - switch (message.canUpdateAccess) { - default: - return "canUpdateAccess: enum value expected"; - case 0: - case 1: - case 2: - break; - } - if (message.canChangeOwnership != null && message.hasOwnProperty("canChangeOwnership")) - switch (message.canChangeOwnership) { - default: - return "canChangeOwnership: enum value expected"; - case 0: - case 1: - case 2: - break; - } - if (message.canEditRecords != null && message.hasOwnProperty("canEditRecords")) - switch (message.canEditRecords) { - default: - return "canEditRecords: enum value expected"; - case 0: - case 1: - case 2: - break; - } - if (message.canViewRecords != null && message.hasOwnProperty("canViewRecords")) - switch (message.canViewRecords) { - default: - return "canViewRecords: enum value expected"; - case 0: - case 1: - case 2: - break; - } - if (message.canApproveAccess != null && message.hasOwnProperty("canApproveAccess")) - switch (message.canApproveAccess) { - default: - return "canApproveAccess: enum value expected"; - case 0: - case 1: - case 2: - break; - } - if (message.canRequestAccess != null && message.hasOwnProperty("canRequestAccess")) - switch (message.canRequestAccess) { - default: - return "canRequestAccess: enum value expected"; - case 0: - case 1: - case 2: - break; - } - if (message.canUpdateSetting != null && message.hasOwnProperty("canUpdateSetting")) - switch (message.canUpdateSetting) { - default: - return "canUpdateSetting: enum value expected"; - case 0: - case 1: - case 2: - break; - } - if (message.canListRecords != null && message.hasOwnProperty("canListRecords")) - switch (message.canListRecords) { - default: - return "canListRecords: enum value expected"; - case 0: - case 1: - case 2: - break; - } - if (message.canListFolders != null && message.hasOwnProperty("canListFolders")) - switch (message.canListFolders) { - default: - return "canListFolders: enum value expected"; - case 0: - case 1: - case 2: - break; - } - return null; - }; - /** * Creates a Capabilities message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -125627,6 +102044,8 @@ export const Folder = $root.Folder = (() => { Capabilities.fromObject = function fromObject(object, long) { if (object instanceof $root.Folder.Capabilities) return object; + if (!$util.isObject(object)) + throw TypeError(".Folder.Capabilities: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -125927,31 +102346,31 @@ export const Folder = $root.Folder = (() => { object.canListRecords = options.enums === String ? "BOOLEAN_NO_CHANGE" : 0; object.canListFolders = options.enums === String ? "BOOLEAN_NO_CHANGE" : 0; } - if (message.canAdd != null && message.hasOwnProperty("canAdd")) + if (message.canAdd != null && Object.hasOwnProperty.call(message, "canAdd")) object.canAdd = options.enums === String ? $root.Folder.SetBooleanValue[message.canAdd] === undefined ? message.canAdd : $root.Folder.SetBooleanValue[message.canAdd] : message.canAdd; - if (message.canRemove != null && message.hasOwnProperty("canRemove")) + if (message.canRemove != null && Object.hasOwnProperty.call(message, "canRemove")) object.canRemove = options.enums === String ? $root.Folder.SetBooleanValue[message.canRemove] === undefined ? message.canRemove : $root.Folder.SetBooleanValue[message.canRemove] : message.canRemove; - if (message.canDelete != null && message.hasOwnProperty("canDelete")) + if (message.canDelete != null && Object.hasOwnProperty.call(message, "canDelete")) object.canDelete = options.enums === String ? $root.Folder.SetBooleanValue[message.canDelete] === undefined ? message.canDelete : $root.Folder.SetBooleanValue[message.canDelete] : message.canDelete; - if (message.canListAccess != null && message.hasOwnProperty("canListAccess")) + if (message.canListAccess != null && Object.hasOwnProperty.call(message, "canListAccess")) object.canListAccess = options.enums === String ? $root.Folder.SetBooleanValue[message.canListAccess] === undefined ? message.canListAccess : $root.Folder.SetBooleanValue[message.canListAccess] : message.canListAccess; - if (message.canUpdateAccess != null && message.hasOwnProperty("canUpdateAccess")) + if (message.canUpdateAccess != null && Object.hasOwnProperty.call(message, "canUpdateAccess")) object.canUpdateAccess = options.enums === String ? $root.Folder.SetBooleanValue[message.canUpdateAccess] === undefined ? message.canUpdateAccess : $root.Folder.SetBooleanValue[message.canUpdateAccess] : message.canUpdateAccess; - if (message.canChangeOwnership != null && message.hasOwnProperty("canChangeOwnership")) + if (message.canChangeOwnership != null && Object.hasOwnProperty.call(message, "canChangeOwnership")) object.canChangeOwnership = options.enums === String ? $root.Folder.SetBooleanValue[message.canChangeOwnership] === undefined ? message.canChangeOwnership : $root.Folder.SetBooleanValue[message.canChangeOwnership] : message.canChangeOwnership; - if (message.canEditRecords != null && message.hasOwnProperty("canEditRecords")) + if (message.canEditRecords != null && Object.hasOwnProperty.call(message, "canEditRecords")) object.canEditRecords = options.enums === String ? $root.Folder.SetBooleanValue[message.canEditRecords] === undefined ? message.canEditRecords : $root.Folder.SetBooleanValue[message.canEditRecords] : message.canEditRecords; - if (message.canViewRecords != null && message.hasOwnProperty("canViewRecords")) + if (message.canViewRecords != null && Object.hasOwnProperty.call(message, "canViewRecords")) object.canViewRecords = options.enums === String ? $root.Folder.SetBooleanValue[message.canViewRecords] === undefined ? message.canViewRecords : $root.Folder.SetBooleanValue[message.canViewRecords] : message.canViewRecords; - if (message.canApproveAccess != null && message.hasOwnProperty("canApproveAccess")) + if (message.canApproveAccess != null && Object.hasOwnProperty.call(message, "canApproveAccess")) object.canApproveAccess = options.enums === String ? $root.Folder.SetBooleanValue[message.canApproveAccess] === undefined ? message.canApproveAccess : $root.Folder.SetBooleanValue[message.canApproveAccess] : message.canApproveAccess; - if (message.canRequestAccess != null && message.hasOwnProperty("canRequestAccess")) + if (message.canRequestAccess != null && Object.hasOwnProperty.call(message, "canRequestAccess")) object.canRequestAccess = options.enums === String ? $root.Folder.SetBooleanValue[message.canRequestAccess] === undefined ? message.canRequestAccess : $root.Folder.SetBooleanValue[message.canRequestAccess] : message.canRequestAccess; - if (message.canUpdateSetting != null && message.hasOwnProperty("canUpdateSetting")) + if (message.canUpdateSetting != null && Object.hasOwnProperty.call(message, "canUpdateSetting")) object.canUpdateSetting = options.enums === String ? $root.Folder.SetBooleanValue[message.canUpdateSetting] === undefined ? message.canUpdateSetting : $root.Folder.SetBooleanValue[message.canUpdateSetting] : message.canUpdateSetting; - if (message.canListRecords != null && message.hasOwnProperty("canListRecords")) + if (message.canListRecords != null && Object.hasOwnProperty.call(message, "canListRecords")) object.canListRecords = options.enums === String ? $root.Folder.SetBooleanValue[message.canListRecords] === undefined ? message.canListRecords : $root.Folder.SetBooleanValue[message.canListRecords] : message.canListRecords; - if (message.canListFolders != null && message.hasOwnProperty("canListFolders")) + if (message.canListFolders != null && Object.hasOwnProperty.call(message, "canListFolders")) object.canListFolders = options.enums === String ? $root.Folder.SetBooleanValue[message.canListFolders] === undefined ? message.canListFolders : $root.Folder.SetBooleanValue[message.canListFolders] : message.canListFolders; return object; }; @@ -126089,19 +102508,6 @@ export const Folder = $root.Folder = (() => { return writer; }; - /** - * Encodes the specified FolderRecordUpdateRequest message, length delimited. Does not implicitly {@link Folder.FolderRecordUpdateRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof Folder.FolderRecordUpdateRequest - * @static - * @param {Folder.IFolderRecordUpdateRequest} message FolderRecordUpdateRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - FolderRecordUpdateRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a FolderRecordUpdateRequest message from the specified reader or buffer. * @function decode @@ -126156,70 +102562,6 @@ export const Folder = $root.Folder = (() => { return message; }; - /** - * Decodes a FolderRecordUpdateRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Folder.FolderRecordUpdateRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Folder.FolderRecordUpdateRequest} FolderRecordUpdateRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - FolderRecordUpdateRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a FolderRecordUpdateRequest message. - * @function verify - * @memberof Folder.FolderRecordUpdateRequest - * @static - * @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) { - if (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.addRecords != null && message.hasOwnProperty("addRecords")) { - 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); - if (error) - return "addRecords." + error; - } - } - if (message.updateRecords != null && message.hasOwnProperty("updateRecords")) { - 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); - if (error) - return "updateRecords." + error; - } - } - if (message.removeRecords != null && message.hasOwnProperty("removeRecords")) { - 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); - if (error) - return "removeRecords." + error; - } - } - return null; - }; - /** * Creates a FolderRecordUpdateRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -126231,6 +102573,8 @@ export const Folder = $root.Folder = (() => { FolderRecordUpdateRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.Folder.FolderRecordUpdateRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".Folder.FolderRecordUpdateRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -126246,7 +102590,7 @@ export const Folder = $root.Folder = (() => { throw TypeError(".Folder.FolderRecordUpdateRequest.addRecords: array expected"); message.addRecords = []; for (let i = 0; i < object.addRecords.length; ++i) { - if (typeof object.addRecords[i] !== "object") + if (!$util.isObject(object.addRecords[i])) throw TypeError(".Folder.FolderRecordUpdateRequest.addRecords: object expected"); message.addRecords[i] = $root.Folder.RecordMetadata.fromObject(object.addRecords[i], long + 1); } @@ -126256,7 +102600,7 @@ export const Folder = $root.Folder = (() => { throw TypeError(".Folder.FolderRecordUpdateRequest.updateRecords: array expected"); message.updateRecords = []; for (let i = 0; i < object.updateRecords.length; ++i) { - if (typeof object.updateRecords[i] !== "object") + if (!$util.isObject(object.updateRecords[i])) throw TypeError(".Folder.FolderRecordUpdateRequest.updateRecords: object expected"); message.updateRecords[i] = $root.Folder.RecordMetadata.fromObject(object.updateRecords[i], long + 1); } @@ -126266,7 +102610,7 @@ export const Folder = $root.Folder = (() => { throw TypeError(".Folder.FolderRecordUpdateRequest.removeRecords: array expected"); message.removeRecords = []; for (let i = 0; i < object.removeRecords.length; ++i) { - if (typeof object.removeRecords[i] !== "object") + if (!$util.isObject(object.removeRecords[i])) throw TypeError(".Folder.FolderRecordUpdateRequest.removeRecords: object expected"); message.removeRecords[i] = $root.Folder.RecordMetadata.fromObject(object.removeRecords[i], long + 1); } @@ -126304,7 +102648,7 @@ export const Folder = $root.Folder = (() => { if (options.bytes !== Array) object.folderUid = $util.newBuffer(object.folderUid); } - if (message.folderUid != null && message.hasOwnProperty("folderUid")) + if (message.folderUid != null && Object.hasOwnProperty.call(message, "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.addRecords && message.addRecords.length) { object.addRecords = []; @@ -126451,19 +102795,6 @@ export const Folder = $root.Folder = (() => { return writer; }; - /** - * Encodes the specified RecordMetadata message, length delimited. Does not implicitly {@link Folder.RecordMetadata.verify|verify} messages. - * @function encodeDelimited - * @memberof Folder.RecordMetadata - * @static - * @param {Folder.IRecordMetadata} message RecordMetadata message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RecordMetadata.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a RecordMetadata message from the specified reader or buffer. * @function decode @@ -126512,62 +102843,6 @@ export const Folder = $root.Folder = (() => { return message; }; - /** - * Decodes a RecordMetadata message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Folder.RecordMetadata - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Folder.RecordMetadata} RecordMetadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RecordMetadata.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a RecordMetadata message. - * @function verify - * @memberof Folder.RecordMetadata - * @static - * @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) { - if (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.encryptedRecordKey != null && message.hasOwnProperty("encryptedRecordKey")) - if (!(message.encryptedRecordKey && typeof message.encryptedRecordKey.length === "number" || $util.isString(message.encryptedRecordKey))) - return "encryptedRecordKey: buffer expected"; - if (message.encryptedRecordKeyType != null && message.hasOwnProperty("encryptedRecordKeyType")) - switch (message.encryptedRecordKeyType) { - default: - return "encryptedRecordKeyType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - break; - } - if (message.tlaProperties != null && message.hasOwnProperty("tlaProperties")) { - let error = $root.common.tla.TLAProperties.verify(message.tlaProperties, long + 1); - if (error) - return "tlaProperties." + error; - } - return null; - }; - /** * Creates a RecordMetadata message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -126579,6 +102854,8 @@ export const Folder = $root.Folder = (() => { RecordMetadata.fromObject = function fromObject(object, long) { if (object instanceof $root.Folder.RecordMetadata) return object; + if (!$util.isObject(object)) + throw TypeError(".Folder.RecordMetadata: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -126623,7 +102900,7 @@ export const Folder = $root.Folder = (() => { break; } if (object.tlaProperties != null) { - if (typeof object.tlaProperties !== "object") + if (!$util.isObject(object.tlaProperties)) throw TypeError(".Folder.RecordMetadata.tlaProperties: object expected"); message.tlaProperties = $root.common.tla.TLAProperties.fromObject(object.tlaProperties, long + 1); } @@ -126665,13 +102942,13 @@ export const Folder = $root.Folder = (() => { object.encryptedRecordKeyType = options.enums === String ? "no_key" : 0; object.tlaProperties = null; } - if (message.recordUid != null && message.hasOwnProperty("recordUid")) + if (message.recordUid != null && Object.hasOwnProperty.call(message, "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.encryptedRecordKey != null && message.hasOwnProperty("encryptedRecordKey")) + if (message.encryptedRecordKey != null && Object.hasOwnProperty.call(message, "encryptedRecordKey")) object.encryptedRecordKey = options.bytes === String ? $util.base64.encode(message.encryptedRecordKey, 0, message.encryptedRecordKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedRecordKey) : message.encryptedRecordKey; - if (message.encryptedRecordKeyType != null && message.hasOwnProperty("encryptedRecordKeyType")) + if (message.encryptedRecordKeyType != null && Object.hasOwnProperty.call(message, "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")) + if (message.tlaProperties != null && Object.hasOwnProperty.call(message, "tlaProperties")) object.tlaProperties = $root.common.tla.TLAProperties.toObject(message.tlaProperties, options, q + 1); return object; }; @@ -126792,19 +103069,6 @@ export const Folder = $root.Folder = (() => { return writer; }; - /** - * Encodes the specified FolderRecord message, length delimited. Does not implicitly {@link Folder.FolderRecord.verify|verify} messages. - * @function encodeDelimited - * @memberof Folder.FolderRecord - * @static - * @param {Folder.IFolderRecord} message FolderRecord message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - FolderRecord.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a FolderRecord message from the specified reader or buffer. * @function decode @@ -126849,57 +103113,6 @@ export const Folder = $root.Folder = (() => { return message; }; - /** - * Decodes a FolderRecord message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Folder.FolderRecord - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Folder.FolderRecord} FolderRecord - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - FolderRecord.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a FolderRecord message. - * @function verify - * @memberof Folder.FolderRecord - * @static - * @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) { - if (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); - if (error) - return "recordMetadata." + error; - } - if (message.folderKeyEncryptionType != null && message.hasOwnProperty("folderKeyEncryptionType")) - switch (message.folderKeyEncryptionType) { - default: - return "folderKeyEncryptionType: enum value expected"; - case 0: - case 1: - case 2: - break; - } - return null; - }; - /** * Creates a FolderRecord message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -126911,6 +103124,8 @@ export const Folder = $root.Folder = (() => { FolderRecord.fromObject = function fromObject(object, long) { if (object instanceof $root.Folder.FolderRecord) return object; + if (!$util.isObject(object)) + throw TypeError(".Folder.FolderRecord: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -126922,7 +103137,7 @@ export const Folder = $root.Folder = (() => { else if (object.folderUid.length >= 0) message.folderUid = object.folderUid; if (object.recordMetadata != null) { - if (typeof object.recordMetadata !== "object") + if (!$util.isObject(object.recordMetadata)) throw TypeError(".Folder.FolderRecord.recordMetadata: object expected"); message.recordMetadata = $root.Folder.RecordMetadata.fromObject(object.recordMetadata, long + 1); } @@ -126977,11 +103192,11 @@ export const Folder = $root.Folder = (() => { object.recordMetadata = null; object.folderKeyEncryptionType = options.enums === String ? "ENCRYPTED_BY_USER_KEY" : 0; } - if (message.folderUid != null && message.hasOwnProperty("folderUid")) + if (message.folderUid != null && Object.hasOwnProperty.call(message, "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")) + if (message.recordMetadata != null && Object.hasOwnProperty.call(message, "recordMetadata")) object.recordMetadata = $root.Folder.RecordMetadata.toObject(message.recordMetadata, options, q + 1); - if (message.folderKeyEncryptionType != null && message.hasOwnProperty("folderKeyEncryptionType")) + if (message.folderKeyEncryptionType != null && Object.hasOwnProperty.call(message, "folderKeyEncryptionType")) object.folderKeyEncryptionType = options.enums === String ? $root.Folder.FolderKeyEncryptionType[message.folderKeyEncryptionType] === undefined ? message.folderKeyEncryptionType : $root.Folder.FolderKeyEncryptionType[message.folderKeyEncryptionType] : message.folderKeyEncryptionType; return object; }; @@ -127093,19 +103308,6 @@ export const Folder = $root.Folder = (() => { return writer; }; - /** - * Encodes the specified FolderRecordUpdateResponse message, length delimited. Does not implicitly {@link Folder.FolderRecordUpdateResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof Folder.FolderRecordUpdateResponse - * @static - * @param {Folder.IFolderRecordUpdateResponse} message FolderRecordUpdateResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - FolderRecordUpdateResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a FolderRecordUpdateResponse message from the specified reader or buffer. * @function decode @@ -127148,52 +103350,6 @@ export const Folder = $root.Folder = (() => { return message; }; - /** - * Decodes a FolderRecordUpdateResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Folder.FolderRecordUpdateResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Folder.FolderRecordUpdateResponse} FolderRecordUpdateResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - FolderRecordUpdateResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a FolderRecordUpdateResponse message. - * @function verify - * @memberof Folder.FolderRecordUpdateResponse - * @static - * @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) { - if (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.folderRecordUpdateResult != null && message.hasOwnProperty("folderRecordUpdateResult")) { - 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); - if (error) - return "folderRecordUpdateResult." + error; - } - } - return null; - }; - /** * Creates a FolderRecordUpdateResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -127205,6 +103361,8 @@ export const Folder = $root.Folder = (() => { FolderRecordUpdateResponse.fromObject = function fromObject(object, long) { if (object instanceof $root.Folder.FolderRecordUpdateResponse) return object; + if (!$util.isObject(object)) + throw TypeError(".Folder.FolderRecordUpdateResponse: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -127220,7 +103378,7 @@ export const Folder = $root.Folder = (() => { throw TypeError(".Folder.FolderRecordUpdateResponse.folderRecordUpdateResult: array expected"); message.folderRecordUpdateResult = []; for (let i = 0; i < object.folderRecordUpdateResult.length; ++i) { - if (typeof object.folderRecordUpdateResult[i] !== "object") + if (!$util.isObject(object.folderRecordUpdateResult[i])) throw TypeError(".Folder.FolderRecordUpdateResponse.folderRecordUpdateResult: object expected"); message.folderRecordUpdateResult[i] = $root.Folder.FolderRecordUpdateResult.fromObject(object.folderRecordUpdateResult[i], long + 1); } @@ -127255,7 +103413,7 @@ export const Folder = $root.Folder = (() => { if (options.bytes !== Array) object.folderUid = $util.newBuffer(object.folderUid); } - if (message.folderUid != null && message.hasOwnProperty("folderUid")) + if (message.folderUid != null && Object.hasOwnProperty.call(message, "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.folderRecordUpdateResult && message.folderRecordUpdateResult.length) { object.folderRecordUpdateResult = []; @@ -127381,19 +103539,6 @@ export const Folder = $root.Folder = (() => { return writer; }; - /** - * Encodes the specified FolderRecordUpdateResult message, length delimited. Does not implicitly {@link Folder.FolderRecordUpdateResult.verify|verify} messages. - * @function encodeDelimited - * @memberof Folder.FolderRecordUpdateResult - * @static - * @param {Folder.IFolderRecordUpdateResult} message FolderRecordUpdateResult message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - FolderRecordUpdateResult.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a FolderRecordUpdateResult message from the specified reader or buffer. * @function decode @@ -127438,56 +103583,6 @@ export const Folder = $root.Folder = (() => { return message; }; - /** - * Decodes a FolderRecordUpdateResult message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Folder.FolderRecordUpdateResult - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Folder.FolderRecordUpdateResult} FolderRecordUpdateResult - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - FolderRecordUpdateResult.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a FolderRecordUpdateResult message. - * @function verify - * @memberof Folder.FolderRecordUpdateResult - * @static - * @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) { - if (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.status != null && message.hasOwnProperty("status")) - switch (message.status) { - default: - return "status: enum value expected"; - case 0: - case 1: - case 2: - case 3: - break; - } - if (message.message != null && message.hasOwnProperty("message")) - if (!$util.isString(message.message)) - return "message: string expected"; - return null; - }; - /** * Creates a FolderRecordUpdateResult message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -127499,6 +103594,8 @@ export const Folder = $root.Folder = (() => { FolderRecordUpdateResult.fromObject = function fromObject(object, long) { if (object instanceof $root.Folder.FolderRecordUpdateResult) return object; + if (!$util.isObject(object)) + throw TypeError(".Folder.FolderRecordUpdateResult: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -127566,11 +103663,11 @@ export const Folder = $root.Folder = (() => { object.status = options.enums === String ? "SUCCESS" : 0; object.message = ""; } - if (message.recordUid != null && message.hasOwnProperty("recordUid")) + if (message.recordUid != null && Object.hasOwnProperty.call(message, "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.status != null && message.hasOwnProperty("status")) + if (message.status != null && Object.hasOwnProperty.call(message, "status")) object.status = options.enums === String ? $root.Folder.FolderModifyStatus[message.status] === undefined ? message.status : $root.Folder.FolderModifyStatus[message.status] : message.status; - if (message.message != null && message.hasOwnProperty("message")) + if (message.message != null && Object.hasOwnProperty.call(message, "message")) object.message = message.message; return object; }; @@ -127816,19 +103913,6 @@ export const Folder = $root.Folder = (() => { return writer; }; - /** - * Encodes the specified FolderAccessData message, length delimited. Does not implicitly {@link Folder.FolderAccessData.verify|verify} messages. - * @function encodeDelimited - * @memberof Folder.FolderAccessData - * @static - * @param {Folder.IFolderAccessData} message FolderAccessData message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - FolderAccessData.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a FolderAccessData message from the specified reader or buffer. * @function decode @@ -127909,103 +103993,6 @@ export const Folder = $root.Folder = (() => { return message; }; - /** - * Decodes a FolderAccessData message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Folder.FolderAccessData - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Folder.FolderAccessData} FolderAccessData - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - FolderAccessData.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a FolderAccessData message. - * @function verify - * @memberof Folder.FolderAccessData - * @static - * @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) { - if (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.accessTypeUid != null && message.hasOwnProperty("accessTypeUid")) - if (!(message.accessTypeUid && typeof message.accessTypeUid.length === "number" || $util.isString(message.accessTypeUid))) - return "accessTypeUid: buffer expected"; - if (message.accessType != null && message.hasOwnProperty("accessType")) - switch (message.accessType) { - default: - return "accessType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - break; - } - if (message.accessRoleType != null && message.hasOwnProperty("accessRoleType")) - switch (message.accessRoleType) { - default: - return "accessRoleType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - break; - } - if (message.folderKey != null && message.hasOwnProperty("folderKey")) { - let error = $root.Folder.EncryptedDataKey.verify(message.folderKey, long + 1); - if (error) - return "folderKey." + error; - } - if (message.inherited != null && message.hasOwnProperty("inherited")) - if (typeof message.inherited !== "boolean") - return "inherited: boolean expected"; - if (message.hidden != null && message.hasOwnProperty("hidden")) - 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); - if (error) - return "permissions." + error; - } - if (message.tlaProperties != null && message.hasOwnProperty("tlaProperties")) { - let error = $root.common.tla.TLAProperties.verify(message.tlaProperties, long + 1); - if (error) - return "tlaProperties." + error; - } - if (message.dateCreated != null && message.hasOwnProperty("dateCreated")) - if (!$util.isInteger(message.dateCreated) && !(message.dateCreated && $util.isInteger(message.dateCreated.low) && $util.isInteger(message.dateCreated.high))) - return "dateCreated: integer|Long expected"; - if (message.lastModified != null && message.hasOwnProperty("lastModified")) - if (!$util.isInteger(message.lastModified) && !(message.lastModified && $util.isInteger(message.lastModified.low) && $util.isInteger(message.lastModified.high))) - return "lastModified: integer|Long expected"; - if (message.deniedAccess != null && message.hasOwnProperty("deniedAccess")) - if (typeof message.deniedAccess !== "boolean") - return "deniedAccess: boolean expected"; - return null; - }; - /** * Creates a FolderAccessData message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -128017,6 +104004,8 @@ export const Folder = $root.Folder = (() => { FolderAccessData.fromObject = function fromObject(object, long) { if (object instanceof $root.Folder.FolderAccessData) return object; + if (!$util.isObject(object)) + throw TypeError(".Folder.FolderAccessData: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -128109,7 +104098,7 @@ export const Folder = $root.Folder = (() => { break; } if (object.folderKey != null) { - if (typeof object.folderKey !== "object") + if (!$util.isObject(object.folderKey)) throw TypeError(".Folder.FolderAccessData.folderKey: object expected"); message.folderKey = $root.Folder.EncryptedDataKey.fromObject(object.folderKey, long + 1); } @@ -128118,12 +104107,12 @@ export const Folder = $root.Folder = (() => { if (object.hidden != null) message.hidden = Boolean(object.hidden); if (object.permissions != null) { - if (typeof object.permissions !== "object") + if (!$util.isObject(object.permissions)) throw TypeError(".Folder.FolderAccessData.permissions: object expected"); message.permissions = $root.Folder.FolderPermissions.fromObject(object.permissions, long + 1); } if (object.tlaProperties != null) { - if (typeof object.tlaProperties !== "object") + if (!$util.isObject(object.tlaProperties)) throw TypeError(".Folder.FolderAccessData.tlaProperties: object expected"); message.tlaProperties = $root.common.tla.TLAProperties.fromObject(object.tlaProperties, long + 1); } @@ -128201,39 +104190,39 @@ export const Folder = $root.Folder = (() => { object.lastModified = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; object.deniedAccess = false; } - if (message.folderUid != null && message.hasOwnProperty("folderUid")) + if (message.folderUid != null && Object.hasOwnProperty.call(message, "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.accessTypeUid != null && message.hasOwnProperty("accessTypeUid")) + if (message.accessTypeUid != null && Object.hasOwnProperty.call(message, "accessTypeUid")) object.accessTypeUid = options.bytes === String ? $util.base64.encode(message.accessTypeUid, 0, message.accessTypeUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.accessTypeUid) : message.accessTypeUid; - if (message.accessType != null && message.hasOwnProperty("accessType")) + if (message.accessType != null && Object.hasOwnProperty.call(message, "accessType")) object.accessType = options.enums === String ? $root.Folder.AccessType[message.accessType] === undefined ? message.accessType : $root.Folder.AccessType[message.accessType] : message.accessType; - if (message.accessRoleType != null && message.hasOwnProperty("accessRoleType")) + if (message.accessRoleType != null && Object.hasOwnProperty.call(message, "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")) + if (message.folderKey != null && Object.hasOwnProperty.call(message, "folderKey")) object.folderKey = $root.Folder.EncryptedDataKey.toObject(message.folderKey, options, q + 1); - if (message.inherited != null && message.hasOwnProperty("inherited")) + if (message.inherited != null && Object.hasOwnProperty.call(message, "inherited")) object.inherited = message.inherited; - if (message.hidden != null && message.hasOwnProperty("hidden")) + if (message.hidden != null && Object.hasOwnProperty.call(message, "hidden")) object.hidden = message.hidden; - if (message.permissions != null && message.hasOwnProperty("permissions")) + if (message.permissions != null && Object.hasOwnProperty.call(message, "permissions")) object.permissions = $root.Folder.FolderPermissions.toObject(message.permissions, options, q + 1); - if (message.tlaProperties != null && message.hasOwnProperty("tlaProperties")) + if (message.tlaProperties != null && Object.hasOwnProperty.call(message, "tlaProperties")) object.tlaProperties = $root.common.tla.TLAProperties.toObject(message.tlaProperties, options, q + 1); - if (message.dateCreated != null && message.hasOwnProperty("dateCreated")) + if (message.dateCreated != null && Object.hasOwnProperty.call(message, "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") 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 (message.lastModified != null && Object.hasOwnProperty.call(message, "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") 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.deniedAccess != null && message.hasOwnProperty("deniedAccess")) + if (message.deniedAccess != null && Object.hasOwnProperty.call(message, "deniedAccess")) object.deniedAccess = message.deniedAccess; return object; }; @@ -128354,19 +104343,6 @@ export const Folder = $root.Folder = (() => { return writer; }; - /** - * Encodes the specified RevokedAccess message, length delimited. Does not implicitly {@link Folder.RevokedAccess.verify|verify} messages. - * @function encodeDelimited - * @memberof Folder.RevokedAccess - * @static - * @param {Folder.IRevokedAccess} message RevokedAccess message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RevokedAccess.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a RevokedAccess message from the specified reader or buffer. * @function decode @@ -128411,59 +104387,6 @@ export const Folder = $root.Folder = (() => { return message; }; - /** - * Decodes a RevokedAccess message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Folder.RevokedAccess - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Folder.RevokedAccess} RevokedAccess - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RevokedAccess.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a RevokedAccess message. - * @function verify - * @memberof Folder.RevokedAccess - * @static - * @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) { - if (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.actorUid != null && message.hasOwnProperty("actorUid")) - if (!(message.actorUid && typeof message.actorUid.length === "number" || $util.isString(message.actorUid))) - return "actorUid: buffer expected"; - if (message.accessType != null && message.hasOwnProperty("accessType")) - switch (message.accessType) { - default: - return "accessType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - break; - } - return null; - }; - /** * Creates a RevokedAccess message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -128475,6 +104398,8 @@ export const Folder = $root.Folder = (() => { RevokedAccess.fromObject = function fromObject(object, long) { if (object instanceof $root.Folder.RevokedAccess) return object; + if (!$util.isObject(object)) + throw TypeError(".Folder.RevokedAccess: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -128563,11 +104488,11 @@ export const Folder = $root.Folder = (() => { } object.accessType = options.enums === String ? "AT_UNKNOWN" : 0; } - if (message.folderUid != null && message.hasOwnProperty("folderUid")) + if (message.folderUid != null && Object.hasOwnProperty.call(message, "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.actorUid != null && message.hasOwnProperty("actorUid")) + if (message.actorUid != null && Object.hasOwnProperty.call(message, "actorUid")) object.actorUid = options.bytes === String ? $util.base64.encode(message.actorUid, 0, message.actorUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.actorUid) : message.actorUid; - if (message.accessType != null && message.hasOwnProperty("accessType")) + if (message.accessType != null && Object.hasOwnProperty.call(message, "accessType")) object.accessType = options.enums === String ? $root.Folder.AccessType[message.accessType] === undefined ? message.accessType : $root.Folder.AccessType[message.accessType] : message.accessType; return object; }; @@ -128666,19 +104591,6 @@ export const Folder = $root.Folder = (() => { return writer; }; - /** - * Encodes the specified FolderRemoved message, length delimited. Does not implicitly {@link Folder.FolderRemoved.verify|verify} messages. - * @function encodeDelimited - * @memberof Folder.FolderRemoved - * @static - * @param {Folder.IFolderRemoved} message FolderRemoved message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - FolderRemoved.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a FolderRemoved message from the specified reader or buffer. * @function decode @@ -128715,43 +104627,6 @@ export const Folder = $root.Folder = (() => { return message; }; - /** - * Decodes a FolderRemoved message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Folder.FolderRemoved - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Folder.FolderRemoved} FolderRemoved - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - FolderRemoved.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a FolderRemoved message. - * @function verify - * @memberof Folder.FolderRemoved - * @static - * @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) { - if (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"; - return null; - }; - /** * Creates a FolderRemoved message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -128763,6 +104638,8 @@ export const Folder = $root.Folder = (() => { FolderRemoved.fromObject = function fromObject(object, long) { if (object instanceof $root.Folder.FolderRemoved) return object; + if (!$util.isObject(object)) + throw TypeError(".Folder.FolderRemoved: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -128801,7 +104678,7 @@ export const Folder = $root.Folder = (() => { if (options.bytes !== Array) object.folderUid = $util.newBuffer(object.folderUid); } - if (message.folderUid != null && message.hasOwnProperty("folderUid")) + if (message.folderUid != null && Object.hasOwnProperty.call(message, "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; return object; }; @@ -129109,19 +104986,6 @@ export const Folder = $root.Folder = (() => { return writer; }; - /** - * Encodes the specified RecordAccessData message, length delimited. Does not implicitly {@link Folder.RecordAccessData.verify|verify} messages. - * @function encodeDelimited - * @memberof Folder.RecordAccessData - * @static - * @param {Folder.IRecordAccessData} message RecordAccessData message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RecordAccessData.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a RecordAccessData message from the specified reader or buffer. * @function decode @@ -129234,123 +105098,6 @@ export const Folder = $root.Folder = (() => { return message; }; - /** - * Decodes a RecordAccessData message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Folder.RecordAccessData - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Folder.RecordAccessData} RecordAccessData - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RecordAccessData.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a RecordAccessData message. - * @function verify - * @memberof Folder.RecordAccessData - * @static - * @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) { - if (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"; - if (message.accessType != null && message.hasOwnProperty("accessType")) - switch (message.accessType) { - default: - return "accessType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - break; - } - 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.accessRoleType != null && message.hasOwnProperty("accessRoleType")) - switch (message.accessRoleType) { - default: - return "accessRoleType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - break; - } - if (message.owner != null && message.hasOwnProperty("owner")) - if (typeof message.owner !== "boolean") - return "owner: boolean expected"; - if (message.inherited != null && message.hasOwnProperty("inherited")) - if (typeof message.inherited !== "boolean") - return "inherited: boolean expected"; - if (message.hidden != null && message.hasOwnProperty("hidden")) - if (typeof message.hidden !== "boolean") - return "hidden: boolean expected"; - if (message.deniedAccess != null && message.hasOwnProperty("deniedAccess")) - if (typeof message.deniedAccess !== "boolean") - return "deniedAccess: boolean expected"; - if (message.canViewTitle != null && message.hasOwnProperty("canViewTitle")) - if (typeof message.canViewTitle !== "boolean") - return "canViewTitle: boolean expected"; - if (message.canEdit != null && message.hasOwnProperty("canEdit")) - if (typeof message.canEdit !== "boolean") - return "canEdit: boolean expected"; - if (message.canView != null && message.hasOwnProperty("canView")) - if (typeof message.canView !== "boolean") - return "canView: boolean expected"; - if (message.canListAccess != null && message.hasOwnProperty("canListAccess")) - if (typeof message.canListAccess !== "boolean") - return "canListAccess: boolean expected"; - if (message.canUpdateAccess != null && message.hasOwnProperty("canUpdateAccess")) - if (typeof message.canUpdateAccess !== "boolean") - return "canUpdateAccess: boolean expected"; - if (message.canDelete != null && message.hasOwnProperty("canDelete")) - if (typeof message.canDelete !== "boolean") - return "canDelete: boolean expected"; - if (message.canChangeOwnership != null && message.hasOwnProperty("canChangeOwnership")) - if (typeof message.canChangeOwnership !== "boolean") - return "canChangeOwnership: boolean expected"; - if (message.canRequestAccess != null && message.hasOwnProperty("canRequestAccess")) - if (typeof message.canRequestAccess !== "boolean") - return "canRequestAccess: boolean expected"; - if (message.canApproveAccess != null && message.hasOwnProperty("canApproveAccess")) - if (typeof message.canApproveAccess !== "boolean") - return "canApproveAccess: boolean expected"; - if (message.dateCreated != null && message.hasOwnProperty("dateCreated")) - if (!$util.isInteger(message.dateCreated) && !(message.dateCreated && $util.isInteger(message.dateCreated.low) && $util.isInteger(message.dateCreated.high))) - return "dateCreated: integer|Long expected"; - if (message.lastModified != null && message.hasOwnProperty("lastModified")) - 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); - if (error) - return "tlaProperties." + error; - } - return null; - }; - /** * Creates a RecordAccessData message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -129362,6 +105109,8 @@ export const Folder = $root.Folder = (() => { RecordAccessData.fromObject = function fromObject(object, long) { if (object instanceof $root.Folder.RecordAccessData) return object; + if (!$util.isObject(object)) + throw TypeError(".Folder.RecordAccessData: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -129498,7 +105247,7 @@ export const Folder = $root.Folder = (() => { else if (typeof object.lastModified === "object") message.lastModified = new $util.LongBits(object.lastModified.low >>> 0, object.lastModified.high >>> 0).toNumber(); if (object.tlaProperties != null) { - if (typeof object.tlaProperties !== "object") + if (!$util.isObject(object.tlaProperties)) throw TypeError(".Folder.RecordAccessData.tlaProperties: object expected"); message.tlaProperties = $root.common.tla.TLAProperties.fromObject(object.tlaProperties, long + 1); } @@ -129564,55 +105313,55 @@ export const Folder = $root.Folder = (() => { object.lastModified = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; object.tlaProperties = null; } - if (message.accessTypeUid != null && message.hasOwnProperty("accessTypeUid")) + if (message.accessTypeUid != null && Object.hasOwnProperty.call(message, "accessTypeUid")) object.accessTypeUid = options.bytes === String ? $util.base64.encode(message.accessTypeUid, 0, message.accessTypeUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.accessTypeUid) : message.accessTypeUid; - if (message.accessType != null && message.hasOwnProperty("accessType")) + if (message.accessType != null && Object.hasOwnProperty.call(message, "accessType")) object.accessType = options.enums === String ? $root.Folder.AccessType[message.accessType] === undefined ? message.accessType : $root.Folder.AccessType[message.accessType] : message.accessType; - if (message.recordUid != null && message.hasOwnProperty("recordUid")) + if (message.recordUid != null && Object.hasOwnProperty.call(message, "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.accessRoleType != null && message.hasOwnProperty("accessRoleType")) + if (message.accessRoleType != null && Object.hasOwnProperty.call(message, "accessRoleType")) object.accessRoleType = options.enums === String ? $root.Folder.AccessRoleType[message.accessRoleType] === undefined ? message.accessRoleType : $root.Folder.AccessRoleType[message.accessRoleType] : message.accessRoleType; - if (message.owner != null && message.hasOwnProperty("owner")) + if (message.owner != null && Object.hasOwnProperty.call(message, "owner")) object.owner = message.owner; - if (message.inherited != null && message.hasOwnProperty("inherited")) + if (message.inherited != null && Object.hasOwnProperty.call(message, "inherited")) object.inherited = message.inherited; - if (message.hidden != null && message.hasOwnProperty("hidden")) + if (message.hidden != null && Object.hasOwnProperty.call(message, "hidden")) object.hidden = message.hidden; - if (message.deniedAccess != null && message.hasOwnProperty("deniedAccess")) + if (message.deniedAccess != null && Object.hasOwnProperty.call(message, "deniedAccess")) object.deniedAccess = message.deniedAccess; - if (message.canViewTitle != null && message.hasOwnProperty("canViewTitle")) + if (message.canViewTitle != null && Object.hasOwnProperty.call(message, "canViewTitle")) object.canViewTitle = message.canViewTitle; - if (message.canEdit != null && message.hasOwnProperty("canEdit")) + if (message.canEdit != null && Object.hasOwnProperty.call(message, "canEdit")) object.canEdit = message.canEdit; - if (message.canView != null && message.hasOwnProperty("canView")) + if (message.canView != null && Object.hasOwnProperty.call(message, "canView")) object.canView = message.canView; - if (message.canListAccess != null && message.hasOwnProperty("canListAccess")) + if (message.canListAccess != null && Object.hasOwnProperty.call(message, "canListAccess")) object.canListAccess = message.canListAccess; - if (message.canUpdateAccess != null && message.hasOwnProperty("canUpdateAccess")) + if (message.canUpdateAccess != null && Object.hasOwnProperty.call(message, "canUpdateAccess")) object.canUpdateAccess = message.canUpdateAccess; - if (message.canDelete != null && message.hasOwnProperty("canDelete")) + if (message.canDelete != null && Object.hasOwnProperty.call(message, "canDelete")) object.canDelete = message.canDelete; - if (message.canChangeOwnership != null && message.hasOwnProperty("canChangeOwnership")) + if (message.canChangeOwnership != null && Object.hasOwnProperty.call(message, "canChangeOwnership")) object.canChangeOwnership = message.canChangeOwnership; - if (message.canRequestAccess != null && message.hasOwnProperty("canRequestAccess")) + if (message.canRequestAccess != null && Object.hasOwnProperty.call(message, "canRequestAccess")) object.canRequestAccess = message.canRequestAccess; - if (message.canApproveAccess != null && message.hasOwnProperty("canApproveAccess")) + if (message.canApproveAccess != null && Object.hasOwnProperty.call(message, "canApproveAccess")) object.canApproveAccess = message.canApproveAccess; - if (message.dateCreated != null && message.hasOwnProperty("dateCreated")) + if (message.dateCreated != null && Object.hasOwnProperty.call(message, "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") 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 (message.lastModified != null && Object.hasOwnProperty.call(message, "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") 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")) + if (message.tlaProperties != null && Object.hasOwnProperty.call(message, "tlaProperties")) object.tlaProperties = $root.common.tla.TLAProperties.toObject(message.tlaProperties, options, q + 1); return object; }; @@ -129766,19 +105515,6 @@ export const Folder = $root.Folder = (() => { return writer; }; - /** - * Encodes the specified AccessData message, length delimited. Does not implicitly {@link Folder.AccessData.verify|verify} messages. - * @function encodeDelimited - * @memberof Folder.AccessData - * @static - * @param {Folder.IAccessData} message AccessData message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - AccessData.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes an AccessData message from the specified reader or buffer. * @function decode @@ -129835,71 +105571,6 @@ export const Folder = $root.Folder = (() => { return message; }; - /** - * Decodes an AccessData message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Folder.AccessData - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Folder.AccessData} AccessData - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - AccessData.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an AccessData message. - * @function verify - * @memberof Folder.AccessData - * @static - * @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) { - if (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"; - if (message.accessRoleType != null && message.hasOwnProperty("accessRoleType")) - switch (message.accessRoleType) { - default: - return "accessRoleType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - break; - } - if (message.deniedAccess != null && message.hasOwnProperty("deniedAccess")) - if (typeof message.deniedAccess !== "boolean") - return "deniedAccess: boolean expected"; - if (message.inherited != null && message.hasOwnProperty("inherited")) - if (typeof message.inherited !== "boolean") - return "inherited: boolean expected"; - if (message.hidden != null && message.hasOwnProperty("hidden")) - 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); - if (error) - return "capabilities." + error; - } - return null; - }; - /** * Creates an AccessData message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -129911,6 +105582,8 @@ export const Folder = $root.Folder = (() => { AccessData.fromObject = function fromObject(object, long) { if (object instanceof $root.Folder.AccessData) return object; + if (!$util.isObject(object)) + throw TypeError(".Folder.AccessData: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -129968,7 +105641,7 @@ export const Folder = $root.Folder = (() => { if (object.hidden != null) message.hidden = Boolean(object.hidden); if (object.capabilities != null) { - if (typeof object.capabilities !== "object") + if (!$util.isObject(object.capabilities)) throw TypeError(".Folder.AccessData.capabilities: object expected"); message.capabilities = $root.Folder.Capabilities.fromObject(object.capabilities, long + 1); } @@ -130006,17 +105679,17 @@ export const Folder = $root.Folder = (() => { object.hidden = false; object.capabilities = null; } - if (message.accessTypeUid != null && message.hasOwnProperty("accessTypeUid")) + if (message.accessTypeUid != null && Object.hasOwnProperty.call(message, "accessTypeUid")) object.accessTypeUid = options.bytes === String ? $util.base64.encode(message.accessTypeUid, 0, message.accessTypeUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.accessTypeUid) : message.accessTypeUid; - if (message.accessRoleType != null && message.hasOwnProperty("accessRoleType")) + if (message.accessRoleType != null && Object.hasOwnProperty.call(message, "accessRoleType")) object.accessRoleType = options.enums === String ? $root.Folder.AccessRoleType[message.accessRoleType] === undefined ? message.accessRoleType : $root.Folder.AccessRoleType[message.accessRoleType] : message.accessRoleType; - if (message.deniedAccess != null && message.hasOwnProperty("deniedAccess")) + if (message.deniedAccess != null && Object.hasOwnProperty.call(message, "deniedAccess")) object.deniedAccess = message.deniedAccess; - if (message.inherited != null && message.hasOwnProperty("inherited")) + if (message.inherited != null && Object.hasOwnProperty.call(message, "inherited")) object.inherited = message.inherited; - if (message.hidden != null && message.hasOwnProperty("hidden")) + if (message.hidden != null && Object.hasOwnProperty.call(message, "hidden")) object.hidden = message.hidden; - if (message.capabilities != null && message.hasOwnProperty("capabilities")) + if (message.capabilities != null && Object.hasOwnProperty.call(message, "capabilities")) object.capabilities = $root.Folder.Capabilities.toObject(message.capabilities, options, q + 1); return object; }; @@ -130143,19 +105816,6 @@ export const Folder = $root.Folder = (() => { return writer; }; - /** - * Encodes the specified FolderAccessRequest message, length delimited. Does not implicitly {@link Folder.FolderAccessRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof Folder.FolderAccessRequest - * @static - * @param {Folder.IFolderAccessRequest} message FolderAccessRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - FolderAccessRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a FolderAccessRequest message from the specified reader or buffer. * @function decode @@ -130206,67 +105866,6 @@ export const Folder = $root.Folder = (() => { return message; }; - /** - * Decodes a FolderAccessRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Folder.FolderAccessRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Folder.FolderAccessRequest} FolderAccessRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - FolderAccessRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a FolderAccessRequest message. - * @function verify - * @memberof Folder.FolderAccessRequest - * @static - * @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) { - if (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); - if (error) - return "folderAccessAdds." + error; - } - } - if (message.folderAccessUpdates != null && message.hasOwnProperty("folderAccessUpdates")) { - 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); - if (error) - return "folderAccessUpdates." + error; - } - } - if (message.folderAccessRemoves != null && message.hasOwnProperty("folderAccessRemoves")) { - 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); - if (error) - return "folderAccessRemoves." + error; - } - } - return null; - }; - /** * Creates a FolderAccessRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -130278,6 +105877,8 @@ export const Folder = $root.Folder = (() => { FolderAccessRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.Folder.FolderAccessRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".Folder.FolderAccessRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -130288,7 +105889,7 @@ export const Folder = $root.Folder = (() => { throw TypeError(".Folder.FolderAccessRequest.folderAccessAdds: array expected"); message.folderAccessAdds = []; for (let i = 0; i < object.folderAccessAdds.length; ++i) { - if (typeof object.folderAccessAdds[i] !== "object") + if (!$util.isObject(object.folderAccessAdds[i])) throw TypeError(".Folder.FolderAccessRequest.folderAccessAdds: object expected"); message.folderAccessAdds[i] = $root.Folder.FolderAccessData.fromObject(object.folderAccessAdds[i], long + 1); } @@ -130298,7 +105899,7 @@ export const Folder = $root.Folder = (() => { throw TypeError(".Folder.FolderAccessRequest.folderAccessUpdates: array expected"); message.folderAccessUpdates = []; for (let i = 0; i < object.folderAccessUpdates.length; ++i) { - if (typeof object.folderAccessUpdates[i] !== "object") + if (!$util.isObject(object.folderAccessUpdates[i])) throw TypeError(".Folder.FolderAccessRequest.folderAccessUpdates: object expected"); message.folderAccessUpdates[i] = $root.Folder.FolderAccessData.fromObject(object.folderAccessUpdates[i], long + 1); } @@ -130308,7 +105909,7 @@ export const Folder = $root.Folder = (() => { throw TypeError(".Folder.FolderAccessRequest.folderAccessRemoves: array expected"); message.folderAccessRemoves = []; for (let i = 0; i < object.folderAccessRemoves.length; ++i) { - if (typeof object.folderAccessRemoves[i] !== "object") + if (!$util.isObject(object.folderAccessRemoves[i])) throw TypeError(".Folder.FolderAccessRequest.folderAccessRemoves: object expected"); message.folderAccessRemoves[i] = $root.Folder.FolderAccessData.fromObject(object.folderAccessRemoves[i], long + 1); } @@ -130494,19 +106095,6 @@ export const Folder = $root.Folder = (() => { return writer; }; - /** - * Encodes the specified FolderAccessResult message, length delimited. Does not implicitly {@link Folder.FolderAccessResult.verify|verify} messages. - * @function encodeDelimited - * @memberof Folder.FolderAccessResult - * @static - * @param {Folder.IFolderAccessResult} message FolderAccessResult message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - FolderAccessResult.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a FolderAccessResult message from the specified reader or buffer. * @function decode @@ -130559,72 +106147,6 @@ export const Folder = $root.Folder = (() => { return message; }; - /** - * Decodes a FolderAccessResult message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Folder.FolderAccessResult - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Folder.FolderAccessResult} FolderAccessResult - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - FolderAccessResult.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a FolderAccessResult message. - * @function verify - * @memberof Folder.FolderAccessResult - * @static - * @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) { - if (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.accessUid != null && message.hasOwnProperty("accessUid")) - if (!(message.accessUid && typeof message.accessUid.length === "number" || $util.isString(message.accessUid))) - return "accessUid: buffer expected"; - if (message.accessType != null && message.hasOwnProperty("accessType")) - switch (message.accessType) { - default: - return "accessType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - break; - } - if (message.status != null && message.hasOwnProperty("status")) - switch (message.status) { - default: - return "status: enum value expected"; - case 0: - case 1: - case 2: - case 3: - break; - } - if (message.message != null && message.hasOwnProperty("message")) - if (!$util.isString(message.message)) - return "message: string expected"; - return null; - }; - /** * Creates a FolderAccessResult message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -130636,6 +106158,8 @@ export const Folder = $root.Folder = (() => { FolderAccessResult.fromObject = function fromObject(object, long) { if (object instanceof $root.Folder.FolderAccessResult) return object; + if (!$util.isObject(object)) + throw TypeError(".Folder.FolderAccessResult: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -130752,15 +106276,15 @@ export const Folder = $root.Folder = (() => { object.status = options.enums === String ? "SUCCESS" : 0; object.message = ""; } - if (message.folderUid != null && message.hasOwnProperty("folderUid")) + if (message.folderUid != null && Object.hasOwnProperty.call(message, "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.accessUid != null && message.hasOwnProperty("accessUid")) + if (message.accessUid != null && Object.hasOwnProperty.call(message, "accessUid")) object.accessUid = options.bytes === String ? $util.base64.encode(message.accessUid, 0, message.accessUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.accessUid) : message.accessUid; - if (message.accessType != null && message.hasOwnProperty("accessType")) + if (message.accessType != null && Object.hasOwnProperty.call(message, "accessType")) object.accessType = options.enums === String ? $root.Folder.AccessType[message.accessType] === undefined ? message.accessType : $root.Folder.AccessType[message.accessType] : message.accessType; - if (message.status != null && message.hasOwnProperty("status")) + if (message.status != null && Object.hasOwnProperty.call(message, "status")) object.status = options.enums === String ? $root.Folder.FolderModifyStatus[message.status] === undefined ? message.status : $root.Folder.FolderModifyStatus[message.status] : message.status; - if (message.message != null && message.hasOwnProperty("message")) + if (message.message != null && Object.hasOwnProperty.call(message, "message")) object.message = message.message; return object; }; @@ -130861,19 +106385,6 @@ export const Folder = $root.Folder = (() => { return writer; }; - /** - * Encodes the specified FolderAccessResponse message, length delimited. Does not implicitly {@link Folder.FolderAccessResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof Folder.FolderAccessResponse - * @static - * @param {Folder.IFolderAccessResponse} message FolderAccessResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - FolderAccessResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a FolderAccessResponse message from the specified reader or buffer. * @function decode @@ -130912,49 +106423,6 @@ export const Folder = $root.Folder = (() => { return message; }; - /** - * Decodes a FolderAccessResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Folder.FolderAccessResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Folder.FolderAccessResponse} FolderAccessResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - FolderAccessResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a FolderAccessResponse message. - * @function verify - * @memberof Folder.FolderAccessResponse - * @static - * @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) { - if (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); - if (error) - return "folderAccessResults." + error; - } - } - return null; - }; - /** * Creates a FolderAccessResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -130966,6 +106434,8 @@ export const Folder = $root.Folder = (() => { FolderAccessResponse.fromObject = function fromObject(object, long) { if (object instanceof $root.Folder.FolderAccessResponse) return object; + if (!$util.isObject(object)) + throw TypeError(".Folder.FolderAccessResponse: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -130976,7 +106446,7 @@ export const Folder = $root.Folder = (() => { throw TypeError(".Folder.FolderAccessResponse.folderAccessResults: array expected"); message.folderAccessResults = []; for (let i = 0; i < object.folderAccessResults.length; ++i) { - if (typeof object.folderAccessResults[i] !== "object") + if (!$util.isObject(object.folderAccessResults[i])) throw TypeError(".Folder.FolderAccessResponse.folderAccessResults: object expected"); message.folderAccessResults[i] = $root.Folder.FolderAccessResult.fromObject(object.folderAccessResults[i], long + 1); } @@ -131156,19 +106626,6 @@ export const Folder = $root.Folder = (() => { return writer; }; - /** - * Encodes the specified UserInfo message, length delimited. Does not implicitly {@link Folder.UserInfo.verify|verify} messages. - * @function encodeDelimited - * @memberof Folder.UserInfo - * @static - * @param {Folder.IUserInfo} message UserInfo message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - UserInfo.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a UserInfo message from the specified reader or buffer. * @function decode @@ -131209,46 +106666,6 @@ export const Folder = $root.Folder = (() => { return message; }; - /** - * Decodes a UserInfo message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Folder.UserInfo - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Folder.UserInfo} UserInfo - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - UserInfo.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a UserInfo message. - * @function verify - * @memberof Folder.UserInfo - * @static - * @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) { - if (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"; - if (message.username != null && message.hasOwnProperty("username")) - if (!$util.isString(message.username)) - return "username: string expected"; - return null; - }; - /** * Creates a UserInfo message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -131260,6 +106677,8 @@ export const Folder = $root.Folder = (() => { UserInfo.fromObject = function fromObject(object, long) { if (object instanceof $root.Folder.UserInfo) return object; + if (!$util.isObject(object)) + throw TypeError(".Folder.UserInfo: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -131302,9 +106721,9 @@ export const Folder = $root.Folder = (() => { } object.username = ""; } - if (message.accountUid != null && message.hasOwnProperty("accountUid")) + if (message.accountUid != null && Object.hasOwnProperty.call(message, "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.username != null && message.hasOwnProperty("username")) + if (message.username != null && Object.hasOwnProperty.call(message, "username")) object.username = message.username; return object; }; @@ -131425,19 +106844,6 @@ export const Folder = $root.Folder = (() => { return writer; }; - /** - * Encodes the specified RecordData message, length delimited. Does not implicitly {@link Folder.RecordData.verify|verify} messages. - * @function encodeDelimited - * @memberof Folder.RecordData - * @static - * @param {Folder.IRecordData} message RecordData message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RecordData.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a RecordData message from the specified reader or buffer. * @function decode @@ -131482,51 +106888,6 @@ export const Folder = $root.Folder = (() => { return message; }; - /** - * Decodes a RecordData message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Folder.RecordData - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Folder.RecordData} RecordData - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RecordData.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a RecordData message. - * @function verify - * @memberof Folder.RecordData - * @static - * @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) { - if (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); - if (error) - return "user." + error; - } - 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.recordUid != null && message.hasOwnProperty("recordUid")) - if (!(message.recordUid && typeof message.recordUid.length === "number" || $util.isString(message.recordUid))) - return "recordUid: buffer expected"; - return null; - }; - /** * Creates a RecordData message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -131538,13 +106899,15 @@ export const Folder = $root.Folder = (() => { RecordData.fromObject = function fromObject(object, long) { if (object instanceof $root.Folder.RecordData) return object; + if (!$util.isObject(object)) + throw TypeError(".Folder.RecordData: object expected"); 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") + if (!$util.isObject(object.user)) throw TypeError(".Folder.RecordData.user: object expected"); message.user = $root.Folder.UserInfo.fromObject(object.user, long + 1); } @@ -131595,11 +106958,11 @@ export const Folder = $root.Folder = (() => { object.recordUid = $util.newBuffer(object.recordUid); } } - if (message.user != null && message.hasOwnProperty("user")) + if (message.user != null && Object.hasOwnProperty.call(message, "user")) object.user = $root.Folder.UserInfo.toObject(message.user, options, q + 1); - if (message.data != null && message.hasOwnProperty("data")) + if (message.data != null && Object.hasOwnProperty.call(message, "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")) + if (message.recordUid != null && Object.hasOwnProperty.call(message, "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; return object; }; @@ -131732,19 +107095,6 @@ export const Folder = $root.Folder = (() => { return writer; }; - /** - * Encodes the specified RecordKey message, length delimited. Does not implicitly {@link Folder.RecordKey.verify|verify} messages. - * @function encodeDelimited - * @memberof Folder.RecordKey - * @static - * @param {Folder.IRecordKey} message RecordKey message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RecordKey.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a RecordKey message from the specified reader or buffer. * @function decode @@ -131793,60 +107143,6 @@ export const Folder = $root.Folder = (() => { return message; }; - /** - * Decodes a RecordKey message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Folder.RecordKey - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Folder.RecordKey} RecordKey - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RecordKey.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a RecordKey message. - * @function verify - * @memberof Folder.RecordKey - * @static - * @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) { - if (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"; - 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.encryptedKeyType != null && message.hasOwnProperty("encryptedKeyType")) - switch (message.encryptedKeyType) { - default: - return "encryptedKeyType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - break; - } - return null; - }; - /** * Creates a RecordKey message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -131858,6 +107154,8 @@ export const Folder = $root.Folder = (() => { RecordKey.fromObject = function fromObject(object, long) { if (object instanceof $root.Folder.RecordKey) return object; + if (!$util.isObject(object)) + throw TypeError(".Folder.RecordKey: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -131950,13 +107248,13 @@ export const Folder = $root.Folder = (() => { } object.encryptedKeyType = options.enums === String ? "no_key" : 0; } - if (message.userUid != null && message.hasOwnProperty("userUid")) + if (message.userUid != null && Object.hasOwnProperty.call(message, "userUid")) object.userUid = options.bytes === String ? $util.base64.encode(message.userUid, 0, message.userUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.userUid) : message.userUid; - if (message.recordUid != null && message.hasOwnProperty("recordUid")) + if (message.recordUid != null && Object.hasOwnProperty.call(message, "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")) + if (message.recordKey != null && Object.hasOwnProperty.call(message, "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.encryptedKeyType != null && message.hasOwnProperty("encryptedKeyType")) + if (message.encryptedKeyType != null && Object.hasOwnProperty.call(message, "encryptedKeyType")) object.encryptedKeyType = options.enums === String ? $root.Folder.EncryptedKeyType[message.encryptedKeyType] === undefined ? message.encryptedKeyType : $root.Folder.EncryptedKeyType[message.encryptedKeyType] : message.encryptedKeyType; return object; }; @@ -132109,19 +107407,6 @@ export const Records = $root.Records = (() => { return writer; }; - /** - * Encodes the specified RecordType message, length delimited. Does not implicitly {@link Records.RecordType.verify|verify} messages. - * @function encodeDelimited - * @memberof Records.RecordType - * @static - * @param {Records.IRecordType} message RecordType message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RecordType.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a RecordType message from the specified reader or buffer. * @function decode @@ -132166,57 +107451,6 @@ export const Records = $root.Records = (() => { return message; }; - /** - * Decodes a RecordType message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Records.RecordType - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Records.RecordType} RecordType - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RecordType.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a RecordType message. - * @function verify - * @memberof Records.RecordType - * @static - * @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) { - if (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"; - if (message.content != null && message.hasOwnProperty("content")) - if (!$util.isString(message.content)) - return "content: string expected"; - if (message.scope != null && message.hasOwnProperty("scope")) - switch (message.scope) { - default: - return "scope: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - break; - } - return null; - }; - /** * Creates a RecordType message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -132228,6 +107462,8 @@ export const Records = $root.Records = (() => { RecordType.fromObject = function fromObject(object, long) { if (object instanceof $root.Records.RecordType) return object; + if (!$util.isObject(object)) + throw TypeError(".Records.RecordType: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -132290,11 +107526,11 @@ export const Records = $root.Records = (() => { object.content = ""; object.scope = options.enums === String ? "RT_STANDARD" : 0; } - if (message.recordTypeId != null && message.hasOwnProperty("recordTypeId")) + if (message.recordTypeId != null && Object.hasOwnProperty.call(message, "recordTypeId")) object.recordTypeId = message.recordTypeId; - if (message.content != null && message.hasOwnProperty("content")) + if (message.content != null && Object.hasOwnProperty.call(message, "content")) object.content = message.content; - if (message.scope != null && message.hasOwnProperty("scope")) + if (message.scope != null && Object.hasOwnProperty.call(message, "scope")) object.scope = options.enums === String ? $root.Records.RecordTypeScope[message.scope] === undefined ? message.scope : $root.Records.RecordTypeScope[message.scope] : message.scope; return object; }; @@ -132426,19 +107662,6 @@ export const Records = $root.Records = (() => { return writer; }; - /** - * Encodes the specified RecordTypesRequest message, length delimited. Does not implicitly {@link Records.RecordTypesRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof Records.RecordTypesRequest - * @static - * @param {Records.IRecordTypesRequest} message RecordTypesRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RecordTypesRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a RecordTypesRequest message from the specified reader or buffer. * @function decode @@ -132487,52 +107710,6 @@ export const Records = $root.Records = (() => { return message; }; - /** - * Decodes a RecordTypesRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Records.RecordTypesRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Records.RecordTypesRequest} RecordTypesRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RecordTypesRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a RecordTypesRequest message. - * @function verify - * @memberof Records.RecordTypesRequest - * @static - * @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) { - if (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"; - if (message.user != null && message.hasOwnProperty("user")) - if (typeof message.user !== "boolean") - return "user: boolean expected"; - if (message.enterprise != null && message.hasOwnProperty("enterprise")) - if (typeof message.enterprise !== "boolean") - return "enterprise: boolean expected"; - if (message.pam != null && message.hasOwnProperty("pam")) - if (typeof message.pam !== "boolean") - return "pam: boolean expected"; - return null; - }; - /** * Creates a RecordTypesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -132544,6 +107721,8 @@ export const Records = $root.Records = (() => { RecordTypesRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.Records.RecordTypesRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".Records.RecordTypesRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -132583,13 +107762,13 @@ export const Records = $root.Records = (() => { object.enterprise = false; object.pam = false; } - if (message.standard != null && message.hasOwnProperty("standard")) + if (message.standard != null && Object.hasOwnProperty.call(message, "standard")) object.standard = message.standard; - if (message.user != null && message.hasOwnProperty("user")) + if (message.user != null && Object.hasOwnProperty.call(message, "user")) object.user = message.user; - if (message.enterprise != null && message.hasOwnProperty("enterprise")) + if (message.enterprise != null && Object.hasOwnProperty.call(message, "enterprise")) object.enterprise = message.enterprise; - if (message.pam != null && message.hasOwnProperty("pam")) + if (message.pam != null && Object.hasOwnProperty.call(message, "pam")) object.pam = message.pam; return object; }; @@ -132734,19 +107913,6 @@ export const Records = $root.Records = (() => { return writer; }; - /** - * Encodes the specified RecordTypesResponse message, length delimited. Does not implicitly {@link Records.RecordTypesResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof Records.RecordTypesResponse - * @static - * @param {Records.IRecordTypesResponse} message RecordTypesResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RecordTypesResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a RecordTypesResponse message from the specified reader or buffer. * @function decode @@ -132801,61 +107967,6 @@ export const Records = $root.Records = (() => { return message; }; - /** - * Decodes a RecordTypesResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Records.RecordTypesResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Records.RecordTypesResponse} RecordTypesResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RecordTypesResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a RecordTypesResponse message. - * @function verify - * @memberof Records.RecordTypesResponse - * @static - * @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) { - if (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); - if (error) - return "recordTypes." + error; - } - } - if (message.standardCounter != null && message.hasOwnProperty("standardCounter")) - if (!$util.isInteger(message.standardCounter)) - return "standardCounter: integer expected"; - if (message.userCounter != null && message.hasOwnProperty("userCounter")) - if (!$util.isInteger(message.userCounter)) - return "userCounter: integer expected"; - if (message.enterpriseCounter != null && message.hasOwnProperty("enterpriseCounter")) - if (!$util.isInteger(message.enterpriseCounter)) - return "enterpriseCounter: integer expected"; - if (message.pamCounter != null && message.hasOwnProperty("pamCounter")) - if (!$util.isInteger(message.pamCounter)) - return "pamCounter: integer expected"; - return null; - }; - /** * Creates a RecordTypesResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -132867,6 +107978,8 @@ export const Records = $root.Records = (() => { RecordTypesResponse.fromObject = function fromObject(object, long) { if (object instanceof $root.Records.RecordTypesResponse) return object; + if (!$util.isObject(object)) + throw TypeError(".Records.RecordTypesResponse: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -132877,7 +107990,7 @@ export const Records = $root.Records = (() => { throw TypeError(".Records.RecordTypesResponse.recordTypes: array expected"); message.recordTypes = []; for (let i = 0; i < object.recordTypes.length; ++i) { - if (typeof object.recordTypes[i] !== "object") + if (!$util.isObject(object.recordTypes[i])) throw TypeError(".Records.RecordTypesResponse.recordTypes: object expected"); message.recordTypes[i] = $root.Records.RecordType.fromObject(object.recordTypes[i], long + 1); } @@ -132923,13 +108036,13 @@ export const Records = $root.Records = (() => { for (let j = 0; j < message.recordTypes.length; ++j) object.recordTypes[j] = $root.Records.RecordType.toObject(message.recordTypes[j], options, q + 1); } - if (message.standardCounter != null && message.hasOwnProperty("standardCounter")) + if (message.standardCounter != null && Object.hasOwnProperty.call(message, "standardCounter")) object.standardCounter = message.standardCounter; - if (message.userCounter != null && message.hasOwnProperty("userCounter")) + if (message.userCounter != null && Object.hasOwnProperty.call(message, "userCounter")) object.userCounter = message.userCounter; - if (message.enterpriseCounter != null && message.hasOwnProperty("enterpriseCounter")) + if (message.enterpriseCounter != null && Object.hasOwnProperty.call(message, "enterpriseCounter")) object.enterpriseCounter = message.enterpriseCounter; - if (message.pamCounter != null && message.hasOwnProperty("pamCounter")) + if (message.pamCounter != null && Object.hasOwnProperty.call(message, "pamCounter")) object.pamCounter = message.pamCounter; return object; }; @@ -133039,19 +108152,6 @@ export const Records = $root.Records = (() => { return writer; }; - /** - * Encodes the specified RecordTypeModifyResponse message, length delimited. Does not implicitly {@link Records.RecordTypeModifyResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof Records.RecordTypeModifyResponse - * @static - * @param {Records.IRecordTypeModifyResponse} message RecordTypeModifyResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RecordTypeModifyResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a RecordTypeModifyResponse message from the specified reader or buffer. * @function decode @@ -133092,46 +108192,6 @@ export const Records = $root.Records = (() => { return message; }; - /** - * Decodes a RecordTypeModifyResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Records.RecordTypeModifyResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Records.RecordTypeModifyResponse} RecordTypeModifyResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RecordTypeModifyResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a RecordTypeModifyResponse message. - * @function verify - * @memberof Records.RecordTypeModifyResponse - * @static - * @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) { - if (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"; - if (message.counter != null && message.hasOwnProperty("counter")) - if (!$util.isInteger(message.counter)) - return "counter: integer expected"; - return null; - }; - /** * Creates a RecordTypeModifyResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -133143,6 +108203,8 @@ export const Records = $root.Records = (() => { RecordTypeModifyResponse.fromObject = function fromObject(object, long) { if (object instanceof $root.Records.RecordTypeModifyResponse) return object; + if (!$util.isObject(object)) + throw TypeError(".Records.RecordTypeModifyResponse: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -133176,9 +108238,9 @@ export const Records = $root.Records = (() => { object.recordTypeId = 0; object.counter = 0; } - if (message.recordTypeId != null && message.hasOwnProperty("recordTypeId")) + if (message.recordTypeId != null && Object.hasOwnProperty.call(message, "recordTypeId")) object.recordTypeId = message.recordTypeId; - if (message.counter != null && message.hasOwnProperty("counter")) + if (message.counter != null && Object.hasOwnProperty.call(message, "counter")) object.counter = message.counter; return object; }; @@ -133290,19 +108352,6 @@ export const Records = $root.Records = (() => { return writer; }; - /** - * Encodes the specified RecordsGetRequest message, length delimited. Does not implicitly {@link Records.RecordsGetRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof Records.RecordsGetRequest - * @static - * @param {Records.IRecordsGetRequest} message RecordsGetRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RecordsGetRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a RecordsGetRequest message from the specified reader or buffer. * @function decode @@ -133345,50 +108394,6 @@ export const Records = $root.Records = (() => { return message; }; - /** - * Decodes a RecordsGetRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Records.RecordsGetRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Records.RecordsGetRequest} RecordsGetRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RecordsGetRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a RecordsGetRequest message. - * @function verify - * @memberof Records.RecordsGetRequest - * @static - * @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) { - if (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"; - for (let i = 0; i < message.recordUids.length; ++i) - if (!(message.recordUids[i] && typeof message.recordUids[i].length === "number" || $util.isString(message.recordUids[i]))) - return "recordUids: buffer[] expected"; - } - 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"; - return null; - }; - /** * Creates a RecordsGetRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -133400,6 +108405,8 @@ export const Records = $root.Records = (() => { RecordsGetRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.Records.RecordsGetRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".Records.RecordsGetRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -133457,7 +108464,7 @@ export const Records = $root.Records = (() => { 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 (message.clientTime != null && Object.hasOwnProperty.call(message, "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") @@ -133651,19 +108658,6 @@ export const Records = $root.Records = (() => { return writer; }; - /** - * Encodes the specified Record message, length delimited. Does not implicitly {@link Records.Record.verify|verify} messages. - * @function encodeDelimited - * @memberof Records.Record - * @static - * @param {Records.IRecord} message Record message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Record.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a Record message from the specified reader or buffer. * @function decode @@ -133734,81 +108728,6 @@ export const Records = $root.Records = (() => { return message; }; - /** - * Decodes a Record message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Records.Record - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Records.Record} Record - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Record.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a Record message. - * @function verify - * @memberof Records.Record - * @static - * @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) { - if (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.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: - case 5: - case 6: - break; - } - 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.extra != null && message.hasOwnProperty("extra")) - if (!(message.extra && typeof message.extra.length === "number" || $util.isString(message.extra))) - return "extra: buffer expected"; - if (message.version != null && message.hasOwnProperty("version")) - if (!$util.isInteger(message.version)) - return "version: integer expected"; - 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.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"; - if (message.fileIds != null && message.hasOwnProperty("fileIds")) { - if (!Array.isArray(message.fileIds)) - return "fileIds: array expected"; - for (let i = 0; i < message.fileIds.length; ++i) - if (!(message.fileIds[i] && typeof message.fileIds[i].length === "number" || $util.isString(message.fileIds[i]))) - return "fileIds: buffer[] expected"; - } - return null; - }; - /** * Creates a Record message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -133820,6 +108739,8 @@ export const Records = $root.Records = (() => { Record.fromObject = function fromObject(object, long) { if (object instanceof $root.Records.Record) return object; + if (!$util.isObject(object)) + throw TypeError(".Records.Record: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -133975,26 +108896,26 @@ export const Records = $root.Records = (() => { } else object.revision = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; } - if (message.recordUid != null && message.hasOwnProperty("recordUid")) + if (message.recordUid != null && Object.hasOwnProperty.call(message, "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")) + if (message.recordKey != null && Object.hasOwnProperty.call(message, "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")) + if (message.recordKeyType != null && Object.hasOwnProperty.call(message, "recordKeyType")) object.recordKeyType = options.enums === String ? $root.Records.RecordKeyType[message.recordKeyType] === undefined ? message.recordKeyType : $root.Records.RecordKeyType[message.recordKeyType] : message.recordKeyType; - if (message.data != null && message.hasOwnProperty("data")) + if (message.data != null && Object.hasOwnProperty.call(message, "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.extra != null && message.hasOwnProperty("extra")) + if (message.extra != null && Object.hasOwnProperty.call(message, "extra")) object.extra = options.bytes === String ? $util.base64.encode(message.extra, 0, message.extra.length) : options.bytes === Array ? Array.prototype.slice.call(message.extra) : message.extra; - if (message.version != null && message.hasOwnProperty("version")) + if (message.version != null && Object.hasOwnProperty.call(message, "version")) object.version = message.version; - if (message.clientModifiedTime != null && message.hasOwnProperty("clientModifiedTime")) + if (message.clientModifiedTime != null && Object.hasOwnProperty.call(message, "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") 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 (message.revision != null && Object.hasOwnProperty.call(message, "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") @@ -134149,19 +109070,6 @@ export const Records = $root.Records = (() => { return writer; }; - /** - * Encodes the specified FolderRecordKey message, length delimited. Does not implicitly {@link Records.FolderRecordKey.verify|verify} messages. - * @function encodeDelimited - * @memberof Records.FolderRecordKey - * @static - * @param {Records.IFolderRecordKey} message FolderRecordKey message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - FolderRecordKey.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a FolderRecordKey message from the specified reader or buffer. * @function decode @@ -134206,49 +109114,6 @@ export const Records = $root.Records = (() => { return message; }; - /** - * Decodes a FolderRecordKey message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Records.FolderRecordKey - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Records.FolderRecordKey} FolderRecordKey - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - FolderRecordKey.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a FolderRecordKey message. - * @function verify - * @memberof Records.FolderRecordKey - * @static - * @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) { - if (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.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"; - return null; - }; - /** * Creates a FolderRecordKey message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -134260,6 +109125,8 @@ export const Records = $root.Records = (() => { FolderRecordKey.fromObject = function fromObject(object, long) { if (object instanceof $root.Records.FolderRecordKey) return object; + if (!$util.isObject(object)) + throw TypeError(".Records.FolderRecordKey: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -134323,11 +109190,11 @@ export const Records = $root.Records = (() => { object.recordKey = $util.newBuffer(object.recordKey); } } - if (message.folderUid != null && message.hasOwnProperty("folderUid")) + if (message.folderUid != null && Object.hasOwnProperty.call(message, "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")) + if (message.recordUid != null && Object.hasOwnProperty.call(message, "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")) + if (message.recordKey != null && Object.hasOwnProperty.call(message, "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; return object; }; @@ -134448,19 +109315,6 @@ export const Records = $root.Records = (() => { return writer; }; - /** - * Encodes the specified Folder message, length delimited. Does not implicitly {@link Records.Folder.verify|verify} messages. - * @function encodeDelimited - * @memberof Records.Folder - * @static - * @param {Records.IFolder} message Folder message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Folder.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a Folder message from the specified reader or buffer. * @function decode @@ -134505,59 +109359,6 @@ export const Records = $root.Records = (() => { return message; }; - /** - * Decodes a Folder message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Records.Folder - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Records.Folder} Folder - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Folder.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a Folder message. - * @function verify - * @memberof Records.Folder - * @static - * @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) { - if (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.folderKey != null && message.hasOwnProperty("folderKey")) - if (!(message.folderKey && typeof message.folderKey.length === "number" || $util.isString(message.folderKey))) - return "folderKey: buffer expected"; - if (message.folderKeyType != null && message.hasOwnProperty("folderKeyType")) - switch (message.folderKeyType) { - default: - return "folderKeyType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - break; - } - return null; - }; - /** * Creates a Folder message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -134569,6 +109370,8 @@ export const Records = $root.Records = (() => { Folder.fromObject = function fromObject(object, long) { if (object instanceof $root.Records.Folder) return object; + if (!$util.isObject(object)) + throw TypeError(".Records.Folder: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -134657,11 +109460,11 @@ export const Records = $root.Records = (() => { } object.folderKeyType = options.enums === String ? "NO_KEY" : 0; } - if (message.folderUid != null && message.hasOwnProperty("folderUid")) + if (message.folderUid != null && Object.hasOwnProperty.call(message, "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.folderKey != null && message.hasOwnProperty("folderKey")) + if (message.folderKey != null && Object.hasOwnProperty.call(message, "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.folderKeyType != null && message.hasOwnProperty("folderKeyType")) + if (message.folderKeyType != null && Object.hasOwnProperty.call(message, "folderKeyType")) object.folderKeyType = options.enums === String ? $root.Records.RecordKeyType[message.folderKeyType] === undefined ? message.folderKeyType : $root.Records.RecordKeyType[message.folderKeyType] : message.folderKeyType; return object; }; @@ -134806,19 +109609,6 @@ export const Records = $root.Records = (() => { return writer; }; - /** - * Encodes the specified Team message, length delimited. Does not implicitly {@link Records.Team.verify|verify} messages. - * @function encodeDelimited - * @memberof Records.Team - * @static - * @param {Records.ITeam} message Team message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Team.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a Team message from the specified reader or buffer. * @function decode @@ -134873,71 +109663,6 @@ export const Records = $root.Records = (() => { return message; }; - /** - * Decodes a Team message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Records.Team - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Records.Team} Team - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Team.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a Team message. - * @function verify - * @memberof Records.Team - * @static - * @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) { - if (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"; - if (message.teamKey != null && message.hasOwnProperty("teamKey")) - if (!(message.teamKey && typeof message.teamKey.length === "number" || $util.isString(message.teamKey))) - return "teamKey: buffer expected"; - if (message.teamPrivateKey != null && message.hasOwnProperty("teamPrivateKey")) - if (!(message.teamPrivateKey && typeof message.teamPrivateKey.length === "number" || $util.isString(message.teamPrivateKey))) - return "teamPrivateKey: buffer expected"; - if (message.teamKeyType != null && message.hasOwnProperty("teamKeyType")) - switch (message.teamKeyType) { - default: - return "teamKeyType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - break; - } - 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.Records.Folder.verify(message.folders[i], long + 1); - if (error) - return "folders." + error; - } - } - return null; - }; - /** * Creates a Team message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -134949,6 +109674,8 @@ export const Records = $root.Records = (() => { Team.fromObject = function fromObject(object, long) { if (object instanceof $root.Records.Team) return object; + if (!$util.isObject(object)) + throw TypeError(".Records.Team: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -135010,7 +109737,7 @@ export const Records = $root.Records = (() => { throw TypeError(".Records.Team.folders: array expected"); message.folders = []; for (let i = 0; i < object.folders.length; ++i) { - if (typeof object.folders[i] !== "object") + if (!$util.isObject(object.folders[i])) throw TypeError(".Records.Team.folders: object expected"); message.folders[i] = $root.Records.Folder.fromObject(object.folders[i], long + 1); } @@ -135061,13 +109788,13 @@ export const Records = $root.Records = (() => { } object.teamKeyType = options.enums === String ? "NO_KEY" : 0; } - if (message.teamUid != null && message.hasOwnProperty("teamUid")) + if (message.teamUid != null && Object.hasOwnProperty.call(message, "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.teamKey != null && message.hasOwnProperty("teamKey")) + if (message.teamKey != null && Object.hasOwnProperty.call(message, "teamKey")) object.teamKey = options.bytes === String ? $util.base64.encode(message.teamKey, 0, message.teamKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.teamKey) : message.teamKey; - if (message.teamPrivateKey != null && message.hasOwnProperty("teamPrivateKey")) + if (message.teamPrivateKey != null && Object.hasOwnProperty.call(message, "teamPrivateKey")) object.teamPrivateKey = options.bytes === String ? $util.base64.encode(message.teamPrivateKey, 0, message.teamPrivateKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.teamPrivateKey) : message.teamPrivateKey; - if (message.teamKeyType != null && message.hasOwnProperty("teamKeyType")) + if (message.teamKeyType != null && Object.hasOwnProperty.call(message, "teamKeyType")) object.teamKeyType = options.enums === String ? $root.Records.RecordKeyType[message.teamKeyType] === undefined ? message.teamKeyType : $root.Records.RecordKeyType[message.teamKeyType] : message.teamKeyType; if (message.folders && message.folders.length) { object.folders = []; @@ -135212,19 +109939,6 @@ export const Records = $root.Records = (() => { return writer; }; - /** - * Encodes the specified RecordsGetResponse message, length delimited. Does not implicitly {@link Records.RecordsGetResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof Records.RecordsGetResponse - * @static - * @param {Records.IRecordsGetResponse} message RecordsGetResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RecordsGetResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a RecordsGetResponse message from the specified reader or buffer. * @function decode @@ -135281,76 +109995,6 @@ export const Records = $root.Records = (() => { return message; }; - /** - * Decodes a RecordsGetResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Records.RecordsGetResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Records.RecordsGetResponse} RecordsGetResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RecordsGetResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a RecordsGetResponse message. - * @function verify - * @memberof Records.RecordsGetResponse - * @static - * @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) { - if (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); - if (error) - return "records." + error; - } - } - if (message.folderRecordKeys != null && message.hasOwnProperty("folderRecordKeys")) { - 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); - if (error) - return "folderRecordKeys." + error; - } - } - 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.Records.Folder.verify(message.folders[i], long + 1); - if (error) - return "folders." + error; - } - } - 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.Records.Team.verify(message.teams[i], long + 1); - if (error) - return "teams." + error; - } - } - return null; - }; - /** * Creates a RecordsGetResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -135362,6 +110006,8 @@ export const Records = $root.Records = (() => { RecordsGetResponse.fromObject = function fromObject(object, long) { if (object instanceof $root.Records.RecordsGetResponse) return object; + if (!$util.isObject(object)) + throw TypeError(".Records.RecordsGetResponse: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -135372,7 +110018,7 @@ export const Records = $root.Records = (() => { throw TypeError(".Records.RecordsGetResponse.records: array expected"); message.records = []; for (let i = 0; i < object.records.length; ++i) { - if (typeof object.records[i] !== "object") + if (!$util.isObject(object.records[i])) throw TypeError(".Records.RecordsGetResponse.records: object expected"); message.records[i] = $root.Records.Record.fromObject(object.records[i], long + 1); } @@ -135382,7 +110028,7 @@ export const Records = $root.Records = (() => { throw TypeError(".Records.RecordsGetResponse.folderRecordKeys: array expected"); message.folderRecordKeys = []; for (let i = 0; i < object.folderRecordKeys.length; ++i) { - if (typeof object.folderRecordKeys[i] !== "object") + if (!$util.isObject(object.folderRecordKeys[i])) throw TypeError(".Records.RecordsGetResponse.folderRecordKeys: object expected"); message.folderRecordKeys[i] = $root.Records.FolderRecordKey.fromObject(object.folderRecordKeys[i], long + 1); } @@ -135392,7 +110038,7 @@ export const Records = $root.Records = (() => { throw TypeError(".Records.RecordsGetResponse.folders: array expected"); message.folders = []; for (let i = 0; i < object.folders.length; ++i) { - if (typeof object.folders[i] !== "object") + if (!$util.isObject(object.folders[i])) throw TypeError(".Records.RecordsGetResponse.folders: object expected"); message.folders[i] = $root.Records.Folder.fromObject(object.folders[i], long + 1); } @@ -135402,7 +110048,7 @@ export const Records = $root.Records = (() => { throw TypeError(".Records.RecordsGetResponse.teams: array expected"); message.teams = []; for (let i = 0; i < object.teams.length; ++i) { - if (typeof object.teams[i] !== "object") + if (!$util.isObject(object.teams[i])) throw TypeError(".Records.RecordsGetResponse.teams: object expected"); message.teams[i] = $root.Records.Team.fromObject(object.teams[i], long + 1); } @@ -135577,19 +110223,6 @@ export const Records = $root.Records = (() => { return writer; }; - /** - * Encodes the specified RecordLink message, length delimited. Does not implicitly {@link Records.RecordLink.verify|verify} messages. - * @function encodeDelimited - * @memberof Records.RecordLink - * @static - * @param {Records.IRecordLink} message RecordLink message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RecordLink.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a RecordLink message from the specified reader or buffer. * @function decode @@ -135630,46 +110263,6 @@ export const Records = $root.Records = (() => { return message; }; - /** - * Decodes a RecordLink message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Records.RecordLink - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Records.RecordLink} RecordLink - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RecordLink.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a RecordLink message. - * @function verify - * @memberof Records.RecordLink - * @static - * @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) { - if (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.recordKey != null && message.hasOwnProperty("recordKey")) - if (!(message.recordKey && typeof message.recordKey.length === "number" || $util.isString(message.recordKey))) - return "recordKey: buffer expected"; - return null; - }; - /** * Creates a RecordLink message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -135681,6 +110274,8 @@ export const Records = $root.Records = (() => { RecordLink.fromObject = function fromObject(object, long) { if (object instanceof $root.Records.RecordLink) return object; + if (!$util.isObject(object)) + throw TypeError(".Records.RecordLink: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -135732,9 +110327,9 @@ export const Records = $root.Records = (() => { object.recordKey = $util.newBuffer(object.recordKey); } } - if (message.recordUid != null && message.hasOwnProperty("recordUid")) + if (message.recordUid != null && Object.hasOwnProperty.call(message, "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")) + if (message.recordKey != null && Object.hasOwnProperty.call(message, "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; return object; }; @@ -135844,19 +110439,6 @@ export const Records = $root.Records = (() => { return writer; }; - /** - * Encodes the specified RecordAudit message, length delimited. Does not implicitly {@link Records.RecordAudit.verify|verify} messages. - * @function encodeDelimited - * @memberof Records.RecordAudit - * @static - * @param {Records.IRecordAudit} message RecordAudit message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RecordAudit.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a RecordAudit message from the specified reader or buffer. * @function decode @@ -135897,46 +110479,6 @@ export const Records = $root.Records = (() => { return message; }; - /** - * Decodes a RecordAudit message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Records.RecordAudit - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Records.RecordAudit} RecordAudit - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RecordAudit.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a RecordAudit message. - * @function verify - * @memberof Records.RecordAudit - * @static - * @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) { - if (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"; - if (message.data != null && message.hasOwnProperty("data")) - if (!(message.data && typeof message.data.length === "number" || $util.isString(message.data))) - return "data: buffer expected"; - return null; - }; - /** * Creates a RecordAudit message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -135948,6 +110490,8 @@ export const Records = $root.Records = (() => { RecordAudit.fromObject = function fromObject(object, long) { if (object instanceof $root.Records.RecordAudit) return object; + if (!$util.isObject(object)) + throw TypeError(".Records.RecordAudit: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -135990,9 +110534,9 @@ export const Records = $root.Records = (() => { object.data = $util.newBuffer(object.data); } } - if (message.version != null && message.hasOwnProperty("version")) + if (message.version != null && Object.hasOwnProperty.call(message, "version")) object.version = message.version; - if (message.data != null && message.hasOwnProperty("data")) + if (message.data != null && Object.hasOwnProperty.call(message, "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; return object; }; @@ -136091,19 +110635,6 @@ export const Records = $root.Records = (() => { return writer; }; - /** - * Encodes the specified SecurityData message, length delimited. Does not implicitly {@link Records.SecurityData.verify|verify} messages. - * @function encodeDelimited - * @memberof Records.SecurityData - * @static - * @param {Records.ISecurityData} message SecurityData message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SecurityData.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a SecurityData message from the specified reader or buffer. * @function decode @@ -136140,43 +110671,6 @@ export const Records = $root.Records = (() => { return message; }; - /** - * Decodes a SecurityData message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Records.SecurityData - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Records.SecurityData} SecurityData - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SecurityData.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a SecurityData message. - * @function verify - * @memberof Records.SecurityData - * @static - * @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) { - if (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"; - return null; - }; - /** * Creates a SecurityData message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -136188,6 +110682,8 @@ export const Records = $root.Records = (() => { SecurityData.fromObject = function fromObject(object, long) { if (object instanceof $root.Records.SecurityData) return object; + if (!$util.isObject(object)) + throw TypeError(".Records.SecurityData: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -136226,7 +110722,7 @@ export const Records = $root.Records = (() => { if (options.bytes !== Array) object.data = $util.newBuffer(object.data); } - if (message.data != null && message.hasOwnProperty("data")) + if (message.data != null && Object.hasOwnProperty.call(message, "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; return object; }; @@ -136325,19 +110821,6 @@ export const Records = $root.Records = (() => { return writer; }; - /** - * Encodes the specified SecurityScoreData message, length delimited. Does not implicitly {@link Records.SecurityScoreData.verify|verify} messages. - * @function encodeDelimited - * @memberof Records.SecurityScoreData - * @static - * @param {Records.ISecurityScoreData} message SecurityScoreData message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SecurityScoreData.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a SecurityScoreData message from the specified reader or buffer. * @function decode @@ -136374,43 +110857,6 @@ export const Records = $root.Records = (() => { return message; }; - /** - * Decodes a SecurityScoreData message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Records.SecurityScoreData - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Records.SecurityScoreData} SecurityScoreData - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SecurityScoreData.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a SecurityScoreData message. - * @function verify - * @memberof Records.SecurityScoreData - * @static - * @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) { - if (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"; - return null; - }; - /** * Creates a SecurityScoreData message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -136422,6 +110868,8 @@ export const Records = $root.Records = (() => { SecurityScoreData.fromObject = function fromObject(object, long) { if (object instanceof $root.Records.SecurityScoreData) return object; + if (!$util.isObject(object)) + throw TypeError(".Records.SecurityScoreData: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -136460,7 +110908,7 @@ export const Records = $root.Records = (() => { if (options.bytes !== Array) object.data = $util.newBuffer(object.data); } - if (message.data != null && message.hasOwnProperty("data")) + if (message.data != null && Object.hasOwnProperty.call(message, "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; return object; }; @@ -136682,19 +111130,6 @@ export const Records = $root.Records = (() => { return writer; }; - /** - * Encodes the specified RecordAdd message, length delimited. Does not implicitly {@link Records.RecordAdd.verify|verify} messages. - * @function encodeDelimited - * @memberof Records.RecordAdd - * @static - * @param {Records.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 @@ -136777,94 +111212,6 @@ export const Records = $root.Records = (() => { return message; }; - /** - * Decodes a RecordAdd message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Records.RecordAdd - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Records.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 Records.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, 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.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.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.folderType != null && message.hasOwnProperty("folderType")) - switch (message.folderType) { - default: - return "folderType: enum value expected"; - case 0: - case 1: - case 2: - break; - } - 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.folderKey != null && message.hasOwnProperty("folderKey")) - if (!(message.folderKey && typeof message.folderKey.length === "number" || $util.isString(message.folderKey))) - return "folderKey: 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], long + 1); - if (error) - return "recordLinks." + error; - } - } - if (message.audit != null && message.hasOwnProperty("audit")) { - let error = $root.Records.RecordAudit.verify(message.audit, long + 1); - if (error) - return "audit." + error; - } - if (message.securityData != null && message.hasOwnProperty("securityData")) { - let error = $root.Records.SecurityData.verify(message.securityData, long + 1); - if (error) - return "securityData." + error; - } - if (message.securityScoreData != null && message.hasOwnProperty("securityScoreData")) { - let error = $root.Records.SecurityScoreData.verify(message.securityScoreData, long + 1); - 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 @@ -136876,6 +111223,8 @@ export const Records = $root.Records = (() => { RecordAdd.fromObject = function fromObject(object, long) { if (object instanceof $root.Records.RecordAdd) return object; + if (!$util.isObject(object)) + throw TypeError(".Records.RecordAdd: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -136945,23 +111294,23 @@ export const Records = $root.Records = (() => { throw TypeError(".Records.RecordAdd.recordLinks: array expected"); message.recordLinks = []; for (let i = 0; i < object.recordLinks.length; ++i) { - if (typeof object.recordLinks[i] !== "object") + if (!$util.isObject(object.recordLinks[i])) throw TypeError(".Records.RecordAdd.recordLinks: object expected"); message.recordLinks[i] = $root.Records.RecordLink.fromObject(object.recordLinks[i], long + 1); } } if (object.audit != null) { - if (typeof object.audit !== "object") + if (!$util.isObject(object.audit)) throw TypeError(".Records.RecordAdd.audit: object expected"); message.audit = $root.Records.RecordAudit.fromObject(object.audit, long + 1); } if (object.securityData != null) { - if (typeof object.securityData !== "object") + if (!$util.isObject(object.securityData)) throw TypeError(".Records.RecordAdd.securityData: object expected"); message.securityData = $root.Records.SecurityData.fromObject(object.securityData, long + 1); } if (object.securityScoreData != null) { - if (typeof object.securityScoreData !== "object") + if (!$util.isObject(object.securityScoreData)) throw TypeError(".Records.RecordAdd.securityScoreData: object expected"); message.securityScoreData = $root.Records.SecurityScoreData.fromObject(object.securityScoreData, long + 1); } @@ -137040,37 +111389,37 @@ export const Records = $root.Records = (() => { object.securityData = null; object.securityScoreData = null; } - if (message.recordUid != null && message.hasOwnProperty("recordUid")) + if (message.recordUid != null && Object.hasOwnProperty.call(message, "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")) + if (message.recordKey != null && Object.hasOwnProperty.call(message, "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 (message.clientModifiedTime != null && Object.hasOwnProperty.call(message, "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") 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")) + if (message.data != null && Object.hasOwnProperty.call(message, "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")) + if (message.nonSharedData != null && Object.hasOwnProperty.call(message, "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.folderType != null && message.hasOwnProperty("folderType")) + if (message.folderType != null && Object.hasOwnProperty.call(message, "folderType")) object.folderType = options.enums === String ? $root.Records.RecordFolderType[message.folderType] === undefined ? message.folderType : $root.Records.RecordFolderType[message.folderType] : message.folderType; - if (message.folderUid != null && message.hasOwnProperty("folderUid")) + if (message.folderUid != null && Object.hasOwnProperty.call(message, "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.folderKey != null && message.hasOwnProperty("folderKey")) + if (message.folderKey != null && Object.hasOwnProperty.call(message, "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.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); } - if (message.audit != null && message.hasOwnProperty("audit")) + if (message.audit != null && Object.hasOwnProperty.call(message, "audit")) object.audit = $root.Records.RecordAudit.toObject(message.audit, options, q + 1); - if (message.securityData != null && message.hasOwnProperty("securityData")) + if (message.securityData != null && Object.hasOwnProperty.call(message, "securityData")) object.securityData = $root.Records.SecurityData.toObject(message.securityData, options, q + 1); - if (message.securityScoreData != null && message.hasOwnProperty("securityScoreData")) + if (message.securityScoreData != null && Object.hasOwnProperty.call(message, "securityScoreData")) object.securityScoreData = $root.Records.SecurityScoreData.toObject(message.securityScoreData, options, q + 1); return object; }; @@ -137193,19 +111542,6 @@ export const Records = $root.Records = (() => { return writer; }; - /** - * Encodes the specified RecordsAddRequest message, length delimited. Does not implicitly {@link Records.RecordsAddRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof Records.RecordsAddRequest - * @static - * @param {Records.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 @@ -137252,65 +111588,6 @@ export const Records = $root.Records = (() => { return message; }; - /** - * Decodes a RecordsAddRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Records.RecordsAddRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Records.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 Records.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, 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.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); - 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 @@ -137322,6 +111599,8 @@ export const Records = $root.Records = (() => { RecordsAddRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.Records.RecordsAddRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".Records.RecordsAddRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -137332,7 +111611,7 @@ export const Records = $root.Records = (() => { throw TypeError(".Records.RecordsAddRequest.records: array expected"); message.records = []; for (let i = 0; i < object.records.length; ++i) { - if (typeof object.records[i] !== "object") + if (!$util.isObject(object.records[i])) throw TypeError(".Records.RecordsAddRequest.records: object expected"); message.records[i] = $root.Records.RecordAdd.fromObject(object.records[i], long + 1); } @@ -137417,14 +111696,14 @@ export const Records = $root.Records = (() => { for (let j = 0; j < message.records.length; ++j) object.records[j] = $root.Records.RecordAdd.toObject(message.records[j], options, q + 1); } - if (message.clientTime != null && message.hasOwnProperty("clientTime")) + if (message.clientTime != null && Object.hasOwnProperty.call(message, "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") 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")) + if (message.securityDataKeyType != null && Object.hasOwnProperty.call(message, "securityDataKeyType")) object.securityDataKeyType = options.enums === String ? $root.Records.RecordKeyType[message.securityDataKeyType] === undefined ? message.securityDataKeyType : $root.Records.RecordKeyType[message.securityDataKeyType] : message.securityDataKeyType; return object; }; @@ -137626,19 +111905,6 @@ export const Records = $root.Records = (() => { return writer; }; - /** - * Encodes the specified RecordUpdate message, length delimited. Does not implicitly {@link Records.RecordUpdate.verify|verify} messages. - * @function encodeDelimited - * @memberof Records.RecordUpdate - * @static - * @param {Records.IRecordUpdate} message RecordUpdate message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RecordUpdate.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a RecordUpdate message from the specified reader or buffer. * @function decode @@ -137715,86 +111981,6 @@ export const Records = $root.Records = (() => { return message; }; - /** - * Decodes a RecordUpdate message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Records.RecordUpdate - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Records.RecordUpdate} RecordUpdate - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RecordUpdate.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a RecordUpdate message. - * @function verify - * @memberof Records.RecordUpdate - * @static - * @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) { - if (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.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.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"; - 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.recordLinksAdd != null && message.hasOwnProperty("recordLinksAdd")) { - 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); - if (error) - return "recordLinksAdd." + error; - } - } - if (message.recordLinksRemove != null && message.hasOwnProperty("recordLinksRemove")) { - if (!Array.isArray(message.recordLinksRemove)) - return "recordLinksRemove: array expected"; - for (let i = 0; i < message.recordLinksRemove.length; ++i) - if (!(message.recordLinksRemove[i] && typeof message.recordLinksRemove[i].length === "number" || $util.isString(message.recordLinksRemove[i]))) - return "recordLinksRemove: buffer[] expected"; - } - if (message.audit != null && message.hasOwnProperty("audit")) { - let error = $root.Records.RecordAudit.verify(message.audit, long + 1); - if (error) - return "audit." + error; - } - if (message.securityData != null && message.hasOwnProperty("securityData")) { - let error = $root.Records.SecurityData.verify(message.securityData, long + 1); - if (error) - return "securityData." + error; - } - if (message.securityScoreData != null && message.hasOwnProperty("securityScoreData")) { - let error = $root.Records.SecurityScoreData.verify(message.securityScoreData, long + 1); - if (error) - return "securityScoreData." + error; - } - return null; - }; - /** * Creates a RecordUpdate message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -137806,6 +111992,8 @@ export const Records = $root.Records = (() => { RecordUpdate.fromObject = function fromObject(object, long) { if (object instanceof $root.Records.RecordUpdate) return object; + if (!$util.isObject(object)) + throw TypeError(".Records.RecordUpdate: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -137849,7 +112037,7 @@ export const Records = $root.Records = (() => { throw TypeError(".Records.RecordUpdate.recordLinksAdd: array expected"); message.recordLinksAdd = []; for (let i = 0; i < object.recordLinksAdd.length; ++i) { - if (typeof object.recordLinksAdd[i] !== "object") + if (!$util.isObject(object.recordLinksAdd[i])) throw TypeError(".Records.RecordUpdate.recordLinksAdd: object expected"); message.recordLinksAdd[i] = $root.Records.RecordLink.fromObject(object.recordLinksAdd[i], long + 1); } @@ -137865,17 +112053,17 @@ export const Records = $root.Records = (() => { message.recordLinksRemove[i] = object.recordLinksRemove[i]; } if (object.audit != null) { - if (typeof object.audit !== "object") + if (!$util.isObject(object.audit)) throw TypeError(".Records.RecordUpdate.audit: object expected"); message.audit = $root.Records.RecordAudit.fromObject(object.audit, long + 1); } if (object.securityData != null) { - if (typeof object.securityData !== "object") + if (!$util.isObject(object.securityData)) throw TypeError(".Records.RecordUpdate.securityData: object expected"); message.securityData = $root.Records.SecurityData.fromObject(object.securityData, long + 1); } if (object.securityScoreData != null) { - if (typeof object.securityScoreData !== "object") + if (!$util.isObject(object.securityScoreData)) throw TypeError(".Records.RecordUpdate.securityScoreData: object expected"); message.securityScoreData = $root.Records.SecurityScoreData.fromObject(object.securityScoreData, long + 1); } @@ -137939,25 +112127,25 @@ export const Records = $root.Records = (() => { object.securityData = null; object.securityScoreData = null; } - if (message.recordUid != null && message.hasOwnProperty("recordUid")) + if (message.recordUid != null && Object.hasOwnProperty.call(message, "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 (message.clientModifiedTime != null && Object.hasOwnProperty.call(message, "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") 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 (message.revision != null && Object.hasOwnProperty.call(message, "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") 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.data != null && message.hasOwnProperty("data")) + if (message.data != null && Object.hasOwnProperty.call(message, "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")) + if (message.nonSharedData != null && Object.hasOwnProperty.call(message, "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.recordLinksAdd && message.recordLinksAdd.length) { object.recordLinksAdd = []; @@ -137969,11 +112157,11 @@ export const Records = $root.Records = (() => { for (let j = 0; j < message.recordLinksRemove.length; ++j) 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")) + if (message.audit != null && Object.hasOwnProperty.call(message, "audit")) object.audit = $root.Records.RecordAudit.toObject(message.audit, options, q + 1); - if (message.securityData != null && message.hasOwnProperty("securityData")) + if (message.securityData != null && Object.hasOwnProperty.call(message, "securityData")) object.securityData = $root.Records.SecurityData.toObject(message.securityData, options, q + 1); - if (message.securityScoreData != null && message.hasOwnProperty("securityScoreData")) + if (message.securityScoreData != null && Object.hasOwnProperty.call(message, "securityScoreData")) object.securityScoreData = $root.Records.SecurityScoreData.toObject(message.securityScoreData, options, q + 1); return object; }; @@ -138096,19 +112284,6 @@ export const Records = $root.Records = (() => { return writer; }; - /** - * Encodes the specified RecordsUpdateRequest message, length delimited. Does not implicitly {@link Records.RecordsUpdateRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof Records.RecordsUpdateRequest - * @static - * @param {Records.IRecordsUpdateRequest} message RecordsUpdateRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RecordsUpdateRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a RecordsUpdateRequest message from the specified reader or buffer. * @function decode @@ -138155,65 +112330,6 @@ export const Records = $root.Records = (() => { return message; }; - /** - * Decodes a RecordsUpdateRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Records.RecordsUpdateRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Records.RecordsUpdateRequest} RecordsUpdateRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RecordsUpdateRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a RecordsUpdateRequest message. - * @function verify - * @memberof Records.RecordsUpdateRequest - * @static - * @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) { - if (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); - 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 RecordsUpdateRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -138225,6 +112341,8 @@ export const Records = $root.Records = (() => { RecordsUpdateRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.Records.RecordsUpdateRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".Records.RecordsUpdateRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -138235,7 +112353,7 @@ export const Records = $root.Records = (() => { throw TypeError(".Records.RecordsUpdateRequest.records: array expected"); message.records = []; for (let i = 0; i < object.records.length; ++i) { - if (typeof object.records[i] !== "object") + if (!$util.isObject(object.records[i])) throw TypeError(".Records.RecordsUpdateRequest.records: object expected"); message.records[i] = $root.Records.RecordUpdate.fromObject(object.records[i], long + 1); } @@ -138320,14 +112438,14 @@ export const Records = $root.Records = (() => { for (let j = 0; j < message.records.length; ++j) object.records[j] = $root.Records.RecordUpdate.toObject(message.records[j], options, q + 1); } - if (message.clientTime != null && message.hasOwnProperty("clientTime")) + if (message.clientTime != null && Object.hasOwnProperty.call(message, "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") 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")) + if (message.securityDataKeyType != null && Object.hasOwnProperty.call(message, "securityDataKeyType")) object.securityDataKeyType = options.enums === String ? $root.Records.RecordKeyType[message.securityDataKeyType] === undefined ? message.securityDataKeyType : $root.Records.RecordKeyType[message.securityDataKeyType] : message.securityDataKeyType; return object; }; @@ -138481,19 +112599,6 @@ export const Records = $root.Records = (() => { return writer; }; - /** - * Encodes the specified RecordFileForConversion message, length delimited. Does not implicitly {@link Records.RecordFileForConversion.verify|verify} messages. - * @function encodeDelimited - * @memberof Records.RecordFileForConversion - * @static - * @param {Records.IRecordFileForConversion} message RecordFileForConversion message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RecordFileForConversion.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a RecordFileForConversion message from the specified reader or buffer. * @function decode @@ -138550,58 +112655,6 @@ export const Records = $root.Records = (() => { return message; }; - /** - * Decodes a RecordFileForConversion message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Records.RecordFileForConversion - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Records.RecordFileForConversion} RecordFileForConversion - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RecordFileForConversion.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a RecordFileForConversion message. - * @function verify - * @memberof Records.RecordFileForConversion - * @static - * @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) { - if (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.fileFileId != null && message.hasOwnProperty("fileFileId")) - if (!$util.isString(message.fileFileId)) - return "fileFileId: string expected"; - if (message.thumbFileId != null && message.hasOwnProperty("thumbFileId")) - if (!$util.isString(message.thumbFileId)) - return "thumbFileId: string 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.recordKey != null && message.hasOwnProperty("recordKey")) - if (!(message.recordKey && typeof message.recordKey.length === "number" || $util.isString(message.recordKey))) - return "recordKey: buffer expected"; - if (message.linkKey != null && message.hasOwnProperty("linkKey")) - if (!(message.linkKey && typeof message.linkKey.length === "number" || $util.isString(message.linkKey))) - return "linkKey: buffer expected"; - return null; - }; - /** * Creates a RecordFileForConversion message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -138613,6 +112666,8 @@ export const Records = $root.Records = (() => { RecordFileForConversion.fromObject = function fromObject(object, long) { if (object instanceof $root.Records.RecordFileForConversion) return object; + if (!$util.isObject(object)) + throw TypeError(".Records.RecordFileForConversion: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -138694,17 +112749,17 @@ export const Records = $root.Records = (() => { object.linkKey = $util.newBuffer(object.linkKey); } } - if (message.recordUid != null && message.hasOwnProperty("recordUid")) + if (message.recordUid != null && Object.hasOwnProperty.call(message, "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.fileFileId != null && message.hasOwnProperty("fileFileId")) + if (message.fileFileId != null && Object.hasOwnProperty.call(message, "fileFileId")) object.fileFileId = message.fileFileId; - if (message.thumbFileId != null && message.hasOwnProperty("thumbFileId")) + if (message.thumbFileId != null && Object.hasOwnProperty.call(message, "thumbFileId")) object.thumbFileId = message.thumbFileId; - if (message.data != null && message.hasOwnProperty("data")) + if (message.data != null && Object.hasOwnProperty.call(message, "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.recordKey != null && message.hasOwnProperty("recordKey")) + if (message.recordKey != null && Object.hasOwnProperty.call(message, "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.linkKey != null && message.hasOwnProperty("linkKey")) + if (message.linkKey != null && Object.hasOwnProperty.call(message, "linkKey")) object.linkKey = options.bytes === String ? $util.base64.encode(message.linkKey, 0, message.linkKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.linkKey) : message.linkKey; return object; }; @@ -138814,19 +112869,6 @@ export const Records = $root.Records = (() => { return writer; }; - /** - * Encodes the specified RecordFolderForConversion message, length delimited. Does not implicitly {@link Records.RecordFolderForConversion.verify|verify} messages. - * @function encodeDelimited - * @memberof Records.RecordFolderForConversion - * @static - * @param {Records.IRecordFolderForConversion} message RecordFolderForConversion message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RecordFolderForConversion.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a RecordFolderForConversion message from the specified reader or buffer. * @function decode @@ -138867,46 +112909,6 @@ export const Records = $root.Records = (() => { return message; }; - /** - * Decodes a RecordFolderForConversion message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Records.RecordFolderForConversion - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Records.RecordFolderForConversion} RecordFolderForConversion - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RecordFolderForConversion.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a RecordFolderForConversion message. - * @function verify - * @memberof Records.RecordFolderForConversion - * @static - * @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) { - if (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.recordFolderKey != null && message.hasOwnProperty("recordFolderKey")) - if (!(message.recordFolderKey && typeof message.recordFolderKey.length === "number" || $util.isString(message.recordFolderKey))) - return "recordFolderKey: buffer expected"; - return null; - }; - /** * Creates a RecordFolderForConversion message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -138918,6 +112920,8 @@ export const Records = $root.Records = (() => { RecordFolderForConversion.fromObject = function fromObject(object, long) { if (object instanceof $root.Records.RecordFolderForConversion) return object; + if (!$util.isObject(object)) + throw TypeError(".Records.RecordFolderForConversion: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -138969,9 +112973,9 @@ export const Records = $root.Records = (() => { object.recordFolderKey = $util.newBuffer(object.recordFolderKey); } } - if (message.folderUid != null && message.hasOwnProperty("folderUid")) + if (message.folderUid != null && Object.hasOwnProperty.call(message, "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.recordFolderKey != null && message.hasOwnProperty("recordFolderKey")) + if (message.recordFolderKey != null && Object.hasOwnProperty.call(message, "recordFolderKey")) object.recordFolderKey = options.bytes === String ? $util.base64.encode(message.recordFolderKey, 0, message.recordFolderKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordFolderKey) : message.recordFolderKey; return object; }; @@ -139151,19 +113155,6 @@ export const Records = $root.Records = (() => { return writer; }; - /** - * Encodes the specified RecordConvertToV3 message, length delimited. Does not implicitly {@link Records.RecordConvertToV3.verify|verify} messages. - * @function encodeDelimited - * @memberof Records.RecordConvertToV3 - * @static - * @param {Records.IRecordConvertToV3} message RecordConvertToV3 message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RecordConvertToV3.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a RecordConvertToV3 message from the specified reader or buffer. * @function decode @@ -139232,78 +113223,6 @@ export const Records = $root.Records = (() => { return message; }; - /** - * Decodes a RecordConvertToV3 message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Records.RecordConvertToV3 - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Records.RecordConvertToV3} RecordConvertToV3 - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RecordConvertToV3.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a RecordConvertToV3 message. - * @function verify - * @memberof Records.RecordConvertToV3 - * @static - * @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) { - if (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.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.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"; - 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.audit != null && message.hasOwnProperty("audit")) { - let error = $root.Records.RecordAudit.verify(message.audit, long + 1); - if (error) - return "audit." + error; - } - if (message.recordFile != null && message.hasOwnProperty("recordFile")) { - 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); - if (error) - return "recordFile." + error; - } - } - if (message.folderKey != null && message.hasOwnProperty("folderKey")) { - 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); - if (error) - return "folderKey." + error; - } - } - return null; - }; - /** * Creates a RecordConvertToV3 message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -139315,6 +113234,8 @@ export const Records = $root.Records = (() => { RecordConvertToV3.fromObject = function fromObject(object, long) { if (object instanceof $root.Records.RecordConvertToV3) return object; + if (!$util.isObject(object)) + throw TypeError(".Records.RecordConvertToV3: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -139354,7 +113275,7 @@ export const Records = $root.Records = (() => { else if (object.nonSharedData.length >= 0) message.nonSharedData = object.nonSharedData; if (object.audit != null) { - if (typeof object.audit !== "object") + if (!$util.isObject(object.audit)) throw TypeError(".Records.RecordConvertToV3.audit: object expected"); message.audit = $root.Records.RecordAudit.fromObject(object.audit, long + 1); } @@ -139363,7 +113284,7 @@ export const Records = $root.Records = (() => { throw TypeError(".Records.RecordConvertToV3.recordFile: array expected"); message.recordFile = []; for (let i = 0; i < object.recordFile.length; ++i) { - if (typeof object.recordFile[i] !== "object") + if (!$util.isObject(object.recordFile[i])) throw TypeError(".Records.RecordConvertToV3.recordFile: object expected"); message.recordFile[i] = $root.Records.RecordFileForConversion.fromObject(object.recordFile[i], long + 1); } @@ -139373,7 +113294,7 @@ export const Records = $root.Records = (() => { throw TypeError(".Records.RecordConvertToV3.folderKey: array expected"); message.folderKey = []; for (let i = 0; i < object.folderKey.length; ++i) { - if (typeof object.folderKey[i] !== "object") + if (!$util.isObject(object.folderKey[i])) throw TypeError(".Records.RecordConvertToV3.folderKey: object expected"); message.folderKey[i] = $root.Records.RecordFolderForConversion.fromObject(object.folderKey[i], long + 1); } @@ -139436,27 +113357,27 @@ export const Records = $root.Records = (() => { } object.audit = null; } - if (message.recordUid != null && message.hasOwnProperty("recordUid")) + if (message.recordUid != null && Object.hasOwnProperty.call(message, "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 (message.clientModifiedTime != null && Object.hasOwnProperty.call(message, "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") 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 (message.revision != null && Object.hasOwnProperty.call(message, "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") 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.data != null && message.hasOwnProperty("data")) + if (message.data != null && Object.hasOwnProperty.call(message, "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")) + if (message.nonSharedData != null && Object.hasOwnProperty.call(message, "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")) + if (message.audit != null && Object.hasOwnProperty.call(message, "audit")) object.audit = $root.Records.RecordAudit.toObject(message.audit, options, q + 1); if (message.recordFile && message.recordFile.length) { object.recordFile = []; @@ -139578,19 +113499,6 @@ export const Records = $root.Records = (() => { return writer; }; - /** - * Encodes the specified RecordsConvertToV3Request message, length delimited. Does not implicitly {@link Records.RecordsConvertToV3Request.verify|verify} messages. - * @function encodeDelimited - * @memberof Records.RecordsConvertToV3Request - * @static - * @param {Records.IRecordsConvertToV3Request} message RecordsConvertToV3Request message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RecordsConvertToV3Request.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a RecordsConvertToV3Request message from the specified reader or buffer. * @function decode @@ -139633,52 +113541,6 @@ export const Records = $root.Records = (() => { return message; }; - /** - * Decodes a RecordsConvertToV3Request message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Records.RecordsConvertToV3Request - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Records.RecordsConvertToV3Request} RecordsConvertToV3Request - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RecordsConvertToV3Request.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a RecordsConvertToV3Request message. - * @function verify - * @memberof Records.RecordsConvertToV3Request - * @static - * @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) { - if (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); - 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"; - return null; - }; - /** * Creates a RecordsConvertToV3Request message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -139690,6 +113552,8 @@ export const Records = $root.Records = (() => { RecordsConvertToV3Request.fromObject = function fromObject(object, long) { if (object instanceof $root.Records.RecordsConvertToV3Request) return object; + if (!$util.isObject(object)) + throw TypeError(".Records.RecordsConvertToV3Request: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -139700,7 +113564,7 @@ export const Records = $root.Records = (() => { throw TypeError(".Records.RecordsConvertToV3Request.records: array expected"); message.records = []; for (let i = 0; i < object.records.length; ++i) { - if (typeof object.records[i] !== "object") + if (!$util.isObject(object.records[i])) throw TypeError(".Records.RecordsConvertToV3Request.records: object expected"); message.records[i] = $root.Records.RecordConvertToV3.fromObject(object.records[i], long + 1); } @@ -139747,7 +113611,7 @@ export const Records = $root.Records = (() => { for (let j = 0; j < message.records.length; ++j) object.records[j] = $root.Records.RecordConvertToV3.toObject(message.records[j], options, q + 1); } - if (message.clientTime != null && message.hasOwnProperty("clientTime")) + if (message.clientTime != null && Object.hasOwnProperty.call(message, "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") @@ -139853,19 +113717,6 @@ export const Records = $root.Records = (() => { return writer; }; - /** - * Encodes the specified RecordsRemoveRequest message, length delimited. Does not implicitly {@link Records.RecordsRemoveRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof Records.RecordsRemoveRequest - * @static - * @param {Records.IRecordsRemoveRequest} message RecordsRemoveRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RecordsRemoveRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a RecordsRemoveRequest message from the specified reader or buffer. * @function decode @@ -139904,47 +113755,6 @@ export const Records = $root.Records = (() => { return message; }; - /** - * Decodes a RecordsRemoveRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Records.RecordsRemoveRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Records.RecordsRemoveRequest} RecordsRemoveRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RecordsRemoveRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a RecordsRemoveRequest message. - * @function verify - * @memberof Records.RecordsRemoveRequest - * @static - * @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) { - if (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) - if (!(message.records[i] && typeof message.records[i].length === "number" || $util.isString(message.records[i]))) - return "records: buffer[] expected"; - } - return null; - }; - /** * Creates a RecordsRemoveRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -139956,6 +113766,8 @@ export const Records = $root.Records = (() => { RecordsRemoveRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.Records.RecordsRemoveRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".Records.RecordsRemoveRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -140106,19 +113918,6 @@ export const Records = $root.Records = (() => { return writer; }; - /** - * Encodes the specified RecordRevert message, length delimited. Does not implicitly {@link Records.RecordRevert.verify|verify} messages. - * @function encodeDelimited - * @memberof Records.RecordRevert - * @static - * @param {Records.IRecordRevert} message RecordRevert message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RecordRevert.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a RecordRevert message from the specified reader or buffer. * @function decode @@ -140159,46 +113958,6 @@ export const Records = $root.Records = (() => { return message; }; - /** - * Decodes a RecordRevert message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Records.RecordRevert - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Records.RecordRevert} RecordRevert - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RecordRevert.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a RecordRevert message. - * @function verify - * @memberof Records.RecordRevert - * @static - * @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) { - if (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.revertToRevision != null && message.hasOwnProperty("revertToRevision")) - if (!$util.isInteger(message.revertToRevision) && !(message.revertToRevision && $util.isInteger(message.revertToRevision.low) && $util.isInteger(message.revertToRevision.high))) - return "revertToRevision: integer|Long expected"; - return null; - }; - /** * Creates a RecordRevert message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -140210,6 +113969,8 @@ export const Records = $root.Records = (() => { RecordRevert.fromObject = function fromObject(object, long) { if (object instanceof $root.Records.RecordRevert) return object; + if (!$util.isObject(object)) + throw TypeError(".Records.RecordRevert: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -140263,9 +114024,9 @@ export const Records = $root.Records = (() => { } else object.revertToRevision = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; } - if (message.recordUid != null && message.hasOwnProperty("recordUid")) + if (message.recordUid != null && Object.hasOwnProperty.call(message, "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 (message.revertToRevision != null && Object.hasOwnProperty.call(message, "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") @@ -140371,19 +114132,6 @@ export const Records = $root.Records = (() => { return writer; }; - /** - * Encodes the specified RecordsRevertRequest message, length delimited. Does not implicitly {@link Records.RecordsRevertRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof Records.RecordsRevertRequest - * @static - * @param {Records.IRecordsRevertRequest} message RecordsRevertRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RecordsRevertRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a RecordsRevertRequest message from the specified reader or buffer. * @function decode @@ -140422,49 +114170,6 @@ export const Records = $root.Records = (() => { return message; }; - /** - * Decodes a RecordsRevertRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Records.RecordsRevertRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Records.RecordsRevertRequest} RecordsRevertRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RecordsRevertRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a RecordsRevertRequest message. - * @function verify - * @memberof Records.RecordsRevertRequest - * @static - * @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) { - if (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); - if (error) - return "records." + error; - } - } - return null; - }; - /** * Creates a RecordsRevertRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -140476,6 +114181,8 @@ export const Records = $root.Records = (() => { RecordsRevertRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.Records.RecordsRevertRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".Records.RecordsRevertRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -140486,7 +114193,7 @@ export const Records = $root.Records = (() => { throw TypeError(".Records.RecordsRevertRequest.records: array expected"); message.records = []; for (let i = 0; i < object.records.length; ++i) { - if (typeof object.records[i] !== "object") + if (!$util.isObject(object.records[i])) throw TypeError(".Records.RecordsRevertRequest.records: object expected"); message.records[i] = $root.Records.RecordRevert.fromObject(object.records[i], long + 1); } @@ -140673,19 +114380,6 @@ export const Records = $root.Records = (() => { return writer; }; - /** - * Encodes the specified RecordLinkError message, length delimited. Does not implicitly {@link Records.RecordLinkError.verify|verify} messages. - * @function encodeDelimited - * @memberof Records.RecordLinkError - * @static - * @param {Records.IRecordLinkError} message RecordLinkError message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RecordLinkError.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a RecordLinkError message from the specified reader or buffer. * @function decode @@ -140730,65 +114424,6 @@ export const Records = $root.Records = (() => { return message; }; - /** - * Decodes a RecordLinkError message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Records.RecordLinkError - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Records.RecordLinkError} RecordLinkError - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RecordLinkError.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a RecordLinkError message. - * @function verify - * @memberof Records.RecordLinkError - * @static - * @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) { - if (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.status != null && message.hasOwnProperty("status")) - switch (message.status) { - default: - return "status: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: - case 9: - case 10: - case 11: - case 12: - break; - } - if (message.message != null && message.hasOwnProperty("message")) - if (!$util.isString(message.message)) - return "message: string expected"; - return null; - }; - /** * Creates a RecordLinkError message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -140800,6 +114435,8 @@ export const Records = $root.Records = (() => { RecordLinkError.fromObject = function fromObject(object, long) { if (object instanceof $root.Records.RecordLinkError) return object; + if (!$util.isObject(object)) + throw TypeError(".Records.RecordLinkError: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -140903,11 +114540,11 @@ export const Records = $root.Records = (() => { object.status = options.enums === String ? "RS_SUCCESS" : 0; object.message = ""; } - if (message.recordUid != null && message.hasOwnProperty("recordUid")) + if (message.recordUid != null && Object.hasOwnProperty.call(message, "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.status != null && message.hasOwnProperty("status")) + if (message.status != null && Object.hasOwnProperty.call(message, "status")) object.status = options.enums === String ? $root.Records.RecordModifyResult[message.status] === undefined ? message.status : $root.Records.RecordModifyResult[message.status] : message.status; - if (message.message != null && message.hasOwnProperty("message")) + if (message.message != null && Object.hasOwnProperty.call(message, "message")) object.message = message.message; return object; }; @@ -141041,19 +114678,6 @@ export const Records = $root.Records = (() => { return writer; }; - /** - * Encodes the specified RecordModifyStatus message, length delimited. Does not implicitly {@link Records.RecordModifyStatus.verify|verify} messages. - * @function encodeDelimited - * @memberof Records.RecordModifyStatus - * @static - * @param {Records.IRecordModifyStatus} message RecordModifyStatus message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RecordModifyStatus.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a RecordModifyStatus message from the specified reader or buffer. * @function decode @@ -141104,74 +114728,6 @@ export const Records = $root.Records = (() => { return message; }; - /** - * Decodes a RecordModifyStatus message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Records.RecordModifyStatus - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Records.RecordModifyStatus} RecordModifyStatus - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RecordModifyStatus.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a RecordModifyStatus message. - * @function verify - * @memberof Records.RecordModifyStatus - * @static - * @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) { - if (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.status != null && message.hasOwnProperty("status")) - switch (message.status) { - default: - return "status: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: - case 9: - case 10: - case 11: - case 12: - break; - } - if (message.message != null && message.hasOwnProperty("message")) - if (!$util.isString(message.message)) - return "message: string expected"; - if (message.linkErrors != null && message.hasOwnProperty("linkErrors")) { - 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); - if (error) - return "linkErrors." + error; - } - } - return null; - }; - /** * Creates a RecordModifyStatus message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -141183,6 +114739,8 @@ export const Records = $root.Records = (() => { RecordModifyStatus.fromObject = function fromObject(object, long) { if (object instanceof $root.Records.RecordModifyStatus) return object; + if (!$util.isObject(object)) + throw TypeError(".Records.RecordModifyStatus: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -141260,7 +114818,7 @@ export const Records = $root.Records = (() => { throw TypeError(".Records.RecordModifyStatus.linkErrors: array expected"); message.linkErrors = []; for (let i = 0; i < object.linkErrors.length; ++i) { - if (typeof object.linkErrors[i] !== "object") + if (!$util.isObject(object.linkErrors[i])) throw TypeError(".Records.RecordModifyStatus.linkErrors: object expected"); message.linkErrors[i] = $root.Records.RecordLinkError.fromObject(object.linkErrors[i], long + 1); } @@ -141298,11 +114856,11 @@ export const Records = $root.Records = (() => { object.status = options.enums === String ? "RS_SUCCESS" : 0; object.message = ""; } - if (message.recordUid != null && message.hasOwnProperty("recordUid")) + if (message.recordUid != null && Object.hasOwnProperty.call(message, "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.status != null && message.hasOwnProperty("status")) + if (message.status != null && Object.hasOwnProperty.call(message, "status")) object.status = options.enums === String ? $root.Records.RecordModifyResult[message.status] === undefined ? message.status : $root.Records.RecordModifyResult[message.status] : message.status; - if (message.message != null && message.hasOwnProperty("message")) + if (message.message != null && Object.hasOwnProperty.call(message, "message")) object.message = message.message; if (message.linkErrors && message.linkErrors.length) { object.linkErrors = []; @@ -141419,19 +114977,6 @@ export const Records = $root.Records = (() => { return writer; }; - /** - * Encodes the specified RecordsModifyResponse message, length delimited. Does not implicitly {@link Records.RecordsModifyResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof Records.RecordsModifyResponse - * @static - * @param {Records.IRecordsModifyResponse} message RecordsModifyResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RecordsModifyResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a RecordsModifyResponse message from the specified reader or buffer. * @function decode @@ -141474,52 +115019,6 @@ export const Records = $root.Records = (() => { return message; }; - /** - * Decodes a RecordsModifyResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Records.RecordsModifyResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Records.RecordsModifyResponse} RecordsModifyResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RecordsModifyResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a RecordsModifyResponse message. - * @function verify - * @memberof Records.RecordsModifyResponse - * @static - * @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) { - if (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); - if (error) - return "records." + error; - } - } - 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"; - return null; - }; - /** * Creates a RecordsModifyResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -141531,6 +115030,8 @@ export const Records = $root.Records = (() => { RecordsModifyResponse.fromObject = function fromObject(object, long) { if (object instanceof $root.Records.RecordsModifyResponse) return object; + if (!$util.isObject(object)) + throw TypeError(".Records.RecordsModifyResponse: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -141541,7 +115042,7 @@ export const Records = $root.Records = (() => { throw TypeError(".Records.RecordsModifyResponse.records: array expected"); message.records = []; for (let i = 0; i < object.records.length; ++i) { - if (typeof object.records[i] !== "object") + if (!$util.isObject(object.records[i])) throw TypeError(".Records.RecordsModifyResponse.records: object expected"); message.records[i] = $root.Records.RecordModifyStatus.fromObject(object.records[i], long + 1); } @@ -141588,7 +115089,7 @@ export const Records = $root.Records = (() => { for (let j = 0; j < message.records.length; ++j) object.records[j] = $root.Records.RecordModifyStatus.toObject(message.records[j], options, q + 1); } - if (message.revision != null && message.hasOwnProperty("revision")) + if (message.revision != null && Object.hasOwnProperty.call(message, "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") @@ -141725,19 +115226,6 @@ export const Records = $root.Records = (() => { return writer; }; - /** - * Encodes the specified RecordAddAuditData message, length delimited. Does not implicitly {@link Records.RecordAddAuditData.verify|verify} messages. - * @function encodeDelimited - * @memberof Records.RecordAddAuditData - * @static - * @param {Records.IRecordAddAuditData} message RecordAddAuditData message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RecordAddAuditData.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a RecordAddAuditData message from the specified reader or buffer. * @function decode @@ -141786,52 +115274,6 @@ export const Records = $root.Records = (() => { return message; }; - /** - * Decodes a RecordAddAuditData message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Records.RecordAddAuditData - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Records.RecordAddAuditData} RecordAddAuditData - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RecordAddAuditData.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a RecordAddAuditData message. - * @function verify - * @memberof Records.RecordAddAuditData - * @static - * @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) { - if (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.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"; - 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.version != null && message.hasOwnProperty("version")) - if (!$util.isInteger(message.version)) - return "version: integer expected"; - return null; - }; - /** * Creates a RecordAddAuditData message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -141843,6 +115285,8 @@ export const Records = $root.Records = (() => { RecordAddAuditData.fromObject = function fromObject(object, long) { if (object instanceof $root.Records.RecordAddAuditData) return object; + if (!$util.isObject(object)) + throw TypeError(".Records.RecordAddAuditData: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -141911,18 +115355,18 @@ export const Records = $root.Records = (() => { } object.version = 0; } - if (message.recordUid != null && message.hasOwnProperty("recordUid")) + if (message.recordUid != null && Object.hasOwnProperty.call(message, "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 (message.revision != null && Object.hasOwnProperty.call(message, "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") 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.data != null && message.hasOwnProperty("data")) + if (message.data != null && Object.hasOwnProperty.call(message, "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.version != null && message.hasOwnProperty("version")) + if (message.version != null && Object.hasOwnProperty.call(message, "version")) object.version = message.version; return object; }; @@ -142023,19 +115467,6 @@ export const Records = $root.Records = (() => { return writer; }; - /** - * Encodes the specified AddAuditDataRequest message, length delimited. Does not implicitly {@link Records.AddAuditDataRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof Records.AddAuditDataRequest - * @static - * @param {Records.IAddAuditDataRequest} message AddAuditDataRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - AddAuditDataRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes an AddAuditDataRequest message from the specified reader or buffer. * @function decode @@ -142074,49 +115505,6 @@ export const Records = $root.Records = (() => { return message; }; - /** - * Decodes an AddAuditDataRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Records.AddAuditDataRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Records.AddAuditDataRequest} AddAuditDataRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - AddAuditDataRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an AddAuditDataRequest message. - * @function verify - * @memberof Records.AddAuditDataRequest - * @static - * @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) { - if (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); - if (error) - return "records." + error; - } - } - return null; - }; - /** * Creates an AddAuditDataRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -142128,6 +115516,8 @@ export const Records = $root.Records = (() => { AddAuditDataRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.Records.AddAuditDataRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".Records.AddAuditDataRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -142138,7 +115528,7 @@ export const Records = $root.Records = (() => { throw TypeError(".Records.AddAuditDataRequest.records: array expected"); message.records = []; for (let i = 0; i < object.records.length; ++i) { - if (typeof object.records[i] !== "object") + if (!$util.isObject(object.records[i])) throw TypeError(".Records.AddAuditDataRequest.records: object expected"); message.records[i] = $root.Records.RecordAddAuditData.fromObject(object.records[i], long + 1); } @@ -142322,19 +115712,6 @@ export const Records = $root.Records = (() => { return writer; }; - /** - * Encodes the specified File message, length delimited. Does not implicitly {@link Records.File.verify|verify} messages. - * @function encodeDelimited - * @memberof Records.File - * @static - * @param {Records.IFile} message File message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - File.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a File message from the specified reader or buffer. * @function decode @@ -142391,58 +115768,6 @@ export const Records = $root.Records = (() => { return message; }; - /** - * Decodes a File message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Records.File - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Records.File} File - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - File.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a File message. - * @function verify - * @memberof Records.File - * @static - * @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) { - if (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.recordKey != null && message.hasOwnProperty("recordKey")) - if (!(message.recordKey && typeof message.recordKey.length === "number" || $util.isString(message.recordKey))) - return "recordKey: buffer 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.fileSize != null && message.hasOwnProperty("fileSize")) - if (!$util.isInteger(message.fileSize) && !(message.fileSize && $util.isInteger(message.fileSize.low) && $util.isInteger(message.fileSize.high))) - return "fileSize: integer|Long expected"; - if (message.thumbSize != null && message.hasOwnProperty("thumbSize")) - if (!$util.isInteger(message.thumbSize)) - return "thumbSize: integer expected"; - if (message.isScript != null && message.hasOwnProperty("isScript")) - if (typeof message.isScript !== "boolean") - return "isScript: boolean expected"; - return null; - }; - /** * Creates a File message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -142454,6 +115779,8 @@ export const Records = $root.Records = (() => { File.fromObject = function fromObject(object, long) { if (object instanceof $root.Records.File) return object; + if (!$util.isObject(object)) + throw TypeError(".Records.File: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -142537,22 +115864,22 @@ export const Records = $root.Records = (() => { object.thumbSize = 0; object.isScript = false; } - if (message.recordUid != null && message.hasOwnProperty("recordUid")) + if (message.recordUid != null && Object.hasOwnProperty.call(message, "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")) + if (message.recordKey != null && Object.hasOwnProperty.call(message, "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.data != null && message.hasOwnProperty("data")) + if (message.data != null && Object.hasOwnProperty.call(message, "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 (message.fileSize != null && Object.hasOwnProperty.call(message, "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") 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.thumbSize != null && message.hasOwnProperty("thumbSize")) + if (message.thumbSize != null && Object.hasOwnProperty.call(message, "thumbSize")) object.thumbSize = message.thumbSize; - if (message.isScript != null && message.hasOwnProperty("isScript")) + if (message.isScript != null && Object.hasOwnProperty.call(message, "isScript")) object.isScript = message.isScript; return object; }; @@ -142664,19 +115991,6 @@ export const Records = $root.Records = (() => { return writer; }; - /** - * Encodes the specified FilesAddRequest message, length delimited. Does not implicitly {@link Records.FilesAddRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof Records.FilesAddRequest - * @static - * @param {Records.IFilesAddRequest} message FilesAddRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - FilesAddRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a FilesAddRequest message from the specified reader or buffer. * @function decode @@ -142719,52 +116033,6 @@ export const Records = $root.Records = (() => { return message; }; - /** - * Decodes a FilesAddRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Records.FilesAddRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Records.FilesAddRequest} FilesAddRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - FilesAddRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a FilesAddRequest message. - * @function verify - * @memberof Records.FilesAddRequest - * @static - * @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) { - if (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); - if (error) - return "files." + 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"; - return null; - }; - /** * Creates a FilesAddRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -142776,6 +116044,8 @@ export const Records = $root.Records = (() => { FilesAddRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.Records.FilesAddRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".Records.FilesAddRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -142786,7 +116056,7 @@ export const Records = $root.Records = (() => { throw TypeError(".Records.FilesAddRequest.files: array expected"); message.files = []; for (let i = 0; i < object.files.length; ++i) { - if (typeof object.files[i] !== "object") + if (!$util.isObject(object.files[i])) throw TypeError(".Records.FilesAddRequest.files: object expected"); message.files[i] = $root.Records.File.fromObject(object.files[i], long + 1); } @@ -142833,7 +116103,7 @@ export const Records = $root.Records = (() => { for (let j = 0; j < message.files.length; ++j) object.files[j] = $root.Records.File.toObject(message.files[j], options, q + 1); } - if (message.clientTime != null && message.hasOwnProperty("clientTime")) + if (message.clientTime != null && Object.hasOwnProperty.call(message, "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") @@ -143006,19 +116276,6 @@ export const Records = $root.Records = (() => { return writer; }; - /** - * Encodes the specified FileAddStatus message, length delimited. Does not implicitly {@link Records.FileAddStatus.verify|verify} messages. - * @function encodeDelimited - * @memberof Records.FileAddStatus - * @static - * @param {Records.IFileAddStatus} message FileAddStatus message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - FileAddStatus.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a FileAddStatus message from the specified reader or buffer. * @function decode @@ -143075,63 +116332,6 @@ export const Records = $root.Records = (() => { return message; }; - /** - * Decodes a FileAddStatus message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Records.FileAddStatus - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Records.FileAddStatus} FileAddStatus - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - FileAddStatus.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a FileAddStatus message. - * @function verify - * @memberof Records.FileAddStatus - * @static - * @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) { - if (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.status != null && message.hasOwnProperty("status")) - switch (message.status) { - default: - return "status: enum value expected"; - case 0: - case 1: - break; - } - if (message.url != null && message.hasOwnProperty("url")) - if (!$util.isString(message.url)) - return "url: string expected"; - if (message.parameters != null && message.hasOwnProperty("parameters")) - if (!$util.isString(message.parameters)) - return "parameters: string expected"; - if (message.thumbnailParameters != null && message.hasOwnProperty("thumbnailParameters")) - if (!$util.isString(message.thumbnailParameters)) - return "thumbnailParameters: string expected"; - if (message.successStatusCode != null && message.hasOwnProperty("successStatusCode")) - if (!$util.isInteger(message.successStatusCode)) - return "successStatusCode: integer expected"; - return null; - }; - /** * Creates a FileAddStatus message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -143143,6 +116343,8 @@ export const Records = $root.Records = (() => { FileAddStatus.fromObject = function fromObject(object, long) { if (object instanceof $root.Records.FileAddStatus) return object; + if (!$util.isObject(object)) + throw TypeError(".Records.FileAddStatus: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -143211,17 +116413,17 @@ export const Records = $root.Records = (() => { object.thumbnailParameters = ""; object.successStatusCode = 0; } - if (message.recordUid != null && message.hasOwnProperty("recordUid")) + if (message.recordUid != null && Object.hasOwnProperty.call(message, "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.status != null && message.hasOwnProperty("status")) + if (message.status != null && Object.hasOwnProperty.call(message, "status")) object.status = options.enums === String ? $root.Records.FileAddResult[message.status] === undefined ? message.status : $root.Records.FileAddResult[message.status] : message.status; - if (message.url != null && message.hasOwnProperty("url")) + if (message.url != null && Object.hasOwnProperty.call(message, "url")) object.url = message.url; - if (message.parameters != null && message.hasOwnProperty("parameters")) + if (message.parameters != null && Object.hasOwnProperty.call(message, "parameters")) object.parameters = message.parameters; - if (message.thumbnailParameters != null && message.hasOwnProperty("thumbnailParameters")) + if (message.thumbnailParameters != null && Object.hasOwnProperty.call(message, "thumbnailParameters")) object.thumbnailParameters = message.thumbnailParameters; - if (message.successStatusCode != null && message.hasOwnProperty("successStatusCode")) + if (message.successStatusCode != null && Object.hasOwnProperty.call(message, "successStatusCode")) object.successStatusCode = message.successStatusCode; return object; }; @@ -143333,19 +116535,6 @@ export const Records = $root.Records = (() => { return writer; }; - /** - * Encodes the specified FilesAddResponse message, length delimited. Does not implicitly {@link Records.FilesAddResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof Records.FilesAddResponse - * @static - * @param {Records.IFilesAddResponse} message FilesAddResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - FilesAddResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a FilesAddResponse message from the specified reader or buffer. * @function decode @@ -143388,52 +116577,6 @@ export const Records = $root.Records = (() => { return message; }; - /** - * Decodes a FilesAddResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Records.FilesAddResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Records.FilesAddResponse} FilesAddResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - FilesAddResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a FilesAddResponse message. - * @function verify - * @memberof Records.FilesAddResponse - * @static - * @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) { - if (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); - if (error) - return "files." + error; - } - } - 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"; - return null; - }; - /** * Creates a FilesAddResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -143445,6 +116588,8 @@ export const Records = $root.Records = (() => { FilesAddResponse.fromObject = function fromObject(object, long) { if (object instanceof $root.Records.FilesAddResponse) return object; + if (!$util.isObject(object)) + throw TypeError(".Records.FilesAddResponse: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -143455,7 +116600,7 @@ export const Records = $root.Records = (() => { throw TypeError(".Records.FilesAddResponse.files: array expected"); message.files = []; for (let i = 0; i < object.files.length; ++i) { - if (typeof object.files[i] !== "object") + if (!$util.isObject(object.files[i])) throw TypeError(".Records.FilesAddResponse.files: object expected"); message.files[i] = $root.Records.FileAddStatus.fromObject(object.files[i], long + 1); } @@ -143502,7 +116647,7 @@ export const Records = $root.Records = (() => { for (let j = 0; j < message.files.length; ++j) object.files[j] = $root.Records.FileAddStatus.toObject(message.files[j], options, q + 1); } - if (message.revision != null && message.hasOwnProperty("revision")) + if (message.revision != null && Object.hasOwnProperty.call(message, "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") @@ -143630,19 +116775,6 @@ export const Records = $root.Records = (() => { return writer; }; - /** - * Encodes the specified FilesGetRequest message, length delimited. Does not implicitly {@link Records.FilesGetRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof Records.FilesGetRequest - * @static - * @param {Records.IFilesGetRequest} message FilesGetRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - FilesGetRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a FilesGetRequest message from the specified reader or buffer. * @function decode @@ -143689,53 +116821,6 @@ export const Records = $root.Records = (() => { return message; }; - /** - * Decodes a FilesGetRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Records.FilesGetRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Records.FilesGetRequest} FilesGetRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - FilesGetRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a FilesGetRequest message. - * @function verify - * @memberof Records.FilesGetRequest - * @static - * @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) { - if (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"; - for (let i = 0; i < message.recordUids.length; ++i) - if (!(message.recordUids[i] && typeof message.recordUids[i].length === "number" || $util.isString(message.recordUids[i]))) - return "recordUids: buffer[] expected"; - } - if (message.forThumbnails != null && message.hasOwnProperty("forThumbnails")) - if (typeof message.forThumbnails !== "boolean") - return "forThumbnails: boolean expected"; - if (message.emergencyAccessAccountOwner != null && message.hasOwnProperty("emergencyAccessAccountOwner")) - if (!$util.isString(message.emergencyAccessAccountOwner)) - return "emergencyAccessAccountOwner: string expected"; - return null; - }; - /** * Creates a FilesGetRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -143747,6 +116832,8 @@ export const Records = $root.Records = (() => { FilesGetRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.Records.FilesGetRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".Records.FilesGetRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -143797,9 +116884,9 @@ export const Records = $root.Records = (() => { 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.forThumbnails != null && message.hasOwnProperty("forThumbnails")) + if (message.forThumbnails != null && Object.hasOwnProperty.call(message, "forThumbnails")) object.forThumbnails = message.forThumbnails; - if (message.emergencyAccessAccountOwner != null && message.hasOwnProperty("emergencyAccessAccountOwner")) + if (message.emergencyAccessAccountOwner != null && Object.hasOwnProperty.call(message, "emergencyAccessAccountOwner")) object.emergencyAccessAccountOwner = message.emergencyAccessAccountOwner; return object; }; @@ -143958,19 +117045,6 @@ export const Records = $root.Records = (() => { return writer; }; - /** - * Encodes the specified FileGetStatus message, length delimited. Does not implicitly {@link Records.FileGetStatus.verify|verify} messages. - * @function encodeDelimited - * @memberof Records.FileGetStatus - * @static - * @param {Records.IFileGetStatus} message FileGetStatus message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - FileGetStatus.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a FileGetStatus message from the specified reader or buffer. * @function decode @@ -144023,71 +117097,6 @@ export const Records = $root.Records = (() => { return message; }; - /** - * Decodes a FileGetStatus message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Records.FileGetStatus - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Records.FileGetStatus} FileGetStatus - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - FileGetStatus.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a FileGetStatus message. - * @function verify - * @memberof Records.FileGetStatus - * @static - * @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) { - if (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.status != null && message.hasOwnProperty("status")) - switch (message.status) { - default: - return "status: enum value expected"; - case 0: - case 1: - case 2: - break; - } - if (message.url != null && message.hasOwnProperty("url")) - if (!$util.isString(message.url)) - return "url: string expected"; - if (message.successStatusCode != null && message.hasOwnProperty("successStatusCode")) - if (!$util.isInteger(message.successStatusCode)) - return "successStatusCode: integer expected"; - if (message.fileKeyType != null && message.hasOwnProperty("fileKeyType")) - switch (message.fileKeyType) { - default: - return "fileKeyType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - break; - } - return null; - }; - /** * Creates a FileGetStatus message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -144099,6 +117108,8 @@ export const Records = $root.Records = (() => { FileGetStatus.fromObject = function fromObject(object, long) { if (object instanceof $root.Records.FileGetStatus) return object; + if (!$util.isObject(object)) + throw TypeError(".Records.FileGetStatus: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -144202,15 +117213,15 @@ export const Records = $root.Records = (() => { object.successStatusCode = 0; object.fileKeyType = options.enums === String ? "NO_KEY" : 0; } - if (message.recordUid != null && message.hasOwnProperty("recordUid")) + if (message.recordUid != null && Object.hasOwnProperty.call(message, "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.status != null && message.hasOwnProperty("status")) + if (message.status != null && Object.hasOwnProperty.call(message, "status")) object.status = options.enums === String ? $root.Records.FileGetResult[message.status] === undefined ? message.status : $root.Records.FileGetResult[message.status] : message.status; - if (message.url != null && message.hasOwnProperty("url")) + if (message.url != null && Object.hasOwnProperty.call(message, "url")) object.url = message.url; - if (message.successStatusCode != null && message.hasOwnProperty("successStatusCode")) + if (message.successStatusCode != null && Object.hasOwnProperty.call(message, "successStatusCode")) object.successStatusCode = message.successStatusCode; - if (message.fileKeyType != null && message.hasOwnProperty("fileKeyType")) + if (message.fileKeyType != null && Object.hasOwnProperty.call(message, "fileKeyType")) object.fileKeyType = options.enums === String ? $root.Records.RecordKeyType[message.fileKeyType] === undefined ? message.fileKeyType : $root.Records.RecordKeyType[message.fileKeyType] : message.fileKeyType; return object; }; @@ -144311,19 +117322,6 @@ export const Records = $root.Records = (() => { return writer; }; - /** - * Encodes the specified FilesGetResponse message, length delimited. Does not implicitly {@link Records.FilesGetResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof Records.FilesGetResponse - * @static - * @param {Records.IFilesGetResponse} message FilesGetResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - FilesGetResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a FilesGetResponse message from the specified reader or buffer. * @function decode @@ -144362,49 +117360,6 @@ export const Records = $root.Records = (() => { return message; }; - /** - * Decodes a FilesGetResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Records.FilesGetResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Records.FilesGetResponse} FilesGetResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - FilesGetResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a FilesGetResponse message. - * @function verify - * @memberof Records.FilesGetResponse - * @static - * @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) { - if (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); - if (error) - return "files." + error; - } - } - return null; - }; - /** * Creates a FilesGetResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -144416,6 +117371,8 @@ export const Records = $root.Records = (() => { FilesGetResponse.fromObject = function fromObject(object, long) { if (object instanceof $root.Records.FilesGetResponse) return object; + if (!$util.isObject(object)) + throw TypeError(".Records.FilesGetResponse: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -144426,7 +117383,7 @@ export const Records = $root.Records = (() => { throw TypeError(".Records.FilesGetResponse.files: array expected"); message.files = []; for (let i = 0; i < object.files.length; ++i) { - if (typeof object.files[i] !== "object") + if (!$util.isObject(object.files[i])) throw TypeError(".Records.FilesGetResponse.files: object expected"); message.files[i] = $root.Records.FileGetStatus.fromObject(object.files[i], long + 1); } @@ -144599,19 +117556,6 @@ export const Records = $root.Records = (() => { return writer; }; - /** - * Encodes the specified ApplicationAddRequest message, length delimited. Does not implicitly {@link Records.ApplicationAddRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof Records.ApplicationAddRequest - * @static - * @param {Records.IApplicationAddRequest} message ApplicationAddRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ApplicationAddRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes an ApplicationAddRequest message from the specified reader or buffer. * @function decode @@ -144664,57 +117608,6 @@ export const Records = $root.Records = (() => { return message; }; - /** - * Decodes an ApplicationAddRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Records.ApplicationAddRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Records.ApplicationAddRequest} ApplicationAddRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ApplicationAddRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an ApplicationAddRequest message. - * @function verify - * @memberof Records.ApplicationAddRequest - * @static - * @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) { - if (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"; - 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.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.audit != null && message.hasOwnProperty("audit")) { - let error = $root.Records.RecordAudit.verify(message.audit, long + 1); - if (error) - return "audit." + error; - } - return null; - }; - /** * Creates an ApplicationAddRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -144726,6 +117619,8 @@ export const Records = $root.Records = (() => { ApplicationAddRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.Records.ApplicationAddRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".Records.ApplicationAddRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -144756,7 +117651,7 @@ export const Records = $root.Records = (() => { else if (object.data.length >= 0) message.data = object.data; if (object.audit != null) { - if (typeof object.audit !== "object") + if (!$util.isObject(object.audit)) throw TypeError(".Records.ApplicationAddRequest.audit: object expected"); message.audit = $root.Records.RecordAudit.fromObject(object.audit, long + 1); } @@ -144809,20 +117704,20 @@ export const Records = $root.Records = (() => { } object.audit = null; } - if (message.appUid != null && message.hasOwnProperty("appUid")) + if (message.appUid != null && Object.hasOwnProperty.call(message, "appUid")) object.appUid = options.bytes === String ? $util.base64.encode(message.appUid, 0, message.appUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.appUid) : message.appUid; - if (message.recordKey != null && message.hasOwnProperty("recordKey")) + if (message.recordKey != null && Object.hasOwnProperty.call(message, "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 (message.clientModifiedTime != null && Object.hasOwnProperty.call(message, "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") 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")) + if (message.data != null && Object.hasOwnProperty.call(message, "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")) + if (message.audit != null && Object.hasOwnProperty.call(message, "audit")) object.audit = $root.Records.RecordAudit.toObject(message.audit, options, q + 1); return object; }; @@ -144961,19 +117856,6 @@ export const Records = $root.Records = (() => { return writer; }; - /** - * Encodes the specified GetRecordDataWithAccessInfoRequest message, length delimited. Does not implicitly {@link Records.GetRecordDataWithAccessInfoRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof Records.GetRecordDataWithAccessInfoRequest - * @static - * @param {Records.IGetRecordDataWithAccessInfoRequest} message GetRecordDataWithAccessInfoRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetRecordDataWithAccessInfoRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a GetRecordDataWithAccessInfoRequest message from the specified reader or buffer. * @function decode @@ -145020,59 +117902,6 @@ export const Records = $root.Records = (() => { return message; }; - /** - * Decodes a GetRecordDataWithAccessInfoRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Records.GetRecordDataWithAccessInfoRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Records.GetRecordDataWithAccessInfoRequest} GetRecordDataWithAccessInfoRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetRecordDataWithAccessInfoRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a GetRecordDataWithAccessInfoRequest message. - * @function verify - * @memberof Records.GetRecordDataWithAccessInfoRequest - * @static - * @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) { - if (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"; - if (message.recordUid != null && message.hasOwnProperty("recordUid")) { - if (!Array.isArray(message.recordUid)) - return "recordUid: array expected"; - for (let i = 0; i < message.recordUid.length; ++i) - if (!(message.recordUid[i] && typeof message.recordUid[i].length === "number" || $util.isString(message.recordUid[i]))) - return "recordUid: buffer[] expected"; - } - if (message.recordDetailsInclude != null && message.hasOwnProperty("recordDetailsInclude")) - switch (message.recordDetailsInclude) { - default: - return "recordDetailsInclude: enum value expected"; - case 0: - case 1: - case 2: - break; - } - return null; - }; - /** * Creates a GetRecordDataWithAccessInfoRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -145084,6 +117913,8 @@ export const Records = $root.Records = (() => { GetRecordDataWithAccessInfoRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.Records.GetRecordDataWithAccessInfoRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".Records.GetRecordDataWithAccessInfoRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -145158,7 +117989,7 @@ export const Records = $root.Records = (() => { object.clientTime = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; object.recordDetailsInclude = options.enums === String ? "DATA_PLUS_SHARE" : 0; } - if (message.clientTime != null && message.hasOwnProperty("clientTime")) + if (message.clientTime != null && Object.hasOwnProperty.call(message, "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") @@ -145170,7 +118001,7 @@ export const Records = $root.Records = (() => { for (let j = 0; j < message.recordUid.length; ++j) object.recordUid[j] = options.bytes === String ? $util.base64.encode(message.recordUid[j], 0, message.recordUid[j].length) : options.bytes === Array ? Array.prototype.slice.call(message.recordUid[j]) : message.recordUid[j]; } - if (message.recordDetailsInclude != null && message.hasOwnProperty("recordDetailsInclude")) + if (message.recordDetailsInclude != null && Object.hasOwnProperty.call(message, "recordDetailsInclude")) object.recordDetailsInclude = options.enums === String ? $root.Records.RecordDetailsInclude[message.recordDetailsInclude] === undefined ? message.recordDetailsInclude : $root.Records.RecordDetailsInclude[message.recordDetailsInclude] : message.recordDetailsInclude; return object; }; @@ -145368,19 +118199,6 @@ export const Records = $root.Records = (() => { return writer; }; - /** - * Encodes the specified UserPermission message, length delimited. Does not implicitly {@link Records.UserPermission.verify|verify} messages. - * @function encodeDelimited - * @memberof Records.UserPermission - * @static - * @param {Records.IUserPermission} message UserPermission message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - UserPermission.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a UserPermission message from the specified reader or buffer. * @function decode @@ -145453,76 +118271,6 @@ export const Records = $root.Records = (() => { return message; }; - /** - * Decodes a UserPermission message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Records.UserPermission - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Records.UserPermission} UserPermission - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - UserPermission.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a UserPermission message. - * @function verify - * @memberof Records.UserPermission - * @static - * @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) { - if (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"; - if (message.owner != null && message.hasOwnProperty("owner")) - if (typeof message.owner !== "boolean") - return "owner: boolean expected"; - if (message.shareAdmin != null && message.hasOwnProperty("shareAdmin")) - if (typeof message.shareAdmin !== "boolean") - return "shareAdmin: boolean expected"; - if (message.sharable != null && message.hasOwnProperty("sharable")) - if (typeof message.sharable !== "boolean") - return "sharable: boolean expected"; - if (message.editable != null && message.hasOwnProperty("editable")) - if (typeof message.editable !== "boolean") - return "editable: boolean expected"; - if (message.awaitingApproval != null && message.hasOwnProperty("awaitingApproval")) - if (typeof message.awaitingApproval !== "boolean") - return "awaitingApproval: boolean expected"; - 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"; - if (message.accountUid != null && message.hasOwnProperty("accountUid")) - if (!(message.accountUid && typeof message.accountUid.length === "number" || $util.isString(message.accountUid))) - return "accountUid: buffer expected"; - if (message.timerNotificationType != null && message.hasOwnProperty("timerNotificationType")) - switch (message.timerNotificationType) { - default: - return "timerNotificationType: enum value expected"; - case 0: - case 1: - case 2: - break; - } - if (message.rotateOnExpiration != null && message.hasOwnProperty("rotateOnExpiration")) - if (typeof message.rotateOnExpiration !== "boolean") - return "rotateOnExpiration: boolean expected"; - return null; - }; - /** * Creates a UserPermission message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -145534,6 +118282,8 @@ export const Records = $root.Records = (() => { UserPermission.fromObject = function fromObject(object, long) { if (object instanceof $root.Records.UserPermission) return object; + if (!$util.isObject(object)) + throw TypeError(".Records.UserPermission: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -145629,30 +118379,30 @@ export const Records = $root.Records = (() => { object.timerNotificationType = options.enums === String ? "NOTIFICATION_OFF" : 0; object.rotateOnExpiration = false; } - if (message.username != null && message.hasOwnProperty("username")) + if (message.username != null && Object.hasOwnProperty.call(message, "username")) object.username = message.username; - if (message.owner != null && message.hasOwnProperty("owner")) + if (message.owner != null && Object.hasOwnProperty.call(message, "owner")) object.owner = message.owner; - if (message.shareAdmin != null && message.hasOwnProperty("shareAdmin")) + if (message.shareAdmin != null && Object.hasOwnProperty.call(message, "shareAdmin")) object.shareAdmin = message.shareAdmin; - if (message.sharable != null && message.hasOwnProperty("sharable")) + if (message.sharable != null && Object.hasOwnProperty.call(message, "sharable")) object.sharable = message.sharable; - if (message.editable != null && message.hasOwnProperty("editable")) + if (message.editable != null && Object.hasOwnProperty.call(message, "editable")) object.editable = message.editable; - if (message.awaitingApproval != null && message.hasOwnProperty("awaitingApproval")) + if (message.awaitingApproval != null && Object.hasOwnProperty.call(message, "awaitingApproval")) object.awaitingApproval = message.awaitingApproval; - if (message.expiration != null && message.hasOwnProperty("expiration")) + if (message.expiration != null && Object.hasOwnProperty.call(message, "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") 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.accountUid != null && message.hasOwnProperty("accountUid")) + if (message.accountUid != null && Object.hasOwnProperty.call(message, "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.timerNotificationType != null && message.hasOwnProperty("timerNotificationType")) + if (message.timerNotificationType != null && Object.hasOwnProperty.call(message, "timerNotificationType")) object.timerNotificationType = options.enums === String ? $root.Records.TimerNotificationType[message.timerNotificationType] === undefined ? message.timerNotificationType : $root.Records.TimerNotificationType[message.timerNotificationType] : message.timerNotificationType; - if (message.rotateOnExpiration != null && message.hasOwnProperty("rotateOnExpiration")) + if (message.rotateOnExpiration != null && Object.hasOwnProperty.call(message, "rotateOnExpiration")) object.rotateOnExpiration = message.rotateOnExpiration; return object; }; @@ -145817,19 +118567,6 @@ export const Records = $root.Records = (() => { return writer; }; - /** - * Encodes the specified SharedFolderPermission message, length delimited. Does not implicitly {@link Records.SharedFolderPermission.verify|verify} messages. - * @function encodeDelimited - * @memberof Records.SharedFolderPermission - * @static - * @param {Records.ISharedFolderPermission} message SharedFolderPermission message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SharedFolderPermission.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a SharedFolderPermission message from the specified reader or buffer. * @function decode @@ -145890,67 +118627,6 @@ export const Records = $root.Records = (() => { return message; }; - /** - * Decodes a SharedFolderPermission message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Records.SharedFolderPermission - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Records.SharedFolderPermission} SharedFolderPermission - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SharedFolderPermission.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a SharedFolderPermission message. - * @function verify - * @memberof Records.SharedFolderPermission - * @static - * @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) { - if (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"; - if (message.resharable != null && message.hasOwnProperty("resharable")) - if (typeof message.resharable !== "boolean") - return "resharable: boolean expected"; - if (message.editable != null && message.hasOwnProperty("editable")) - if (typeof message.editable !== "boolean") - return "editable: boolean expected"; - 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"; - 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"; - if (message.timerNotificationType != null && message.hasOwnProperty("timerNotificationType")) - switch (message.timerNotificationType) { - default: - return "timerNotificationType: enum value expected"; - case 0: - case 1: - case 2: - break; - } - if (message.rotateOnExpiration != null && message.hasOwnProperty("rotateOnExpiration")) - if (typeof message.rotateOnExpiration !== "boolean") - return "rotateOnExpiration: boolean expected"; - return null; - }; - /** * Creates a SharedFolderPermission message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -145962,6 +118638,8 @@ export const Records = $root.Records = (() => { SharedFolderPermission.fromObject = function fromObject(object, long) { if (object instanceof $root.Records.SharedFolderPermission) return object; + if (!$util.isObject(object)) + throw TypeError(".Records.SharedFolderPermission: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -146059,29 +118737,29 @@ export const Records = $root.Records = (() => { object.timerNotificationType = options.enums === String ? "NOTIFICATION_OFF" : 0; object.rotateOnExpiration = false; } - if (message.sharedFolderUid != null && message.hasOwnProperty("sharedFolderUid")) + if (message.sharedFolderUid != null && Object.hasOwnProperty.call(message, "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.resharable != null && message.hasOwnProperty("resharable")) + if (message.resharable != null && Object.hasOwnProperty.call(message, "resharable")) object.resharable = message.resharable; - if (message.editable != null && message.hasOwnProperty("editable")) + if (message.editable != null && Object.hasOwnProperty.call(message, "editable")) object.editable = message.editable; - if (message.revision != null && message.hasOwnProperty("revision")) + if (message.revision != null && Object.hasOwnProperty.call(message, "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") 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 (message.expiration != null && Object.hasOwnProperty.call(message, "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") 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")) + if (message.timerNotificationType != null && Object.hasOwnProperty.call(message, "timerNotificationType")) object.timerNotificationType = options.enums === String ? $root.Records.TimerNotificationType[message.timerNotificationType] === undefined ? message.timerNotificationType : $root.Records.TimerNotificationType[message.timerNotificationType] : message.timerNotificationType; - if (message.rotateOnExpiration != null && message.hasOwnProperty("rotateOnExpiration")) + if (message.rotateOnExpiration != null && Object.hasOwnProperty.call(message, "rotateOnExpiration")) object.rotateOnExpiration = message.rotateOnExpiration; return object; }; @@ -146327,19 +119005,6 @@ export const Records = $root.Records = (() => { return writer; }; - /** - * Encodes the specified RecordData message, length delimited. Does not implicitly {@link Records.RecordData.verify|verify} messages. - * @function encodeDelimited - * @memberof Records.RecordData - * @static - * @param {Records.IRecordData} message RecordData message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RecordData.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a RecordData message from the specified reader or buffer. * @function decode @@ -146432,102 +119097,6 @@ export const Records = $root.Records = (() => { return message; }; - /** - * Decodes a RecordData message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Records.RecordData - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Records.RecordData} RecordData - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RecordData.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a RecordData message. - * @function verify - * @memberof Records.RecordData - * @static - * @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) { - if (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"; - if (message.version != null && message.hasOwnProperty("version")) - if (!$util.isInteger(message.version)) - return "version: integer expected"; - if (message.shared != null && message.hasOwnProperty("shared")) - if (typeof message.shared !== "boolean") - return "shared: boolean expected"; - if (message.encryptedRecordData != null && message.hasOwnProperty("encryptedRecordData")) - if (!$util.isString(message.encryptedRecordData)) - return "encryptedRecordData: string expected"; - if (message.encryptedExtraData != null && message.hasOwnProperty("encryptedExtraData")) - if (!$util.isString(message.encryptedExtraData)) - return "encryptedExtraData: string expected"; - 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.nonSharedData != null && message.hasOwnProperty("nonSharedData")) - if (!$util.isString(message.nonSharedData)) - return "nonSharedData: string expected"; - if (message.linkedRecordData != null && message.hasOwnProperty("linkedRecordData")) { - 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); - if (error) - return "linkedRecordData." + error; - } - } - if (message.fileId != null && message.hasOwnProperty("fileId")) { - if (!Array.isArray(message.fileId)) - return "fileId: array expected"; - for (let i = 0; i < message.fileId.length; ++i) - if (!(message.fileId[i] && typeof message.fileId[i].length === "number" || $util.isString(message.fileId[i]))) - return "fileId: buffer[] expected"; - } - if (message.fileSize != null && message.hasOwnProperty("fileSize")) - if (!$util.isInteger(message.fileSize) && !(message.fileSize && $util.isInteger(message.fileSize.low) && $util.isInteger(message.fileSize.high))) - return "fileSize: integer|Long expected"; - if (message.thumbnailSize != null && message.hasOwnProperty("thumbnailSize")) - if (!$util.isInteger(message.thumbnailSize) && !(message.thumbnailSize && $util.isInteger(message.thumbnailSize.low) && $util.isInteger(message.thumbnailSize.high))) - return "thumbnailSize: integer|Long 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: - case 5: - case 6: - break; - } - 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.recordUid != null && message.hasOwnProperty("recordUid")) - if (!(message.recordUid && typeof message.recordUid.length === "number" || $util.isString(message.recordUid))) - return "recordUid: buffer expected"; - return null; - }; - /** * Creates a RecordData message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -146539,6 +119108,8 @@ export const Records = $root.Records = (() => { RecordData.fromObject = function fromObject(object, long) { if (object instanceof $root.Records.RecordData) return object; + if (!$util.isObject(object)) + throw TypeError(".Records.RecordData: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -146577,7 +119148,7 @@ export const Records = $root.Records = (() => { throw TypeError(".Records.RecordData.linkedRecordData: array expected"); message.linkedRecordData = []; for (let i = 0; i < object.linkedRecordData.length; ++i) { - if (typeof object.linkedRecordData[i] !== "object") + if (!$util.isObject(object.linkedRecordData[i])) throw TypeError(".Records.RecordData.linkedRecordData: object expected"); message.linkedRecordData[i] = $root.Records.RecordData.fromObject(object.linkedRecordData[i], long + 1); } @@ -146722,29 +119293,29 @@ export const Records = $root.Records = (() => { object.recordUid = $util.newBuffer(object.recordUid); } } - if (message.revision != null && message.hasOwnProperty("revision")) + if (message.revision != null && Object.hasOwnProperty.call(message, "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") 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.version != null && message.hasOwnProperty("version")) + if (message.version != null && Object.hasOwnProperty.call(message, "version")) object.version = message.version; - if (message.shared != null && message.hasOwnProperty("shared")) + if (message.shared != null && Object.hasOwnProperty.call(message, "shared")) object.shared = message.shared; - if (message.encryptedRecordData != null && message.hasOwnProperty("encryptedRecordData")) + if (message.encryptedRecordData != null && Object.hasOwnProperty.call(message, "encryptedRecordData")) object.encryptedRecordData = message.encryptedRecordData; - if (message.encryptedExtraData != null && message.hasOwnProperty("encryptedExtraData")) + if (message.encryptedExtraData != null && Object.hasOwnProperty.call(message, "encryptedExtraData")) object.encryptedExtraData = message.encryptedExtraData; - if (message.clientModifiedTime != null && message.hasOwnProperty("clientModifiedTime")) + if (message.clientModifiedTime != null && Object.hasOwnProperty.call(message, "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") 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.nonSharedData != null && message.hasOwnProperty("nonSharedData")) + if (message.nonSharedData != null && Object.hasOwnProperty.call(message, "nonSharedData")) object.nonSharedData = message.nonSharedData; if (message.linkedRecordData && message.linkedRecordData.length) { object.linkedRecordData = []; @@ -146756,25 +119327,25 @@ export const Records = $root.Records = (() => { for (let j = 0; j < message.fileId.length; ++j) 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 (message.fileSize != null && Object.hasOwnProperty.call(message, "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") 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 (message.thumbnailSize != null && Object.hasOwnProperty.call(message, "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") 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; - if (message.recordKeyType != null && message.hasOwnProperty("recordKeyType")) + if (message.recordKeyType != null && Object.hasOwnProperty.call(message, "recordKeyType")) object.recordKeyType = options.enums === String ? $root.Records.RecordKeyType[message.recordKeyType] === undefined ? message.recordKeyType : $root.Records.RecordKeyType[message.recordKeyType] : message.recordKeyType; - if (message.recordKey != null && message.hasOwnProperty("recordKey")) + if (message.recordKey != null && Object.hasOwnProperty.call(message, "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.recordUid != null && message.hasOwnProperty("recordUid")) + if (message.recordUid != null && Object.hasOwnProperty.call(message, "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; return object; }; @@ -146910,19 +119481,6 @@ export const Records = $root.Records = (() => { return writer; }; - /** - * Encodes the specified RecordDataWithAccessInfo message, length delimited. Does not implicitly {@link Records.RecordDataWithAccessInfo.verify|verify} messages. - * @function encodeDelimited - * @memberof Records.RecordDataWithAccessInfo - * @static - * @param {Records.IRecordDataWithAccessInfo} message RecordDataWithAccessInfo message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RecordDataWithAccessInfo.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a RecordDataWithAccessInfo message from the specified reader or buffer. * @function decode @@ -146975,66 +119533,6 @@ export const Records = $root.Records = (() => { return message; }; - /** - * Decodes a RecordDataWithAccessInfo message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Records.RecordDataWithAccessInfo - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Records.RecordDataWithAccessInfo} RecordDataWithAccessInfo - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RecordDataWithAccessInfo.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a RecordDataWithAccessInfo message. - * @function verify - * @memberof Records.RecordDataWithAccessInfo - * @static - * @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) { - if (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); - if (error) - return "recordData." + error; - } - if (message.userPermission != null && message.hasOwnProperty("userPermission")) { - 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); - if (error) - return "userPermission." + error; - } - } - if (message.sharedFolderPermission != null && message.hasOwnProperty("sharedFolderPermission")) { - 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); - if (error) - return "sharedFolderPermission." + error; - } - } - return null; - }; - /** * Creates a RecordDataWithAccessInfo message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -147046,6 +119544,8 @@ export const Records = $root.Records = (() => { RecordDataWithAccessInfo.fromObject = function fromObject(object, long) { if (object instanceof $root.Records.RecordDataWithAccessInfo) return object; + if (!$util.isObject(object)) + throw TypeError(".Records.RecordDataWithAccessInfo: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -147057,7 +119557,7 @@ export const Records = $root.Records = (() => { else if (object.recordUid.length >= 0) message.recordUid = object.recordUid; if (object.recordData != null) { - if (typeof object.recordData !== "object") + if (!$util.isObject(object.recordData)) throw TypeError(".Records.RecordDataWithAccessInfo.recordData: object expected"); message.recordData = $root.Records.RecordData.fromObject(object.recordData, long + 1); } @@ -147066,7 +119566,7 @@ export const Records = $root.Records = (() => { throw TypeError(".Records.RecordDataWithAccessInfo.userPermission: array expected"); message.userPermission = []; for (let i = 0; i < object.userPermission.length; ++i) { - if (typeof object.userPermission[i] !== "object") + if (!$util.isObject(object.userPermission[i])) throw TypeError(".Records.RecordDataWithAccessInfo.userPermission: object expected"); message.userPermission[i] = $root.Records.UserPermission.fromObject(object.userPermission[i], long + 1); } @@ -147076,7 +119576,7 @@ export const Records = $root.Records = (() => { throw TypeError(".Records.RecordDataWithAccessInfo.sharedFolderPermission: array expected"); message.sharedFolderPermission = []; for (let i = 0; i < object.sharedFolderPermission.length; ++i) { - if (typeof object.sharedFolderPermission[i] !== "object") + if (!$util.isObject(object.sharedFolderPermission[i])) throw TypeError(".Records.RecordDataWithAccessInfo.sharedFolderPermission: object expected"); message.sharedFolderPermission[i] = $root.Records.SharedFolderPermission.fromObject(object.sharedFolderPermission[i], long + 1); } @@ -147115,9 +119615,9 @@ export const Records = $root.Records = (() => { } object.recordData = null; } - if (message.recordUid != null && message.hasOwnProperty("recordUid")) + if (message.recordUid != null && Object.hasOwnProperty.call(message, "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")) + if (message.recordData != null && Object.hasOwnProperty.call(message, "recordData")) object.recordData = $root.Records.RecordData.toObject(message.recordData, options, q + 1); if (message.userPermission && message.userPermission.length) { object.userPermission = []; @@ -147241,19 +119741,6 @@ export const Records = $root.Records = (() => { return writer; }; - /** - * Encodes the specified GetRecordDataWithAccessInfoResponse message, length delimited. Does not implicitly {@link Records.GetRecordDataWithAccessInfoResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof Records.GetRecordDataWithAccessInfoResponse - * @static - * @param {Records.IGetRecordDataWithAccessInfoResponse} message GetRecordDataWithAccessInfoResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetRecordDataWithAccessInfoResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a GetRecordDataWithAccessInfoResponse message from the specified reader or buffer. * @function decode @@ -147298,56 +119785,6 @@ export const Records = $root.Records = (() => { return message; }; - /** - * Decodes a GetRecordDataWithAccessInfoResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Records.GetRecordDataWithAccessInfoResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Records.GetRecordDataWithAccessInfoResponse} GetRecordDataWithAccessInfoResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetRecordDataWithAccessInfoResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a GetRecordDataWithAccessInfoResponse message. - * @function verify - * @memberof Records.GetRecordDataWithAccessInfoResponse - * @static - * @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) { - if (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); - if (error) - return "recordDataWithAccessInfo." + error; - } - } - if (message.noPermissionRecordUid != null && message.hasOwnProperty("noPermissionRecordUid")) { - if (!Array.isArray(message.noPermissionRecordUid)) - return "noPermissionRecordUid: array expected"; - for (let i = 0; i < message.noPermissionRecordUid.length; ++i) - if (!(message.noPermissionRecordUid[i] && typeof message.noPermissionRecordUid[i].length === "number" || $util.isString(message.noPermissionRecordUid[i]))) - return "noPermissionRecordUid: buffer[] expected"; - } - return null; - }; - /** * Creates a GetRecordDataWithAccessInfoResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -147359,6 +119796,8 @@ export const Records = $root.Records = (() => { GetRecordDataWithAccessInfoResponse.fromObject = function fromObject(object, long) { if (object instanceof $root.Records.GetRecordDataWithAccessInfoResponse) return object; + if (!$util.isObject(object)) + throw TypeError(".Records.GetRecordDataWithAccessInfoResponse: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -147369,7 +119808,7 @@ export const Records = $root.Records = (() => { throw TypeError(".Records.GetRecordDataWithAccessInfoResponse.recordDataWithAccessInfo: array expected"); message.recordDataWithAccessInfo = []; for (let i = 0; i < object.recordDataWithAccessInfo.length; ++i) { - if (typeof object.recordDataWithAccessInfo[i] !== "object") + if (!$util.isObject(object.recordDataWithAccessInfo[i])) throw TypeError(".Records.GetRecordDataWithAccessInfoResponse.recordDataWithAccessInfo: object expected"); message.recordDataWithAccessInfo[i] = $root.Records.RecordDataWithAccessInfo.fromObject(object.recordDataWithAccessInfo[i], long + 1); } @@ -147553,19 +119992,6 @@ export const Records = $root.Records = (() => { return writer; }; - /** - * Encodes the specified IsObjectShareAdmin message, length delimited. Does not implicitly {@link Records.IsObjectShareAdmin.verify|verify} messages. - * @function encodeDelimited - * @memberof Records.IsObjectShareAdmin - * @static - * @param {Records.IIsObjectShareAdmin} message IsObjectShareAdmin message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - IsObjectShareAdmin.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes an IsObjectShareAdmin message from the specified reader or buffer. * @function decode @@ -147610,55 +120036,6 @@ export const Records = $root.Records = (() => { return message; }; - /** - * Decodes an IsObjectShareAdmin message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Records.IsObjectShareAdmin - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Records.IsObjectShareAdmin} IsObjectShareAdmin - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - IsObjectShareAdmin.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an IsObjectShareAdmin message. - * @function verify - * @memberof Records.IsObjectShareAdmin - * @static - * @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) { - if (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.isAdmin != null && message.hasOwnProperty("isAdmin")) - if (typeof message.isAdmin !== "boolean") - return "isAdmin: boolean expected"; - if (message.objectType != null && message.hasOwnProperty("objectType")) - switch (message.objectType) { - default: - return "objectType: enum value expected"; - case 0: - case 1: - case 2: - break; - } - return null; - }; - /** * Creates an IsObjectShareAdmin message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -147670,6 +120047,8 @@ export const Records = $root.Records = (() => { IsObjectShareAdmin.fromObject = function fromObject(object, long) { if (object instanceof $root.Records.IsObjectShareAdmin) return object; + if (!$util.isObject(object)) + throw TypeError(".Records.IsObjectShareAdmin: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -147733,11 +120112,11 @@ export const Records = $root.Records = (() => { object.isAdmin = false; object.objectType = options.enums === String ? "CHECK_SA_INVALID_TYPE" : 0; } - if (message.uid != null && message.hasOwnProperty("uid")) + if (message.uid != null && Object.hasOwnProperty.call(message, "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.isAdmin != null && message.hasOwnProperty("isAdmin")) + if (message.isAdmin != null && Object.hasOwnProperty.call(message, "isAdmin")) object.isAdmin = message.isAdmin; - if (message.objectType != null && message.hasOwnProperty("objectType")) + if (message.objectType != null && Object.hasOwnProperty.call(message, "objectType")) object.objectType = options.enums === String ? $root.Records.CheckShareAdminObjectType[message.objectType] === undefined ? message.objectType : $root.Records.CheckShareAdminObjectType[message.objectType] : message.objectType; return object; }; @@ -147838,19 +120217,6 @@ export const Records = $root.Records = (() => { return writer; }; - /** - * Encodes the specified AmIShareAdmin message, length delimited. Does not implicitly {@link Records.AmIShareAdmin.verify|verify} messages. - * @function encodeDelimited - * @memberof Records.AmIShareAdmin - * @static - * @param {Records.IAmIShareAdmin} message AmIShareAdmin message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - AmIShareAdmin.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes an AmIShareAdmin message from the specified reader or buffer. * @function decode @@ -147889,49 +120255,6 @@ export const Records = $root.Records = (() => { return message; }; - /** - * Decodes an AmIShareAdmin message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Records.AmIShareAdmin - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Records.AmIShareAdmin} AmIShareAdmin - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - AmIShareAdmin.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an AmIShareAdmin message. - * @function verify - * @memberof Records.AmIShareAdmin - * @static - * @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) { - if (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); - if (error) - return "isObjectShareAdmin." + error; - } - } - return null; - }; - /** * Creates an AmIShareAdmin message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -147943,6 +120266,8 @@ export const Records = $root.Records = (() => { AmIShareAdmin.fromObject = function fromObject(object, long) { if (object instanceof $root.Records.AmIShareAdmin) return object; + if (!$util.isObject(object)) + throw TypeError(".Records.AmIShareAdmin: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -147953,7 +120278,7 @@ export const Records = $root.Records = (() => { throw TypeError(".Records.AmIShareAdmin.isObjectShareAdmin: array expected"); message.isObjectShareAdmin = []; for (let i = 0; i < object.isObjectShareAdmin.length; ++i) { - if (typeof object.isObjectShareAdmin[i] !== "object") + if (!$util.isObject(object.isObjectShareAdmin[i])) throw TypeError(".Records.AmIShareAdmin.isObjectShareAdmin: object expected"); message.isObjectShareAdmin[i] = $root.Records.IsObjectShareAdmin.fromObject(object.isObjectShareAdmin[i], long + 1); } @@ -148121,19 +120446,6 @@ export const Records = $root.Records = (() => { return writer; }; - /** - * Encodes the specified RecordShareUpdateRequest message, length delimited. Does not implicitly {@link Records.RecordShareUpdateRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof Records.RecordShareUpdateRequest - * @static - * @param {Records.IRecordShareUpdateRequest} message RecordShareUpdateRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RecordShareUpdateRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a RecordShareUpdateRequest message from the specified reader or buffer. * @function decode @@ -148188,70 +120500,6 @@ export const Records = $root.Records = (() => { return message; }; - /** - * Decodes a RecordShareUpdateRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Records.RecordShareUpdateRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Records.RecordShareUpdateRequest} RecordShareUpdateRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RecordShareUpdateRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a RecordShareUpdateRequest message. - * @function verify - * @memberof Records.RecordShareUpdateRequest - * @static - * @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) { - if (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); - if (error) - return "addSharedRecord." + error; - } - } - if (message.updateSharedRecord != null && message.hasOwnProperty("updateSharedRecord")) { - 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); - if (error) - return "updateSharedRecord." + error; - } - } - if (message.removeSharedRecord != null && message.hasOwnProperty("removeSharedRecord")) { - 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); - if (error) - return "removeSharedRecord." + error; - } - } - if (message.pt != null && message.hasOwnProperty("pt")) - if (!$util.isString(message.pt)) - return "pt: string expected"; - return null; - }; - /** * Creates a RecordShareUpdateRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -148263,6 +120511,8 @@ export const Records = $root.Records = (() => { RecordShareUpdateRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.Records.RecordShareUpdateRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".Records.RecordShareUpdateRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -148273,7 +120523,7 @@ export const Records = $root.Records = (() => { throw TypeError(".Records.RecordShareUpdateRequest.addSharedRecord: array expected"); message.addSharedRecord = []; for (let i = 0; i < object.addSharedRecord.length; ++i) { - if (typeof object.addSharedRecord[i] !== "object") + if (!$util.isObject(object.addSharedRecord[i])) throw TypeError(".Records.RecordShareUpdateRequest.addSharedRecord: object expected"); message.addSharedRecord[i] = $root.Records.SharedRecord.fromObject(object.addSharedRecord[i], long + 1); } @@ -148283,7 +120533,7 @@ export const Records = $root.Records = (() => { throw TypeError(".Records.RecordShareUpdateRequest.updateSharedRecord: array expected"); message.updateSharedRecord = []; for (let i = 0; i < object.updateSharedRecord.length; ++i) { - if (typeof object.updateSharedRecord[i] !== "object") + if (!$util.isObject(object.updateSharedRecord[i])) throw TypeError(".Records.RecordShareUpdateRequest.updateSharedRecord: object expected"); message.updateSharedRecord[i] = $root.Records.SharedRecord.fromObject(object.updateSharedRecord[i], long + 1); } @@ -148293,7 +120543,7 @@ export const Records = $root.Records = (() => { throw TypeError(".Records.RecordShareUpdateRequest.removeSharedRecord: array expected"); message.removeSharedRecord = []; for (let i = 0; i < object.removeSharedRecord.length; ++i) { - if (typeof object.removeSharedRecord[i] !== "object") + if (!$util.isObject(object.removeSharedRecord[i])) throw TypeError(".Records.RecordShareUpdateRequest.removeSharedRecord: object expected"); message.removeSharedRecord[i] = $root.Records.SharedRecord.fromObject(object.removeSharedRecord[i], long + 1); } @@ -148342,7 +120592,7 @@ export const Records = $root.Records = (() => { for (let j = 0; j < message.removeSharedRecord.length; ++j) object.removeSharedRecord[j] = $root.Records.SharedRecord.toObject(message.removeSharedRecord[j], options, q + 1); } - if (message.pt != null && message.hasOwnProperty("pt")) + if (message.pt != null && Object.hasOwnProperty.call(message, "pt")) object.pt = message.pt; return object; }; @@ -148573,19 +120823,6 @@ export const Records = $root.Records = (() => { return writer; }; - /** - * Encodes the specified SharedRecord message, length delimited. Does not implicitly {@link Records.SharedRecord.verify|verify} messages. - * @function encodeDelimited - * @memberof Records.SharedRecord - * @static - * @param {Records.ISharedRecord} message SharedRecord message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SharedRecord.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a SharedRecord message from the specified reader or buffer. * @function decode @@ -148670,85 +120907,6 @@ export const Records = $root.Records = (() => { return message; }; - /** - * Decodes a SharedRecord message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Records.SharedRecord - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Records.SharedRecord} SharedRecord - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SharedRecord.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a SharedRecord message. - * @function verify - * @memberof Records.SharedRecord - * @static - * @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) { - if (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"; - 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.sharedFolderUid != null && message.hasOwnProperty("sharedFolderUid")) - if (!(message.sharedFolderUid && typeof message.sharedFolderUid.length === "number" || $util.isString(message.sharedFolderUid))) - return "sharedFolderUid: buffer expected"; - if (message.teamUid != null && message.hasOwnProperty("teamUid")) - if (!(message.teamUid && typeof message.teamUid.length === "number" || $util.isString(message.teamUid))) - return "teamUid: buffer expected"; - if (message.editable != null && message.hasOwnProperty("editable")) - if (typeof message.editable !== "boolean") - return "editable: boolean expected"; - if (message.shareable != null && message.hasOwnProperty("shareable")) - if (typeof message.shareable !== "boolean") - return "shareable: boolean expected"; - if (message.transfer != null && message.hasOwnProperty("transfer")) - if (typeof message.transfer !== "boolean") - return "transfer: boolean expected"; - if (message.useEccKey != null && message.hasOwnProperty("useEccKey")) - if (typeof message.useEccKey !== "boolean") - return "useEccKey: boolean expected"; - if (message.removeVaultData != null && message.hasOwnProperty("removeVaultData")) - if (typeof message.removeVaultData !== "boolean") - return "removeVaultData: boolean expected"; - 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"; - if (message.timerNotificationType != null && message.hasOwnProperty("timerNotificationType")) - switch (message.timerNotificationType) { - default: - return "timerNotificationType: enum value expected"; - case 0: - case 1: - case 2: - break; - } - if (message.rotateOnExpiration != null && message.hasOwnProperty("rotateOnExpiration")) - if (typeof message.rotateOnExpiration !== "boolean") - return "rotateOnExpiration: boolean expected"; - return null; - }; - /** * Creates a SharedRecord message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -148760,6 +120918,8 @@ export const Records = $root.Records = (() => { SharedRecord.fromObject = function fromObject(object, long) { if (object instanceof $root.Records.SharedRecord) return object; + if (!$util.isObject(object)) + throw TypeError(".Records.SharedRecord: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -148891,36 +121051,36 @@ export const Records = $root.Records = (() => { object.timerNotificationType = options.enums === String ? "NOTIFICATION_OFF" : 0; object.rotateOnExpiration = false; } - if (message.toUsername != null && message.hasOwnProperty("toUsername")) + if (message.toUsername != null && Object.hasOwnProperty.call(message, "toUsername")) object.toUsername = message.toUsername; - if (message.recordUid != null && message.hasOwnProperty("recordUid")) + if (message.recordUid != null && Object.hasOwnProperty.call(message, "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")) + if (message.recordKey != null && Object.hasOwnProperty.call(message, "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.sharedFolderUid != null && message.hasOwnProperty("sharedFolderUid")) + if (message.sharedFolderUid != null && Object.hasOwnProperty.call(message, "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")) + if (message.teamUid != null && Object.hasOwnProperty.call(message, "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.editable != null && message.hasOwnProperty("editable")) + if (message.editable != null && Object.hasOwnProperty.call(message, "editable")) object.editable = message.editable; - if (message.shareable != null && message.hasOwnProperty("shareable")) + if (message.shareable != null && Object.hasOwnProperty.call(message, "shareable")) object.shareable = message.shareable; - if (message.transfer != null && message.hasOwnProperty("transfer")) + if (message.transfer != null && Object.hasOwnProperty.call(message, "transfer")) object.transfer = message.transfer; - if (message.useEccKey != null && message.hasOwnProperty("useEccKey")) + if (message.useEccKey != null && Object.hasOwnProperty.call(message, "useEccKey")) object.useEccKey = message.useEccKey; - if (message.removeVaultData != null && message.hasOwnProperty("removeVaultData")) + if (message.removeVaultData != null && Object.hasOwnProperty.call(message, "removeVaultData")) object.removeVaultData = message.removeVaultData; - if (message.expiration != null && message.hasOwnProperty("expiration")) + if (message.expiration != null && Object.hasOwnProperty.call(message, "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") 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")) + if (message.timerNotificationType != null && Object.hasOwnProperty.call(message, "timerNotificationType")) object.timerNotificationType = options.enums === String ? $root.Records.TimerNotificationType[message.timerNotificationType] === undefined ? message.timerNotificationType : $root.Records.TimerNotificationType[message.timerNotificationType] : message.timerNotificationType; - if (message.rotateOnExpiration != null && message.hasOwnProperty("rotateOnExpiration")) + if (message.rotateOnExpiration != null && Object.hasOwnProperty.call(message, "rotateOnExpiration")) object.rotateOnExpiration = message.rotateOnExpiration; return object; }; @@ -149047,19 +121207,6 @@ export const Records = $root.Records = (() => { return writer; }; - /** - * Encodes the specified RecordShareUpdateResponse message, length delimited. Does not implicitly {@link Records.RecordShareUpdateResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof Records.RecordShareUpdateResponse - * @static - * @param {Records.IRecordShareUpdateResponse} message RecordShareUpdateResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RecordShareUpdateResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a RecordShareUpdateResponse message from the specified reader or buffer. * @function decode @@ -149110,67 +121257,6 @@ export const Records = $root.Records = (() => { return message; }; - /** - * Decodes a RecordShareUpdateResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Records.RecordShareUpdateResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Records.RecordShareUpdateResponse} RecordShareUpdateResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RecordShareUpdateResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a RecordShareUpdateResponse message. - * @function verify - * @memberof Records.RecordShareUpdateResponse - * @static - * @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) { - if (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); - if (error) - return "addSharedRecordStatus." + error; - } - } - if (message.updateSharedRecordStatus != null && message.hasOwnProperty("updateSharedRecordStatus")) { - 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); - if (error) - return "updateSharedRecordStatus." + error; - } - } - if (message.removeSharedRecordStatus != null && message.hasOwnProperty("removeSharedRecordStatus")) { - 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); - if (error) - return "removeSharedRecordStatus." + error; - } - } - return null; - }; - /** * Creates a RecordShareUpdateResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -149182,6 +121268,8 @@ export const Records = $root.Records = (() => { RecordShareUpdateResponse.fromObject = function fromObject(object, long) { if (object instanceof $root.Records.RecordShareUpdateResponse) return object; + if (!$util.isObject(object)) + throw TypeError(".Records.RecordShareUpdateResponse: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -149192,7 +121280,7 @@ export const Records = $root.Records = (() => { throw TypeError(".Records.RecordShareUpdateResponse.addSharedRecordStatus: array expected"); message.addSharedRecordStatus = []; for (let i = 0; i < object.addSharedRecordStatus.length; ++i) { - if (typeof object.addSharedRecordStatus[i] !== "object") + if (!$util.isObject(object.addSharedRecordStatus[i])) throw TypeError(".Records.RecordShareUpdateResponse.addSharedRecordStatus: object expected"); message.addSharedRecordStatus[i] = $root.Records.SharedRecordStatus.fromObject(object.addSharedRecordStatus[i], long + 1); } @@ -149202,7 +121290,7 @@ export const Records = $root.Records = (() => { throw TypeError(".Records.RecordShareUpdateResponse.updateSharedRecordStatus: array expected"); message.updateSharedRecordStatus = []; for (let i = 0; i < object.updateSharedRecordStatus.length; ++i) { - if (typeof object.updateSharedRecordStatus[i] !== "object") + if (!$util.isObject(object.updateSharedRecordStatus[i])) throw TypeError(".Records.RecordShareUpdateResponse.updateSharedRecordStatus: object expected"); message.updateSharedRecordStatus[i] = $root.Records.SharedRecordStatus.fromObject(object.updateSharedRecordStatus[i], long + 1); } @@ -149212,7 +121300,7 @@ export const Records = $root.Records = (() => { throw TypeError(".Records.RecordShareUpdateResponse.removeSharedRecordStatus: array expected"); message.removeSharedRecordStatus = []; for (let i = 0; i < object.removeSharedRecordStatus.length; ++i) { - if (typeof object.removeSharedRecordStatus[i] !== "object") + if (!$util.isObject(object.removeSharedRecordStatus[i])) throw TypeError(".Records.RecordShareUpdateResponse.removeSharedRecordStatus: object expected"); message.removeSharedRecordStatus[i] = $root.Records.SharedRecordStatus.fromObject(object.removeSharedRecordStatus[i], long + 1); } @@ -149387,19 +121475,6 @@ export const Records = $root.Records = (() => { return writer; }; - /** - * Encodes the specified SharedRecordStatus message, length delimited. Does not implicitly {@link Records.SharedRecordStatus.verify|verify} messages. - * @function encodeDelimited - * @memberof Records.SharedRecordStatus - * @static - * @param {Records.ISharedRecordStatus} message SharedRecordStatus message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SharedRecordStatus.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a SharedRecordStatus message from the specified reader or buffer. * @function decode @@ -149448,52 +121523,6 @@ export const Records = $root.Records = (() => { return message; }; - /** - * Decodes a SharedRecordStatus message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Records.SharedRecordStatus - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Records.SharedRecordStatus} SharedRecordStatus - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SharedRecordStatus.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a SharedRecordStatus message. - * @function verify - * @memberof Records.SharedRecordStatus - * @static - * @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) { - if (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.status != null && message.hasOwnProperty("status")) - if (!$util.isString(message.status)) - return "status: string expected"; - if (message.message != null && message.hasOwnProperty("message")) - if (!$util.isString(message.message)) - return "message: string expected"; - if (message.username != null && message.hasOwnProperty("username")) - if (!$util.isString(message.username)) - return "username: string expected"; - return null; - }; - /** * Creates a SharedRecordStatus message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -149505,6 +121534,8 @@ export const Records = $root.Records = (() => { SharedRecordStatus.fromObject = function fromObject(object, long) { if (object instanceof $root.Records.SharedRecordStatus) return object; + if (!$util.isObject(object)) + throw TypeError(".Records.SharedRecordStatus: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -149553,13 +121584,13 @@ export const Records = $root.Records = (() => { object.message = ""; object.username = ""; } - if (message.recordUid != null && message.hasOwnProperty("recordUid")) + if (message.recordUid != null && Object.hasOwnProperty.call(message, "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.status != null && message.hasOwnProperty("status")) + if (message.status != null && Object.hasOwnProperty.call(message, "status")) object.status = message.status; - if (message.message != null && message.hasOwnProperty("message")) + if (message.message != null && Object.hasOwnProperty.call(message, "message")) object.message = message.message; - if (message.username != null && message.hasOwnProperty("username")) + if (message.username != null && Object.hasOwnProperty.call(message, "username")) object.username = message.username; return object; }; @@ -149671,19 +121702,6 @@ export const Records = $root.Records = (() => { return writer; }; - /** - * Encodes the specified GetRecordPermissionsRequest message, length delimited. Does not implicitly {@link Records.GetRecordPermissionsRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof Records.GetRecordPermissionsRequest - * @static - * @param {Records.IGetRecordPermissionsRequest} message GetRecordPermissionsRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetRecordPermissionsRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a GetRecordPermissionsRequest message from the specified reader or buffer. * @function decode @@ -149726,50 +121744,6 @@ export const Records = $root.Records = (() => { return message; }; - /** - * Decodes a GetRecordPermissionsRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Records.GetRecordPermissionsRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Records.GetRecordPermissionsRequest} GetRecordPermissionsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetRecordPermissionsRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a GetRecordPermissionsRequest message. - * @function verify - * @memberof Records.GetRecordPermissionsRequest - * @static - * @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) { - if (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"; - for (let i = 0; i < message.recordUids.length; ++i) - if (!(message.recordUids[i] && typeof message.recordUids[i].length === "number" || $util.isString(message.recordUids[i]))) - return "recordUids: buffer[] expected"; - } - if (message.isShareAdmin != null && message.hasOwnProperty("isShareAdmin")) - if (typeof message.isShareAdmin !== "boolean") - return "isShareAdmin: boolean expected"; - return null; - }; - /** * Creates a GetRecordPermissionsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -149781,6 +121755,8 @@ export const Records = $root.Records = (() => { GetRecordPermissionsRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.Records.GetRecordPermissionsRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".Records.GetRecordPermissionsRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -149827,7 +121803,7 @@ export const Records = $root.Records = (() => { 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.isShareAdmin != null && message.hasOwnProperty("isShareAdmin")) + if (message.isShareAdmin != null && Object.hasOwnProperty.call(message, "isShareAdmin")) object.isShareAdmin = message.isShareAdmin; return object; }; @@ -149928,19 +121904,6 @@ export const Records = $root.Records = (() => { return writer; }; - /** - * Encodes the specified GetRecordPermissionsResponse message, length delimited. Does not implicitly {@link Records.GetRecordPermissionsResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof Records.GetRecordPermissionsResponse - * @static - * @param {Records.IGetRecordPermissionsResponse} message GetRecordPermissionsResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetRecordPermissionsResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a GetRecordPermissionsResponse message from the specified reader or buffer. * @function decode @@ -149979,49 +121942,6 @@ export const Records = $root.Records = (() => { return message; }; - /** - * Decodes a GetRecordPermissionsResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Records.GetRecordPermissionsResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Records.GetRecordPermissionsResponse} GetRecordPermissionsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetRecordPermissionsResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a GetRecordPermissionsResponse message. - * @function verify - * @memberof Records.GetRecordPermissionsResponse - * @static - * @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) { - if (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); - if (error) - return "recordPermissions." + error; - } - } - return null; - }; - /** * Creates a GetRecordPermissionsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -150033,6 +121953,8 @@ export const Records = $root.Records = (() => { GetRecordPermissionsResponse.fromObject = function fromObject(object, long) { if (object instanceof $root.Records.GetRecordPermissionsResponse) return object; + if (!$util.isObject(object)) + throw TypeError(".Records.GetRecordPermissionsResponse: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -150043,7 +121965,7 @@ export const Records = $root.Records = (() => { throw TypeError(".Records.GetRecordPermissionsResponse.recordPermissions: array expected"); message.recordPermissions = []; for (let i = 0; i < object.recordPermissions.length; ++i) { - if (typeof object.recordPermissions[i] !== "object") + if (!$util.isObject(object.recordPermissions[i])) throw TypeError(".Records.GetRecordPermissionsResponse.recordPermissions: object expected"); message.recordPermissions[i] = $root.Records.RecordPermission.fromObject(object.recordPermissions[i], long + 1); } @@ -150216,19 +122138,6 @@ export const Records = $root.Records = (() => { return writer; }; - /** - * Encodes the specified RecordPermission message, length delimited. Does not implicitly {@link Records.RecordPermission.verify|verify} messages. - * @function encodeDelimited - * @memberof Records.RecordPermission - * @static - * @param {Records.IRecordPermission} message RecordPermission message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RecordPermission.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a RecordPermission message from the specified reader or buffer. * @function decode @@ -150281,55 +122190,6 @@ export const Records = $root.Records = (() => { return message; }; - /** - * Decodes a RecordPermission message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Records.RecordPermission - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Records.RecordPermission} RecordPermission - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RecordPermission.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a RecordPermission message. - * @function verify - * @memberof Records.RecordPermission - * @static - * @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) { - if (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.owner != null && message.hasOwnProperty("owner")) - if (typeof message.owner !== "boolean") - return "owner: boolean expected"; - if (message.canEdit != null && message.hasOwnProperty("canEdit")) - if (typeof message.canEdit !== "boolean") - return "canEdit: boolean expected"; - if (message.canShare != null && message.hasOwnProperty("canShare")) - if (typeof message.canShare !== "boolean") - return "canShare: boolean expected"; - if (message.canTransfer != null && message.hasOwnProperty("canTransfer")) - if (typeof message.canTransfer !== "boolean") - return "canTransfer: boolean expected"; - return null; - }; - /** * Creates a RecordPermission message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -150341,6 +122201,8 @@ export const Records = $root.Records = (() => { RecordPermission.fromObject = function fromObject(object, long) { if (object instanceof $root.Records.RecordPermission) return object; + if (!$util.isObject(object)) + throw TypeError(".Records.RecordPermission: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -150392,15 +122254,15 @@ export const Records = $root.Records = (() => { object.canShare = false; object.canTransfer = false; } - if (message.recordUid != null && message.hasOwnProperty("recordUid")) + if (message.recordUid != null && Object.hasOwnProperty.call(message, "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.owner != null && message.hasOwnProperty("owner")) + if (message.owner != null && Object.hasOwnProperty.call(message, "owner")) object.owner = message.owner; - if (message.canEdit != null && message.hasOwnProperty("canEdit")) + if (message.canEdit != null && Object.hasOwnProperty.call(message, "canEdit")) object.canEdit = message.canEdit; - if (message.canShare != null && message.hasOwnProperty("canShare")) + if (message.canShare != null && Object.hasOwnProperty.call(message, "canShare")) object.canShare = message.canShare; - if (message.canTransfer != null && message.hasOwnProperty("canTransfer")) + if (message.canTransfer != null && Object.hasOwnProperty.call(message, "canTransfer")) object.canTransfer = message.canTransfer; return object; }; @@ -150532,19 +122394,6 @@ export const Records = $root.Records = (() => { return writer; }; - /** - * Encodes the specified GetShareObjectsRequest message, length delimited. Does not implicitly {@link Records.GetShareObjectsRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof Records.GetShareObjectsRequest - * @static - * @param {Records.IGetShareObjectsRequest} message GetShareObjectsRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetShareObjectsRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a GetShareObjectsRequest message from the specified reader or buffer. * @function decode @@ -150593,52 +122442,6 @@ export const Records = $root.Records = (() => { return message; }; - /** - * Decodes a GetShareObjectsRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Records.GetShareObjectsRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Records.GetShareObjectsRequest} GetShareObjectsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetShareObjectsRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a GetShareObjectsRequest message. - * @function verify - * @memberof Records.GetShareObjectsRequest - * @static - * @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) { - if (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"; - if (message.contains != null && message.hasOwnProperty("contains")) - if (!$util.isString(message.contains)) - return "contains: string expected"; - if (message.filtered != null && message.hasOwnProperty("filtered")) - if (typeof message.filtered !== "boolean") - return "filtered: boolean expected"; - if (message.sharedFolderUid != null && message.hasOwnProperty("sharedFolderUid")) - if (!(message.sharedFolderUid && typeof message.sharedFolderUid.length === "number" || $util.isString(message.sharedFolderUid))) - return "sharedFolderUid: buffer expected"; - return null; - }; - /** * Creates a GetShareObjectsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -150650,6 +122453,8 @@ export const Records = $root.Records = (() => { GetShareObjectsRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.Records.GetShareObjectsRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".Records.GetShareObjectsRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -150698,13 +122503,13 @@ export const Records = $root.Records = (() => { object.sharedFolderUid = $util.newBuffer(object.sharedFolderUid); } } - if (message.startWith != null && message.hasOwnProperty("startWith")) + if (message.startWith != null && Object.hasOwnProperty.call(message, "startWith")) object.startWith = message.startWith; - if (message.contains != null && message.hasOwnProperty("contains")) + if (message.contains != null && Object.hasOwnProperty.call(message, "contains")) object.contains = message.contains; - if (message.filtered != null && message.hasOwnProperty("filtered")) + if (message.filtered != null && Object.hasOwnProperty.call(message, "filtered")) object.filtered = message.filtered; - if (message.sharedFolderUid != null && message.hasOwnProperty("sharedFolderUid")) + if (message.sharedFolderUid != null && Object.hasOwnProperty.call(message, "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; return object; }; @@ -150883,19 +122688,6 @@ export const Records = $root.Records = (() => { return writer; }; - /** - * Encodes the specified GetShareObjectsResponse message, length delimited. Does not implicitly {@link Records.GetShareObjectsResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof Records.GetShareObjectsResponse - * @static - * @param {Records.IGetShareObjectsResponse} message GetShareObjectsResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetShareObjectsResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a GetShareObjectsResponse message from the specified reader or buffer. * @function decode @@ -150970,103 +122762,6 @@ export const Records = $root.Records = (() => { return message; }; - /** - * Decodes a GetShareObjectsResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Records.GetShareObjectsResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Records.GetShareObjectsResponse} GetShareObjectsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetShareObjectsResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a GetShareObjectsResponse message. - * @function verify - * @memberof Records.GetShareObjectsResponse - * @static - * @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) { - if (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); - if (error) - return "shareRelationships." + error; - } - } - if (message.shareFamilyUsers != null && message.hasOwnProperty("shareFamilyUsers")) { - 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); - if (error) - return "shareFamilyUsers." + error; - } - } - if (message.shareEnterpriseUsers != null && message.hasOwnProperty("shareEnterpriseUsers")) { - 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); - if (error) - return "shareEnterpriseUsers." + error; - } - } - if (message.shareTeams != null && message.hasOwnProperty("shareTeams")) { - 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); - if (error) - return "shareTeams." + error; - } - } - if (message.shareMCTeams != null && message.hasOwnProperty("shareMCTeams")) { - 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); - if (error) - return "shareMCTeams." + error; - } - } - if (message.shareMCEnterpriseUsers != null && message.hasOwnProperty("shareMCEnterpriseUsers")) { - 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); - if (error) - return "shareMCEnterpriseUsers." + error; - } - } - if (message.shareEnterpriseNames != null && message.hasOwnProperty("shareEnterpriseNames")) { - 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); - if (error) - return "shareEnterpriseNames." + error; - } - } - return null; - }; - /** * Creates a GetShareObjectsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -151078,6 +122773,8 @@ export const Records = $root.Records = (() => { GetShareObjectsResponse.fromObject = function fromObject(object, long) { if (object instanceof $root.Records.GetShareObjectsResponse) return object; + if (!$util.isObject(object)) + throw TypeError(".Records.GetShareObjectsResponse: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -151088,7 +122785,7 @@ export const Records = $root.Records = (() => { throw TypeError(".Records.GetShareObjectsResponse.shareRelationships: array expected"); message.shareRelationships = []; for (let i = 0; i < object.shareRelationships.length; ++i) { - if (typeof object.shareRelationships[i] !== "object") + if (!$util.isObject(object.shareRelationships[i])) throw TypeError(".Records.GetShareObjectsResponse.shareRelationships: object expected"); message.shareRelationships[i] = $root.Records.ShareUser.fromObject(object.shareRelationships[i], long + 1); } @@ -151098,7 +122795,7 @@ export const Records = $root.Records = (() => { throw TypeError(".Records.GetShareObjectsResponse.shareFamilyUsers: array expected"); message.shareFamilyUsers = []; for (let i = 0; i < object.shareFamilyUsers.length; ++i) { - if (typeof object.shareFamilyUsers[i] !== "object") + if (!$util.isObject(object.shareFamilyUsers[i])) throw TypeError(".Records.GetShareObjectsResponse.shareFamilyUsers: object expected"); message.shareFamilyUsers[i] = $root.Records.ShareUser.fromObject(object.shareFamilyUsers[i], long + 1); } @@ -151108,7 +122805,7 @@ export const Records = $root.Records = (() => { throw TypeError(".Records.GetShareObjectsResponse.shareEnterpriseUsers: array expected"); message.shareEnterpriseUsers = []; for (let i = 0; i < object.shareEnterpriseUsers.length; ++i) { - if (typeof object.shareEnterpriseUsers[i] !== "object") + if (!$util.isObject(object.shareEnterpriseUsers[i])) throw TypeError(".Records.GetShareObjectsResponse.shareEnterpriseUsers: object expected"); message.shareEnterpriseUsers[i] = $root.Records.ShareUser.fromObject(object.shareEnterpriseUsers[i], long + 1); } @@ -151118,7 +122815,7 @@ export const Records = $root.Records = (() => { throw TypeError(".Records.GetShareObjectsResponse.shareTeams: array expected"); message.shareTeams = []; for (let i = 0; i < object.shareTeams.length; ++i) { - if (typeof object.shareTeams[i] !== "object") + if (!$util.isObject(object.shareTeams[i])) throw TypeError(".Records.GetShareObjectsResponse.shareTeams: object expected"); message.shareTeams[i] = $root.Records.ShareTeam.fromObject(object.shareTeams[i], long + 1); } @@ -151128,7 +122825,7 @@ export const Records = $root.Records = (() => { throw TypeError(".Records.GetShareObjectsResponse.shareMCTeams: array expected"); message.shareMCTeams = []; for (let i = 0; i < object.shareMCTeams.length; ++i) { - if (typeof object.shareMCTeams[i] !== "object") + if (!$util.isObject(object.shareMCTeams[i])) throw TypeError(".Records.GetShareObjectsResponse.shareMCTeams: object expected"); message.shareMCTeams[i] = $root.Records.ShareTeam.fromObject(object.shareMCTeams[i], long + 1); } @@ -151138,7 +122835,7 @@ export const Records = $root.Records = (() => { throw TypeError(".Records.GetShareObjectsResponse.shareMCEnterpriseUsers: array expected"); message.shareMCEnterpriseUsers = []; for (let i = 0; i < object.shareMCEnterpriseUsers.length; ++i) { - if (typeof object.shareMCEnterpriseUsers[i] !== "object") + if (!$util.isObject(object.shareMCEnterpriseUsers[i])) throw TypeError(".Records.GetShareObjectsResponse.shareMCEnterpriseUsers: object expected"); message.shareMCEnterpriseUsers[i] = $root.Records.ShareUser.fromObject(object.shareMCEnterpriseUsers[i], long + 1); } @@ -151148,7 +122845,7 @@ export const Records = $root.Records = (() => { throw TypeError(".Records.GetShareObjectsResponse.shareEnterpriseNames: array expected"); message.shareEnterpriseNames = []; for (let i = 0; i < object.shareEnterpriseNames.length; ++i) { - if (typeof object.shareEnterpriseNames[i] !== "object") + if (!$util.isObject(object.shareEnterpriseNames[i])) throw TypeError(".Records.GetShareObjectsResponse.shareEnterpriseNames: object expected"); message.shareEnterpriseNames[i] = $root.Records.ShareEnterprise.fromObject(object.shareEnterpriseNames[i], long + 1); } @@ -151380,19 +123077,6 @@ export const Records = $root.Records = (() => { return writer; }; - /** - * Encodes the specified ShareUser message, length delimited. Does not implicitly {@link Records.ShareUser.verify|verify} messages. - * @function encodeDelimited - * @memberof Records.ShareUser - * @static - * @param {Records.IShareUser} message ShareUser message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ShareUser.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a ShareUser message from the specified reader or buffer. * @function decode @@ -151453,67 +123137,6 @@ export const Records = $root.Records = (() => { return message; }; - /** - * Decodes a ShareUser message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Records.ShareUser - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Records.ShareUser} ShareUser - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ShareUser.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a ShareUser message. - * @function verify - * @memberof Records.ShareUser - * @static - * @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) { - if (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"; - if (message.fullname != null && message.hasOwnProperty("fullname")) - if (!$util.isString(message.fullname)) - return "fullname: string expected"; - if (message.enterpriseId != null && message.hasOwnProperty("enterpriseId")) - if (!$util.isInteger(message.enterpriseId)) - return "enterpriseId: integer expected"; - if (message.status != null && message.hasOwnProperty("status")) - switch (message.status) { - default: - return "status: enum value expected"; - case 0: - case 1: - case 2: - break; - } - if (message.isShareAdmin != null && message.hasOwnProperty("isShareAdmin")) - if (typeof message.isShareAdmin !== "boolean") - return "isShareAdmin: boolean expected"; - if (message.isAdminOfSharedFolderOwner != null && message.hasOwnProperty("isAdminOfSharedFolderOwner")) - if (typeof message.isAdminOfSharedFolderOwner !== "boolean") - return "isAdminOfSharedFolderOwner: boolean expected"; - if (message.userAccountUid != null && message.hasOwnProperty("userAccountUid")) - if (!(message.userAccountUid && typeof message.userAccountUid.length === "number" || $util.isString(message.userAccountUid))) - return "userAccountUid: buffer expected"; - return null; - }; - /** * Creates a ShareUser message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -151525,6 +123148,8 @@ export const Records = $root.Records = (() => { ShareUser.fromObject = function fromObject(object, long) { if (object instanceof $root.Records.ShareUser) return object; + if (!$util.isObject(object)) + throw TypeError(".Records.ShareUser: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -151600,19 +123225,19 @@ export const Records = $root.Records = (() => { object.userAccountUid = $util.newBuffer(object.userAccountUid); } } - if (message.username != null && message.hasOwnProperty("username")) + if (message.username != null && Object.hasOwnProperty.call(message, "username")) object.username = message.username; - if (message.fullname != null && message.hasOwnProperty("fullname")) + if (message.fullname != null && Object.hasOwnProperty.call(message, "fullname")) object.fullname = message.fullname; - if (message.enterpriseId != null && message.hasOwnProperty("enterpriseId")) + if (message.enterpriseId != null && Object.hasOwnProperty.call(message, "enterpriseId")) object.enterpriseId = message.enterpriseId; - if (message.status != null && message.hasOwnProperty("status")) + if (message.status != null && Object.hasOwnProperty.call(message, "status")) object.status = options.enums === String ? $root.Records.ShareStatus[message.status] === undefined ? message.status : $root.Records.ShareStatus[message.status] : message.status; - if (message.isShareAdmin != null && message.hasOwnProperty("isShareAdmin")) + if (message.isShareAdmin != null && Object.hasOwnProperty.call(message, "isShareAdmin")) object.isShareAdmin = message.isShareAdmin; - if (message.isAdminOfSharedFolderOwner != null && message.hasOwnProperty("isAdminOfSharedFolderOwner")) + if (message.isAdminOfSharedFolderOwner != null && Object.hasOwnProperty.call(message, "isAdminOfSharedFolderOwner")) object.isAdminOfSharedFolderOwner = message.isAdminOfSharedFolderOwner; - if (message.userAccountUid != null && message.hasOwnProperty("userAccountUid")) + if (message.userAccountUid != null && Object.hasOwnProperty.call(message, "userAccountUid")) object.userAccountUid = options.bytes === String ? $util.base64.encode(message.userAccountUid, 0, message.userAccountUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.userAccountUid) : message.userAccountUid; return object; }; @@ -151733,19 +123358,6 @@ export const Records = $root.Records = (() => { return writer; }; - /** - * Encodes the specified ShareTeam message, length delimited. Does not implicitly {@link Records.ShareTeam.verify|verify} messages. - * @function encodeDelimited - * @memberof Records.ShareTeam - * @static - * @param {Records.IShareTeam} message ShareTeam message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ShareTeam.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a ShareTeam message from the specified reader or buffer. * @function decode @@ -151790,49 +123402,6 @@ export const Records = $root.Records = (() => { return message; }; - /** - * Decodes a ShareTeam message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Records.ShareTeam - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Records.ShareTeam} ShareTeam - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ShareTeam.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a ShareTeam message. - * @function verify - * @memberof Records.ShareTeam - * @static - * @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) { - if (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"; - if (message.enterpriseId != null && message.hasOwnProperty("enterpriseId")) - if (!$util.isInteger(message.enterpriseId)) - return "enterpriseId: integer expected"; - if (message.teamUid != null && message.hasOwnProperty("teamUid")) - if (!(message.teamUid && typeof message.teamUid.length === "number" || $util.isString(message.teamUid))) - return "teamUid: buffer expected"; - return null; - }; - /** * Creates a ShareTeam message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -151844,6 +123413,8 @@ export const Records = $root.Records = (() => { ShareTeam.fromObject = function fromObject(object, long) { if (object instanceof $root.Records.ShareTeam) return object; + if (!$util.isObject(object)) + throw TypeError(".Records.ShareTeam: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -151889,11 +123460,11 @@ export const Records = $root.Records = (() => { object.teamUid = $util.newBuffer(object.teamUid); } } - if (message.teamname != null && message.hasOwnProperty("teamname")) + if (message.teamname != null && Object.hasOwnProperty.call(message, "teamname")) object.teamname = message.teamname; - if (message.enterpriseId != null && message.hasOwnProperty("enterpriseId")) + if (message.enterpriseId != null && Object.hasOwnProperty.call(message, "enterpriseId")) object.enterpriseId = message.enterpriseId; - if (message.teamUid != null && message.hasOwnProperty("teamUid")) + if (message.teamUid != null && Object.hasOwnProperty.call(message, "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; return object; }; @@ -152003,19 +123574,6 @@ export const Records = $root.Records = (() => { return writer; }; - /** - * Encodes the specified ShareEnterprise message, length delimited. Does not implicitly {@link Records.ShareEnterprise.verify|verify} messages. - * @function encodeDelimited - * @memberof Records.ShareEnterprise - * @static - * @param {Records.IShareEnterprise} message ShareEnterprise message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ShareEnterprise.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a ShareEnterprise message from the specified reader or buffer. * @function decode @@ -152056,46 +123614,6 @@ export const Records = $root.Records = (() => { return message; }; - /** - * Decodes a ShareEnterprise message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Records.ShareEnterprise - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Records.ShareEnterprise} ShareEnterprise - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ShareEnterprise.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a ShareEnterprise message. - * @function verify - * @memberof Records.ShareEnterprise - * @static - * @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) { - if (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"; - if (message.enterpriseId != null && message.hasOwnProperty("enterpriseId")) - if (!$util.isInteger(message.enterpriseId)) - return "enterpriseId: integer expected"; - return null; - }; - /** * Creates a ShareEnterprise message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -152107,6 +123625,8 @@ export const Records = $root.Records = (() => { ShareEnterprise.fromObject = function fromObject(object, long) { if (object instanceof $root.Records.ShareEnterprise) return object; + if (!$util.isObject(object)) + throw TypeError(".Records.ShareEnterprise: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -152140,9 +123660,9 @@ export const Records = $root.Records = (() => { object.enterprisename = ""; object.enterpriseId = 0; } - if (message.enterprisename != null && message.hasOwnProperty("enterprisename")) + if (message.enterprisename != null && Object.hasOwnProperty.call(message, "enterprisename")) object.enterprisename = message.enterprisename; - if (message.enterpriseId != null && message.hasOwnProperty("enterpriseId")) + if (message.enterpriseId != null && Object.hasOwnProperty.call(message, "enterpriseId")) object.enterpriseId = message.enterpriseId; return object; }; @@ -152259,19 +123779,6 @@ export const Records = $root.Records = (() => { return writer; }; - /** - * Encodes the specified RecordsOnwershipTransferRequest message, length delimited. Does not implicitly {@link Records.RecordsOnwershipTransferRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof Records.RecordsOnwershipTransferRequest - * @static - * @param {Records.IRecordsOnwershipTransferRequest} message RecordsOnwershipTransferRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RecordsOnwershipTransferRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a RecordsOnwershipTransferRequest message from the specified reader or buffer. * @function decode @@ -152310,49 +123817,6 @@ export const Records = $root.Records = (() => { return message; }; - /** - * Decodes a RecordsOnwershipTransferRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Records.RecordsOnwershipTransferRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Records.RecordsOnwershipTransferRequest} RecordsOnwershipTransferRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RecordsOnwershipTransferRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a RecordsOnwershipTransferRequest message. - * @function verify - * @memberof Records.RecordsOnwershipTransferRequest - * @static - * @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) { - if (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); - if (error) - return "transferRecords." + error; - } - } - return null; - }; - /** * Creates a RecordsOnwershipTransferRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -152364,6 +123828,8 @@ export const Records = $root.Records = (() => { RecordsOnwershipTransferRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.Records.RecordsOnwershipTransferRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".Records.RecordsOnwershipTransferRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -152374,7 +123840,7 @@ export const Records = $root.Records = (() => { throw TypeError(".Records.RecordsOnwershipTransferRequest.transferRecords: array expected"); message.transferRecords = []; for (let i = 0; i < object.transferRecords.length; ++i) { - if (typeof object.transferRecords[i] !== "object") + if (!$util.isObject(object.transferRecords[i])) throw TypeError(".Records.RecordsOnwershipTransferRequest.transferRecords: object expected"); message.transferRecords[i] = $root.Records.TransferRecord.fromObject(object.transferRecords[i], long + 1); } @@ -152536,19 +124002,6 @@ export const Records = $root.Records = (() => { return writer; }; - /** - * Encodes the specified TransferRecord message, length delimited. Does not implicitly {@link Records.TransferRecord.verify|verify} messages. - * @function encodeDelimited - * @memberof Records.TransferRecord - * @static - * @param {Records.ITransferRecord} message TransferRecord message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TransferRecord.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a TransferRecord message from the specified reader or buffer. * @function decode @@ -152597,52 +124050,6 @@ export const Records = $root.Records = (() => { return message; }; - /** - * Decodes a TransferRecord message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Records.TransferRecord - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Records.TransferRecord} TransferRecord - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TransferRecord.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a TransferRecord message. - * @function verify - * @memberof Records.TransferRecord - * @static - * @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) { - if (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"; - 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.useEccKey != null && message.hasOwnProperty("useEccKey")) - if (typeof message.useEccKey !== "boolean") - return "useEccKey: boolean expected"; - return null; - }; - /** * Creates a TransferRecord message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -152654,6 +124061,8 @@ export const Records = $root.Records = (() => { TransferRecord.fromObject = function fromObject(object, long) { if (object instanceof $root.Records.TransferRecord) return object; + if (!$util.isObject(object)) + throw TypeError(".Records.TransferRecord: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -152711,13 +124120,13 @@ export const Records = $root.Records = (() => { } object.useEccKey = false; } - if (message.username != null && message.hasOwnProperty("username")) + if (message.username != null && Object.hasOwnProperty.call(message, "username")) object.username = message.username; - if (message.recordUid != null && message.hasOwnProperty("recordUid")) + if (message.recordUid != null && Object.hasOwnProperty.call(message, "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")) + if (message.recordKey != null && Object.hasOwnProperty.call(message, "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.useEccKey != null && message.hasOwnProperty("useEccKey")) + if (message.useEccKey != null && Object.hasOwnProperty.call(message, "useEccKey")) object.useEccKey = message.useEccKey; return object; }; @@ -152818,19 +124227,6 @@ export const Records = $root.Records = (() => { return writer; }; - /** - * Encodes the specified RecordsOnwershipTransferResponse message, length delimited. Does not implicitly {@link Records.RecordsOnwershipTransferResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof Records.RecordsOnwershipTransferResponse - * @static - * @param {Records.IRecordsOnwershipTransferResponse} message RecordsOnwershipTransferResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RecordsOnwershipTransferResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a RecordsOnwershipTransferResponse message from the specified reader or buffer. * @function decode @@ -152869,49 +124265,6 @@ export const Records = $root.Records = (() => { return message; }; - /** - * Decodes a RecordsOnwershipTransferResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Records.RecordsOnwershipTransferResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Records.RecordsOnwershipTransferResponse} RecordsOnwershipTransferResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RecordsOnwershipTransferResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a RecordsOnwershipTransferResponse message. - * @function verify - * @memberof Records.RecordsOnwershipTransferResponse - * @static - * @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) { - if (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); - if (error) - return "transferRecordStatus." + error; - } - } - return null; - }; - /** * Creates a RecordsOnwershipTransferResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -152923,6 +124276,8 @@ export const Records = $root.Records = (() => { RecordsOnwershipTransferResponse.fromObject = function fromObject(object, long) { if (object instanceof $root.Records.RecordsOnwershipTransferResponse) return object; + if (!$util.isObject(object)) + throw TypeError(".Records.RecordsOnwershipTransferResponse: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -152933,7 +124288,7 @@ export const Records = $root.Records = (() => { throw TypeError(".Records.RecordsOnwershipTransferResponse.transferRecordStatus: array expected"); message.transferRecordStatus = []; for (let i = 0; i < object.transferRecordStatus.length; ++i) { - if (typeof object.transferRecordStatus[i] !== "object") + if (!$util.isObject(object.transferRecordStatus[i])) throw TypeError(".Records.RecordsOnwershipTransferResponse.transferRecordStatus: object expected"); message.transferRecordStatus[i] = $root.Records.TransferRecordStatus.fromObject(object.transferRecordStatus[i], long + 1); } @@ -153095,19 +124450,6 @@ export const Records = $root.Records = (() => { return writer; }; - /** - * Encodes the specified TransferRecordStatus message, length delimited. Does not implicitly {@link Records.TransferRecordStatus.verify|verify} messages. - * @function encodeDelimited - * @memberof Records.TransferRecordStatus - * @static - * @param {Records.ITransferRecordStatus} message TransferRecordStatus message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TransferRecordStatus.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a TransferRecordStatus message from the specified reader or buffer. * @function decode @@ -153156,52 +124498,6 @@ export const Records = $root.Records = (() => { return message; }; - /** - * Decodes a TransferRecordStatus message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Records.TransferRecordStatus - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Records.TransferRecordStatus} TransferRecordStatus - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TransferRecordStatus.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a TransferRecordStatus message. - * @function verify - * @memberof Records.TransferRecordStatus - * @static - * @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) { - if (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"; - 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.status != null && message.hasOwnProperty("status")) - if (!$util.isString(message.status)) - return "status: string expected"; - if (message.message != null && message.hasOwnProperty("message")) - if (!$util.isString(message.message)) - return "message: string expected"; - return null; - }; - /** * Creates a TransferRecordStatus message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -153213,6 +124509,8 @@ export const Records = $root.Records = (() => { TransferRecordStatus.fromObject = function fromObject(object, long) { if (object instanceof $root.Records.TransferRecordStatus) return object; + if (!$util.isObject(object)) + throw TypeError(".Records.TransferRecordStatus: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -153261,13 +124559,13 @@ export const Records = $root.Records = (() => { object.status = ""; object.message = ""; } - if (message.username != null && message.hasOwnProperty("username")) + if (message.username != null && Object.hasOwnProperty.call(message, "username")) object.username = message.username; - if (message.recordUid != null && message.hasOwnProperty("recordUid")) + if (message.recordUid != null && Object.hasOwnProperty.call(message, "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.status != null && message.hasOwnProperty("status")) + if (message.status != null && Object.hasOwnProperty.call(message, "status")) object.status = message.status; - if (message.message != null && message.hasOwnProperty("message")) + if (message.message != null && Object.hasOwnProperty.call(message, "message")) object.message = message.message; return object; }; @@ -153381,19 +124679,6 @@ export const Records = $root.Records = (() => { return writer; }; - /** - * Encodes the specified RecordsUnshareRequest message, length delimited. Does not implicitly {@link Records.RecordsUnshareRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof Records.RecordsUnshareRequest - * @static - * @param {Records.IRecordsUnshareRequest} message RecordsUnshareRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RecordsUnshareRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a RecordsUnshareRequest message from the specified reader or buffer. * @function decode @@ -153438,58 +124723,6 @@ export const Records = $root.Records = (() => { return message; }; - /** - * Decodes a RecordsUnshareRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Records.RecordsUnshareRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Records.RecordsUnshareRequest} RecordsUnshareRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RecordsUnshareRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a RecordsUnshareRequest message. - * @function verify - * @memberof Records.RecordsUnshareRequest - * @static - * @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) { - if (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); - if (error) - return "sharedFolders." + error; - } - } - 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.Records.RecordsUnshareUser.verify(message.users[i], long + 1); - if (error) - return "users." + error; - } - } - return null; - }; - /** * Creates a RecordsUnshareRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -153501,6 +124734,8 @@ export const Records = $root.Records = (() => { RecordsUnshareRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.Records.RecordsUnshareRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".Records.RecordsUnshareRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -153511,7 +124746,7 @@ export const Records = $root.Records = (() => { throw TypeError(".Records.RecordsUnshareRequest.sharedFolders: array expected"); message.sharedFolders = []; for (let i = 0; i < object.sharedFolders.length; ++i) { - if (typeof object.sharedFolders[i] !== "object") + if (!$util.isObject(object.sharedFolders[i])) throw TypeError(".Records.RecordsUnshareRequest.sharedFolders: object expected"); message.sharedFolders[i] = $root.Records.RecordsUnshareFolder.fromObject(object.sharedFolders[i], long + 1); } @@ -153521,7 +124756,7 @@ export const Records = $root.Records = (() => { throw TypeError(".Records.RecordsUnshareRequest.users: array expected"); message.users = []; for (let i = 0; i < object.users.length; ++i) { - if (typeof object.users[i] !== "object") + if (!$util.isObject(object.users[i])) throw TypeError(".Records.RecordsUnshareRequest.users: object expected"); message.users[i] = $root.Records.RecordsUnshareUser.fromObject(object.users[i], long + 1); } @@ -153672,19 +124907,6 @@ export const Records = $root.Records = (() => { return writer; }; - /** - * Encodes the specified RecordsUnshareResponse message, length delimited. Does not implicitly {@link Records.RecordsUnshareResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof Records.RecordsUnshareResponse - * @static - * @param {Records.IRecordsUnshareResponse} message RecordsUnshareResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RecordsUnshareResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a RecordsUnshareResponse message from the specified reader or buffer. * @function decode @@ -153729,58 +124951,6 @@ export const Records = $root.Records = (() => { return message; }; - /** - * Decodes a RecordsUnshareResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Records.RecordsUnshareResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Records.RecordsUnshareResponse} RecordsUnshareResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RecordsUnshareResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a RecordsUnshareResponse message. - * @function verify - * @memberof Records.RecordsUnshareResponse - * @static - * @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) { - if (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); - if (error) - return "sharedFolders." + error; - } - } - 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.Records.RecordsUnshareUserStatus.verify(message.users[i], long + 1); - if (error) - return "users." + error; - } - } - return null; - }; - /** * Creates a RecordsUnshareResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -153792,6 +124962,8 @@ export const Records = $root.Records = (() => { RecordsUnshareResponse.fromObject = function fromObject(object, long) { if (object instanceof $root.Records.RecordsUnshareResponse) return object; + if (!$util.isObject(object)) + throw TypeError(".Records.RecordsUnshareResponse: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -153802,7 +124974,7 @@ export const Records = $root.Records = (() => { throw TypeError(".Records.RecordsUnshareResponse.sharedFolders: array expected"); message.sharedFolders = []; for (let i = 0; i < object.sharedFolders.length; ++i) { - if (typeof object.sharedFolders[i] !== "object") + if (!$util.isObject(object.sharedFolders[i])) throw TypeError(".Records.RecordsUnshareResponse.sharedFolders: object expected"); message.sharedFolders[i] = $root.Records.RecordsUnshareFolderStatus.fromObject(object.sharedFolders[i], long + 1); } @@ -153812,7 +124984,7 @@ export const Records = $root.Records = (() => { throw TypeError(".Records.RecordsUnshareResponse.users: array expected"); message.users = []; for (let i = 0; i < object.users.length; ++i) { - if (typeof object.users[i] !== "object") + if (!$util.isObject(object.users[i])) throw TypeError(".Records.RecordsUnshareResponse.users: object expected"); message.users[i] = $root.Records.RecordsUnshareUserStatus.fromObject(object.users[i], long + 1); } @@ -153959,19 +125131,6 @@ export const Records = $root.Records = (() => { return writer; }; - /** - * Encodes the specified RecordsUnshareFolder message, length delimited. Does not implicitly {@link Records.RecordsUnshareFolder.verify|verify} messages. - * @function encodeDelimited - * @memberof Records.RecordsUnshareFolder - * @static - * @param {Records.IRecordsUnshareFolder} message RecordsUnshareFolder message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RecordsUnshareFolder.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a RecordsUnshareFolder message from the specified reader or buffer. * @function decode @@ -154012,46 +125171,6 @@ export const Records = $root.Records = (() => { return message; }; - /** - * Decodes a RecordsUnshareFolder message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Records.RecordsUnshareFolder - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Records.RecordsUnshareFolder} RecordsUnshareFolder - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RecordsUnshareFolder.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a RecordsUnshareFolder message. - * @function verify - * @memberof Records.RecordsUnshareFolder - * @static - * @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) { - if (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.sharedFolderUid != null && message.hasOwnProperty("sharedFolderUid")) - if (!(message.sharedFolderUid && typeof message.sharedFolderUid.length === "number" || $util.isString(message.sharedFolderUid))) - return "sharedFolderUid: buffer expected"; - return null; - }; - /** * Creates a RecordsUnshareFolder message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -154063,6 +125182,8 @@ export const Records = $root.Records = (() => { RecordsUnshareFolder.fromObject = function fromObject(object, long) { if (object instanceof $root.Records.RecordsUnshareFolder) return object; + if (!$util.isObject(object)) + throw TypeError(".Records.RecordsUnshareFolder: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -154114,9 +125235,9 @@ export const Records = $root.Records = (() => { object.sharedFolderUid = $util.newBuffer(object.sharedFolderUid); } } - if (message.recordUid != null && message.hasOwnProperty("recordUid")) + if (message.recordUid != null && Object.hasOwnProperty.call(message, "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.sharedFolderUid != null && message.hasOwnProperty("sharedFolderUid")) + if (message.sharedFolderUid != null && Object.hasOwnProperty.call(message, "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; return object; }; @@ -154226,19 +125347,6 @@ export const Records = $root.Records = (() => { return writer; }; - /** - * Encodes the specified RecordsUnshareUser message, length delimited. Does not implicitly {@link Records.RecordsUnshareUser.verify|verify} messages. - * @function encodeDelimited - * @memberof Records.RecordsUnshareUser - * @static - * @param {Records.IRecordsUnshareUser} message RecordsUnshareUser message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RecordsUnshareUser.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a RecordsUnshareUser message from the specified reader or buffer. * @function decode @@ -154279,46 +125387,6 @@ export const Records = $root.Records = (() => { return message; }; - /** - * Decodes a RecordsUnshareUser message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Records.RecordsUnshareUser - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Records.RecordsUnshareUser} RecordsUnshareUser - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RecordsUnshareUser.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a RecordsUnshareUser message. - * @function verify - * @memberof Records.RecordsUnshareUser - * @static - * @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) { - if (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.accountUid != null && message.hasOwnProperty("accountUid")) - if (!(message.accountUid && typeof message.accountUid.length === "number" || $util.isString(message.accountUid))) - return "accountUid: buffer expected"; - return null; - }; - /** * Creates a RecordsUnshareUser message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -154330,6 +125398,8 @@ export const Records = $root.Records = (() => { RecordsUnshareUser.fromObject = function fromObject(object, long) { if (object instanceof $root.Records.RecordsUnshareUser) return object; + if (!$util.isObject(object)) + throw TypeError(".Records.RecordsUnshareUser: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -154381,9 +125451,9 @@ export const Records = $root.Records = (() => { object.accountUid = $util.newBuffer(object.accountUid); } } - if (message.recordUid != null && message.hasOwnProperty("recordUid")) + if (message.recordUid != null && Object.hasOwnProperty.call(message, "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.accountUid != null && message.hasOwnProperty("accountUid")) + if (message.accountUid != null && Object.hasOwnProperty.call(message, "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; return object; }; @@ -154493,19 +125563,6 @@ export const Records = $root.Records = (() => { return writer; }; - /** - * Encodes the specified RecordsUnshareFolderStatus message, length delimited. Does not implicitly {@link Records.RecordsUnshareFolderStatus.verify|verify} messages. - * @function encodeDelimited - * @memberof Records.RecordsUnshareFolderStatus - * @static - * @param {Records.IRecordsUnshareFolderStatus} message RecordsUnshareFolderStatus message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RecordsUnshareFolderStatus.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a RecordsUnshareFolderStatus message from the specified reader or buffer. * @function decode @@ -154546,46 +125603,6 @@ export const Records = $root.Records = (() => { return message; }; - /** - * Decodes a RecordsUnshareFolderStatus message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Records.RecordsUnshareFolderStatus - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Records.RecordsUnshareFolderStatus} RecordsUnshareFolderStatus - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RecordsUnshareFolderStatus.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a RecordsUnshareFolderStatus message. - * @function verify - * @memberof Records.RecordsUnshareFolderStatus - * @static - * @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) { - if (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.sharedFolderUid != null && message.hasOwnProperty("sharedFolderUid")) - if (!(message.sharedFolderUid && typeof message.sharedFolderUid.length === "number" || $util.isString(message.sharedFolderUid))) - return "sharedFolderUid: buffer expected"; - return null; - }; - /** * Creates a RecordsUnshareFolderStatus message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -154597,6 +125614,8 @@ export const Records = $root.Records = (() => { RecordsUnshareFolderStatus.fromObject = function fromObject(object, long) { if (object instanceof $root.Records.RecordsUnshareFolderStatus) return object; + if (!$util.isObject(object)) + throw TypeError(".Records.RecordsUnshareFolderStatus: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -154648,9 +125667,9 @@ export const Records = $root.Records = (() => { object.sharedFolderUid = $util.newBuffer(object.sharedFolderUid); } } - if (message.recordUid != null && message.hasOwnProperty("recordUid")) + if (message.recordUid != null && Object.hasOwnProperty.call(message, "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.sharedFolderUid != null && message.hasOwnProperty("sharedFolderUid")) + if (message.sharedFolderUid != null && Object.hasOwnProperty.call(message, "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; return object; }; @@ -154760,19 +125779,6 @@ export const Records = $root.Records = (() => { return writer; }; - /** - * Encodes the specified RecordsUnshareUserStatus message, length delimited. Does not implicitly {@link Records.RecordsUnshareUserStatus.verify|verify} messages. - * @function encodeDelimited - * @memberof Records.RecordsUnshareUserStatus - * @static - * @param {Records.IRecordsUnshareUserStatus} message RecordsUnshareUserStatus message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RecordsUnshareUserStatus.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a RecordsUnshareUserStatus message from the specified reader or buffer. * @function decode @@ -154813,46 +125819,6 @@ export const Records = $root.Records = (() => { return message; }; - /** - * Decodes a RecordsUnshareUserStatus message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Records.RecordsUnshareUserStatus - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Records.RecordsUnshareUserStatus} RecordsUnshareUserStatus - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RecordsUnshareUserStatus.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a RecordsUnshareUserStatus message. - * @function verify - * @memberof Records.RecordsUnshareUserStatus - * @static - * @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) { - if (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.accountUid != null && message.hasOwnProperty("accountUid")) - if (!(message.accountUid && typeof message.accountUid.length === "number" || $util.isString(message.accountUid))) - return "accountUid: buffer expected"; - return null; - }; - /** * Creates a RecordsUnshareUserStatus message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -154864,6 +125830,8 @@ export const Records = $root.Records = (() => { RecordsUnshareUserStatus.fromObject = function fromObject(object, long) { if (object instanceof $root.Records.RecordsUnshareUserStatus) return object; + if (!$util.isObject(object)) + throw TypeError(".Records.RecordsUnshareUserStatus: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -154915,9 +125883,9 @@ export const Records = $root.Records = (() => { object.accountUid = $util.newBuffer(object.accountUid); } } - if (message.recordUid != null && message.hasOwnProperty("recordUid")) + if (message.recordUid != null && Object.hasOwnProperty.call(message, "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.accountUid != null && message.hasOwnProperty("accountUid")) + if (message.accountUid != null && Object.hasOwnProperty.call(message, "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; return object; }; @@ -155076,19 +126044,6 @@ export const Records = $root.Records = (() => { return writer; }; - /** - * Encodes the specified TimedAccessCallbackPayload message, length delimited. Does not implicitly {@link Records.TimedAccessCallbackPayload.verify|verify} messages. - * @function encodeDelimited - * @memberof Records.TimedAccessCallbackPayload - * @static - * @param {Records.ITimedAccessCallbackPayload} message TimedAccessCallbackPayload message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TimedAccessCallbackPayload.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a TimedAccessCallbackPayload message from the specified reader or buffer. * @function decode @@ -155125,56 +126080,6 @@ export const Records = $root.Records = (() => { return message; }; - /** - * Decodes a TimedAccessCallbackPayload message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Records.TimedAccessCallbackPayload - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Records.TimedAccessCallbackPayload} TimedAccessCallbackPayload - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TimedAccessCallbackPayload.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a TimedAccessCallbackPayload message. - * @function verify - * @memberof Records.TimedAccessCallbackPayload - * @static - * @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) { - if (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: - return "timeLimitedAccessType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: - case 9: - break; - } - return null; - }; - /** * Creates a TimedAccessCallbackPayload message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -155186,6 +126091,8 @@ export const Records = $root.Records = (() => { TimedAccessCallbackPayload.fromObject = function fromObject(object, long) { if (object instanceof $root.Records.TimedAccessCallbackPayload) return object; + if (!$util.isObject(object)) + throw TypeError(".Records.TimedAccessCallbackPayload: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -155261,7 +126168,7 @@ export const Records = $root.Records = (() => { let object = {}; if (options.defaults) object.timeLimitedAccessType = options.enums === String ? "INVALID_TIME_LIMITED_ACCESS_TYPE" : 0; - if (message.timeLimitedAccessType != null && message.hasOwnProperty("timeLimitedAccessType")) + if (message.timeLimitedAccessType != null && Object.hasOwnProperty.call(message, "timeLimitedAccessType")) object.timeLimitedAccessType = options.enums === String ? $root.Records.TimeLimitedAccessType[message.timeLimitedAccessType] === undefined ? message.timeLimitedAccessType : $root.Records.TimeLimitedAccessType[message.timeLimitedAccessType] : message.timeLimitedAccessType; return object; }; @@ -155432,19 +126339,6 @@ export const Records = $root.Records = (() => { return writer; }; - /** - * Encodes the specified TimeLimitedAccessRequest message, length delimited. Does not implicitly {@link Records.TimeLimitedAccessRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof Records.TimeLimitedAccessRequest - * @static - * @param {Records.ITimeLimitedAccessRequest} message TimeLimitedAccessRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TimeLimitedAccessRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a TimeLimitedAccessRequest message from the specified reader or buffer. * @function decode @@ -155511,92 +126405,6 @@ export const Records = $root.Records = (() => { return message; }; - /** - * Decodes a TimeLimitedAccessRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Records.TimeLimitedAccessRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Records.TimeLimitedAccessRequest} TimeLimitedAccessRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TimeLimitedAccessRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a TimeLimitedAccessRequest message. - * @function verify - * @memberof Records.TimeLimitedAccessRequest - * @static - * @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) { - if (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"; - for (let i = 0; i < message.accountUid.length; ++i) - if (!(message.accountUid[i] && typeof message.accountUid[i].length === "number" || $util.isString(message.accountUid[i]))) - return "accountUid: buffer[] expected"; - } - if (message.teamUid != null && message.hasOwnProperty("teamUid")) { - if (!Array.isArray(message.teamUid)) - return "teamUid: array expected"; - for (let i = 0; i < message.teamUid.length; ++i) - if (!(message.teamUid[i] && typeof message.teamUid[i].length === "number" || $util.isString(message.teamUid[i]))) - return "teamUid: buffer[] expected"; - } - if (message.recordUid != null && message.hasOwnProperty("recordUid")) { - if (!Array.isArray(message.recordUid)) - return "recordUid: array expected"; - for (let i = 0; i < message.recordUid.length; ++i) - if (!(message.recordUid[i] && typeof message.recordUid[i].length === "number" || $util.isString(message.recordUid[i]))) - return "recordUid: buffer[] expected"; - } - if (message.sharedObjectUid != null && message.hasOwnProperty("sharedObjectUid")) - if (!(message.sharedObjectUid && typeof message.sharedObjectUid.length === "number" || $util.isString(message.sharedObjectUid))) - return "sharedObjectUid: buffer expected"; - if (message.timeLimitedAccessType != null && message.hasOwnProperty("timeLimitedAccessType")) - switch (message.timeLimitedAccessType) { - default: - return "timeLimitedAccessType: 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.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"; - if (message.timerNotificationType != null && message.hasOwnProperty("timerNotificationType")) - switch (message.timerNotificationType) { - default: - return "timerNotificationType: enum value expected"; - case 0: - case 1: - case 2: - break; - } - return null; - }; - /** * Creates a TimeLimitedAccessRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -155608,6 +126416,8 @@ export const Records = $root.Records = (() => { TimeLimitedAccessRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.Records.TimeLimitedAccessRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".Records.TimeLimitedAccessRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -155781,18 +126591,18 @@ export const Records = $root.Records = (() => { for (let j = 0; j < message.recordUid.length; ++j) object.recordUid[j] = options.bytes === String ? $util.base64.encode(message.recordUid[j], 0, message.recordUid[j].length) : options.bytes === Array ? Array.prototype.slice.call(message.recordUid[j]) : message.recordUid[j]; } - if (message.sharedObjectUid != null && message.hasOwnProperty("sharedObjectUid")) + if (message.sharedObjectUid != null && Object.hasOwnProperty.call(message, "sharedObjectUid")) object.sharedObjectUid = options.bytes === String ? $util.base64.encode(message.sharedObjectUid, 0, message.sharedObjectUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.sharedObjectUid) : message.sharedObjectUid; - if (message.timeLimitedAccessType != null && message.hasOwnProperty("timeLimitedAccessType")) + if (message.timeLimitedAccessType != null && Object.hasOwnProperty.call(message, "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 (message.expiration != null && Object.hasOwnProperty.call(message, "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") 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")) + if (message.timerNotificationType != null && Object.hasOwnProperty.call(message, "timerNotificationType")) object.timerNotificationType = options.enums === String ? $root.Records.TimerNotificationType[message.timerNotificationType] === undefined ? message.timerNotificationType : $root.Records.TimerNotificationType[message.timerNotificationType] : message.timerNotificationType; return object; }; @@ -155902,19 +126712,6 @@ export const Records = $root.Records = (() => { return writer; }; - /** - * Encodes the specified TimeLimitedAccessStatus message, length delimited. Does not implicitly {@link Records.TimeLimitedAccessStatus.verify|verify} messages. - * @function encodeDelimited - * @memberof Records.TimeLimitedAccessStatus - * @static - * @param {Records.ITimeLimitedAccessStatus} message TimeLimitedAccessStatus message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TimeLimitedAccessStatus.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a TimeLimitedAccessStatus message from the specified reader or buffer. * @function decode @@ -155955,46 +126752,6 @@ export const Records = $root.Records = (() => { return message; }; - /** - * Decodes a TimeLimitedAccessStatus message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Records.TimeLimitedAccessStatus - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Records.TimeLimitedAccessStatus} TimeLimitedAccessStatus - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TimeLimitedAccessStatus.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a TimeLimitedAccessStatus message. - * @function verify - * @memberof Records.TimeLimitedAccessStatus - * @static - * @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) { - if (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.message != null && message.hasOwnProperty("message")) - if (!$util.isString(message.message)) - return "message: string expected"; - return null; - }; - /** * Creates a TimeLimitedAccessStatus message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -156006,6 +126763,8 @@ export const Records = $root.Records = (() => { TimeLimitedAccessStatus.fromObject = function fromObject(object, long) { if (object instanceof $root.Records.TimeLimitedAccessStatus) return object; + if (!$util.isObject(object)) + throw TypeError(".Records.TimeLimitedAccessStatus: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -156048,9 +126807,9 @@ export const Records = $root.Records = (() => { } object.message = ""; } - if (message.uid != null && message.hasOwnProperty("uid")) + if (message.uid != null && Object.hasOwnProperty.call(message, "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.message != null && message.hasOwnProperty("message")) + if (message.message != null && Object.hasOwnProperty.call(message, "message")) object.message = message.message; return object; }; @@ -156188,19 +126947,6 @@ export const Records = $root.Records = (() => { return writer; }; - /** - * Encodes the specified TimeLimitedAccessResponse message, length delimited. Does not implicitly {@link Records.TimeLimitedAccessResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof Records.TimeLimitedAccessResponse - * @static - * @param {Records.ITimeLimitedAccessResponse} message TimeLimitedAccessResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TimeLimitedAccessResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a TimeLimitedAccessResponse message from the specified reader or buffer. * @function decode @@ -156255,70 +127001,6 @@ export const Records = $root.Records = (() => { return message; }; - /** - * Decodes a TimeLimitedAccessResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Records.TimeLimitedAccessResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Records.TimeLimitedAccessResponse} TimeLimitedAccessResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TimeLimitedAccessResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a TimeLimitedAccessResponse message. - * @function verify - * @memberof Records.TimeLimitedAccessResponse - * @static - * @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) { - if (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"; - if (message.userAccessStatus != null && message.hasOwnProperty("userAccessStatus")) { - 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); - if (error) - return "userAccessStatus." + error; - } - } - if (message.teamAccessStatus != null && message.hasOwnProperty("teamAccessStatus")) { - 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); - if (error) - return "teamAccessStatus." + error; - } - } - if (message.recordAccessStatus != null && message.hasOwnProperty("recordAccessStatus")) { - 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); - if (error) - return "recordAccessStatus." + error; - } - } - return null; - }; - /** * Creates a TimeLimitedAccessResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -156330,6 +127012,8 @@ export const Records = $root.Records = (() => { TimeLimitedAccessResponse.fromObject = function fromObject(object, long) { if (object instanceof $root.Records.TimeLimitedAccessResponse) return object; + if (!$util.isObject(object)) + throw TypeError(".Records.TimeLimitedAccessResponse: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -156349,7 +127033,7 @@ export const Records = $root.Records = (() => { throw TypeError(".Records.TimeLimitedAccessResponse.userAccessStatus: array expected"); message.userAccessStatus = []; for (let i = 0; i < object.userAccessStatus.length; ++i) { - if (typeof object.userAccessStatus[i] !== "object") + if (!$util.isObject(object.userAccessStatus[i])) throw TypeError(".Records.TimeLimitedAccessResponse.userAccessStatus: object expected"); message.userAccessStatus[i] = $root.Records.TimeLimitedAccessStatus.fromObject(object.userAccessStatus[i], long + 1); } @@ -156359,7 +127043,7 @@ export const Records = $root.Records = (() => { throw TypeError(".Records.TimeLimitedAccessResponse.teamAccessStatus: array expected"); message.teamAccessStatus = []; for (let i = 0; i < object.teamAccessStatus.length; ++i) { - if (typeof object.teamAccessStatus[i] !== "object") + if (!$util.isObject(object.teamAccessStatus[i])) throw TypeError(".Records.TimeLimitedAccessResponse.teamAccessStatus: object expected"); message.teamAccessStatus[i] = $root.Records.TimeLimitedAccessStatus.fromObject(object.teamAccessStatus[i], long + 1); } @@ -156369,7 +127053,7 @@ export const Records = $root.Records = (() => { throw TypeError(".Records.TimeLimitedAccessResponse.recordAccessStatus: array expected"); message.recordAccessStatus = []; for (let i = 0; i < object.recordAccessStatus.length; ++i) { - if (typeof object.recordAccessStatus[i] !== "object") + if (!$util.isObject(object.recordAccessStatus[i])) throw TypeError(".Records.TimeLimitedAccessResponse.recordAccessStatus: object expected"); message.recordAccessStatus[i] = $root.Records.TimeLimitedAccessStatus.fromObject(object.recordAccessStatus[i], long + 1); } @@ -156405,7 +127089,7 @@ export const Records = $root.Records = (() => { object.revision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; } else object.revision = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; - if (message.revision != null && message.hasOwnProperty("revision")) + if (message.revision != null && Object.hasOwnProperty.call(message, "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") @@ -156576,19 +127260,6 @@ export const common = $root.common = (() => { return writer; }; - /** - * Encodes the specified TLAProperties message, length delimited. Does not implicitly {@link common.tla.TLAProperties.verify|verify} messages. - * @function encodeDelimited - * @memberof common.tla.TLAProperties - * @static - * @param {common.tla.ITLAProperties} message TLAProperties message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TLAProperties.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a TLAProperties message from the specified reader or buffer. * @function decode @@ -156633,55 +127304,6 @@ export const common = $root.common = (() => { return message; }; - /** - * Decodes a TLAProperties message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof common.tla.TLAProperties - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {common.tla.TLAProperties} TLAProperties - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TLAProperties.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a TLAProperties message. - * @function verify - * @memberof common.tla.TLAProperties - * @static - * @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) { - if (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"; - if (message.timerNotificationType != null && message.hasOwnProperty("timerNotificationType")) - switch (message.timerNotificationType) { - default: - return "timerNotificationType: enum value expected"; - case 0: - case 1: - case 2: - break; - } - if (message.rotateOnExpiration != null && message.hasOwnProperty("rotateOnExpiration")) - if (typeof message.rotateOnExpiration !== "boolean") - return "rotateOnExpiration: boolean expected"; - return null; - }; - /** * Creates a TLAProperties message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -156693,6 +127315,8 @@ export const common = $root.common = (() => { TLAProperties.fromObject = function fromObject(object, long) { if (object instanceof $root.common.tla.TLAProperties) return object; + if (!$util.isObject(object)) + throw TypeError(".common.tla.TLAProperties: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -156758,16 +127382,16 @@ export const common = $root.common = (() => { object.timerNotificationType = options.enums === String ? "NOTIFICATION_OFF" : 0; object.rotateOnExpiration = false; } - if (message.expiration != null && message.hasOwnProperty("expiration")) + if (message.expiration != null && Object.hasOwnProperty.call(message, "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") 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")) + if (message.timerNotificationType != null && Object.hasOwnProperty.call(message, "timerNotificationType")) object.timerNotificationType = options.enums === String ? $root.common.tla.TimerNotificationType[message.timerNotificationType] === undefined ? message.timerNotificationType : $root.common.tla.TimerNotificationType[message.timerNotificationType] : message.timerNotificationType; - if (message.rotateOnExpiration != null && message.hasOwnProperty("rotateOnExpiration")) + if (message.rotateOnExpiration != null && Object.hasOwnProperty.call(message, "rotateOnExpiration")) object.rotateOnExpiration = message.rotateOnExpiration; return object; }; @@ -156908,19 +127532,6 @@ export const AccountSummary = $root.AccountSummary = (() => { return writer; }; - /** - * Encodes the specified AccountSummaryRequest message, length delimited. Does not implicitly {@link AccountSummary.AccountSummaryRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof AccountSummary.AccountSummaryRequest - * @static - * @param {AccountSummary.IAccountSummaryRequest} message AccountSummaryRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - AccountSummaryRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes an AccountSummaryRequest message from the specified reader or buffer. * @function decode @@ -156961,46 +127572,6 @@ export const AccountSummary = $root.AccountSummary = (() => { return message; }; - /** - * Decodes an AccountSummaryRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof AccountSummary.AccountSummaryRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {AccountSummary.AccountSummaryRequest} AccountSummaryRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - AccountSummaryRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an AccountSummaryRequest message. - * @function verify - * @memberof AccountSummary.AccountSummaryRequest - * @static - * @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) { - if (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"; - if (message.includeRecentActivity != null && message.hasOwnProperty("includeRecentActivity")) - if (typeof message.includeRecentActivity !== "boolean") - return "includeRecentActivity: boolean expected"; - return null; - }; - /** * Creates an AccountSummaryRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -157012,6 +127583,8 @@ export const AccountSummary = $root.AccountSummary = (() => { AccountSummaryRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.AccountSummary.AccountSummaryRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".AccountSummary.AccountSummaryRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -157045,9 +127618,9 @@ export const AccountSummary = $root.AccountSummary = (() => { object.summaryVersion = 0; object.includeRecentActivity = false; } - if (message.summaryVersion != null && message.hasOwnProperty("summaryVersion")) + if (message.summaryVersion != null && Object.hasOwnProperty.call(message, "summaryVersion")) object.summaryVersion = message.summaryVersion; - if (message.includeRecentActivity != null && message.hasOwnProperty("includeRecentActivity")) + if (message.includeRecentActivity != null && Object.hasOwnProperty.call(message, "includeRecentActivity")) object.includeRecentActivity = message.includeRecentActivity; return object; }; @@ -157365,19 +127938,6 @@ export const AccountSummary = $root.AccountSummary = (() => { return writer; }; - /** - * Encodes the specified AccountSummaryElements message, length delimited. Does not implicitly {@link AccountSummary.AccountSummaryElements.verify|verify} messages. - * @function encodeDelimited - * @memberof AccountSummary.AccountSummaryElements - * @static - * @param {AccountSummary.IAccountSummaryElements} message AccountSummaryElements message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - AccountSummaryElements.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes an AccountSummaryElements message from the specified reader or buffer. * @function decode @@ -157500,138 +128060,6 @@ export const AccountSummary = $root.AccountSummary = (() => { return message; }; - /** - * Decodes an AccountSummaryElements message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof AccountSummary.AccountSummaryElements - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {AccountSummary.AccountSummaryElements} AccountSummaryElements - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - AccountSummaryElements.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an AccountSummaryElements message. - * @function verify - * @memberof AccountSummary.AccountSummaryElements - * @static - * @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) { - if (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); - if (error) - return "settings." + error; - } - if (message.keysInfo != null && message.hasOwnProperty("keysInfo")) { - let error = $root.AccountSummary.KeysInfo.verify(message.keysInfo, long + 1); - if (error) - return "keysInfo." + error; - } - if (message.syncLogs != null && message.hasOwnProperty("syncLogs")) { - 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); - if (error) - return "syncLogs." + error; - } - } - if (message.isEnterpriseAdmin != null && message.hasOwnProperty("isEnterpriseAdmin")) - 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); - if (error) - return "license." + error; - } - if (message.group != null && message.hasOwnProperty("group")) { - let error = $root.AccountSummary.Group.verify(message.group, long + 1); - if (error) - return "group." + error; - } - if (message.Enforcements != null && message.hasOwnProperty("Enforcements")) { - let error = $root.AccountSummary.Enforcements.verify(message.Enforcements, long + 1); - if (error) - return "Enforcements." + error; - } - if (message.Images != null && message.hasOwnProperty("Images")) { - 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); - if (error) - return "Images." + error; - } - } - if (message.personalLicense != null && message.hasOwnProperty("personalLicense")) { - let error = $root.AccountSummary.License.verify(message.personalLicense, long + 1); - if (error) - return "personalLicense." + error; - } - if (message.fixSharedFolderRecords != null && message.hasOwnProperty("fixSharedFolderRecords")) - if (typeof message.fixSharedFolderRecords !== "boolean") - return "fixSharedFolderRecords: boolean expected"; - if (message.usernames != null && message.hasOwnProperty("usernames")) { - if (!Array.isArray(message.usernames)) - return "usernames: array expected"; - for (let i = 0; i < message.usernames.length; ++i) - if (!$util.isString(message.usernames[i])) - return "usernames: string[] expected"; - } - if (message.devices != null && message.hasOwnProperty("devices")) { - 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); - if (error) - return "devices." + error; - } - } - if (message.isShareAdmin != null && message.hasOwnProperty("isShareAdmin")) - if (typeof message.isShareAdmin !== "boolean") - return "isShareAdmin: boolean expected"; - if (message.accountRecovery != null && message.hasOwnProperty("accountRecovery")) - if (typeof message.accountRecovery !== "boolean") - return "accountRecovery: boolean expected"; - if (message.accountRecoveryPrompt != null && message.hasOwnProperty("accountRecoveryPrompt")) - if (typeof message.accountRecoveryPrompt !== "boolean") - return "accountRecoveryPrompt: boolean expected"; - if (message.minMasterPasswordLengthNoPrompt != null && message.hasOwnProperty("minMasterPasswordLengthNoPrompt")) - if (!$util.isInteger(message.minMasterPasswordLengthNoPrompt)) - return "minMasterPasswordLengthNoPrompt: integer expected"; - if (message.forbidKeyType2 != null && message.hasOwnProperty("forbidKeyType2")) - if (typeof message.forbidKeyType2 !== "boolean") - return "forbidKeyType2: boolean expected"; - if (message.forbidKeyType1 != null && message.hasOwnProperty("forbidKeyType1")) - if (typeof message.forbidKeyType1 !== "boolean") - return "forbidKeyType1: boolean expected"; - if (message.disallowedFeatures != null && message.hasOwnProperty("disallowedFeatures")) { - if (!Array.isArray(message.disallowedFeatures)) - return "disallowedFeatures: array expected"; - for (let i = 0; i < message.disallowedFeatures.length; ++i) - if (!$util.isString(message.disallowedFeatures[i])) - return "disallowedFeatures: string[] expected"; - } - return null; - }; - /** * Creates an AccountSummaryElements message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -157643,6 +128071,8 @@ export const AccountSummary = $root.AccountSummary = (() => { AccountSummaryElements.fromObject = function fromObject(object, long) { if (object instanceof $root.AccountSummary.AccountSummaryElements) return object; + if (!$util.isObject(object)) + throw TypeError(".AccountSummary.AccountSummaryElements: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -157654,12 +128084,12 @@ export const AccountSummary = $root.AccountSummary = (() => { else if (object.clientKey.length >= 0) message.clientKey = object.clientKey; if (object.settings != null) { - if (typeof object.settings !== "object") + if (!$util.isObject(object.settings)) throw TypeError(".AccountSummary.AccountSummaryElements.settings: object expected"); message.settings = $root.AccountSummary.Settings.fromObject(object.settings, long + 1); } if (object.keysInfo != null) { - if (typeof object.keysInfo !== "object") + if (!$util.isObject(object.keysInfo)) throw TypeError(".AccountSummary.AccountSummaryElements.keysInfo: object expected"); message.keysInfo = $root.AccountSummary.KeysInfo.fromObject(object.keysInfo, long + 1); } @@ -157668,7 +128098,7 @@ export const AccountSummary = $root.AccountSummary = (() => { throw TypeError(".AccountSummary.AccountSummaryElements.syncLogs: array expected"); message.syncLogs = []; for (let i = 0; i < object.syncLogs.length; ++i) { - if (typeof object.syncLogs[i] !== "object") + if (!$util.isObject(object.syncLogs[i])) throw TypeError(".AccountSummary.AccountSummaryElements.syncLogs: object expected"); message.syncLogs[i] = $root.AccountSummary.SyncLog.fromObject(object.syncLogs[i], long + 1); } @@ -157676,17 +128106,17 @@ export const AccountSummary = $root.AccountSummary = (() => { if (object.isEnterpriseAdmin != null) message.isEnterpriseAdmin = Boolean(object.isEnterpriseAdmin); if (object.license != null) { - if (typeof object.license !== "object") + if (!$util.isObject(object.license)) throw TypeError(".AccountSummary.AccountSummaryElements.license: object expected"); message.license = $root.AccountSummary.License.fromObject(object.license, long + 1); } if (object.group != null) { - if (typeof object.group !== "object") + if (!$util.isObject(object.group)) throw TypeError(".AccountSummary.AccountSummaryElements.group: object expected"); message.group = $root.AccountSummary.Group.fromObject(object.group, long + 1); } if (object.Enforcements != null) { - if (typeof object.Enforcements !== "object") + if (!$util.isObject(object.Enforcements)) throw TypeError(".AccountSummary.AccountSummaryElements.Enforcements: object expected"); message.Enforcements = $root.AccountSummary.Enforcements.fromObject(object.Enforcements, long + 1); } @@ -157695,13 +128125,13 @@ export const AccountSummary = $root.AccountSummary = (() => { throw TypeError(".AccountSummary.AccountSummaryElements.Images: array expected"); message.Images = []; for (let i = 0; i < object.Images.length; ++i) { - if (typeof object.Images[i] !== "object") + if (!$util.isObject(object.Images[i])) throw TypeError(".AccountSummary.AccountSummaryElements.Images: object expected"); message.Images[i] = $root.AccountSummary.KeyValue.fromObject(object.Images[i], long + 1); } } if (object.personalLicense != null) { - if (typeof object.personalLicense !== "object") + if (!$util.isObject(object.personalLicense)) throw TypeError(".AccountSummary.AccountSummaryElements.personalLicense: object expected"); message.personalLicense = $root.AccountSummary.License.fromObject(object.personalLicense, long + 1); } @@ -157719,7 +128149,7 @@ export const AccountSummary = $root.AccountSummary = (() => { throw TypeError(".AccountSummary.AccountSummaryElements.devices: array expected"); message.devices = []; for (let i = 0; i < object.devices.length; ++i) { - if (typeof object.devices[i] !== "object") + if (!$util.isObject(object.devices[i])) throw TypeError(".AccountSummary.AccountSummaryElements.devices: object expected"); message.devices[i] = $root.AccountSummary.DeviceInfo.fromObject(object.devices[i], long + 1); } @@ -157793,33 +128223,33 @@ export const AccountSummary = $root.AccountSummary = (() => { object.forbidKeyType2 = false; object.forbidKeyType1 = false; } - if (message.clientKey != null && message.hasOwnProperty("clientKey")) + if (message.clientKey != null && Object.hasOwnProperty.call(message, "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")) + if (message.settings != null && Object.hasOwnProperty.call(message, "settings")) object.settings = $root.AccountSummary.Settings.toObject(message.settings, options, q + 1); - if (message.keysInfo != null && message.hasOwnProperty("keysInfo")) + if (message.keysInfo != null && Object.hasOwnProperty.call(message, "keysInfo")) object.keysInfo = $root.AccountSummary.KeysInfo.toObject(message.keysInfo, options, q + 1); 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); } - if (message.isEnterpriseAdmin != null && message.hasOwnProperty("isEnterpriseAdmin")) + if (message.isEnterpriseAdmin != null && Object.hasOwnProperty.call(message, "isEnterpriseAdmin")) object.isEnterpriseAdmin = message.isEnterpriseAdmin; - if (message.license != null && message.hasOwnProperty("license")) + if (message.license != null && Object.hasOwnProperty.call(message, "license")) object.license = $root.AccountSummary.License.toObject(message.license, options, q + 1); - if (message.group != null && message.hasOwnProperty("group")) + if (message.group != null && Object.hasOwnProperty.call(message, "group")) object.group = $root.AccountSummary.Group.toObject(message.group, options, q + 1); - if (message.Enforcements != null && message.hasOwnProperty("Enforcements")) + if (message.Enforcements != null && Object.hasOwnProperty.call(message, "Enforcements")) object.Enforcements = $root.AccountSummary.Enforcements.toObject(message.Enforcements, options, q + 1); 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); } - if (message.personalLicense != null && message.hasOwnProperty("personalLicense")) + if (message.personalLicense != null && Object.hasOwnProperty.call(message, "personalLicense")) object.personalLicense = $root.AccountSummary.License.toObject(message.personalLicense, options, q + 1); - if (message.fixSharedFolderRecords != null && message.hasOwnProperty("fixSharedFolderRecords")) + if (message.fixSharedFolderRecords != null && Object.hasOwnProperty.call(message, "fixSharedFolderRecords")) object.fixSharedFolderRecords = message.fixSharedFolderRecords; if (message.usernames && message.usernames.length) { object.usernames = []; @@ -157831,17 +128261,17 @@ export const AccountSummary = $root.AccountSummary = (() => { for (let j = 0; j < message.devices.length; ++j) object.devices[j] = $root.AccountSummary.DeviceInfo.toObject(message.devices[j], options, q + 1); } - if (message.isShareAdmin != null && message.hasOwnProperty("isShareAdmin")) + if (message.isShareAdmin != null && Object.hasOwnProperty.call(message, "isShareAdmin")) object.isShareAdmin = message.isShareAdmin; - if (message.accountRecovery != null && message.hasOwnProperty("accountRecovery")) + if (message.accountRecovery != null && Object.hasOwnProperty.call(message, "accountRecovery")) object.accountRecovery = message.accountRecovery; - if (message.accountRecoveryPrompt != null && message.hasOwnProperty("accountRecoveryPrompt")) + if (message.accountRecoveryPrompt != null && Object.hasOwnProperty.call(message, "accountRecoveryPrompt")) object.accountRecoveryPrompt = message.accountRecoveryPrompt; - if (message.minMasterPasswordLengthNoPrompt != null && message.hasOwnProperty("minMasterPasswordLengthNoPrompt")) + if (message.minMasterPasswordLengthNoPrompt != null && Object.hasOwnProperty.call(message, "minMasterPasswordLengthNoPrompt")) object.minMasterPasswordLengthNoPrompt = message.minMasterPasswordLengthNoPrompt; - if (message.forbidKeyType2 != null && message.hasOwnProperty("forbidKeyType2")) + if (message.forbidKeyType2 != null && Object.hasOwnProperty.call(message, "forbidKeyType2")) object.forbidKeyType2 = message.forbidKeyType2; - if (message.forbidKeyType1 != null && message.hasOwnProperty("forbidKeyType1")) + if (message.forbidKeyType1 != null && Object.hasOwnProperty.call(message, "forbidKeyType1")) object.forbidKeyType1 = message.forbidKeyType1; if (message.disallowedFeatures && message.disallowedFeatures.length) { object.disallowedFeatures = []; @@ -158077,19 +128507,6 @@ export const AccountSummary = $root.AccountSummary = (() => { return writer; }; - /** - * Encodes the specified DeviceInfo message, length delimited. Does not implicitly {@link AccountSummary.DeviceInfo.verify|verify} messages. - * @function encodeDelimited - * @memberof AccountSummary.DeviceInfo - * @static - * @param {AccountSummary.IDeviceInfo} message DeviceInfo message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - DeviceInfo.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a DeviceInfo message from the specified reader or buffer. * @function decode @@ -158174,93 +128591,6 @@ export const AccountSummary = $root.AccountSummary = (() => { return message; }; - /** - * Decodes a DeviceInfo message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof AccountSummary.DeviceInfo - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {AccountSummary.DeviceInfo} DeviceInfo - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - DeviceInfo.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a DeviceInfo message. - * @function verify - * @memberof AccountSummary.DeviceInfo - * @static - * @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) { - if (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"; - if (message.deviceName != null && message.hasOwnProperty("deviceName")) - if (!$util.isString(message.deviceName)) - return "deviceName: string expected"; - if (message.deviceStatus != null && message.hasOwnProperty("deviceStatus")) - switch (message.deviceStatus) { - default: - return "deviceStatus: enum value expected"; - case 0: - case 1: - case 2: - case 3: - break; - } - if (message.devicePublicKey != null && message.hasOwnProperty("devicePublicKey")) - if (!(message.devicePublicKey && typeof message.devicePublicKey.length === "number" || $util.isString(message.devicePublicKey))) - return "devicePublicKey: buffer expected"; - if (message.encryptedDataKeyDoNotUse != null && message.hasOwnProperty("encryptedDataKeyDoNotUse")) - if (!(message.encryptedDataKeyDoNotUse && typeof message.encryptedDataKeyDoNotUse.length === "number" || $util.isString(message.encryptedDataKeyDoNotUse))) - return "encryptedDataKeyDoNotUse: buffer expected"; - if (message.clientVersion != null && message.hasOwnProperty("clientVersion")) - if (!$util.isString(message.clientVersion)) - return "clientVersion: string expected"; - if (message.username != null && message.hasOwnProperty("username")) - if (!$util.isString(message.username)) - return "username: string expected"; - if (message.ipAddress != null && message.hasOwnProperty("ipAddress")) - if (!$util.isString(message.ipAddress)) - return "ipAddress: string expected"; - if (message.approveRequestTime != null && message.hasOwnProperty("approveRequestTime")) - if (!$util.isInteger(message.approveRequestTime) && !(message.approveRequestTime && $util.isInteger(message.approveRequestTime.low) && $util.isInteger(message.approveRequestTime.high))) - return "approveRequestTime: integer|Long expected"; - if (message.encryptedDataKeyPresent != null && message.hasOwnProperty("encryptedDataKeyPresent")) - if (typeof message.encryptedDataKeyPresent !== "boolean") - return "encryptedDataKeyPresent: boolean expected"; - if (message.groupId != null && message.hasOwnProperty("groupId")) - if (!$util.isInteger(message.groupId) && !(message.groupId && $util.isInteger(message.groupId.low) && $util.isInteger(message.groupId.high))) - return "groupId: integer|Long expected"; - if (message.devicePlatform != null && message.hasOwnProperty("devicePlatform")) - if (!$util.isString(message.devicePlatform)) - return "devicePlatform: string expected"; - if (message.clientFormFactor != null && message.hasOwnProperty("clientFormFactor")) - switch (message.clientFormFactor) { - default: - return "clientFormFactor: enum value expected"; - case 0: - case 1: - case 2: - case 3: - break; - } - return null; - }; - /** * Creates a DeviceInfo message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -158272,6 +128602,8 @@ export const AccountSummary = $root.AccountSummary = (() => { DeviceInfo.fromObject = function fromObject(object, long) { if (object instanceof $root.AccountSummary.DeviceInfo) return object; + if (!$util.isObject(object)) + throw TypeError(".AccountSummary.DeviceInfo: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -158431,41 +128763,41 @@ export const AccountSummary = $root.AccountSummary = (() => { object.devicePlatform = ""; object.clientFormFactor = options.enums === String ? "FF_EMPTY" : 0; } - if (message.encryptedDeviceToken != null && message.hasOwnProperty("encryptedDeviceToken")) + if (message.encryptedDeviceToken != null && Object.hasOwnProperty.call(message, "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.deviceName != null && message.hasOwnProperty("deviceName")) + if (message.deviceName != null && Object.hasOwnProperty.call(message, "deviceName")) object.deviceName = message.deviceName; - if (message.deviceStatus != null && message.hasOwnProperty("deviceStatus")) + if (message.deviceStatus != null && Object.hasOwnProperty.call(message, "deviceStatus")) object.deviceStatus = options.enums === String ? $root.Authentication.DeviceStatus[message.deviceStatus] === undefined ? message.deviceStatus : $root.Authentication.DeviceStatus[message.deviceStatus] : message.deviceStatus; - if (message.devicePublicKey != null && message.hasOwnProperty("devicePublicKey")) + if (message.devicePublicKey != null && Object.hasOwnProperty.call(message, "devicePublicKey")) object.devicePublicKey = options.bytes === String ? $util.base64.encode(message.devicePublicKey, 0, message.devicePublicKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.devicePublicKey) : message.devicePublicKey; - if (message.encryptedDataKeyDoNotUse != null && message.hasOwnProperty("encryptedDataKeyDoNotUse")) + if (message.encryptedDataKeyDoNotUse != null && Object.hasOwnProperty.call(message, "encryptedDataKeyDoNotUse")) object.encryptedDataKeyDoNotUse = options.bytes === String ? $util.base64.encode(message.encryptedDataKeyDoNotUse, 0, message.encryptedDataKeyDoNotUse.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedDataKeyDoNotUse) : message.encryptedDataKeyDoNotUse; - if (message.clientVersion != null && message.hasOwnProperty("clientVersion")) + if (message.clientVersion != null && Object.hasOwnProperty.call(message, "clientVersion")) object.clientVersion = message.clientVersion; - if (message.username != null && message.hasOwnProperty("username")) + if (message.username != null && Object.hasOwnProperty.call(message, "username")) object.username = message.username; - if (message.ipAddress != null && message.hasOwnProperty("ipAddress")) + if (message.ipAddress != null && Object.hasOwnProperty.call(message, "ipAddress")) object.ipAddress = message.ipAddress; - if (message.approveRequestTime != null && message.hasOwnProperty("approveRequestTime")) + if (message.approveRequestTime != null && Object.hasOwnProperty.call(message, "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") 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")) + if (message.encryptedDataKeyPresent != null && Object.hasOwnProperty.call(message, "encryptedDataKeyPresent")) object.encryptedDataKeyPresent = message.encryptedDataKeyPresent; - if (message.groupId != null && message.hasOwnProperty("groupId")) + if (message.groupId != null && Object.hasOwnProperty.call(message, "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") 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; - if (message.devicePlatform != null && message.hasOwnProperty("devicePlatform")) + if (message.devicePlatform != null && Object.hasOwnProperty.call(message, "devicePlatform")) object.devicePlatform = message.devicePlatform; - if (message.clientFormFactor != null && message.hasOwnProperty("clientFormFactor")) + if (message.clientFormFactor != null && Object.hasOwnProperty.call(message, "clientFormFactor")) object.clientFormFactor = options.enums === String ? $root.Authentication.ClientFormFactor[message.clientFormFactor] === undefined ? message.clientFormFactor : $root.Authentication.ClientFormFactor[message.clientFormFactor] : message.clientFormFactor; return object; }; @@ -158630,19 +128962,6 @@ export const AccountSummary = $root.AccountSummary = (() => { return writer; }; - /** - * Encodes the specified KeysInfo message, length delimited. Does not implicitly {@link AccountSummary.KeysInfo.verify|verify} messages. - * @function encodeDelimited - * @memberof AccountSummary.KeysInfo - * @static - * @param {AccountSummary.IKeysInfo} message KeysInfo message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - KeysInfo.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a KeysInfo message from the specified reader or buffer. * @function decode @@ -158703,61 +129022,6 @@ export const AccountSummary = $root.AccountSummary = (() => { return message; }; - /** - * Decodes a KeysInfo message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof AccountSummary.KeysInfo - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {AccountSummary.KeysInfo} KeysInfo - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - KeysInfo.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a KeysInfo message. - * @function verify - * @memberof AccountSummary.KeysInfo - * @static - * @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) { - if (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"; - if (message.encryptedDataKey != null && message.hasOwnProperty("encryptedDataKey")) - if (!(message.encryptedDataKey && typeof message.encryptedDataKey.length === "number" || $util.isString(message.encryptedDataKey))) - return "encryptedDataKey: buffer expected"; - if (message.dataKeyBackupDate != null && message.hasOwnProperty("dataKeyBackupDate")) - if (typeof message.dataKeyBackupDate !== "number") - return "dataKeyBackupDate: number expected"; - if (message.userAuthUid != null && message.hasOwnProperty("userAuthUid")) - if (!(message.userAuthUid && typeof message.userAuthUid.length === "number" || $util.isString(message.userAuthUid))) - return "userAuthUid: buffer expected"; - if (message.encryptedPrivateKey != null && message.hasOwnProperty("encryptedPrivateKey")) - if (!(message.encryptedPrivateKey && typeof message.encryptedPrivateKey.length === "number" || $util.isString(message.encryptedPrivateKey))) - return "encryptedPrivateKey: buffer expected"; - if (message.encryptedEccPrivateKey != null && message.hasOwnProperty("encryptedEccPrivateKey")) - if (!(message.encryptedEccPrivateKey && typeof message.encryptedEccPrivateKey.length === "number" || $util.isString(message.encryptedEccPrivateKey))) - return "encryptedEccPrivateKey: buffer expected"; - if (message.eccPublicKey != null && message.hasOwnProperty("eccPublicKey")) - if (!(message.eccPublicKey && typeof message.eccPublicKey.length === "number" || $util.isString(message.eccPublicKey))) - return "eccPublicKey: buffer expected"; - return null; - }; - /** * Creates a KeysInfo message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -158769,6 +129033,8 @@ export const AccountSummary = $root.AccountSummary = (() => { KeysInfo.fromObject = function fromObject(object, long) { if (object instanceof $root.AccountSummary.KeysInfo) return object; + if (!$util.isObject(object)) + throw TypeError(".AccountSummary.KeysInfo: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -158871,19 +129137,19 @@ export const AccountSummary = $root.AccountSummary = (() => { object.eccPublicKey = $util.newBuffer(object.eccPublicKey); } } - if (message.encryptionParams != null && message.hasOwnProperty("encryptionParams")) + if (message.encryptionParams != null && Object.hasOwnProperty.call(message, "encryptionParams")) object.encryptionParams = options.bytes === String ? $util.base64.encode(message.encryptionParams, 0, message.encryptionParams.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptionParams) : message.encryptionParams; - if (message.encryptedDataKey != null && message.hasOwnProperty("encryptedDataKey")) + if (message.encryptedDataKey != null && Object.hasOwnProperty.call(message, "encryptedDataKey")) object.encryptedDataKey = options.bytes === String ? $util.base64.encode(message.encryptedDataKey, 0, message.encryptedDataKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedDataKey) : message.encryptedDataKey; - if (message.dataKeyBackupDate != null && message.hasOwnProperty("dataKeyBackupDate")) + if (message.dataKeyBackupDate != null && Object.hasOwnProperty.call(message, "dataKeyBackupDate")) object.dataKeyBackupDate = options.json && !isFinite(message.dataKeyBackupDate) ? String(message.dataKeyBackupDate) : message.dataKeyBackupDate; - if (message.userAuthUid != null && message.hasOwnProperty("userAuthUid")) + if (message.userAuthUid != null && Object.hasOwnProperty.call(message, "userAuthUid")) object.userAuthUid = options.bytes === String ? $util.base64.encode(message.userAuthUid, 0, message.userAuthUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.userAuthUid) : message.userAuthUid; - if (message.encryptedPrivateKey != null && message.hasOwnProperty("encryptedPrivateKey")) + if (message.encryptedPrivateKey != null && Object.hasOwnProperty.call(message, "encryptedPrivateKey")) object.encryptedPrivateKey = options.bytes === String ? $util.base64.encode(message.encryptedPrivateKey, 0, message.encryptedPrivateKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedPrivateKey) : message.encryptedPrivateKey; - if (message.encryptedEccPrivateKey != null && message.hasOwnProperty("encryptedEccPrivateKey")) + if (message.encryptedEccPrivateKey != null && Object.hasOwnProperty.call(message, "encryptedEccPrivateKey")) object.encryptedEccPrivateKey = options.bytes === String ? $util.base64.encode(message.encryptedEccPrivateKey, 0, message.encryptedEccPrivateKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedEccPrivateKey) : message.encryptedEccPrivateKey; - if (message.eccPublicKey != null && message.hasOwnProperty("eccPublicKey")) + if (message.eccPublicKey != null && Object.hasOwnProperty.call(message, "eccPublicKey")) object.eccPublicKey = options.bytes === String ? $util.base64.encode(message.eccPublicKey, 0, message.eccPublicKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.eccPublicKey) : message.eccPublicKey; return object; }; @@ -159037,19 +129303,6 @@ export const AccountSummary = $root.AccountSummary = (() => { return writer; }; - /** - * Encodes the specified SyncLog message, length delimited. Does not implicitly {@link AccountSummary.SyncLog.verify|verify} messages. - * @function encodeDelimited - * @memberof AccountSummary.SyncLog - * @static - * @param {AccountSummary.ISyncLog} message SyncLog message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SyncLog.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a SyncLog message from the specified reader or buffer. * @function decode @@ -159106,58 +129359,6 @@ export const AccountSummary = $root.AccountSummary = (() => { return message; }; - /** - * Decodes a SyncLog message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof AccountSummary.SyncLog - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {AccountSummary.SyncLog} SyncLog - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SyncLog.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a SyncLog message. - * @function verify - * @memberof AccountSummary.SyncLog - * @static - * @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) { - if (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"; - if (message.secondsAgo != null && message.hasOwnProperty("secondsAgo")) - if (!$util.isInteger(message.secondsAgo) && !(message.secondsAgo && $util.isInteger(message.secondsAgo.low) && $util.isInteger(message.secondsAgo.high))) - return "secondsAgo: integer|Long expected"; - if (message.deviceName != null && message.hasOwnProperty("deviceName")) - if (!$util.isString(message.deviceName)) - return "deviceName: string expected"; - if (message.countryCode != null && message.hasOwnProperty("countryCode")) - if (!$util.isString(message.countryCode)) - return "countryCode: string expected"; - if (message.deviceUID != null && message.hasOwnProperty("deviceUID")) - if (!(message.deviceUID && typeof message.deviceUID.length === "number" || $util.isString(message.deviceUID))) - return "deviceUID: buffer expected"; - if (message.ipAddress != null && message.hasOwnProperty("ipAddress")) - if (!$util.isString(message.ipAddress)) - return "ipAddress: string expected"; - return null; - }; - /** * Creates a SyncLog message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -159169,6 +129370,8 @@ export const AccountSummary = $root.AccountSummary = (() => { SyncLog.fromObject = function fromObject(object, long) { if (object instanceof $root.AccountSummary.SyncLog) return object; + if (!$util.isObject(object)) + throw TypeError(".AccountSummary.SyncLog: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -159234,22 +129437,22 @@ export const AccountSummary = $root.AccountSummary = (() => { } object.ipAddress = ""; } - if (message.countryName != null && message.hasOwnProperty("countryName")) + if (message.countryName != null && Object.hasOwnProperty.call(message, "countryName")) object.countryName = message.countryName; - if (message.secondsAgo != null && message.hasOwnProperty("secondsAgo")) + if (message.secondsAgo != null && Object.hasOwnProperty.call(message, "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") 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; - if (message.deviceName != null && message.hasOwnProperty("deviceName")) + if (message.deviceName != null && Object.hasOwnProperty.call(message, "deviceName")) object.deviceName = message.deviceName; - if (message.countryCode != null && message.hasOwnProperty("countryCode")) + if (message.countryCode != null && Object.hasOwnProperty.call(message, "countryCode")) object.countryCode = message.countryCode; - if (message.deviceUID != null && message.hasOwnProperty("deviceUID")) + if (message.deviceUID != null && Object.hasOwnProperty.call(message, "deviceUID")) object.deviceUID = options.bytes === String ? $util.base64.encode(message.deviceUID, 0, message.deviceUID.length) : options.bytes === Array ? Array.prototype.slice.call(message.deviceUID) : message.deviceUID; - if (message.ipAddress != null && message.hasOwnProperty("ipAddress")) + if (message.ipAddress != null && Object.hasOwnProperty.call(message, "ipAddress")) object.ipAddress = message.ipAddress; return object; }; @@ -159711,19 +129914,6 @@ export const AccountSummary = $root.AccountSummary = (() => { return writer; }; - /** - * Encodes the specified License message, length delimited. Does not implicitly {@link AccountSummary.License.verify|verify} messages. - * @function encodeDelimited - * @memberof AccountSummary.License - * @static - * @param {AccountSummary.ILicense} message License message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - License.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a License message from the specified reader or buffer. * @function decode @@ -159892,144 +130082,6 @@ export const AccountSummary = $root.AccountSummary = (() => { return message; }; - /** - * Decodes a License message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof AccountSummary.License - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {AccountSummary.License} License - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - License.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a License message. - * @function verify - * @memberof AccountSummary.License - * @static - * @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) { - if (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"; - if (message.productTypeId != null && message.hasOwnProperty("productTypeId")) - if (!$util.isInteger(message.productTypeId)) - return "productTypeId: integer expected"; - if (message.productTypeName != null && message.hasOwnProperty("productTypeName")) - if (!$util.isString(message.productTypeName)) - return "productTypeName: string expected"; - if (message.expirationDate != null && message.hasOwnProperty("expirationDate")) - if (!$util.isString(message.expirationDate)) - return "expirationDate: string expected"; - if (message.secondsUntilExpiration != null && message.hasOwnProperty("secondsUntilExpiration")) - if (!$util.isInteger(message.secondsUntilExpiration) && !(message.secondsUntilExpiration && $util.isInteger(message.secondsUntilExpiration.low) && $util.isInteger(message.secondsUntilExpiration.high))) - return "secondsUntilExpiration: integer|Long expected"; - if (message.maxDevices != null && message.hasOwnProperty("maxDevices")) - if (!$util.isInteger(message.maxDevices)) - return "maxDevices: integer expected"; - if (message.filePlanType != null && message.hasOwnProperty("filePlanType")) - if (!$util.isInteger(message.filePlanType)) - return "filePlanType: integer expected"; - if (message.bytesUsed != null && message.hasOwnProperty("bytesUsed")) - if (!$util.isInteger(message.bytesUsed) && !(message.bytesUsed && $util.isInteger(message.bytesUsed.low) && $util.isInteger(message.bytesUsed.high))) - return "bytesUsed: integer|Long expected"; - if (message.bytesTotal != null && message.hasOwnProperty("bytesTotal")) - if (!$util.isInteger(message.bytesTotal) && !(message.bytesTotal && $util.isInteger(message.bytesTotal.low) && $util.isInteger(message.bytesTotal.high))) - return "bytesTotal: integer|Long expected"; - if (message.secondsUntilStorageExpiration != null && message.hasOwnProperty("secondsUntilStorageExpiration")) - if (!$util.isInteger(message.secondsUntilStorageExpiration) && !(message.secondsUntilStorageExpiration && $util.isInteger(message.secondsUntilStorageExpiration.low) && $util.isInteger(message.secondsUntilStorageExpiration.high))) - return "secondsUntilStorageExpiration: integer|Long expected"; - if (message.storageExpirationDate != null && message.hasOwnProperty("storageExpirationDate")) - if (!$util.isString(message.storageExpirationDate)) - return "storageExpirationDate: string expected"; - if (message.hasAutoRenewableAppstoreSubscription != null && message.hasOwnProperty("hasAutoRenewableAppstoreSubscription")) - if (typeof message.hasAutoRenewableAppstoreSubscription !== "boolean") - return "hasAutoRenewableAppstoreSubscription: boolean expected"; - if (message.accountType != null && message.hasOwnProperty("accountType")) - if (!$util.isInteger(message.accountType)) - return "accountType: integer expected"; - if (message.uploadsRemaining != null && message.hasOwnProperty("uploadsRemaining")) - if (!$util.isInteger(message.uploadsRemaining)) - return "uploadsRemaining: integer expected"; - if (message.enterpriseId != null && message.hasOwnProperty("enterpriseId")) - if (!$util.isInteger(message.enterpriseId)) - return "enterpriseId: integer expected"; - if (message.chatEnabled != null && message.hasOwnProperty("chatEnabled")) - if (typeof message.chatEnabled !== "boolean") - return "chatEnabled: boolean expected"; - if (message.auditAndReportingEnabled != null && message.hasOwnProperty("auditAndReportingEnabled")) - if (typeof message.auditAndReportingEnabled !== "boolean") - return "auditAndReportingEnabled: boolean expected"; - if (message.breachWatchFeatureDisable != null && message.hasOwnProperty("breachWatchFeatureDisable")) - if (typeof message.breachWatchFeatureDisable !== "boolean") - return "breachWatchFeatureDisable: boolean expected"; - if (message.accountUid != null && message.hasOwnProperty("accountUid")) - if (!(message.accountUid && typeof message.accountUid.length === "number" || $util.isString(message.accountUid))) - return "accountUid: buffer expected"; - if (message.allowPersonalLicense != null && message.hasOwnProperty("allowPersonalLicense")) - if (typeof message.allowPersonalLicense !== "boolean") - return "allowPersonalLicense: boolean expected"; - if (message.licensedBy != null && message.hasOwnProperty("licensedBy")) - if (!$util.isString(message.licensedBy)) - return "licensedBy: string expected"; - if (message.email != null && message.hasOwnProperty("email")) - if (!$util.isString(message.email)) - return "email: string expected"; - if (message.breachWatchEnabled != null && message.hasOwnProperty("breachWatchEnabled")) - if (typeof message.breachWatchEnabled !== "boolean") - return "breachWatchEnabled: boolean expected"; - if (message.breachWatchScanned != null && message.hasOwnProperty("breachWatchScanned")) - if (typeof message.breachWatchScanned !== "boolean") - return "breachWatchScanned: boolean expected"; - if (message.breachWatchExpiration != null && message.hasOwnProperty("breachWatchExpiration")) - if (!$util.isInteger(message.breachWatchExpiration) && !(message.breachWatchExpiration && $util.isInteger(message.breachWatchExpiration.low) && $util.isInteger(message.breachWatchExpiration.high))) - return "breachWatchExpiration: integer|Long expected"; - if (message.breachWatchDateCreated != null && message.hasOwnProperty("breachWatchDateCreated")) - 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); - if (error) - return "error." + error; - } - 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"; - if (message.storageExpiration != null && message.hasOwnProperty("storageExpiration")) - if (!$util.isInteger(message.storageExpiration) && !(message.storageExpiration && $util.isInteger(message.storageExpiration.low) && $util.isInteger(message.storageExpiration.high))) - return "storageExpiration: integer|Long expected"; - if (message.uploadsCount != null && message.hasOwnProperty("uploadsCount")) - if (!$util.isInteger(message.uploadsCount)) - return "uploadsCount: integer expected"; - if (message.units != null && message.hasOwnProperty("units")) - if (!$util.isInteger(message.units)) - return "units: integer expected"; - if (message.pendingEnterprise != null && message.hasOwnProperty("pendingEnterprise")) - if (typeof message.pendingEnterprise !== "boolean") - return "pendingEnterprise: boolean expected"; - if (message.isPamEnabled != null && message.hasOwnProperty("isPamEnabled")) - if (typeof message.isPamEnabled !== "boolean") - return "isPamEnabled: boolean expected"; - if (message.isKsmEnabled != null && message.hasOwnProperty("isKsmEnabled")) - if (typeof message.isKsmEnabled !== "boolean") - return "isKsmEnabled: boolean expected"; - return null; - }; - /** * Creates a License message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -160041,6 +130093,8 @@ export const AccountSummary = $root.AccountSummary = (() => { License.fromObject = function fromObject(object, long) { if (object instanceof $root.AccountSummary.License) return object; + if (!$util.isObject(object)) + throw TypeError(".AccountSummary.License: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -160144,7 +130198,7 @@ export const AccountSummary = $root.AccountSummary = (() => { else if (typeof object.breachWatchDateCreated === "object") message.breachWatchDateCreated = new $util.LongBits(object.breachWatchDateCreated.low >>> 0, object.breachWatchDateCreated.high >>> 0).toNumber(); if (object.error != null) { - if (typeof object.error !== "object") + if (!$util.isObject(object.error)) throw TypeError(".AccountSummary.License.error: object expected"); message.error = $root.AccountSummary.Result.fromObject(object.error, long + 1); } @@ -160270,113 +130324,113 @@ export const AccountSummary = $root.AccountSummary = (() => { object.isPamEnabled = false; object.isKsmEnabled = false; } - if (message.subscriptionCode != null && message.hasOwnProperty("subscriptionCode")) + if (message.subscriptionCode != null && Object.hasOwnProperty.call(message, "subscriptionCode")) object.subscriptionCode = message.subscriptionCode; - if (message.productTypeId != null && message.hasOwnProperty("productTypeId")) + if (message.productTypeId != null && Object.hasOwnProperty.call(message, "productTypeId")) object.productTypeId = message.productTypeId; - if (message.productTypeName != null && message.hasOwnProperty("productTypeName")) + if (message.productTypeName != null && Object.hasOwnProperty.call(message, "productTypeName")) object.productTypeName = message.productTypeName; - if (message.expirationDate != null && message.hasOwnProperty("expirationDate")) + if (message.expirationDate != null && Object.hasOwnProperty.call(message, "expirationDate")) object.expirationDate = message.expirationDate; - if (message.secondsUntilExpiration != null && message.hasOwnProperty("secondsUntilExpiration")) + if (message.secondsUntilExpiration != null && Object.hasOwnProperty.call(message, "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") 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; - if (message.maxDevices != null && message.hasOwnProperty("maxDevices")) + if (message.maxDevices != null && Object.hasOwnProperty.call(message, "maxDevices")) object.maxDevices = message.maxDevices; - if (message.filePlanType != null && message.hasOwnProperty("filePlanType")) + if (message.filePlanType != null && Object.hasOwnProperty.call(message, "filePlanType")) object.filePlanType = message.filePlanType; - if (message.bytesUsed != null && message.hasOwnProperty("bytesUsed")) + if (message.bytesUsed != null && Object.hasOwnProperty.call(message, "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") 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 (message.bytesTotal != null && Object.hasOwnProperty.call(message, "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") 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 (message.secondsUntilStorageExpiration != null && Object.hasOwnProperty.call(message, "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") 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; - if (message.storageExpirationDate != null && message.hasOwnProperty("storageExpirationDate")) + if (message.storageExpirationDate != null && Object.hasOwnProperty.call(message, "storageExpirationDate")) object.storageExpirationDate = message.storageExpirationDate; - if (message.hasAutoRenewableAppstoreSubscription != null && message.hasOwnProperty("hasAutoRenewableAppstoreSubscription")) + if (message.hasAutoRenewableAppstoreSubscription != null && Object.hasOwnProperty.call(message, "hasAutoRenewableAppstoreSubscription")) object.hasAutoRenewableAppstoreSubscription = message.hasAutoRenewableAppstoreSubscription; - if (message.accountType != null && message.hasOwnProperty("accountType")) + if (message.accountType != null && Object.hasOwnProperty.call(message, "accountType")) object.accountType = message.accountType; - if (message.uploadsRemaining != null && message.hasOwnProperty("uploadsRemaining")) + if (message.uploadsRemaining != null && Object.hasOwnProperty.call(message, "uploadsRemaining")) object.uploadsRemaining = message.uploadsRemaining; - if (message.enterpriseId != null && message.hasOwnProperty("enterpriseId")) + if (message.enterpriseId != null && Object.hasOwnProperty.call(message, "enterpriseId")) object.enterpriseId = message.enterpriseId; - if (message.chatEnabled != null && message.hasOwnProperty("chatEnabled")) + if (message.chatEnabled != null && Object.hasOwnProperty.call(message, "chatEnabled")) object.chatEnabled = message.chatEnabled; - if (message.auditAndReportingEnabled != null && message.hasOwnProperty("auditAndReportingEnabled")) + if (message.auditAndReportingEnabled != null && Object.hasOwnProperty.call(message, "auditAndReportingEnabled")) object.auditAndReportingEnabled = message.auditAndReportingEnabled; - if (message.breachWatchFeatureDisable != null && message.hasOwnProperty("breachWatchFeatureDisable")) + if (message.breachWatchFeatureDisable != null && Object.hasOwnProperty.call(message, "breachWatchFeatureDisable")) object.breachWatchFeatureDisable = message.breachWatchFeatureDisable; - if (message.accountUid != null && message.hasOwnProperty("accountUid")) + if (message.accountUid != null && Object.hasOwnProperty.call(message, "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.allowPersonalLicense != null && message.hasOwnProperty("allowPersonalLicense")) + if (message.allowPersonalLicense != null && Object.hasOwnProperty.call(message, "allowPersonalLicense")) object.allowPersonalLicense = message.allowPersonalLicense; - if (message.licensedBy != null && message.hasOwnProperty("licensedBy")) + if (message.licensedBy != null && Object.hasOwnProperty.call(message, "licensedBy")) object.licensedBy = message.licensedBy; - if (message.email != null && message.hasOwnProperty("email")) + if (message.email != null && Object.hasOwnProperty.call(message, "email")) object.email = message.email; - if (message.breachWatchEnabled != null && message.hasOwnProperty("breachWatchEnabled")) + if (message.breachWatchEnabled != null && Object.hasOwnProperty.call(message, "breachWatchEnabled")) object.breachWatchEnabled = message.breachWatchEnabled; - if (message.breachWatchScanned != null && message.hasOwnProperty("breachWatchScanned")) + if (message.breachWatchScanned != null && Object.hasOwnProperty.call(message, "breachWatchScanned")) object.breachWatchScanned = message.breachWatchScanned; - if (message.breachWatchExpiration != null && message.hasOwnProperty("breachWatchExpiration")) + if (message.breachWatchExpiration != null && Object.hasOwnProperty.call(message, "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") 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 (message.breachWatchDateCreated != null && Object.hasOwnProperty.call(message, "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") 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")) + if (message.error != null && Object.hasOwnProperty.call(message, "error")) object.error = $root.AccountSummary.Result.toObject(message.error, options, q + 1); - if (message.expiration != null && message.hasOwnProperty("expiration")) + if (message.expiration != null && Object.hasOwnProperty.call(message, "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") 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 (message.storageExpiration != null && Object.hasOwnProperty.call(message, "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") 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; - if (message.uploadsCount != null && message.hasOwnProperty("uploadsCount")) + if (message.uploadsCount != null && Object.hasOwnProperty.call(message, "uploadsCount")) object.uploadsCount = message.uploadsCount; - if (message.units != null && message.hasOwnProperty("units")) + if (message.units != null && Object.hasOwnProperty.call(message, "units")) object.units = message.units; - if (message.pendingEnterprise != null && message.hasOwnProperty("pendingEnterprise")) + if (message.pendingEnterprise != null && Object.hasOwnProperty.call(message, "pendingEnterprise")) object.pendingEnterprise = message.pendingEnterprise; - if (message.isPamEnabled != null && message.hasOwnProperty("isPamEnabled")) + if (message.isPamEnabled != null && Object.hasOwnProperty.call(message, "isPamEnabled")) object.isPamEnabled = message.isPamEnabled; - if (message.isKsmEnabled != null && message.hasOwnProperty("isKsmEnabled")) + if (message.isKsmEnabled != null && Object.hasOwnProperty.call(message, "isKsmEnabled")) object.isKsmEnabled = message.isKsmEnabled; return object; }; @@ -160552,19 +130606,6 @@ export const AccountSummary = $root.AccountSummary = (() => { return writer; }; - /** - * Encodes the specified AddOn message, length delimited. Does not implicitly {@link AccountSummary.AddOn.verify|verify} messages. - * @function encodeDelimited - * @memberof AccountSummary.AddOn - * @static - * @param {AccountSummary.IAddOn} message AddOn message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - AddOn.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes an AddOn message from the specified reader or buffer. * @function decode @@ -160629,64 +130670,6 @@ export const AccountSummary = $root.AccountSummary = (() => { return message; }; - /** - * Decodes an AddOn message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof AccountSummary.AddOn - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {AccountSummary.AddOn} AddOn - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - AddOn.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an AddOn message. - * @function verify - * @memberof AccountSummary.AddOn - * @static - * @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) { - if (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"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.expirationDate != null && message.hasOwnProperty("expirationDate")) - if (!$util.isInteger(message.expirationDate) && !(message.expirationDate && $util.isInteger(message.expirationDate.low) && $util.isInteger(message.expirationDate.high))) - return "expirationDate: integer|Long expected"; - if (message.createdDate != null && message.hasOwnProperty("createdDate")) - if (!$util.isInteger(message.createdDate) && !(message.createdDate && $util.isInteger(message.createdDate.low) && $util.isInteger(message.createdDate.high))) - return "createdDate: integer|Long expected"; - if (message.isTrial != null && message.hasOwnProperty("isTrial")) - if (typeof message.isTrial !== "boolean") - return "isTrial: boolean expected"; - if (message.enabled != null && message.hasOwnProperty("enabled")) - if (typeof message.enabled !== "boolean") - return "enabled: boolean expected"; - if (message.scanned != null && message.hasOwnProperty("scanned")) - if (typeof message.scanned !== "boolean") - return "scanned: boolean expected"; - if (message.featureDisable != null && message.hasOwnProperty("featureDisable")) - if (typeof message.featureDisable !== "boolean") - return "featureDisable: boolean expected"; - return null; - }; - /** * Creates an AddOn message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -160698,6 +130681,8 @@ export const AccountSummary = $root.AccountSummary = (() => { AddOn.fromObject = function fromObject(object, long) { if (object instanceof $root.AccountSummary.AddOn) return object; + if (!$util.isObject(object)) + throw TypeError(".AccountSummary.AddOn: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -160771,31 +130756,31 @@ export const AccountSummary = $root.AccountSummary = (() => { object.scanned = false; object.featureDisable = false; } - if (message.licenseKeyId != null && message.hasOwnProperty("licenseKeyId")) + if (message.licenseKeyId != null && Object.hasOwnProperty.call(message, "licenseKeyId")) object.licenseKeyId = message.licenseKeyId; - if (message.name != null && message.hasOwnProperty("name")) + if (message.name != null && Object.hasOwnProperty.call(message, "name")) object.name = message.name; - if (message.expirationDate != null && message.hasOwnProperty("expirationDate")) + if (message.expirationDate != null && Object.hasOwnProperty.call(message, "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") 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 (message.createdDate != null && Object.hasOwnProperty.call(message, "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") 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; - if (message.isTrial != null && message.hasOwnProperty("isTrial")) + if (message.isTrial != null && Object.hasOwnProperty.call(message, "isTrial")) object.isTrial = message.isTrial; - if (message.enabled != null && message.hasOwnProperty("enabled")) + if (message.enabled != null && Object.hasOwnProperty.call(message, "enabled")) object.enabled = message.enabled; - if (message.scanned != null && message.hasOwnProperty("scanned")) + if (message.scanned != null && Object.hasOwnProperty.call(message, "scanned")) object.scanned = message.scanned; - if (message.featureDisable != null && message.hasOwnProperty("featureDisable")) + if (message.featureDisable != null && Object.hasOwnProperty.call(message, "featureDisable")) object.featureDisable = message.featureDisable; return object; }; @@ -161349,19 +131334,6 @@ export const AccountSummary = $root.AccountSummary = (() => { return writer; }; - /** - * Encodes the specified Settings message, length delimited. Does not implicitly {@link AccountSummary.Settings.verify|verify} messages. - * @function encodeDelimited - * @memberof AccountSummary.Settings - * @static - * @param {AccountSummary.ISettings} message Settings message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Settings.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a Settings message from the specified reader or buffer. * @function decode @@ -161575,208 +131547,6 @@ export const AccountSummary = $root.AccountSummary = (() => { return message; }; - /** - * Decodes a Settings message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof AccountSummary.Settings - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {AccountSummary.Settings} Settings - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Settings.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a Settings message. - * @function verify - * @memberof AccountSummary.Settings - * @static - * @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) { - if (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"; - if (message.mustPerformAccountShareBy != null && message.hasOwnProperty("mustPerformAccountShareBy")) - if (!$util.isInteger(message.mustPerformAccountShareBy) && !(message.mustPerformAccountShareBy && $util.isInteger(message.mustPerformAccountShareBy.low) && $util.isInteger(message.mustPerformAccountShareBy.high))) - return "mustPerformAccountShareBy: integer|Long expected"; - if (message.shareAccountTo != null && message.hasOwnProperty("shareAccountTo")) { - 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); - if (error) - return "shareAccountTo." + error; - } - } - 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.AccountSummary.PasswordRule.verify(message.rules[i], long + 1); - if (error) - return "rules." + error; - } - } - if (message.passwordRulesIntro != null && message.hasOwnProperty("passwordRulesIntro")) - if (!$util.isString(message.passwordRulesIntro)) - return "passwordRulesIntro: string expected"; - if (message.autoBackupDays != null && message.hasOwnProperty("autoBackupDays")) - if (!$util.isInteger(message.autoBackupDays)) - return "autoBackupDays: integer expected"; - if (message.theme != null && message.hasOwnProperty("theme")) - if (!$util.isString(message.theme)) - return "theme: string expected"; - if (message.channel != null && message.hasOwnProperty("channel")) - if (!$util.isString(message.channel)) - return "channel: string expected"; - if (message.channelValue != null && message.hasOwnProperty("channelValue")) - if (!$util.isString(message.channelValue)) - return "channelValue: string expected"; - if (message.rsaConfigured != null && message.hasOwnProperty("rsaConfigured")) - if (typeof message.rsaConfigured !== "boolean") - return "rsaConfigured: boolean expected"; - if (message.emailVerified != null && message.hasOwnProperty("emailVerified")) - if (typeof message.emailVerified !== "boolean") - return "emailVerified: boolean expected"; - if (message.masterPasswordLastModified != null && message.hasOwnProperty("masterPasswordLastModified")) - if (typeof message.masterPasswordLastModified !== "number") - return "masterPasswordLastModified: number expected"; - if (message.accountFolderKey != null && message.hasOwnProperty("accountFolderKey")) - if (!(message.accountFolderKey && typeof message.accountFolderKey.length === "number" || $util.isString(message.accountFolderKey))) - return "accountFolderKey: buffer expected"; - if (message.securityKeys != null && message.hasOwnProperty("securityKeys")) { - 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); - if (error) - return "securityKeys." + error; - } - } - if (message.keyValues != null && message.hasOwnProperty("keyValues")) { - 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); - if (error) - return "keyValues." + error; - } - } - if (message.ssoUser != null && message.hasOwnProperty("ssoUser")) - if (typeof message.ssoUser !== "boolean") - return "ssoUser: boolean expected"; - if (message.onlineAccessOnly != null && message.hasOwnProperty("onlineAccessOnly")) - if (typeof message.onlineAccessOnly !== "boolean") - return "onlineAccessOnly: boolean expected"; - if (message.masterPasswordExpiry != null && message.hasOwnProperty("masterPasswordExpiry")) - if (!$util.isInteger(message.masterPasswordExpiry)) - return "masterPasswordExpiry: integer expected"; - if (message.twoFactorRequired != null && message.hasOwnProperty("twoFactorRequired")) - if (typeof message.twoFactorRequired !== "boolean") - return "twoFactorRequired: boolean expected"; - if (message.disallowExport != null && message.hasOwnProperty("disallowExport")) - if (typeof message.disallowExport !== "boolean") - return "disallowExport: boolean expected"; - if (message.restrictFiles != null && message.hasOwnProperty("restrictFiles")) - if (typeof message.restrictFiles !== "boolean") - return "restrictFiles: boolean expected"; - if (message.restrictAllSharing != null && message.hasOwnProperty("restrictAllSharing")) - if (typeof message.restrictAllSharing !== "boolean") - return "restrictAllSharing: boolean expected"; - if (message.restrictSharing != null && message.hasOwnProperty("restrictSharing")) - if (typeof message.restrictSharing !== "boolean") - return "restrictSharing: boolean expected"; - if (message.restrictSharingIncomingAll != null && message.hasOwnProperty("restrictSharingIncomingAll")) - if (typeof message.restrictSharingIncomingAll !== "boolean") - return "restrictSharingIncomingAll: boolean expected"; - if (message.restrictSharingIncomingEnterprise != null && message.hasOwnProperty("restrictSharingIncomingEnterprise")) - if (typeof message.restrictSharingIncomingEnterprise !== "boolean") - return "restrictSharingIncomingEnterprise: boolean expected"; - if (message.logoutTimer != null && message.hasOwnProperty("logoutTimer")) - if (!$util.isInteger(message.logoutTimer) && !(message.logoutTimer && $util.isInteger(message.logoutTimer.low) && $util.isInteger(message.logoutTimer.high))) - return "logoutTimer: integer|Long expected"; - if (message.persistentLogin != null && message.hasOwnProperty("persistentLogin")) - if (typeof message.persistentLogin !== "boolean") - return "persistentLogin: boolean expected"; - if (message.ipDisableAutoApprove != null && message.hasOwnProperty("ipDisableAutoApprove")) - if (typeof message.ipDisableAutoApprove !== "boolean") - return "ipDisableAutoApprove: boolean expected"; - if (message.shareDataKeyWithEccPublicKey != null && message.hasOwnProperty("shareDataKeyWithEccPublicKey")) - if (typeof message.shareDataKeyWithEccPublicKey !== "boolean") - return "shareDataKeyWithEccPublicKey: boolean expected"; - if (message.shareDataKeyWithDevicePublicKey != null && message.hasOwnProperty("shareDataKeyWithDevicePublicKey")) - if (typeof message.shareDataKeyWithDevicePublicKey !== "boolean") - return "shareDataKeyWithDevicePublicKey: boolean expected"; - if (message.RecordTypesCounter != null && message.hasOwnProperty("RecordTypesCounter")) - if (!$util.isInteger(message.RecordTypesCounter)) - return "RecordTypesCounter: integer expected"; - if (message.RecordTypesEnterpriseCounter != null && message.hasOwnProperty("RecordTypesEnterpriseCounter")) - if (!$util.isInteger(message.RecordTypesEnterpriseCounter)) - return "RecordTypesEnterpriseCounter: integer expected"; - if (message.recordTypesEnabled != null && message.hasOwnProperty("recordTypesEnabled")) - if (typeof message.recordTypesEnabled !== "boolean") - return "recordTypesEnabled: boolean expected"; - if (message.canManageRecordTypes != null && message.hasOwnProperty("canManageRecordTypes")) - if (typeof message.canManageRecordTypes !== "boolean") - return "canManageRecordTypes: boolean expected"; - if (message.recordTypesPAMCounter != null && message.hasOwnProperty("recordTypesPAMCounter")) - if (!$util.isInteger(message.recordTypesPAMCounter)) - return "recordTypesPAMCounter: integer expected"; - if (message.logoutTimerMinutes != null && message.hasOwnProperty("logoutTimerMinutes")) - if (!$util.isInteger(message.logoutTimerMinutes)) - return "logoutTimerMinutes: integer expected"; - if (message.securityKeysNoUserVerify != null && message.hasOwnProperty("securityKeysNoUserVerify")) - if (typeof message.securityKeysNoUserVerify !== "boolean") - return "securityKeysNoUserVerify: boolean expected"; - 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) - switch (message.channels[i]) { - default: - return "channels: 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.personalUsernames != null && message.hasOwnProperty("personalUsernames")) { - if (!Array.isArray(message.personalUsernames)) - return "personalUsernames: array expected"; - for (let i = 0; i < message.personalUsernames.length; ++i) - if (!$util.isString(message.personalUsernames[i])) - return "personalUsernames: string[] expected"; - } - if (message.maxIpDistance != null && message.hasOwnProperty("maxIpDistance")) - if (!$util.isInteger(message.maxIpDistance)) - return "maxIpDistance: integer expected"; - if (message.maxIpDistanceEffective != null && message.hasOwnProperty("maxIpDistanceEffective")) - if (!$util.isInteger(message.maxIpDistanceEffective)) - return "maxIpDistanceEffective: integer expected"; - return null; - }; - /** * Creates a Settings message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -161788,6 +131558,8 @@ export const AccountSummary = $root.AccountSummary = (() => { Settings.fromObject = function fromObject(object, long) { if (object instanceof $root.AccountSummary.Settings) return object; + if (!$util.isObject(object)) + throw TypeError(".AccountSummary.Settings: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -161809,7 +131581,7 @@ export const AccountSummary = $root.AccountSummary = (() => { throw TypeError(".AccountSummary.Settings.shareAccountTo: array expected"); message.shareAccountTo = []; for (let i = 0; i < object.shareAccountTo.length; ++i) { - if (typeof object.shareAccountTo[i] !== "object") + if (!$util.isObject(object.shareAccountTo[i])) throw TypeError(".AccountSummary.Settings.shareAccountTo: object expected"); message.shareAccountTo[i] = $root.AccountSummary.MissingAccountShareKey.fromObject(object.shareAccountTo[i], long + 1); } @@ -161819,7 +131591,7 @@ export const AccountSummary = $root.AccountSummary = (() => { throw TypeError(".AccountSummary.Settings.rules: array expected"); message.rules = []; for (let i = 0; i < object.rules.length; ++i) { - if (typeof object.rules[i] !== "object") + if (!$util.isObject(object.rules[i])) throw TypeError(".AccountSummary.Settings.rules: object expected"); message.rules[i] = $root.AccountSummary.PasswordRule.fromObject(object.rules[i], long + 1); } @@ -161850,7 +131622,7 @@ export const AccountSummary = $root.AccountSummary = (() => { throw TypeError(".AccountSummary.Settings.securityKeys: array expected"); message.securityKeys = []; for (let i = 0; i < object.securityKeys.length; ++i) { - if (typeof object.securityKeys[i] !== "object") + if (!$util.isObject(object.securityKeys[i])) throw TypeError(".AccountSummary.Settings.securityKeys: object expected"); message.securityKeys[i] = $root.AccountSummary.SecurityKey.fromObject(object.securityKeys[i], long + 1); } @@ -161860,7 +131632,7 @@ export const AccountSummary = $root.AccountSummary = (() => { throw TypeError(".AccountSummary.Settings.keyValues: array expected"); message.keyValues = []; for (let i = 0; i < object.keyValues.length; ++i) { - if (typeof object.keyValues[i] !== "object") + if (!$util.isObject(object.keyValues[i])) throw TypeError(".AccountSummary.Settings.keyValues: object expected"); message.keyValues[i] = $root.AccountSummary.KeyValue.fromObject(object.keyValues[i], long + 1); } @@ -162059,9 +131831,9 @@ export const AccountSummary = $root.AccountSummary = (() => { object.maxIpDistance = 0; object.maxIpDistanceEffective = 0; } - if (message.audit != null && message.hasOwnProperty("audit")) + if (message.audit != null && Object.hasOwnProperty.call(message, "audit")) object.audit = message.audit; - if (message.mustPerformAccountShareBy != null && message.hasOwnProperty("mustPerformAccountShareBy")) + if (message.mustPerformAccountShareBy != null && Object.hasOwnProperty.call(message, "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") @@ -162078,23 +131850,23 @@ export const AccountSummary = $root.AccountSummary = (() => { for (let j = 0; j < message.rules.length; ++j) object.rules[j] = $root.AccountSummary.PasswordRule.toObject(message.rules[j], options, q + 1); } - if (message.passwordRulesIntro != null && message.hasOwnProperty("passwordRulesIntro")) + if (message.passwordRulesIntro != null && Object.hasOwnProperty.call(message, "passwordRulesIntro")) object.passwordRulesIntro = message.passwordRulesIntro; - if (message.autoBackupDays != null && message.hasOwnProperty("autoBackupDays")) + if (message.autoBackupDays != null && Object.hasOwnProperty.call(message, "autoBackupDays")) object.autoBackupDays = message.autoBackupDays; - if (message.theme != null && message.hasOwnProperty("theme")) + if (message.theme != null && Object.hasOwnProperty.call(message, "theme")) object.theme = message.theme; - if (message.channel != null && message.hasOwnProperty("channel")) + if (message.channel != null && Object.hasOwnProperty.call(message, "channel")) object.channel = message.channel; - if (message.channelValue != null && message.hasOwnProperty("channelValue")) + if (message.channelValue != null && Object.hasOwnProperty.call(message, "channelValue")) object.channelValue = message.channelValue; - if (message.rsaConfigured != null && message.hasOwnProperty("rsaConfigured")) + if (message.rsaConfigured != null && Object.hasOwnProperty.call(message, "rsaConfigured")) object.rsaConfigured = message.rsaConfigured; - if (message.emailVerified != null && message.hasOwnProperty("emailVerified")) + if (message.emailVerified != null && Object.hasOwnProperty.call(message, "emailVerified")) object.emailVerified = message.emailVerified; - if (message.masterPasswordLastModified != null && message.hasOwnProperty("masterPasswordLastModified")) + if (message.masterPasswordLastModified != null && Object.hasOwnProperty.call(message, "masterPasswordLastModified")) object.masterPasswordLastModified = options.json && !isFinite(message.masterPasswordLastModified) ? String(message.masterPasswordLastModified) : message.masterPasswordLastModified; - if (message.accountFolderKey != null && message.hasOwnProperty("accountFolderKey")) + if (message.accountFolderKey != null && Object.hasOwnProperty.call(message, "accountFolderKey")) object.accountFolderKey = options.bytes === String ? $util.base64.encode(message.accountFolderKey, 0, message.accountFolderKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.accountFolderKey) : message.accountFolderKey; if (message.securityKeys && message.securityKeys.length) { object.securityKeys = []; @@ -162106,54 +131878,54 @@ export const AccountSummary = $root.AccountSummary = (() => { for (let j = 0; j < message.keyValues.length; ++j) object.keyValues[j] = $root.AccountSummary.KeyValue.toObject(message.keyValues[j], options, q + 1); } - if (message.ssoUser != null && message.hasOwnProperty("ssoUser")) + if (message.ssoUser != null && Object.hasOwnProperty.call(message, "ssoUser")) object.ssoUser = message.ssoUser; - if (message.onlineAccessOnly != null && message.hasOwnProperty("onlineAccessOnly")) + if (message.onlineAccessOnly != null && Object.hasOwnProperty.call(message, "onlineAccessOnly")) object.onlineAccessOnly = message.onlineAccessOnly; - if (message.masterPasswordExpiry != null && message.hasOwnProperty("masterPasswordExpiry")) + if (message.masterPasswordExpiry != null && Object.hasOwnProperty.call(message, "masterPasswordExpiry")) object.masterPasswordExpiry = message.masterPasswordExpiry; - if (message.twoFactorRequired != null && message.hasOwnProperty("twoFactorRequired")) + if (message.twoFactorRequired != null && Object.hasOwnProperty.call(message, "twoFactorRequired")) object.twoFactorRequired = message.twoFactorRequired; - if (message.disallowExport != null && message.hasOwnProperty("disallowExport")) + if (message.disallowExport != null && Object.hasOwnProperty.call(message, "disallowExport")) object.disallowExport = message.disallowExport; - if (message.restrictFiles != null && message.hasOwnProperty("restrictFiles")) + if (message.restrictFiles != null && Object.hasOwnProperty.call(message, "restrictFiles")) object.restrictFiles = message.restrictFiles; - if (message.restrictAllSharing != null && message.hasOwnProperty("restrictAllSharing")) + if (message.restrictAllSharing != null && Object.hasOwnProperty.call(message, "restrictAllSharing")) object.restrictAllSharing = message.restrictAllSharing; - if (message.restrictSharing != null && message.hasOwnProperty("restrictSharing")) + if (message.restrictSharing != null && Object.hasOwnProperty.call(message, "restrictSharing")) object.restrictSharing = message.restrictSharing; - if (message.restrictSharingIncomingAll != null && message.hasOwnProperty("restrictSharingIncomingAll")) + if (message.restrictSharingIncomingAll != null && Object.hasOwnProperty.call(message, "restrictSharingIncomingAll")) object.restrictSharingIncomingAll = message.restrictSharingIncomingAll; - if (message.restrictSharingIncomingEnterprise != null && message.hasOwnProperty("restrictSharingIncomingEnterprise")) + if (message.restrictSharingIncomingEnterprise != null && Object.hasOwnProperty.call(message, "restrictSharingIncomingEnterprise")) object.restrictSharingIncomingEnterprise = message.restrictSharingIncomingEnterprise; - if (message.logoutTimer != null && message.hasOwnProperty("logoutTimer")) + if (message.logoutTimer != null && Object.hasOwnProperty.call(message, "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") 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; - if (message.persistentLogin != null && message.hasOwnProperty("persistentLogin")) + if (message.persistentLogin != null && Object.hasOwnProperty.call(message, "persistentLogin")) object.persistentLogin = message.persistentLogin; - if (message.ipDisableAutoApprove != null && message.hasOwnProperty("ipDisableAutoApprove")) + if (message.ipDisableAutoApprove != null && Object.hasOwnProperty.call(message, "ipDisableAutoApprove")) object.ipDisableAutoApprove = message.ipDisableAutoApprove; - if (message.shareDataKeyWithEccPublicKey != null && message.hasOwnProperty("shareDataKeyWithEccPublicKey")) + if (message.shareDataKeyWithEccPublicKey != null && Object.hasOwnProperty.call(message, "shareDataKeyWithEccPublicKey")) object.shareDataKeyWithEccPublicKey = message.shareDataKeyWithEccPublicKey; - if (message.shareDataKeyWithDevicePublicKey != null && message.hasOwnProperty("shareDataKeyWithDevicePublicKey")) + if (message.shareDataKeyWithDevicePublicKey != null && Object.hasOwnProperty.call(message, "shareDataKeyWithDevicePublicKey")) object.shareDataKeyWithDevicePublicKey = message.shareDataKeyWithDevicePublicKey; - if (message.RecordTypesCounter != null && message.hasOwnProperty("RecordTypesCounter")) + if (message.RecordTypesCounter != null && Object.hasOwnProperty.call(message, "RecordTypesCounter")) object.RecordTypesCounter = message.RecordTypesCounter; - if (message.RecordTypesEnterpriseCounter != null && message.hasOwnProperty("RecordTypesEnterpriseCounter")) + if (message.RecordTypesEnterpriseCounter != null && Object.hasOwnProperty.call(message, "RecordTypesEnterpriseCounter")) object.RecordTypesEnterpriseCounter = message.RecordTypesEnterpriseCounter; - if (message.recordTypesEnabled != null && message.hasOwnProperty("recordTypesEnabled")) + if (message.recordTypesEnabled != null && Object.hasOwnProperty.call(message, "recordTypesEnabled")) object.recordTypesEnabled = message.recordTypesEnabled; - if (message.canManageRecordTypes != null && message.hasOwnProperty("canManageRecordTypes")) + if (message.canManageRecordTypes != null && Object.hasOwnProperty.call(message, "canManageRecordTypes")) object.canManageRecordTypes = message.canManageRecordTypes; - if (message.recordTypesPAMCounter != null && message.hasOwnProperty("recordTypesPAMCounter")) + if (message.recordTypesPAMCounter != null && Object.hasOwnProperty.call(message, "recordTypesPAMCounter")) object.recordTypesPAMCounter = message.recordTypesPAMCounter; - if (message.logoutTimerMinutes != null && message.hasOwnProperty("logoutTimerMinutes")) + if (message.logoutTimerMinutes != null && Object.hasOwnProperty.call(message, "logoutTimerMinutes")) object.logoutTimerMinutes = message.logoutTimerMinutes; - if (message.securityKeysNoUserVerify != null && message.hasOwnProperty("securityKeysNoUserVerify")) + if (message.securityKeysNoUserVerify != null && Object.hasOwnProperty.call(message, "securityKeysNoUserVerify")) object.securityKeysNoUserVerify = message.securityKeysNoUserVerify; if (message.channels && message.channels.length) { object.channels = []; @@ -162165,9 +131937,9 @@ export const AccountSummary = $root.AccountSummary = (() => { for (let j = 0; j < message.personalUsernames.length; ++j) object.personalUsernames[j] = message.personalUsernames[j]; } - if (message.maxIpDistance != null && message.hasOwnProperty("maxIpDistance")) + if (message.maxIpDistance != null && Object.hasOwnProperty.call(message, "maxIpDistance")) object.maxIpDistance = message.maxIpDistance; - if (message.maxIpDistanceEffective != null && message.hasOwnProperty("maxIpDistanceEffective")) + if (message.maxIpDistanceEffective != null && Object.hasOwnProperty.call(message, "maxIpDistanceEffective")) object.maxIpDistanceEffective = message.maxIpDistanceEffective; return object; }; @@ -162277,19 +132049,6 @@ export const AccountSummary = $root.AccountSummary = (() => { return writer; }; - /** - * Encodes the specified KeyValue message, length delimited. Does not implicitly {@link AccountSummary.KeyValue.verify|verify} messages. - * @function encodeDelimited - * @memberof AccountSummary.KeyValue - * @static - * @param {AccountSummary.IKeyValue} message KeyValue message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - KeyValue.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a KeyValue message from the specified reader or buffer. * @function decode @@ -162330,46 +132089,6 @@ export const AccountSummary = $root.AccountSummary = (() => { return message; }; - /** - * Decodes a KeyValue message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof AccountSummary.KeyValue - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {AccountSummary.KeyValue} KeyValue - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - KeyValue.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a KeyValue message. - * @function verify - * @memberof AccountSummary.KeyValue - * @static - * @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) { - if (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"; - if (message.value != null && message.hasOwnProperty("value")) - if (!$util.isString(message.value)) - return "value: string expected"; - return null; - }; - /** * Creates a KeyValue message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -162381,6 +132100,8 @@ export const AccountSummary = $root.AccountSummary = (() => { KeyValue.fromObject = function fromObject(object, long) { if (object instanceof $root.AccountSummary.KeyValue) return object; + if (!$util.isObject(object)) + throw TypeError(".AccountSummary.KeyValue: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -162414,9 +132135,9 @@ export const AccountSummary = $root.AccountSummary = (() => { object.key = ""; object.value = ""; } - if (message.key != null && message.hasOwnProperty("key")) + if (message.key != null && Object.hasOwnProperty.call(message, "key")) object.key = message.key; - if (message.value != null && message.hasOwnProperty("value")) + if (message.value != null && Object.hasOwnProperty.call(message, "value")) object.value = message.value; return object; }; @@ -162526,19 +132247,6 @@ export const AccountSummary = $root.AccountSummary = (() => { return writer; }; - /** - * Encodes the specified KeyValueBoolean message, length delimited. Does not implicitly {@link AccountSummary.KeyValueBoolean.verify|verify} messages. - * @function encodeDelimited - * @memberof AccountSummary.KeyValueBoolean - * @static - * @param {AccountSummary.IKeyValueBoolean} message KeyValueBoolean message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - KeyValueBoolean.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a KeyValueBoolean message from the specified reader or buffer. * @function decode @@ -162579,46 +132287,6 @@ export const AccountSummary = $root.AccountSummary = (() => { return message; }; - /** - * Decodes a KeyValueBoolean message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof AccountSummary.KeyValueBoolean - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {AccountSummary.KeyValueBoolean} KeyValueBoolean - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - KeyValueBoolean.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a KeyValueBoolean message. - * @function verify - * @memberof AccountSummary.KeyValueBoolean - * @static - * @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) { - if (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"; - if (message.value != null && message.hasOwnProperty("value")) - if (typeof message.value !== "boolean") - return "value: boolean expected"; - return null; - }; - /** * Creates a KeyValueBoolean message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -162630,6 +132298,8 @@ export const AccountSummary = $root.AccountSummary = (() => { KeyValueBoolean.fromObject = function fromObject(object, long) { if (object instanceof $root.AccountSummary.KeyValueBoolean) return object; + if (!$util.isObject(object)) + throw TypeError(".AccountSummary.KeyValueBoolean: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -162663,9 +132333,9 @@ export const AccountSummary = $root.AccountSummary = (() => { object.key = ""; object.value = false; } - if (message.key != null && message.hasOwnProperty("key")) + if (message.key != null && Object.hasOwnProperty.call(message, "key")) object.key = message.key; - if (message.value != null && message.hasOwnProperty("value")) + if (message.value != null && Object.hasOwnProperty.call(message, "value")) object.value = message.value; return object; }; @@ -162775,19 +132445,6 @@ export const AccountSummary = $root.AccountSummary = (() => { return writer; }; - /** - * Encodes the specified KeyValueLong message, length delimited. Does not implicitly {@link AccountSummary.KeyValueLong.verify|verify} messages. - * @function encodeDelimited - * @memberof AccountSummary.KeyValueLong - * @static - * @param {AccountSummary.IKeyValueLong} message KeyValueLong message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - KeyValueLong.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a KeyValueLong message from the specified reader or buffer. * @function decode @@ -162828,46 +132485,6 @@ export const AccountSummary = $root.AccountSummary = (() => { return message; }; - /** - * Decodes a KeyValueLong message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof AccountSummary.KeyValueLong - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {AccountSummary.KeyValueLong} KeyValueLong - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - KeyValueLong.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a KeyValueLong message. - * @function verify - * @memberof AccountSummary.KeyValueLong - * @static - * @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) { - if (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"; - if (message.value != null && message.hasOwnProperty("value")) - if (!$util.isInteger(message.value) && !(message.value && $util.isInteger(message.value.low) && $util.isInteger(message.value.high))) - return "value: integer|Long expected"; - return null; - }; - /** * Creates a KeyValueLong message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -162879,6 +132496,8 @@ export const AccountSummary = $root.AccountSummary = (() => { KeyValueLong.fromObject = function fromObject(object, long) { if (object instanceof $root.AccountSummary.KeyValueLong) return object; + if (!$util.isObject(object)) + throw TypeError(".AccountSummary.KeyValueLong: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -162923,9 +132542,9 @@ export const AccountSummary = $root.AccountSummary = (() => { } else object.value = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; } - if (message.key != null && message.hasOwnProperty("key")) + if (message.key != null && Object.hasOwnProperty.call(message, "key")) object.key = message.key; - if (message.value != null && message.hasOwnProperty("value")) + if (message.value != null && Object.hasOwnProperty.call(message, "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") @@ -163051,19 +132670,6 @@ export const AccountSummary = $root.AccountSummary = (() => { return writer; }; - /** - * Encodes the specified Result message, length delimited. Does not implicitly {@link AccountSummary.Result.verify|verify} messages. - * @function encodeDelimited - * @memberof AccountSummary.Result - * @static - * @param {AccountSummary.IResult} message Result message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Result.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a Result message from the specified reader or buffer. * @function decode @@ -163108,49 +132714,6 @@ export const AccountSummary = $root.AccountSummary = (() => { return message; }; - /** - * Decodes a Result message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof AccountSummary.Result - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {AccountSummary.Result} Result - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Result.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a Result message. - * @function verify - * @memberof AccountSummary.Result - * @static - * @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) { - if (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"; - if (message.message != null && message.hasOwnProperty("message")) - if (!$util.isString(message.message)) - return "message: string expected"; - if (message.result != null && message.hasOwnProperty("result")) - if (!$util.isString(message.result)) - return "result: string expected"; - return null; - }; - /** * Creates a Result message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -163162,6 +132725,8 @@ export const AccountSummary = $root.AccountSummary = (() => { Result.fromObject = function fromObject(object, long) { if (object instanceof $root.AccountSummary.Result) return object; + if (!$util.isObject(object)) + throw TypeError(".AccountSummary.Result: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -163198,11 +132763,11 @@ export const AccountSummary = $root.AccountSummary = (() => { object.message = ""; object.result = ""; } - if (message.resultCode != null && message.hasOwnProperty("resultCode")) + if (message.resultCode != null && Object.hasOwnProperty.call(message, "resultCode")) object.resultCode = message.resultCode; - if (message.message != null && message.hasOwnProperty("message")) + if (message.message != null && Object.hasOwnProperty.call(message, "message")) object.message = message.message; - if (message.result != null && message.hasOwnProperty("result")) + if (message.result != null && Object.hasOwnProperty.call(message, "result")) object.result = message.result; return object; }; @@ -163342,19 +132907,6 @@ export const AccountSummary = $root.AccountSummary = (() => { return writer; }; - /** - * Encodes the specified Enforcements message, length delimited. Does not implicitly {@link AccountSummary.Enforcements.verify|verify} messages. - * @function encodeDelimited - * @memberof AccountSummary.Enforcements - * @static - * @param {AccountSummary.IEnforcements} message Enforcements message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Enforcements.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes an Enforcements message from the specified reader or buffer. * @function decode @@ -163411,76 +132963,6 @@ export const AccountSummary = $root.AccountSummary = (() => { return message; }; - /** - * Decodes an Enforcements message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof AccountSummary.Enforcements - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {AccountSummary.Enforcements} Enforcements - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Enforcements.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an Enforcements message. - * @function verify - * @memberof AccountSummary.Enforcements - * @static - * @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) { - if (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); - if (error) - return "strings." + error; - } - } - if (message.booleans != null && message.hasOwnProperty("booleans")) { - 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); - if (error) - return "booleans." + error; - } - } - if (message.longs != null && message.hasOwnProperty("longs")) { - 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); - if (error) - return "longs." + error; - } - } - if (message.jsons != null && message.hasOwnProperty("jsons")) { - 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); - if (error) - return "jsons." + error; - } - } - return null; - }; - /** * Creates an Enforcements message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -163492,6 +132974,8 @@ export const AccountSummary = $root.AccountSummary = (() => { Enforcements.fromObject = function fromObject(object, long) { if (object instanceof $root.AccountSummary.Enforcements) return object; + if (!$util.isObject(object)) + throw TypeError(".AccountSummary.Enforcements: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -163502,7 +132986,7 @@ export const AccountSummary = $root.AccountSummary = (() => { throw TypeError(".AccountSummary.Enforcements.strings: array expected"); message.strings = []; for (let i = 0; i < object.strings.length; ++i) { - if (typeof object.strings[i] !== "object") + if (!$util.isObject(object.strings[i])) throw TypeError(".AccountSummary.Enforcements.strings: object expected"); message.strings[i] = $root.AccountSummary.KeyValue.fromObject(object.strings[i], long + 1); } @@ -163512,7 +132996,7 @@ export const AccountSummary = $root.AccountSummary = (() => { throw TypeError(".AccountSummary.Enforcements.booleans: array expected"); message.booleans = []; for (let i = 0; i < object.booleans.length; ++i) { - if (typeof object.booleans[i] !== "object") + if (!$util.isObject(object.booleans[i])) throw TypeError(".AccountSummary.Enforcements.booleans: object expected"); message.booleans[i] = $root.AccountSummary.KeyValueBoolean.fromObject(object.booleans[i], long + 1); } @@ -163522,7 +133006,7 @@ export const AccountSummary = $root.AccountSummary = (() => { throw TypeError(".AccountSummary.Enforcements.longs: array expected"); message.longs = []; for (let i = 0; i < object.longs.length; ++i) { - if (typeof object.longs[i] !== "object") + if (!$util.isObject(object.longs[i])) throw TypeError(".AccountSummary.Enforcements.longs: object expected"); message.longs[i] = $root.AccountSummary.KeyValueLong.fromObject(object.longs[i], long + 1); } @@ -163532,7 +133016,7 @@ export const AccountSummary = $root.AccountSummary = (() => { throw TypeError(".AccountSummary.Enforcements.jsons: array expected"); message.jsons = []; for (let i = 0; i < object.jsons.length; ++i) { - if (typeof object.jsons[i] !== "object") + if (!$util.isObject(object.jsons[i])) throw TypeError(".AccountSummary.Enforcements.jsons: object expected"); message.jsons[i] = $root.AccountSummary.KeyValue.fromObject(object.jsons[i], long + 1); } @@ -163691,19 +133175,6 @@ export const AccountSummary = $root.AccountSummary = (() => { return writer; }; - /** - * Encodes the specified MissingAccountShareKey message, length delimited. Does not implicitly {@link AccountSummary.MissingAccountShareKey.verify|verify} messages. - * @function encodeDelimited - * @memberof AccountSummary.MissingAccountShareKey - * @static - * @param {AccountSummary.IMissingAccountShareKey} message MissingAccountShareKey message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MissingAccountShareKey.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a MissingAccountShareKey message from the specified reader or buffer. * @function decode @@ -163744,46 +133215,6 @@ export const AccountSummary = $root.AccountSummary = (() => { return message; }; - /** - * Decodes a MissingAccountShareKey message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof AccountSummary.MissingAccountShareKey - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {AccountSummary.MissingAccountShareKey} MissingAccountShareKey - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MissingAccountShareKey.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a MissingAccountShareKey message. - * @function verify - * @memberof AccountSummary.MissingAccountShareKey - * @static - * @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) { - if (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"; - if (message.publicKey != null && message.hasOwnProperty("publicKey")) - if (!(message.publicKey && typeof message.publicKey.length === "number" || $util.isString(message.publicKey))) - return "publicKey: buffer expected"; - return null; - }; - /** * Creates a MissingAccountShareKey message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -163795,6 +133226,8 @@ export const AccountSummary = $root.AccountSummary = (() => { MissingAccountShareKey.fromObject = function fromObject(object, long) { if (object instanceof $root.AccountSummary.MissingAccountShareKey) return object; + if (!$util.isObject(object)) + throw TypeError(".AccountSummary.MissingAccountShareKey: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -163848,14 +133281,14 @@ export const AccountSummary = $root.AccountSummary = (() => { object.publicKey = $util.newBuffer(object.publicKey); } } - if (message.roleId != null && message.hasOwnProperty("roleId")) + if (message.roleId != null && Object.hasOwnProperty.call(message, "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") 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.publicKey != null && message.hasOwnProperty("publicKey")) + if (message.publicKey != null && Object.hasOwnProperty.call(message, "publicKey")) object.publicKey = options.bytes === String ? $util.base64.encode(message.publicKey, 0, message.publicKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.publicKey) : message.publicKey; return object; }; @@ -164009,19 +133442,6 @@ export const AccountSummary = $root.AccountSummary = (() => { return writer; }; - /** - * Encodes the specified PasswordRule message, length delimited. Does not implicitly {@link AccountSummary.PasswordRule.verify|verify} messages. - * @function encodeDelimited - * @memberof AccountSummary.PasswordRule - * @static - * @param {AccountSummary.IPasswordRule} message PasswordRule message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - PasswordRule.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a PasswordRule message from the specified reader or buffer. * @function decode @@ -164078,58 +133498,6 @@ export const AccountSummary = $root.AccountSummary = (() => { return message; }; - /** - * Decodes a PasswordRule message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof AccountSummary.PasswordRule - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {AccountSummary.PasswordRule} PasswordRule - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - PasswordRule.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a PasswordRule message. - * @function verify - * @memberof AccountSummary.PasswordRule - * @static - * @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) { - if (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"; - if (message.pattern != null && message.hasOwnProperty("pattern")) - if (!$util.isString(message.pattern)) - return "pattern: string expected"; - if (message.match != null && message.hasOwnProperty("match")) - if (typeof message.match !== "boolean") - return "match: boolean expected"; - if (message.minimum != null && message.hasOwnProperty("minimum")) - if (!$util.isInteger(message.minimum)) - return "minimum: integer expected"; - if (message.description != null && message.hasOwnProperty("description")) - if (!$util.isString(message.description)) - return "description: string expected"; - if (message.value != null && message.hasOwnProperty("value")) - if (!$util.isString(message.value)) - return "value: string expected"; - return null; - }; - /** * Creates a PasswordRule message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -164141,6 +133509,8 @@ export const AccountSummary = $root.AccountSummary = (() => { PasswordRule.fromObject = function fromObject(object, long) { if (object instanceof $root.AccountSummary.PasswordRule) return object; + if (!$util.isObject(object)) + throw TypeError(".AccountSummary.PasswordRule: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -164186,17 +133556,17 @@ export const AccountSummary = $root.AccountSummary = (() => { object.description = ""; object.value = ""; } - if (message.ruleType != null && message.hasOwnProperty("ruleType")) + if (message.ruleType != null && Object.hasOwnProperty.call(message, "ruleType")) object.ruleType = message.ruleType; - if (message.pattern != null && message.hasOwnProperty("pattern")) + if (message.pattern != null && Object.hasOwnProperty.call(message, "pattern")) object.pattern = message.pattern; - if (message.match != null && message.hasOwnProperty("match")) + if (message.match != null && Object.hasOwnProperty.call(message, "match")) object.match = message.match; - if (message.minimum != null && message.hasOwnProperty("minimum")) + if (message.minimum != null && Object.hasOwnProperty.call(message, "minimum")) object.minimum = message.minimum; - if (message.description != null && message.hasOwnProperty("description")) + if (message.description != null && Object.hasOwnProperty.call(message, "description")) object.description = message.description; - if (message.value != null && message.hasOwnProperty("value")) + if (message.value != null && Object.hasOwnProperty.call(message, "value")) object.value = message.value; return object; }; @@ -164339,19 +133709,6 @@ export const AccountSummary = $root.AccountSummary = (() => { return writer; }; - /** - * Encodes the specified SecurityKey message, length delimited. Does not implicitly {@link AccountSummary.SecurityKey.verify|verify} messages. - * @function encodeDelimited - * @memberof AccountSummary.SecurityKey - * @static - * @param {AccountSummary.ISecurityKey} message SecurityKey message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SecurityKey.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a SecurityKey message from the specified reader or buffer. * @function decode @@ -164404,57 +133761,6 @@ export const AccountSummary = $root.AccountSummary = (() => { return message; }; - /** - * Decodes a SecurityKey message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof AccountSummary.SecurityKey - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {AccountSummary.SecurityKey} SecurityKey - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SecurityKey.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a SecurityKey message. - * @function verify - * @memberof AccountSummary.SecurityKey - * @static - * @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) { - if (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"; - if (message.deviceName != null && message.hasOwnProperty("deviceName")) - if (!$util.isString(message.deviceName)) - return "deviceName: string expected"; - if (message.dateAdded != null && message.hasOwnProperty("dateAdded")) - if (!$util.isInteger(message.dateAdded) && !(message.dateAdded && $util.isInteger(message.dateAdded.low) && $util.isInteger(message.dateAdded.high))) - return "dateAdded: integer|Long expected"; - if (message.isValid != null && message.hasOwnProperty("isValid")) - 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); - if (error) - return "deviceRegistration." + error; - } - return null; - }; - /** * Creates a SecurityKey message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -164466,6 +133772,8 @@ export const AccountSummary = $root.AccountSummary = (() => { SecurityKey.fromObject = function fromObject(object, long) { if (object instanceof $root.AccountSummary.SecurityKey) return object; + if (!$util.isObject(object)) + throw TypeError(".AccountSummary.SecurityKey: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -164494,7 +133802,7 @@ export const AccountSummary = $root.AccountSummary = (() => { if (object.isValid != null) message.isValid = Boolean(object.isValid); if (object.deviceRegistration != null) { - if (typeof object.deviceRegistration !== "object") + if (!$util.isObject(object.deviceRegistration)) throw TypeError(".AccountSummary.SecurityKey.deviceRegistration: object expected"); message.deviceRegistration = $root.AccountSummary.DeviceRegistration.fromObject(object.deviceRegistration, long + 1); } @@ -164533,25 +133841,25 @@ export const AccountSummary = $root.AccountSummary = (() => { object.isValid = false; object.deviceRegistration = null; } - if (message.deviceId != null && message.hasOwnProperty("deviceId")) + if (message.deviceId != null && Object.hasOwnProperty.call(message, "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") 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")) + if (message.deviceName != null && Object.hasOwnProperty.call(message, "deviceName")) object.deviceName = message.deviceName; - if (message.dateAdded != null && message.hasOwnProperty("dateAdded")) + if (message.dateAdded != null && Object.hasOwnProperty.call(message, "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") 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")) + if (message.isValid != null && Object.hasOwnProperty.call(message, "isValid")) object.isValid = message.isValid; - if (message.deviceRegistration != null && message.hasOwnProperty("deviceRegistration")) + if (message.deviceRegistration != null && Object.hasOwnProperty.call(message, "deviceRegistration")) object.deviceRegistration = $root.AccountSummary.DeviceRegistration.toObject(message.deviceRegistration, options, q + 1); return object; }; @@ -164694,19 +134002,6 @@ export const AccountSummary = $root.AccountSummary = (() => { return writer; }; - /** - * Encodes the specified DeviceRegistration message, length delimited. Does not implicitly {@link AccountSummary.DeviceRegistration.verify|verify} messages. - * @function encodeDelimited - * @memberof AccountSummary.DeviceRegistration - * @static - * @param {AccountSummary.IDeviceRegistration} message DeviceRegistration message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - DeviceRegistration.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a DeviceRegistration message from the specified reader or buffer. * @function decode @@ -164759,55 +134054,6 @@ export const AccountSummary = $root.AccountSummary = (() => { return message; }; - /** - * Decodes a DeviceRegistration message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof AccountSummary.DeviceRegistration - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {AccountSummary.DeviceRegistration} DeviceRegistration - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - DeviceRegistration.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a DeviceRegistration message. - * @function verify - * @memberof AccountSummary.DeviceRegistration - * @static - * @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) { - if (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"; - if (message.publicKey != null && message.hasOwnProperty("publicKey")) - if (!(message.publicKey && typeof message.publicKey.length === "number" || $util.isString(message.publicKey))) - return "publicKey: buffer expected"; - if (message.attestationCert != null && message.hasOwnProperty("attestationCert")) - if (!$util.isString(message.attestationCert)) - return "attestationCert: string expected"; - if (message.counter != null && message.hasOwnProperty("counter")) - if (!$util.isInteger(message.counter) && !(message.counter && $util.isInteger(message.counter.low) && $util.isInteger(message.counter.high))) - return "counter: integer|Long expected"; - if (message.compromised != null && message.hasOwnProperty("compromised")) - if (typeof message.compromised !== "boolean") - return "compromised: boolean expected"; - return null; - }; - /** * Creates a DeviceRegistration message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -164819,6 +134065,8 @@ export const AccountSummary = $root.AccountSummary = (() => { DeviceRegistration.fromObject = function fromObject(object, long) { if (object instanceof $root.AccountSummary.DeviceRegistration) return object; + if (!$util.isObject(object)) + throw TypeError(".AccountSummary.DeviceRegistration: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -164881,20 +134129,20 @@ export const AccountSummary = $root.AccountSummary = (() => { object.counter = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; object.compromised = false; } - if (message.keyHandle != null && message.hasOwnProperty("keyHandle")) + if (message.keyHandle != null && Object.hasOwnProperty.call(message, "keyHandle")) object.keyHandle = message.keyHandle; - if (message.publicKey != null && message.hasOwnProperty("publicKey")) + if (message.publicKey != null && Object.hasOwnProperty.call(message, "publicKey")) object.publicKey = options.bytes === String ? $util.base64.encode(message.publicKey, 0, message.publicKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.publicKey) : message.publicKey; - if (message.attestationCert != null && message.hasOwnProperty("attestationCert")) + if (message.attestationCert != null && Object.hasOwnProperty.call(message, "attestationCert")) object.attestationCert = message.attestationCert; - if (message.counter != null && message.hasOwnProperty("counter")) + if (message.counter != null && Object.hasOwnProperty.call(message, "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") 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; - if (message.compromised != null && message.hasOwnProperty("compromised")) + if (message.compromised != null && Object.hasOwnProperty.call(message, "compromised")) object.compromised = message.compromised; return object; }; @@ -165015,19 +134263,6 @@ export const AccountSummary = $root.AccountSummary = (() => { return writer; }; - /** - * Encodes the specified Group message, length delimited. Does not implicitly {@link AccountSummary.Group.verify|verify} messages. - * @function encodeDelimited - * @memberof AccountSummary.Group - * @static - * @param {AccountSummary.IGroup} message Group message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Group.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a Group message from the specified reader or buffer. * @function decode @@ -165072,51 +134307,6 @@ export const AccountSummary = $root.AccountSummary = (() => { return message; }; - /** - * Decodes a Group message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof AccountSummary.Group - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {AccountSummary.Group} Group - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Group.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a Group message. - * @function verify - * @memberof AccountSummary.Group - * @static - * @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) { - if (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"; - if (message.groupVerificationCode != null && message.hasOwnProperty("groupVerificationCode")) - 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); - if (error) - return "administrator." + error; - } - return null; - }; - /** * Creates a Group message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -165128,6 +134318,8 @@ export const AccountSummary = $root.AccountSummary = (() => { Group.fromObject = function fromObject(object, long) { if (object instanceof $root.AccountSummary.Group) return object; + if (!$util.isObject(object)) + throw TypeError(".AccountSummary.Group: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -165138,7 +134330,7 @@ export const AccountSummary = $root.AccountSummary = (() => { if (object.groupVerificationCode != null) message.groupVerificationCode = String(object.groupVerificationCode); if (object.administrator != null) { - if (typeof object.administrator !== "object") + if (!$util.isObject(object.administrator)) throw TypeError(".AccountSummary.Group.administrator: object expected"); message.administrator = $root.AccountSummary.Administrator.fromObject(object.administrator, long + 1); } @@ -165167,11 +134359,11 @@ export const AccountSummary = $root.AccountSummary = (() => { object.groupVerificationCode = ""; object.administrator = null; } - if (message.admin != null && message.hasOwnProperty("admin")) + if (message.admin != null && Object.hasOwnProperty.call(message, "admin")) object.admin = message.admin; - if (message.groupVerificationCode != null && message.hasOwnProperty("groupVerificationCode")) + if (message.groupVerificationCode != null && Object.hasOwnProperty.call(message, "groupVerificationCode")) object.groupVerificationCode = message.groupVerificationCode; - if (message.administrator != null && message.hasOwnProperty("administrator")) + if (message.administrator != null && Object.hasOwnProperty.call(message, "administrator")) object.administrator = $root.AccountSummary.Administrator.toObject(message.administrator, options, q + 1); return object; }; @@ -165347,19 +134539,6 @@ export const AccountSummary = $root.AccountSummary = (() => { return writer; }; - /** - * Encodes the specified Administrator message, length delimited. Does not implicitly {@link AccountSummary.Administrator.verify|verify} messages. - * @function encodeDelimited - * @memberof AccountSummary.Administrator - * @static - * @param {AccountSummary.IAdministrator} message Administrator message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Administrator.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes an Administrator message from the specified reader or buffer. * @function decode @@ -165424,64 +134603,6 @@ export const AccountSummary = $root.AccountSummary = (() => { return message; }; - /** - * Decodes an Administrator message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof AccountSummary.Administrator - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {AccountSummary.Administrator} Administrator - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Administrator.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an Administrator message. - * @function verify - * @memberof AccountSummary.Administrator - * @static - * @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) { - if (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"; - if (message.lastName != null && message.hasOwnProperty("lastName")) - if (!$util.isString(message.lastName)) - return "lastName: string expected"; - if (message.email != null && message.hasOwnProperty("email")) - if (!$util.isString(message.email)) - return "email: string expected"; - if (message.currentNumberOfUsers != null && message.hasOwnProperty("currentNumberOfUsers")) - if (!$util.isInteger(message.currentNumberOfUsers)) - return "currentNumberOfUsers: integer expected"; - if (message.numberOfUsers != null && message.hasOwnProperty("numberOfUsers")) - if (!$util.isInteger(message.numberOfUsers)) - return "numberOfUsers: integer expected"; - if (message.subscriptionCode != null && message.hasOwnProperty("subscriptionCode")) - if (!$util.isString(message.subscriptionCode)) - return "subscriptionCode: string expected"; - if (message.expirationDate != null && message.hasOwnProperty("expirationDate")) - if (!$util.isString(message.expirationDate)) - return "expirationDate: string expected"; - if (message.purchaseDate != null && message.hasOwnProperty("purchaseDate")) - if (!$util.isString(message.purchaseDate)) - return "purchaseDate: string expected"; - return null; - }; - /** * Creates an Administrator message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -165493,6 +134614,8 @@ export const AccountSummary = $root.AccountSummary = (() => { Administrator.fromObject = function fromObject(object, long) { if (object instanceof $root.AccountSummary.Administrator) return object; + if (!$util.isObject(object)) + throw TypeError(".AccountSummary.Administrator: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -165544,21 +134667,21 @@ export const AccountSummary = $root.AccountSummary = (() => { object.expirationDate = ""; object.purchaseDate = ""; } - if (message.firstName != null && message.hasOwnProperty("firstName")) + if (message.firstName != null && Object.hasOwnProperty.call(message, "firstName")) object.firstName = message.firstName; - if (message.lastName != null && message.hasOwnProperty("lastName")) + if (message.lastName != null && Object.hasOwnProperty.call(message, "lastName")) object.lastName = message.lastName; - if (message.email != null && message.hasOwnProperty("email")) + if (message.email != null && Object.hasOwnProperty.call(message, "email")) object.email = message.email; - if (message.currentNumberOfUsers != null && message.hasOwnProperty("currentNumberOfUsers")) + if (message.currentNumberOfUsers != null && Object.hasOwnProperty.call(message, "currentNumberOfUsers")) object.currentNumberOfUsers = message.currentNumberOfUsers; - if (message.numberOfUsers != null && message.hasOwnProperty("numberOfUsers")) + if (message.numberOfUsers != null && Object.hasOwnProperty.call(message, "numberOfUsers")) object.numberOfUsers = message.numberOfUsers; - if (message.subscriptionCode != null && message.hasOwnProperty("subscriptionCode")) + if (message.subscriptionCode != null && Object.hasOwnProperty.call(message, "subscriptionCode")) object.subscriptionCode = message.subscriptionCode; - if (message.expirationDate != null && message.hasOwnProperty("expirationDate")) + if (message.expirationDate != null && Object.hasOwnProperty.call(message, "expirationDate")) object.expirationDate = message.expirationDate; - if (message.purchaseDate != null && message.hasOwnProperty("purchaseDate")) + if (message.purchaseDate != null && Object.hasOwnProperty.call(message, "purchaseDate")) object.purchaseDate = message.purchaseDate; return object; }; @@ -165849,19 +134972,6 @@ export const Automator = $root.Automator = (() => { return writer; }; - /** - * Encodes the specified AutomatorSettingValue message, length delimited. Does not implicitly {@link Automator.AutomatorSettingValue.verify|verify} messages. - * @function encodeDelimited - * @memberof Automator.AutomatorSettingValue - * @static - * @param {Automator.IAutomatorSettingValue} message AutomatorSettingValue message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - AutomatorSettingValue.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes an AutomatorSettingValue message from the specified reader or buffer. * @function decode @@ -165950,96 +135060,6 @@ export const Automator = $root.Automator = (() => { return message; }; - /** - * Decodes an AutomatorSettingValue message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Automator.AutomatorSettingValue - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Automator.AutomatorSettingValue} AutomatorSettingValue - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - AutomatorSettingValue.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an AutomatorSettingValue message. - * @function verify - * @memberof Automator.AutomatorSettingValue - * @static - * @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) { - if (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"; - if (message.settingTypeId != null && message.hasOwnProperty("settingTypeId")) - if (!$util.isInteger(message.settingTypeId)) - return "settingTypeId: integer expected"; - if (message.settingTag != null && message.hasOwnProperty("settingTag")) - if (!$util.isString(message.settingTag)) - return "settingTag: string expected"; - if (message.settingName != null && message.hasOwnProperty("settingName")) - if (!$util.isString(message.settingName)) - return "settingName: string expected"; - if (message.settingValue != null && message.hasOwnProperty("settingValue")) - if (!$util.isString(message.settingValue)) - return "settingValue: string expected"; - if (message.dataType != null && message.hasOwnProperty("dataType")) - switch (message.dataType) { - default: - return "dataType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: - case 9: - case 10: - break; - } - if (message.lastModified != null && message.hasOwnProperty("lastModified")) - if (!$util.isString(message.lastModified)) - return "lastModified: string expected"; - if (message.fromFile != null && message.hasOwnProperty("fromFile")) - if (typeof message.fromFile !== "boolean") - return "fromFile: boolean expected"; - if (message.encrypted != null && message.hasOwnProperty("encrypted")) - if (typeof message.encrypted !== "boolean") - return "encrypted: boolean expected"; - if (message.encoded != null && message.hasOwnProperty("encoded")) - if (typeof message.encoded !== "boolean") - return "encoded: boolean expected"; - if (message.editable != null && message.hasOwnProperty("editable")) - if (typeof message.editable !== "boolean") - return "editable: boolean expected"; - if (message.translated != null && message.hasOwnProperty("translated")) - if (typeof message.translated !== "boolean") - return "translated: boolean expected"; - if (message.userVisible != null && message.hasOwnProperty("userVisible")) - if (typeof message.userVisible !== "boolean") - return "userVisible: boolean expected"; - if (message.required != null && message.hasOwnProperty("required")) - if (typeof message.required !== "boolean") - return "required: boolean expected"; - return null; - }; - /** * Creates an AutomatorSettingValue message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -166051,6 +135071,8 @@ export const Automator = $root.Automator = (() => { AutomatorSettingValue.fromObject = function fromObject(object, long) { if (object instanceof $root.Automator.AutomatorSettingValue) return object; + if (!$util.isObject(object)) + throw TypeError(".Automator.AutomatorSettingValue: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -166181,38 +135203,38 @@ export const Automator = $root.Automator = (() => { object.userVisible = false; object.required = false; } - if (message.settingId != null && message.hasOwnProperty("settingId")) + if (message.settingId != null && Object.hasOwnProperty.call(message, "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") 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; - if (message.settingTypeId != null && message.hasOwnProperty("settingTypeId")) + if (message.settingTypeId != null && Object.hasOwnProperty.call(message, "settingTypeId")) object.settingTypeId = message.settingTypeId; - if (message.settingTag != null && message.hasOwnProperty("settingTag")) + if (message.settingTag != null && Object.hasOwnProperty.call(message, "settingTag")) object.settingTag = message.settingTag; - if (message.settingName != null && message.hasOwnProperty("settingName")) + if (message.settingName != null && Object.hasOwnProperty.call(message, "settingName")) object.settingName = message.settingName; - if (message.settingValue != null && message.hasOwnProperty("settingValue")) + if (message.settingValue != null && Object.hasOwnProperty.call(message, "settingValue")) object.settingValue = message.settingValue; - if (message.dataType != null && message.hasOwnProperty("dataType")) + if (message.dataType != null && Object.hasOwnProperty.call(message, "dataType")) object.dataType = options.enums === String ? $root.SsoCloud.DataType[message.dataType] === undefined ? message.dataType : $root.SsoCloud.DataType[message.dataType] : message.dataType; - if (message.lastModified != null && message.hasOwnProperty("lastModified")) + if (message.lastModified != null && Object.hasOwnProperty.call(message, "lastModified")) object.lastModified = message.lastModified; - if (message.fromFile != null && message.hasOwnProperty("fromFile")) + if (message.fromFile != null && Object.hasOwnProperty.call(message, "fromFile")) object.fromFile = message.fromFile; - if (message.encrypted != null && message.hasOwnProperty("encrypted")) + if (message.encrypted != null && Object.hasOwnProperty.call(message, "encrypted")) object.encrypted = message.encrypted; - if (message.encoded != null && message.hasOwnProperty("encoded")) + if (message.encoded != null && Object.hasOwnProperty.call(message, "encoded")) object.encoded = message.encoded; - if (message.editable != null && message.hasOwnProperty("editable")) + if (message.editable != null && Object.hasOwnProperty.call(message, "editable")) object.editable = message.editable; - if (message.translated != null && message.hasOwnProperty("translated")) + if (message.translated != null && Object.hasOwnProperty.call(message, "translated")) object.translated = message.translated; - if (message.userVisible != null && message.hasOwnProperty("userVisible")) + if (message.userVisible != null && Object.hasOwnProperty.call(message, "userVisible")) object.userVisible = message.userVisible; - if (message.required != null && message.hasOwnProperty("required")) + if (message.required != null && Object.hasOwnProperty.call(message, "required")) object.required = message.required; return object; }; @@ -166425,19 +135447,6 @@ export const Automator = $root.Automator = (() => { return writer; }; - /** - * Encodes the specified ApproveDeviceRequest message, length delimited. Does not implicitly {@link Automator.ApproveDeviceRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof Automator.ApproveDeviceRequest - * @static - * @param {Automator.IApproveDeviceRequest} message ApproveDeviceRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ApproveDeviceRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes an ApproveDeviceRequest message from the specified reader or buffer. * @function decode @@ -166514,87 +135523,6 @@ export const Automator = $root.Automator = (() => { return message; }; - /** - * Decodes an ApproveDeviceRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Automator.ApproveDeviceRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Automator.ApproveDeviceRequest} ApproveDeviceRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ApproveDeviceRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an ApproveDeviceRequest message. - * @function verify - * @memberof Automator.ApproveDeviceRequest - * @static - * @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) { - if (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"; - if (message.ssoAuthenticationProtocolType != null && message.hasOwnProperty("ssoAuthenticationProtocolType")) - switch (message.ssoAuthenticationProtocolType) { - default: - return "ssoAuthenticationProtocolType: enum value expected"; - case 0: - case 1: - case 2: - break; - } - if (message.authMessage != null && message.hasOwnProperty("authMessage")) - if (!$util.isString(message.authMessage)) - return "authMessage: string expected"; - if (message.email != null && message.hasOwnProperty("email")) - if (!$util.isString(message.email)) - return "email: string expected"; - if (message.devicePublicKey != null && message.hasOwnProperty("devicePublicKey")) - if (!(message.devicePublicKey && typeof message.devicePublicKey.length === "number" || $util.isString(message.devicePublicKey))) - return "devicePublicKey: buffer expected"; - if (message.serverEccPublicKeyId != null && message.hasOwnProperty("serverEccPublicKeyId")) - if (!$util.isInteger(message.serverEccPublicKeyId)) - return "serverEccPublicKeyId: integer expected"; - if (message.userEncryptedDataKey != null && message.hasOwnProperty("userEncryptedDataKey")) - if (!(message.userEncryptedDataKey && typeof message.userEncryptedDataKey.length === "number" || $util.isString(message.userEncryptedDataKey))) - return "userEncryptedDataKey: buffer expected"; - if (message.userEncryptedDataKeyType != null && message.hasOwnProperty("userEncryptedDataKeyType")) - switch (message.userEncryptedDataKeyType) { - default: - return "userEncryptedDataKeyType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - break; - } - if (message.ipAddress != null && message.hasOwnProperty("ipAddress")) - if (!$util.isString(message.ipAddress)) - return "ipAddress: string expected"; - if (message.isTesting != null && message.hasOwnProperty("isTesting")) - if (typeof message.isTesting !== "boolean") - return "isTesting: boolean expected"; - if (message.isEccOnly != null && message.hasOwnProperty("isEccOnly")) - if (typeof message.isEccOnly !== "boolean") - return "isEccOnly: boolean expected"; - return null; - }; - /** * Creates an ApproveDeviceRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -166606,6 +135534,8 @@ export const Automator = $root.Automator = (() => { ApproveDeviceRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.Automator.ApproveDeviceRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".Automator.ApproveDeviceRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -166739,32 +135669,32 @@ export const Automator = $root.Automator = (() => { object.isTesting = false; object.isEccOnly = false; } - if (message.automatorId != null && message.hasOwnProperty("automatorId")) + if (message.automatorId != null && Object.hasOwnProperty.call(message, "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") 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.ssoAuthenticationProtocolType != null && message.hasOwnProperty("ssoAuthenticationProtocolType")) + if (message.ssoAuthenticationProtocolType != null && Object.hasOwnProperty.call(message, "ssoAuthenticationProtocolType")) object.ssoAuthenticationProtocolType = options.enums === String ? $root.Automator.SsoAuthenticationProtocolType[message.ssoAuthenticationProtocolType] === undefined ? message.ssoAuthenticationProtocolType : $root.Automator.SsoAuthenticationProtocolType[message.ssoAuthenticationProtocolType] : message.ssoAuthenticationProtocolType; - if (message.authMessage != null && message.hasOwnProperty("authMessage")) + if (message.authMessage != null && Object.hasOwnProperty.call(message, "authMessage")) object.authMessage = message.authMessage; - if (message.email != null && message.hasOwnProperty("email")) + if (message.email != null && Object.hasOwnProperty.call(message, "email")) object.email = message.email; - if (message.devicePublicKey != null && message.hasOwnProperty("devicePublicKey")) + if (message.devicePublicKey != null && Object.hasOwnProperty.call(message, "devicePublicKey")) object.devicePublicKey = options.bytes === String ? $util.base64.encode(message.devicePublicKey, 0, message.devicePublicKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.devicePublicKey) : message.devicePublicKey; - if (message.serverEccPublicKeyId != null && message.hasOwnProperty("serverEccPublicKeyId")) + if (message.serverEccPublicKeyId != null && Object.hasOwnProperty.call(message, "serverEccPublicKeyId")) object.serverEccPublicKeyId = message.serverEccPublicKeyId; - if (message.userEncryptedDataKey != null && message.hasOwnProperty("userEncryptedDataKey")) + if (message.userEncryptedDataKey != null && Object.hasOwnProperty.call(message, "userEncryptedDataKey")) object.userEncryptedDataKey = options.bytes === String ? $util.base64.encode(message.userEncryptedDataKey, 0, message.userEncryptedDataKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.userEncryptedDataKey) : message.userEncryptedDataKey; - if (message.userEncryptedDataKeyType != null && message.hasOwnProperty("userEncryptedDataKeyType")) + if (message.userEncryptedDataKeyType != null && Object.hasOwnProperty.call(message, "userEncryptedDataKeyType")) object.userEncryptedDataKeyType = options.enums === String ? $root.Enterprise.EncryptedKeyType[message.userEncryptedDataKeyType] === undefined ? message.userEncryptedDataKeyType : $root.Enterprise.EncryptedKeyType[message.userEncryptedDataKeyType] : message.userEncryptedDataKeyType; - if (message.ipAddress != null && message.hasOwnProperty("ipAddress")) + if (message.ipAddress != null && Object.hasOwnProperty.call(message, "ipAddress")) object.ipAddress = message.ipAddress; - if (message.isTesting != null && message.hasOwnProperty("isTesting")) + if (message.isTesting != null && Object.hasOwnProperty.call(message, "isTesting")) object.isTesting = message.isTesting; - if (message.isEccOnly != null && message.hasOwnProperty("isEccOnly")) + if (message.isEccOnly != null && Object.hasOwnProperty.call(message, "isEccOnly")) object.isEccOnly = message.isEccOnly; return object; }; @@ -166948,19 +135878,6 @@ export const Automator = $root.Automator = (() => { return writer; }; - /** - * Encodes the specified SetupRequest message, length delimited. Does not implicitly {@link Automator.SetupRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof Automator.SetupRequest - * @static - * @param {Automator.ISetupRequest} message SetupRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SetupRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a SetupRequest message from the specified reader or buffer. * @function decode @@ -167027,79 +135944,6 @@ export const Automator = $root.Automator = (() => { return message; }; - /** - * Decodes a SetupRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Automator.SetupRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Automator.SetupRequest} SetupRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SetupRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a SetupRequest message. - * @function verify - * @memberof Automator.SetupRequest - * @static - * @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) { - if (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"; - if (message.serverEccPublicKeyId != null && message.hasOwnProperty("serverEccPublicKeyId")) - if (!$util.isInteger(message.serverEccPublicKeyId)) - return "serverEccPublicKeyId: integer expected"; - if (message.automatorState != null && message.hasOwnProperty("automatorState")) - switch (message.automatorState) { - default: - return "automatorState: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - break; - } - if (message.encryptedEnterprisePrivateEccKey != null && message.hasOwnProperty("encryptedEnterprisePrivateEccKey")) - if (!(message.encryptedEnterprisePrivateEccKey && typeof message.encryptedEnterprisePrivateEccKey.length === "number" || $util.isString(message.encryptedEnterprisePrivateEccKey))) - return "encryptedEnterprisePrivateEccKey: buffer expected"; - if (message.encryptedEnterprisePrivateRsaKey != null && message.hasOwnProperty("encryptedEnterprisePrivateRsaKey")) - if (!(message.encryptedEnterprisePrivateRsaKey && typeof message.encryptedEnterprisePrivateRsaKey.length === "number" || $util.isString(message.encryptedEnterprisePrivateRsaKey))) - return "encryptedEnterprisePrivateRsaKey: buffer expected"; - if (message.automatorSkills != null && message.hasOwnProperty("automatorSkills")) { - 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); - if (error) - return "automatorSkills." + error; - } - } - if (message.encryptedTreeKey != null && message.hasOwnProperty("encryptedTreeKey")) - if (!(message.encryptedTreeKey && typeof message.encryptedTreeKey.length === "number" || $util.isString(message.encryptedTreeKey))) - return "encryptedTreeKey: buffer expected"; - if (message.isEccOnly != null && message.hasOwnProperty("isEccOnly")) - if (typeof message.isEccOnly !== "boolean") - return "isEccOnly: boolean expected"; - return null; - }; - /** * Creates a SetupRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -167111,6 +135955,8 @@ export const Automator = $root.Automator = (() => { SetupRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.Automator.SetupRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".Automator.SetupRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -167174,7 +136020,7 @@ export const Automator = $root.Automator = (() => { throw TypeError(".Automator.SetupRequest.automatorSkills: array expected"); message.automatorSkills = []; for (let i = 0; i < object.automatorSkills.length; ++i) { - if (typeof object.automatorSkills[i] !== "object") + if (!$util.isObject(object.automatorSkills[i])) throw TypeError(".Automator.SetupRequest.automatorSkills: object expected"); message.automatorSkills[i] = $root.Automator.AutomatorSkill.fromObject(object.automatorSkills[i], long + 1); } @@ -167239,29 +136085,29 @@ export const Automator = $root.Automator = (() => { } object.isEccOnly = false; } - if (message.automatorId != null && message.hasOwnProperty("automatorId")) + if (message.automatorId != null && Object.hasOwnProperty.call(message, "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") 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.serverEccPublicKeyId != null && message.hasOwnProperty("serverEccPublicKeyId")) + if (message.serverEccPublicKeyId != null && Object.hasOwnProperty.call(message, "serverEccPublicKeyId")) object.serverEccPublicKeyId = message.serverEccPublicKeyId; - if (message.automatorState != null && message.hasOwnProperty("automatorState")) + if (message.automatorState != null && Object.hasOwnProperty.call(message, "automatorState")) object.automatorState = options.enums === String ? $root.Automator.AutomatorState[message.automatorState] === undefined ? message.automatorState : $root.Automator.AutomatorState[message.automatorState] : message.automatorState; - if (message.encryptedEnterprisePrivateEccKey != null && message.hasOwnProperty("encryptedEnterprisePrivateEccKey")) + if (message.encryptedEnterprisePrivateEccKey != null && Object.hasOwnProperty.call(message, "encryptedEnterprisePrivateEccKey")) object.encryptedEnterprisePrivateEccKey = options.bytes === String ? $util.base64.encode(message.encryptedEnterprisePrivateEccKey, 0, message.encryptedEnterprisePrivateEccKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedEnterprisePrivateEccKey) : message.encryptedEnterprisePrivateEccKey; - if (message.encryptedEnterprisePrivateRsaKey != null && message.hasOwnProperty("encryptedEnterprisePrivateRsaKey")) + if (message.encryptedEnterprisePrivateRsaKey != null && Object.hasOwnProperty.call(message, "encryptedEnterprisePrivateRsaKey")) object.encryptedEnterprisePrivateRsaKey = options.bytes === String ? $util.base64.encode(message.encryptedEnterprisePrivateRsaKey, 0, message.encryptedEnterprisePrivateRsaKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedEnterprisePrivateRsaKey) : message.encryptedEnterprisePrivateRsaKey; 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); } - if (message.encryptedTreeKey != null && message.hasOwnProperty("encryptedTreeKey")) + if (message.encryptedTreeKey != null && Object.hasOwnProperty.call(message, "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; - if (message.isEccOnly != null && message.hasOwnProperty("isEccOnly")) + if (message.isEccOnly != null && Object.hasOwnProperty.call(message, "isEccOnly")) object.isEccOnly = message.isEccOnly; return object; }; @@ -167384,19 +136230,6 @@ export const Automator = $root.Automator = (() => { return writer; }; - /** - * Encodes the specified StatusRequest message, length delimited. Does not implicitly {@link Automator.StatusRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof Automator.StatusRequest - * @static - * @param {Automator.IStatusRequest} message StatusRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - StatusRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a StatusRequest message from the specified reader or buffer. * @function decode @@ -167441,49 +136274,6 @@ export const Automator = $root.Automator = (() => { return message; }; - /** - * Decodes a StatusRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Automator.StatusRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Automator.StatusRequest} StatusRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - StatusRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a StatusRequest message. - * @function verify - * @memberof Automator.StatusRequest - * @static - * @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) { - if (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"; - if (message.serverEccPublicKeyId != null && message.hasOwnProperty("serverEccPublicKeyId")) - if (!$util.isInteger(message.serverEccPublicKeyId)) - return "serverEccPublicKeyId: integer expected"; - if (message.isEccOnly != null && message.hasOwnProperty("isEccOnly")) - if (typeof message.isEccOnly !== "boolean") - return "isEccOnly: boolean expected"; - return null; - }; - /** * Creates a StatusRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -167495,6 +136285,8 @@ export const Automator = $root.Automator = (() => { StatusRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.Automator.StatusRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".Automator.StatusRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -167542,16 +136334,16 @@ export const Automator = $root.Automator = (() => { object.serverEccPublicKeyId = 0; object.isEccOnly = false; } - if (message.automatorId != null && message.hasOwnProperty("automatorId")) + if (message.automatorId != null && Object.hasOwnProperty.call(message, "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") 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.serverEccPublicKeyId != null && message.hasOwnProperty("serverEccPublicKeyId")) + if (message.serverEccPublicKeyId != null && Object.hasOwnProperty.call(message, "serverEccPublicKeyId")) object.serverEccPublicKeyId = message.serverEccPublicKeyId; - if (message.isEccOnly != null && message.hasOwnProperty("isEccOnly")) + if (message.isEccOnly != null && Object.hasOwnProperty.call(message, "isEccOnly")) object.isEccOnly = message.isEccOnly; return object; }; @@ -167886,19 +136678,6 @@ export const Automator = $root.Automator = (() => { return writer; }; - /** - * Encodes the specified InitializeRequest message, length delimited. Does not implicitly {@link Automator.InitializeRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof Automator.InitializeRequest - * @static - * @param {Automator.IInitializeRequest} message InitializeRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - InitializeRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes an InitializeRequest message from the specified reader or buffer. * @function decode @@ -168019,106 +136798,6 @@ export const Automator = $root.Automator = (() => { return message; }; - /** - * Decodes an InitializeRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Automator.InitializeRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Automator.InitializeRequest} InitializeRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - InitializeRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an InitializeRequest message. - * @function verify - * @memberof Automator.InitializeRequest - * @static - * @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) { - if (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"; - if (message.idpMetadata != null && message.hasOwnProperty("idpMetadata")) - if (!$util.isString(message.idpMetadata)) - return "idpMetadata: string expected"; - if (message.idpSigningCertificate != null && message.hasOwnProperty("idpSigningCertificate")) - if (!(message.idpSigningCertificate && typeof message.idpSigningCertificate.length === "number" || $util.isString(message.idpSigningCertificate))) - return "idpSigningCertificate: buffer expected"; - if (message.ssoEntityId != null && message.hasOwnProperty("ssoEntityId")) - if (!$util.isString(message.ssoEntityId)) - return "ssoEntityId: string expected"; - if (message.emailMapping != null && message.hasOwnProperty("emailMapping")) - if (!$util.isString(message.emailMapping)) - return "emailMapping: string expected"; - if (message.firstnameMapping != null && message.hasOwnProperty("firstnameMapping")) - if (!$util.isString(message.firstnameMapping)) - return "firstnameMapping: string expected"; - if (message.lastnameMapping != null && message.hasOwnProperty("lastnameMapping")) - if (!$util.isString(message.lastnameMapping)) - return "lastnameMapping: string expected"; - if (message.disabled != null && message.hasOwnProperty("disabled")) - if (typeof message.disabled !== "boolean") - return "disabled: boolean expected"; - if (message.serverEccPublicKeyId != null && message.hasOwnProperty("serverEccPublicKeyId")) - if (!$util.isInteger(message.serverEccPublicKeyId)) - return "serverEccPublicKeyId: integer expected"; - if (message.config != null && message.hasOwnProperty("config")) - if (!(message.config && typeof message.config.length === "number" || $util.isString(message.config))) - return "config: buffer expected"; - if (message.sslMode != null && message.hasOwnProperty("sslMode")) - if (!$util.isString(message.sslMode)) - return "sslMode: string expected"; - if (message.persistState != null && message.hasOwnProperty("persistState")) - if (typeof message.persistState !== "boolean") - return "persistState: boolean expected"; - if (message.disableSniCheck != null && message.hasOwnProperty("disableSniCheck")) - if (typeof message.disableSniCheck !== "boolean") - return "disableSniCheck: boolean expected"; - if (message.sslCertificateFilename != null && message.hasOwnProperty("sslCertificateFilename")) - if (!$util.isString(message.sslCertificateFilename)) - return "sslCertificateFilename: string expected"; - if (message.sslCertificateFilePassword != null && message.hasOwnProperty("sslCertificateFilePassword")) - if (!$util.isString(message.sslCertificateFilePassword)) - return "sslCertificateFilePassword: string expected"; - if (message.sslCertificateKeyPassword != null && message.hasOwnProperty("sslCertificateKeyPassword")) - if (!$util.isString(message.sslCertificateKeyPassword)) - return "sslCertificateKeyPassword: string expected"; - if (message.sslCertificateContents != null && message.hasOwnProperty("sslCertificateContents")) - if (!(message.sslCertificateContents && typeof message.sslCertificateContents.length === "number" || $util.isString(message.sslCertificateContents))) - return "sslCertificateContents: buffer expected"; - if (message.automatorHost != null && message.hasOwnProperty("automatorHost")) - if (!$util.isString(message.automatorHost)) - return "automatorHost: string expected"; - if (message.automatorPort != null && message.hasOwnProperty("automatorPort")) - if (!$util.isString(message.automatorPort)) - return "automatorPort: string expected"; - if (message.ipAllow != null && message.hasOwnProperty("ipAllow")) - if (!$util.isString(message.ipAllow)) - return "ipAllow: string expected"; - if (message.ipDeny != null && message.hasOwnProperty("ipDeny")) - if (!$util.isString(message.ipDeny)) - return "ipDeny: string expected"; - if (message.isEccOnly != null && message.hasOwnProperty("isEccOnly")) - if (typeof message.isEccOnly !== "boolean") - return "isEccOnly: boolean expected"; - return null; - }; - /** * Creates an InitializeRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -168130,6 +136809,8 @@ export const Automator = $root.Automator = (() => { InitializeRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.Automator.InitializeRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".Automator.InitializeRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -168261,54 +136942,54 @@ export const Automator = $root.Automator = (() => { object.ipDeny = ""; object.isEccOnly = false; } - if (message.automatorId != null && message.hasOwnProperty("automatorId")) + if (message.automatorId != null && Object.hasOwnProperty.call(message, "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") 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.idpMetadata != null && message.hasOwnProperty("idpMetadata")) + if (message.idpMetadata != null && Object.hasOwnProperty.call(message, "idpMetadata")) object.idpMetadata = message.idpMetadata; - if (message.idpSigningCertificate != null && message.hasOwnProperty("idpSigningCertificate")) + if (message.idpSigningCertificate != null && Object.hasOwnProperty.call(message, "idpSigningCertificate")) object.idpSigningCertificate = options.bytes === String ? $util.base64.encode(message.idpSigningCertificate, 0, message.idpSigningCertificate.length) : options.bytes === Array ? Array.prototype.slice.call(message.idpSigningCertificate) : message.idpSigningCertificate; - if (message.ssoEntityId != null && message.hasOwnProperty("ssoEntityId")) + if (message.ssoEntityId != null && Object.hasOwnProperty.call(message, "ssoEntityId")) object.ssoEntityId = message.ssoEntityId; - if (message.emailMapping != null && message.hasOwnProperty("emailMapping")) + if (message.emailMapping != null && Object.hasOwnProperty.call(message, "emailMapping")) object.emailMapping = message.emailMapping; - if (message.firstnameMapping != null && message.hasOwnProperty("firstnameMapping")) + if (message.firstnameMapping != null && Object.hasOwnProperty.call(message, "firstnameMapping")) object.firstnameMapping = message.firstnameMapping; - if (message.lastnameMapping != null && message.hasOwnProperty("lastnameMapping")) + if (message.lastnameMapping != null && Object.hasOwnProperty.call(message, "lastnameMapping")) object.lastnameMapping = message.lastnameMapping; - if (message.disabled != null && message.hasOwnProperty("disabled")) + if (message.disabled != null && Object.hasOwnProperty.call(message, "disabled")) object.disabled = message.disabled; - if (message.serverEccPublicKeyId != null && message.hasOwnProperty("serverEccPublicKeyId")) + if (message.serverEccPublicKeyId != null && Object.hasOwnProperty.call(message, "serverEccPublicKeyId")) object.serverEccPublicKeyId = message.serverEccPublicKeyId; - if (message.config != null && message.hasOwnProperty("config")) + if (message.config != null && Object.hasOwnProperty.call(message, "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.sslMode != null && message.hasOwnProperty("sslMode")) + if (message.sslMode != null && Object.hasOwnProperty.call(message, "sslMode")) object.sslMode = message.sslMode; - if (message.persistState != null && message.hasOwnProperty("persistState")) + if (message.persistState != null && Object.hasOwnProperty.call(message, "persistState")) object.persistState = message.persistState; - if (message.disableSniCheck != null && message.hasOwnProperty("disableSniCheck")) + if (message.disableSniCheck != null && Object.hasOwnProperty.call(message, "disableSniCheck")) object.disableSniCheck = message.disableSniCheck; - if (message.sslCertificateFilename != null && message.hasOwnProperty("sslCertificateFilename")) + if (message.sslCertificateFilename != null && Object.hasOwnProperty.call(message, "sslCertificateFilename")) object.sslCertificateFilename = message.sslCertificateFilename; - if (message.sslCertificateFilePassword != null && message.hasOwnProperty("sslCertificateFilePassword")) + if (message.sslCertificateFilePassword != null && Object.hasOwnProperty.call(message, "sslCertificateFilePassword")) object.sslCertificateFilePassword = message.sslCertificateFilePassword; - if (message.sslCertificateKeyPassword != null && message.hasOwnProperty("sslCertificateKeyPassword")) + if (message.sslCertificateKeyPassword != null && Object.hasOwnProperty.call(message, "sslCertificateKeyPassword")) object.sslCertificateKeyPassword = message.sslCertificateKeyPassword; - if (message.sslCertificateContents != null && message.hasOwnProperty("sslCertificateContents")) + if (message.sslCertificateContents != null && Object.hasOwnProperty.call(message, "sslCertificateContents")) object.sslCertificateContents = options.bytes === String ? $util.base64.encode(message.sslCertificateContents, 0, message.sslCertificateContents.length) : options.bytes === Array ? Array.prototype.slice.call(message.sslCertificateContents) : message.sslCertificateContents; - if (message.automatorHost != null && message.hasOwnProperty("automatorHost")) + if (message.automatorHost != null && Object.hasOwnProperty.call(message, "automatorHost")) object.automatorHost = message.automatorHost; - if (message.automatorPort != null && message.hasOwnProperty("automatorPort")) + if (message.automatorPort != null && Object.hasOwnProperty.call(message, "automatorPort")) object.automatorPort = message.automatorPort; - if (message.ipAllow != null && message.hasOwnProperty("ipAllow")) + if (message.ipAllow != null && Object.hasOwnProperty.call(message, "ipAllow")) object.ipAllow = message.ipAllow; - if (message.ipDeny != null && message.hasOwnProperty("ipDeny")) + if (message.ipDeny != null && Object.hasOwnProperty.call(message, "ipDeny")) object.ipDeny = message.ipDeny; - if (message.isEccOnly != null && message.hasOwnProperty("isEccOnly")) + if (message.isEccOnly != null && Object.hasOwnProperty.call(message, "isEccOnly")) object.isEccOnly = message.isEccOnly; return object; }; @@ -168490,19 +137171,6 @@ export const Automator = $root.Automator = (() => { return writer; }; - /** - * Encodes the specified NotInitializedResponse message, length delimited. Does not implicitly {@link Automator.NotInitializedResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof Automator.NotInitializedResponse - * @static - * @param {Automator.INotInitializedResponse} message NotInitializedResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - NotInitializedResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a NotInitializedResponse message from the specified reader or buffer. * @function decode @@ -168567,70 +137235,6 @@ export const Automator = $root.Automator = (() => { return message; }; - /** - * Decodes a NotInitializedResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Automator.NotInitializedResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Automator.NotInitializedResponse} NotInitializedResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - NotInitializedResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a NotInitializedResponse message. - * @function verify - * @memberof Automator.NotInitializedResponse - * @static - * @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) { - if (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"; - if (message.signingCertificate != null && message.hasOwnProperty("signingCertificate")) - if (!(message.signingCertificate && typeof message.signingCertificate.length === "number" || $util.isString(message.signingCertificate))) - return "signingCertificate: buffer expected"; - if (message.signingCertificateFilename != null && message.hasOwnProperty("signingCertificateFilename")) - if (!$util.isString(message.signingCertificateFilename)) - return "signingCertificateFilename: string expected"; - if (message.signingCertificatePassword != null && message.hasOwnProperty("signingCertificatePassword")) - if (!$util.isString(message.signingCertificatePassword)) - return "signingCertificatePassword: string expected"; - if (message.signingKeyPassword != null && message.hasOwnProperty("signingKeyPassword")) - if (!$util.isString(message.signingKeyPassword)) - return "signingKeyPassword: string expected"; - if (message.signingCertificateFormat != null && message.hasOwnProperty("signingCertificateFormat")) - switch (message.signingCertificateFormat) { - default: - return "signingCertificateFormat: enum value expected"; - case 0: - case 1: - case 2: - break; - } - if (message.automatorPublicKey != null && message.hasOwnProperty("automatorPublicKey")) - if (!(message.automatorPublicKey && typeof message.automatorPublicKey.length === "number" || $util.isString(message.automatorPublicKey))) - return "automatorPublicKey: buffer expected"; - if (message.config != null && message.hasOwnProperty("config")) - if (!(message.config && typeof message.config.length === "number" || $util.isString(message.config))) - return "config: buffer expected"; - return null; - }; - /** * Creates a NotInitializedResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -168642,6 +137246,8 @@ export const Automator = $root.Automator = (() => { NotInitializedResponse.fromObject = function fromObject(object, long) { if (object instanceof $root.Automator.NotInitializedResponse) return object; + if (!$util.isObject(object)) + throw TypeError(".Automator.NotInitializedResponse: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -168747,21 +137353,21 @@ export const Automator = $root.Automator = (() => { object.config = $util.newBuffer(object.config); } } - if (message.automatorTransmissionKey != null && message.hasOwnProperty("automatorTransmissionKey")) + if (message.automatorTransmissionKey != null && Object.hasOwnProperty.call(message, "automatorTransmissionKey")) object.automatorTransmissionKey = options.bytes === String ? $util.base64.encode(message.automatorTransmissionKey, 0, message.automatorTransmissionKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.automatorTransmissionKey) : message.automatorTransmissionKey; - if (message.signingCertificate != null && message.hasOwnProperty("signingCertificate")) + if (message.signingCertificate != null && Object.hasOwnProperty.call(message, "signingCertificate")) object.signingCertificate = options.bytes === String ? $util.base64.encode(message.signingCertificate, 0, message.signingCertificate.length) : options.bytes === Array ? Array.prototype.slice.call(message.signingCertificate) : message.signingCertificate; - if (message.signingCertificateFilename != null && message.hasOwnProperty("signingCertificateFilename")) + if (message.signingCertificateFilename != null && Object.hasOwnProperty.call(message, "signingCertificateFilename")) object.signingCertificateFilename = message.signingCertificateFilename; - if (message.signingCertificatePassword != null && message.hasOwnProperty("signingCertificatePassword")) + if (message.signingCertificatePassword != null && Object.hasOwnProperty.call(message, "signingCertificatePassword")) object.signingCertificatePassword = message.signingCertificatePassword; - if (message.signingKeyPassword != null && message.hasOwnProperty("signingKeyPassword")) + if (message.signingKeyPassword != null && Object.hasOwnProperty.call(message, "signingKeyPassword")) object.signingKeyPassword = message.signingKeyPassword; - if (message.signingCertificateFormat != null && message.hasOwnProperty("signingCertificateFormat")) + if (message.signingCertificateFormat != null && Object.hasOwnProperty.call(message, "signingCertificateFormat")) object.signingCertificateFormat = options.enums === String ? $root.Automator.CertificateFormat[message.signingCertificateFormat] === undefined ? message.signingCertificateFormat : $root.Automator.CertificateFormat[message.signingCertificateFormat] : message.signingCertificateFormat; - if (message.automatorPublicKey != null && message.hasOwnProperty("automatorPublicKey")) + if (message.automatorPublicKey != null && Object.hasOwnProperty.call(message, "automatorPublicKey")) object.automatorPublicKey = options.bytes === String ? $util.base64.encode(message.automatorPublicKey, 0, message.automatorPublicKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.automatorPublicKey) : message.automatorPublicKey; - if (message.config != null && message.hasOwnProperty("config")) + if (message.config != null && Object.hasOwnProperty.call(message, "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; return object; }; @@ -168997,19 +137603,6 @@ export const Automator = $root.Automator = (() => { return writer; }; - /** - * Encodes the specified AutomatorResponse message, length delimited. Does not implicitly {@link Automator.AutomatorResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof Automator.AutomatorResponse - * @static - * @param {Automator.IAutomatorResponse} message AutomatorResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - AutomatorResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes an AutomatorResponse message from the specified reader or buffer. * @function decode @@ -169090,128 +137683,6 @@ export const Automator = $root.Automator = (() => { return message; }; - /** - * Decodes an AutomatorResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Automator.AutomatorResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Automator.AutomatorResponse} AutomatorResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - AutomatorResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an AutomatorResponse message. - * @function verify - * @memberof Automator.AutomatorResponse - * @static - * @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) { - 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))) - return "automatorId: integer|Long expected"; - if (message.enabled != null && message.hasOwnProperty("enabled")) - if (typeof message.enabled !== "boolean") - return "enabled: boolean expected"; - if (message.timestamp != null && message.hasOwnProperty("timestamp")) - if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high))) - return "timestamp: integer|Long expected"; - if (message.approveDevice != null && message.hasOwnProperty("approveDevice")) { - properties.response = 1; - { - let error = $root.Automator.ApproveDeviceResponse.verify(message.approveDevice, long + 1); - if (error) - return "approveDevice." + error; - } - } - if (message.status != null && message.hasOwnProperty("status")) { - if (properties.response === 1) - return "response: multiple values"; - properties.response = 1; - { - let error = $root.Automator.StatusResponse.verify(message.status, long + 1); - if (error) - return "status." + error; - } - } - if (message.notInitialized != null && message.hasOwnProperty("notInitialized")) { - if (properties.response === 1) - return "response: multiple values"; - properties.response = 1; - { - let error = $root.Automator.NotInitializedResponse.verify(message.notInitialized, long + 1); - if (error) - return "notInitialized." + error; - } - } - if (message.error != null && message.hasOwnProperty("error")) { - if (properties.response === 1) - return "response: multiple values"; - properties.response = 1; - { - let error = $root.Automator.ErrorResponse.verify(message.error, long + 1); - if (error) - return "error." + error; - } - } - if (message.approveTeamsForUser != null && message.hasOwnProperty("approveTeamsForUser")) { - if (properties.response === 1) - return "response: multiple values"; - properties.response = 1; - { - let error = $root.Automator.ApproveTeamsForUserResponse.verify(message.approveTeamsForUser, long + 1); - if (error) - return "approveTeamsForUser." + error; - } - } - if (message.approveTeams != null && message.hasOwnProperty("approveTeams")) { - if (properties.response === 1) - return "response: multiple values"; - properties.response = 1; - { - let error = $root.Automator.ApproveTeamsResponse.verify(message.approveTeams, long + 1); - if (error) - return "approveTeams." + error; - } - } - if (message.automatorState != null && message.hasOwnProperty("automatorState")) - switch (message.automatorState) { - default: - return "automatorState: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - break; - } - if (message.automatorPublicEccKey != null && message.hasOwnProperty("automatorPublicEccKey")) - 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); - if (error) - return "version." + error; - } - return null; - }; - /** * Creates an AutomatorResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -169223,6 +137694,8 @@ export const Automator = $root.Automator = (() => { AutomatorResponse.fromObject = function fromObject(object, long) { if (object instanceof $root.Automator.AutomatorResponse) return object; + if (!$util.isObject(object)) + throw TypeError(".Automator.AutomatorResponse: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -169249,32 +137722,32 @@ export const Automator = $root.Automator = (() => { else if (typeof object.timestamp === "object") message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(); if (object.approveDevice != null) { - if (typeof object.approveDevice !== "object") + if (!$util.isObject(object.approveDevice)) throw TypeError(".Automator.AutomatorResponse.approveDevice: object expected"); message.approveDevice = $root.Automator.ApproveDeviceResponse.fromObject(object.approveDevice, long + 1); } if (object.status != null) { - if (typeof object.status !== "object") + if (!$util.isObject(object.status)) throw TypeError(".Automator.AutomatorResponse.status: object expected"); message.status = $root.Automator.StatusResponse.fromObject(object.status, long + 1); } if (object.notInitialized != null) { - if (typeof object.notInitialized !== "object") + if (!$util.isObject(object.notInitialized)) throw TypeError(".Automator.AutomatorResponse.notInitialized: object expected"); message.notInitialized = $root.Automator.NotInitializedResponse.fromObject(object.notInitialized, long + 1); } if (object.error != null) { - if (typeof object.error !== "object") + if (!$util.isObject(object.error)) throw TypeError(".Automator.AutomatorResponse.error: object expected"); message.error = $root.Automator.ErrorResponse.fromObject(object.error, long + 1); } if (object.approveTeamsForUser != null) { - if (typeof object.approveTeamsForUser !== "object") + if (!$util.isObject(object.approveTeamsForUser)) throw TypeError(".Automator.AutomatorResponse.approveTeamsForUser: object expected"); message.approveTeamsForUser = $root.Automator.ApproveTeamsForUserResponse.fromObject(object.approveTeamsForUser, long + 1); } if (object.approveTeams != null) { - if (typeof object.approveTeams !== "object") + if (!$util.isObject(object.approveTeams)) throw TypeError(".Automator.AutomatorResponse.approveTeams: object expected"); message.approveTeams = $root.Automator.ApproveTeamsResponse.fromObject(object.approveTeams, long + 1); } @@ -169316,7 +137789,7 @@ export const Automator = $root.Automator = (() => { else if (object.automatorPublicEccKey.length >= 0) message.automatorPublicEccKey = object.automatorPublicEccKey; if (object.version != null) { - if (typeof object.version !== "object") + if (!$util.isObject(object.version)) throw TypeError(".Automator.AutomatorResponse.version: object expected"); message.version = $root.SemanticVersion.Version.fromObject(object.version, long + 1); } @@ -169362,57 +137835,57 @@ export const Automator = $root.Automator = (() => { } object.version = null; } - if (message.automatorId != null && message.hasOwnProperty("automatorId")) + if (message.automatorId != null && Object.hasOwnProperty.call(message, "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") 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")) + if (message.enabled != null && Object.hasOwnProperty.call(message, "enabled")) object.enabled = message.enabled; - if (message.timestamp != null && message.hasOwnProperty("timestamp")) + if (message.timestamp != null && Object.hasOwnProperty.call(message, "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") 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")) { + if (message.approveDevice != null && Object.hasOwnProperty.call(message, "approveDevice")) { object.approveDevice = $root.Automator.ApproveDeviceResponse.toObject(message.approveDevice, options, q + 1); if (options.oneofs) object.response = "approveDevice"; } - if (message.status != null && message.hasOwnProperty("status")) { + if (message.status != null && Object.hasOwnProperty.call(message, "status")) { object.status = $root.Automator.StatusResponse.toObject(message.status, options, q + 1); if (options.oneofs) object.response = "status"; } - if (message.notInitialized != null && message.hasOwnProperty("notInitialized")) { + if (message.notInitialized != null && Object.hasOwnProperty.call(message, "notInitialized")) { object.notInitialized = $root.Automator.NotInitializedResponse.toObject(message.notInitialized, options, q + 1); if (options.oneofs) object.response = "notInitialized"; } - if (message.error != null && message.hasOwnProperty("error")) { + if (message.error != null && Object.hasOwnProperty.call(message, "error")) { object.error = $root.Automator.ErrorResponse.toObject(message.error, options, q + 1); if (options.oneofs) object.response = "error"; } - if (message.automatorState != null && message.hasOwnProperty("automatorState")) + if (message.automatorState != null && Object.hasOwnProperty.call(message, "automatorState")) object.automatorState = options.enums === String ? $root.Automator.AutomatorState[message.automatorState] === undefined ? message.automatorState : $root.Automator.AutomatorState[message.automatorState] : message.automatorState; - if (message.automatorPublicEccKey != null && message.hasOwnProperty("automatorPublicEccKey")) + if (message.automatorPublicEccKey != null && Object.hasOwnProperty.call(message, "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")) { + if (message.approveTeamsForUser != null && Object.hasOwnProperty.call(message, "approveTeamsForUser")) { object.approveTeamsForUser = $root.Automator.ApproveTeamsForUserResponse.toObject(message.approveTeamsForUser, options, q + 1); if (options.oneofs) object.response = "approveTeamsForUser"; } - if (message.approveTeams != null && message.hasOwnProperty("approveTeams")) { + if (message.approveTeams != null && Object.hasOwnProperty.call(message, "approveTeams")) { object.approveTeams = $root.Automator.ApproveTeamsResponse.toObject(message.approveTeams, options, q + 1); if (options.oneofs) object.response = "approveTeams"; } - if (message.version != null && message.hasOwnProperty("version")) + if (message.version != null && Object.hasOwnProperty.call(message, "version")) object.version = $root.SemanticVersion.Version.toObject(message.version, options, q + 1); return object; }; @@ -169546,19 +138019,6 @@ export const Automator = $root.Automator = (() => { return writer; }; - /** - * Encodes the specified ApproveDeviceResponse message, length delimited. Does not implicitly {@link Automator.ApproveDeviceResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof Automator.ApproveDeviceResponse - * @static - * @param {Automator.IApproveDeviceResponse} message ApproveDeviceResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ApproveDeviceResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes an ApproveDeviceResponse message from the specified reader or buffer. * @function decode @@ -169607,60 +138067,6 @@ export const Automator = $root.Automator = (() => { return message; }; - /** - * Decodes an ApproveDeviceResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Automator.ApproveDeviceResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Automator.ApproveDeviceResponse} ApproveDeviceResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ApproveDeviceResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an ApproveDeviceResponse message. - * @function verify - * @memberof Automator.ApproveDeviceResponse - * @static - * @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) { - if (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"; - if (message.encryptedUserDataKey != null && message.hasOwnProperty("encryptedUserDataKey")) - if (!(message.encryptedUserDataKey && typeof message.encryptedUserDataKey.length === "number" || $util.isString(message.encryptedUserDataKey))) - return "encryptedUserDataKey: buffer expected"; - if (message.message != null && message.hasOwnProperty("message")) - if (!$util.isString(message.message)) - return "message: string expected"; - if (message.encryptedUserDataKeyType != null && message.hasOwnProperty("encryptedUserDataKeyType")) - switch (message.encryptedUserDataKeyType) { - default: - return "encryptedUserDataKeyType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - break; - } - return null; - }; - /** * Creates an ApproveDeviceResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -169672,6 +138078,8 @@ export const Automator = $root.Automator = (() => { ApproveDeviceResponse.fromObject = function fromObject(object, long) { if (object instanceof $root.Automator.ApproveDeviceResponse) return object; + if (!$util.isObject(object)) + throw TypeError(".Automator.ApproveDeviceResponse: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -169746,13 +138154,13 @@ export const Automator = $root.Automator = (() => { object.message = ""; object.encryptedUserDataKeyType = options.enums === String ? "KT_NO_KEY" : 0; } - if (message.approved != null && message.hasOwnProperty("approved")) + if (message.approved != null && Object.hasOwnProperty.call(message, "approved")) object.approved = message.approved; - if (message.encryptedUserDataKey != null && message.hasOwnProperty("encryptedUserDataKey")) + if (message.encryptedUserDataKey != null && Object.hasOwnProperty.call(message, "encryptedUserDataKey")) object.encryptedUserDataKey = options.bytes === String ? $util.base64.encode(message.encryptedUserDataKey, 0, message.encryptedUserDataKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedUserDataKey) : message.encryptedUserDataKey; - if (message.message != null && message.hasOwnProperty("message")) + if (message.message != null && Object.hasOwnProperty.call(message, "message")) object.message = message.message; - if (message.encryptedUserDataKeyType != null && message.hasOwnProperty("encryptedUserDataKeyType")) + if (message.encryptedUserDataKeyType != null && Object.hasOwnProperty.call(message, "encryptedUserDataKeyType")) object.encryptedUserDataKeyType = options.enums === String ? $root.Enterprise.EncryptedKeyType[message.encryptedUserDataKeyType] === undefined ? message.encryptedUserDataKeyType : $root.Enterprise.EncryptedKeyType[message.encryptedUserDataKeyType] : message.encryptedUserDataKeyType; return object; }; @@ -170011,19 +138419,6 @@ export const Automator = $root.Automator = (() => { return writer; }; - /** - * Encodes the specified StatusResponse message, length delimited. Does not implicitly {@link Automator.StatusResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof Automator.StatusResponse - * @static - * @param {Automator.IStatusResponse} message StatusResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - StatusResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a StatusResponse message from the specified reader or buffer. * @function decode @@ -170118,93 +138513,6 @@ export const Automator = $root.Automator = (() => { return message; }; - /** - * Decodes a StatusResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Automator.StatusResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Automator.StatusResponse} StatusResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - StatusResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a StatusResponse message. - * @function verify - * @memberof Automator.StatusResponse - * @static - * @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) { - if (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"; - if (message.enabledTimestamp != null && message.hasOwnProperty("enabledTimestamp")) - if (!$util.isInteger(message.enabledTimestamp) && !(message.enabledTimestamp && $util.isInteger(message.enabledTimestamp.low) && $util.isInteger(message.enabledTimestamp.high))) - return "enabledTimestamp: integer|Long expected"; - if (message.initializedTimestamp != null && message.hasOwnProperty("initializedTimestamp")) - if (!$util.isInteger(message.initializedTimestamp) && !(message.initializedTimestamp && $util.isInteger(message.initializedTimestamp.low) && $util.isInteger(message.initializedTimestamp.high))) - return "initializedTimestamp: integer|Long expected"; - if (message.updatedTimestamp != null && message.hasOwnProperty("updatedTimestamp")) - if (!$util.isInteger(message.updatedTimestamp) && !(message.updatedTimestamp && $util.isInteger(message.updatedTimestamp.low) && $util.isInteger(message.updatedTimestamp.high))) - return "updatedTimestamp: integer|Long expected"; - if (message.numberOfDevicesApproved != null && message.hasOwnProperty("numberOfDevicesApproved")) - if (!$util.isInteger(message.numberOfDevicesApproved) && !(message.numberOfDevicesApproved && $util.isInteger(message.numberOfDevicesApproved.low) && $util.isInteger(message.numberOfDevicesApproved.high))) - return "numberOfDevicesApproved: integer|Long expected"; - if (message.numberOfDevicesDenied != null && message.hasOwnProperty("numberOfDevicesDenied")) - if (!$util.isInteger(message.numberOfDevicesDenied) && !(message.numberOfDevicesDenied && $util.isInteger(message.numberOfDevicesDenied.low) && $util.isInteger(message.numberOfDevicesDenied.high))) - return "numberOfDevicesDenied: integer|Long expected"; - if (message.numberOfErrors != null && message.hasOwnProperty("numberOfErrors")) - if (!$util.isInteger(message.numberOfErrors) && !(message.numberOfErrors && $util.isInteger(message.numberOfErrors.low) && $util.isInteger(message.numberOfErrors.high))) - return "numberOfErrors: integer|Long expected"; - if (message.sslCertificateExpiration != null && message.hasOwnProperty("sslCertificateExpiration")) - 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); - if (error) - return "notInitializedResponse." + error; - } - if (message.config != null && message.hasOwnProperty("config")) - if (!(message.config && typeof message.config.length === "number" || $util.isString(message.config))) - return "config: buffer expected"; - if (message.numberOfTeamMembershipsApproved != null && message.hasOwnProperty("numberOfTeamMembershipsApproved")) - if (!$util.isInteger(message.numberOfTeamMembershipsApproved) && !(message.numberOfTeamMembershipsApproved && $util.isInteger(message.numberOfTeamMembershipsApproved.low) && $util.isInteger(message.numberOfTeamMembershipsApproved.high))) - return "numberOfTeamMembershipsApproved: integer|Long expected"; - if (message.numberOfTeamMembershipsDenied != null && message.hasOwnProperty("numberOfTeamMembershipsDenied")) - if (!$util.isInteger(message.numberOfTeamMembershipsDenied) && !(message.numberOfTeamMembershipsDenied && $util.isInteger(message.numberOfTeamMembershipsDenied.low) && $util.isInteger(message.numberOfTeamMembershipsDenied.high))) - return "numberOfTeamMembershipsDenied: integer|Long expected"; - if (message.numberOfTeamsApproved != null && message.hasOwnProperty("numberOfTeamsApproved")) - if (!$util.isInteger(message.numberOfTeamsApproved) && !(message.numberOfTeamsApproved && $util.isInteger(message.numberOfTeamsApproved.low) && $util.isInteger(message.numberOfTeamsApproved.high))) - return "numberOfTeamsApproved: integer|Long expected"; - if (message.numberOfTeamsDenied != null && message.hasOwnProperty("numberOfTeamsDenied")) - if (!$util.isInteger(message.numberOfTeamsDenied) && !(message.numberOfTeamsDenied && $util.isInteger(message.numberOfTeamsDenied.low) && $util.isInteger(message.numberOfTeamsDenied.high))) - return "numberOfTeamsDenied: integer|Long expected"; - if (message.sslCertificateInfo != null && message.hasOwnProperty("sslCertificateInfo")) { - 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); - if (error) - return "sslCertificateInfo." + error; - } - } - return null; - }; - /** * Creates a StatusResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -170216,6 +138524,8 @@ export const Automator = $root.Automator = (() => { StatusResponse.fromObject = function fromObject(object, long) { if (object instanceof $root.Automator.StatusResponse) return object; + if (!$util.isObject(object)) + throw TypeError(".Automator.StatusResponse: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -170287,7 +138597,7 @@ export const Automator = $root.Automator = (() => { else if (typeof object.sslCertificateExpiration === "object") message.sslCertificateExpiration = new $util.LongBits(object.sslCertificateExpiration.low >>> 0, object.sslCertificateExpiration.high >>> 0).toNumber(); if (object.notInitializedResponse != null) { - if (typeof object.notInitializedResponse !== "object") + if (!$util.isObject(object.notInitializedResponse)) throw TypeError(".Automator.StatusResponse.notInitializedResponse: object expected"); message.notInitializedResponse = $root.Automator.NotInitializedResponse.fromObject(object.notInitializedResponse, long + 1); } @@ -170337,7 +138647,7 @@ export const Automator = $root.Automator = (() => { throw TypeError(".Automator.StatusResponse.sslCertificateInfo: array expected"); message.sslCertificateInfo = []; for (let i = 0; i < object.sslCertificateInfo.length; ++i) { - if (typeof object.sslCertificateInfo[i] !== "object") + if (!$util.isObject(object.sslCertificateInfo[i])) throw TypeError(".Automator.StatusResponse.sslCertificateInfo: object expected"); message.sslCertificateInfo[i] = $root.Automator.SSLCertificateInfo.fromObject(object.sslCertificateInfo[i], long + 1); } @@ -170430,83 +138740,83 @@ export const Automator = $root.Automator = (() => { } else object.numberOfTeamsDenied = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; } - if (message.initialized != null && message.hasOwnProperty("initialized")) + if (message.initialized != null && Object.hasOwnProperty.call(message, "initialized")) object.initialized = message.initialized; - if (message.enabledTimestamp != null && message.hasOwnProperty("enabledTimestamp")) + if (message.enabledTimestamp != null && Object.hasOwnProperty.call(message, "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") 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 (message.initializedTimestamp != null && Object.hasOwnProperty.call(message, "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") 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 (message.updatedTimestamp != null && Object.hasOwnProperty.call(message, "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") 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 (message.numberOfDevicesApproved != null && Object.hasOwnProperty.call(message, "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") 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 (message.numberOfDevicesDenied != null && Object.hasOwnProperty.call(message, "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") 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 (message.numberOfErrors != null && Object.hasOwnProperty.call(message, "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") 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 (message.sslCertificateExpiration != null && Object.hasOwnProperty.call(message, "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") 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")) + if (message.notInitializedResponse != null && Object.hasOwnProperty.call(message, "notInitializedResponse")) object.notInitializedResponse = $root.Automator.NotInitializedResponse.toObject(message.notInitializedResponse, options, q + 1); - if (message.config != null && message.hasOwnProperty("config")) + if (message.config != null && Object.hasOwnProperty.call(message, "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 (message.numberOfTeamMembershipsApproved != null && Object.hasOwnProperty.call(message, "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") 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 (message.numberOfTeamMembershipsDenied != null && Object.hasOwnProperty.call(message, "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") 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 (message.numberOfTeamsApproved != null && Object.hasOwnProperty.call(message, "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") 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 (message.numberOfTeamsDenied != null && Object.hasOwnProperty.call(message, "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") @@ -170616,19 +138926,6 @@ export const Automator = $root.Automator = (() => { return writer; }; - /** - * Encodes the specified ErrorResponse message, length delimited. Does not implicitly {@link Automator.ErrorResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof Automator.ErrorResponse - * @static - * @param {Automator.IErrorResponse} message ErrorResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ErrorResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes an ErrorResponse message from the specified reader or buffer. * @function decode @@ -170665,43 +138962,6 @@ export const Automator = $root.Automator = (() => { return message; }; - /** - * Decodes an ErrorResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Automator.ErrorResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Automator.ErrorResponse} ErrorResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ErrorResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an ErrorResponse message. - * @function verify - * @memberof Automator.ErrorResponse - * @static - * @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) { - if (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"; - return null; - }; - /** * Creates an ErrorResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -170713,6 +138973,8 @@ export const Automator = $root.Automator = (() => { ErrorResponse.fromObject = function fromObject(object, long) { if (object instanceof $root.Automator.ErrorResponse) return object; + if (!$util.isObject(object)) + throw TypeError(".Automator.ErrorResponse: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -170742,7 +139004,7 @@ export const Automator = $root.Automator = (() => { let object = {}; if (options.defaults) object.message = ""; - if (message.message != null && message.hasOwnProperty("message")) + if (message.message != null && Object.hasOwnProperty.call(message, "message")) object.message = message.message; return object; }; @@ -170895,19 +139157,6 @@ export const Automator = $root.Automator = (() => { return writer; }; - /** - * Encodes the specified LogEntry message, length delimited. Does not implicitly {@link Automator.LogEntry.verify|verify} messages. - * @function encodeDelimited - * @memberof Automator.LogEntry - * @static - * @param {Automator.ILogEntry} message LogEntry message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - LogEntry.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a LogEntry message from the specified reader or buffer. * @function decode @@ -170956,52 +139205,6 @@ export const Automator = $root.Automator = (() => { return message; }; - /** - * Decodes a LogEntry message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Automator.LogEntry - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Automator.LogEntry} LogEntry - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - LogEntry.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a LogEntry message. - * @function verify - * @memberof Automator.LogEntry - * @static - * @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) { - if (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"; - if (message.messageLevel != null && message.hasOwnProperty("messageLevel")) - if (!$util.isString(message.messageLevel)) - return "messageLevel: string expected"; - if (message.component != null && message.hasOwnProperty("component")) - if (!$util.isString(message.component)) - return "component: string expected"; - if (message.message != null && message.hasOwnProperty("message")) - if (!$util.isString(message.message)) - return "message: string expected"; - return null; - }; - /** * Creates a LogEntry message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -171013,6 +139216,8 @@ export const Automator = $root.Automator = (() => { LogEntry.fromObject = function fromObject(object, long) { if (object instanceof $root.Automator.LogEntry) return object; + if (!$util.isObject(object)) + throw TypeError(".Automator.LogEntry: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -171052,13 +139257,13 @@ export const Automator = $root.Automator = (() => { object.component = ""; object.message = ""; } - if (message.serverTime != null && message.hasOwnProperty("serverTime")) + if (message.serverTime != null && Object.hasOwnProperty.call(message, "serverTime")) object.serverTime = message.serverTime; - if (message.messageLevel != null && message.hasOwnProperty("messageLevel")) + if (message.messageLevel != null && Object.hasOwnProperty.call(message, "messageLevel")) object.messageLevel = message.messageLevel; - if (message.component != null && message.hasOwnProperty("component")) + if (message.component != null && Object.hasOwnProperty.call(message, "component")) object.component = message.component; - if (message.message != null && message.hasOwnProperty("message")) + if (message.message != null && Object.hasOwnProperty.call(message, "message")) object.message = message.message; return object; }; @@ -171208,19 +139413,6 @@ export const Automator = $root.Automator = (() => { return writer; }; - /** - * Encodes the specified AdminResponse message, length delimited. Does not implicitly {@link Automator.AdminResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof Automator.AdminResponse - * @static - * @param {Automator.IAdminResponse} message AdminResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - AdminResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes an AdminResponse message from the specified reader or buffer. * @function decode @@ -171267,55 +139459,6 @@ export const Automator = $root.Automator = (() => { return message; }; - /** - * Decodes an AdminResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Automator.AdminResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Automator.AdminResponse} AdminResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - AdminResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an AdminResponse message. - * @function verify - * @memberof Automator.AdminResponse - * @static - * @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) { - if (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.message != null && message.hasOwnProperty("message")) - if (!$util.isString(message.message)) - return "message: string expected"; - if (message.automatorInfo != null && message.hasOwnProperty("automatorInfo")) { - 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); - if (error) - return "automatorInfo." + error; - } - } - return null; - }; - /** * Creates an AdminResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -171327,6 +139470,8 @@ export const Automator = $root.Automator = (() => { AdminResponse.fromObject = function fromObject(object, long) { if (object instanceof $root.Automator.AdminResponse) return object; + if (!$util.isObject(object)) + throw TypeError(".Automator.AdminResponse: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -171341,7 +139486,7 @@ export const Automator = $root.Automator = (() => { throw TypeError(".Automator.AdminResponse.automatorInfo: array expected"); message.automatorInfo = []; for (let i = 0; i < object.automatorInfo.length; ++i) { - if (typeof object.automatorInfo[i] !== "object") + if (!$util.isObject(object.automatorInfo[i])) throw TypeError(".Automator.AdminResponse.automatorInfo: object expected"); message.automatorInfo[i] = $root.Automator.AutomatorInfo.fromObject(object.automatorInfo[i], long + 1); } @@ -171372,9 +139517,9 @@ export const Automator = $root.Automator = (() => { object.success = false; object.message = ""; } - if (message.success != null && message.hasOwnProperty("success")) + if (message.success != null && Object.hasOwnProperty.call(message, "success")) object.success = message.success; - if (message.message != null && message.hasOwnProperty("message")) + if (message.message != null && Object.hasOwnProperty.call(message, "message")) object.message = message.message; if (message.automatorInfo && message.automatorInfo.length) { object.automatorInfo = []; @@ -171605,19 +139750,6 @@ export const Automator = $root.Automator = (() => { return writer; }; - /** - * Encodes the specified AutomatorInfo message, length delimited. Does not implicitly {@link Automator.AutomatorInfo.verify|verify} messages. - * @function encodeDelimited - * @memberof Automator.AutomatorInfo - * @static - * @param {Automator.IAutomatorInfo} message AutomatorInfo message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - AutomatorInfo.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes an AutomatorInfo message from the specified reader or buffer. * @function decode @@ -171704,105 +139836,6 @@ export const Automator = $root.Automator = (() => { return message; }; - /** - * Decodes an AutomatorInfo message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Automator.AutomatorInfo - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Automator.AutomatorInfo} AutomatorInfo - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - AutomatorInfo.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an AutomatorInfo message. - * @function verify - * @memberof Automator.AutomatorInfo - * @static - * @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) { - if (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"; - 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"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.enabled != null && message.hasOwnProperty("enabled")) - if (typeof message.enabled !== "boolean") - return "enabled: boolean expected"; - if (message.url != null && message.hasOwnProperty("url")) - if (!$util.isString(message.url)) - return "url: string expected"; - if (message.automatorSkills != null && message.hasOwnProperty("automatorSkills")) { - 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); - if (error) - return "automatorSkills." + error; - } - } - if (message.automatorSettingValues != null && message.hasOwnProperty("automatorSettingValues")) { - 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); - if (error) - return "automatorSettingValues." + error; - } - } - if (message.status != null && message.hasOwnProperty("status")) { - let error = $root.Automator.StatusResponse.verify(message.status, long + 1); - if (error) - return "status." + error; - } - if (message.logEntries != null && message.hasOwnProperty("logEntries")) { - 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); - if (error) - return "logEntries." + error; - } - } - if (message.automatorState != null && message.hasOwnProperty("automatorState")) - switch (message.automatorState) { - default: - return "automatorState: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - break; - } - if (message.version != null && message.hasOwnProperty("version")) - if (!$util.isString(message.version)) - return "version: string expected"; - if (message.sslCertificateExpirationDate != null && message.hasOwnProperty("sslCertificateExpirationDate")) - if (!$util.isString(message.sslCertificateExpirationDate)) - return "sslCertificateExpirationDate: string expected"; - return null; - }; - /** * Creates an AutomatorInfo message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -171814,6 +139847,8 @@ export const Automator = $root.Automator = (() => { AutomatorInfo.fromObject = function fromObject(object, long) { if (object instanceof $root.Automator.AutomatorInfo) return object; + if (!$util.isObject(object)) + throw TypeError(".Automator.AutomatorInfo: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -171848,7 +139883,7 @@ export const Automator = $root.Automator = (() => { throw TypeError(".Automator.AutomatorInfo.automatorSkills: array expected"); message.automatorSkills = []; for (let i = 0; i < object.automatorSkills.length; ++i) { - if (typeof object.automatorSkills[i] !== "object") + if (!$util.isObject(object.automatorSkills[i])) throw TypeError(".Automator.AutomatorInfo.automatorSkills: object expected"); message.automatorSkills[i] = $root.Automator.AutomatorSkill.fromObject(object.automatorSkills[i], long + 1); } @@ -171858,13 +139893,13 @@ export const Automator = $root.Automator = (() => { throw TypeError(".Automator.AutomatorInfo.automatorSettingValues: array expected"); message.automatorSettingValues = []; for (let i = 0; i < object.automatorSettingValues.length; ++i) { - if (typeof object.automatorSettingValues[i] !== "object") + if (!$util.isObject(object.automatorSettingValues[i])) throw TypeError(".Automator.AutomatorInfo.automatorSettingValues: object expected"); message.automatorSettingValues[i] = $root.Automator.AutomatorSettingValue.fromObject(object.automatorSettingValues[i], long + 1); } } if (object.status != null) { - if (typeof object.status !== "object") + if (!$util.isObject(object.status)) throw TypeError(".Automator.AutomatorInfo.status: object expected"); message.status = $root.Automator.StatusResponse.fromObject(object.status, long + 1); } @@ -171873,7 +139908,7 @@ export const Automator = $root.Automator = (() => { throw TypeError(".Automator.AutomatorInfo.logEntries: array expected"); message.logEntries = []; for (let i = 0; i < object.logEntries.length; ++i) { - if (typeof object.logEntries[i] !== "object") + if (!$util.isObject(object.logEntries[i])) throw TypeError(".Automator.AutomatorInfo.logEntries: object expected"); message.logEntries[i] = $root.Automator.LogEntry.fromObject(object.logEntries[i], long + 1); } @@ -171958,25 +139993,25 @@ export const Automator = $root.Automator = (() => { object.version = ""; object.sslCertificateExpirationDate = ""; } - if (message.automatorId != null && message.hasOwnProperty("automatorId")) + if (message.automatorId != null && Object.hasOwnProperty.call(message, "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") 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 (message.nodeId != null && Object.hasOwnProperty.call(message, "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") 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")) + if (message.name != null && Object.hasOwnProperty.call(message, "name")) object.name = message.name; - if (message.enabled != null && message.hasOwnProperty("enabled")) + if (message.enabled != null && Object.hasOwnProperty.call(message, "enabled")) object.enabled = message.enabled; - if (message.url != null && message.hasOwnProperty("url")) + if (message.url != null && Object.hasOwnProperty.call(message, "url")) object.url = message.url; if (message.automatorSkills && message.automatorSkills.length) { object.automatorSkills = []; @@ -171988,18 +140023,18 @@ export const Automator = $root.Automator = (() => { for (let j = 0; j < message.automatorSettingValues.length; ++j) object.automatorSettingValues[j] = $root.Automator.AutomatorSettingValue.toObject(message.automatorSettingValues[j], options, q + 1); } - if (message.status != null && message.hasOwnProperty("status")) + if (message.status != null && Object.hasOwnProperty.call(message, "status")) object.status = $root.Automator.StatusResponse.toObject(message.status, options, q + 1); 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); } - if (message.automatorState != null && message.hasOwnProperty("automatorState")) + if (message.automatorState != null && Object.hasOwnProperty.call(message, "automatorState")) object.automatorState = options.enums === String ? $root.Automator.AutomatorState[message.automatorState] === undefined ? message.automatorState : $root.Automator.AutomatorState[message.automatorState] : message.automatorState; - if (message.version != null && message.hasOwnProperty("version")) + if (message.version != null && Object.hasOwnProperty.call(message, "version")) object.version = message.version; - if (message.sslCertificateExpirationDate != null && message.hasOwnProperty("sslCertificateExpirationDate")) + if (message.sslCertificateExpirationDate != null && Object.hasOwnProperty.call(message, "sslCertificateExpirationDate")) object.sslCertificateExpirationDate = message.sslCertificateExpirationDate; return object; }; @@ -172123,19 +140158,6 @@ export const Automator = $root.Automator = (() => { return writer; }; - /** - * Encodes the specified AdminCreateAutomatorRequest message, length delimited. Does not implicitly {@link Automator.AdminCreateAutomatorRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof Automator.AdminCreateAutomatorRequest - * @static - * @param {Automator.IAdminCreateAutomatorRequest} message AdminCreateAutomatorRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - AdminCreateAutomatorRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes an AdminCreateAutomatorRequest message from the specified reader or buffer. * @function decode @@ -172180,51 +140202,6 @@ export const Automator = $root.Automator = (() => { return message; }; - /** - * Decodes an AdminCreateAutomatorRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Automator.AdminCreateAutomatorRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Automator.AdminCreateAutomatorRequest} AdminCreateAutomatorRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - AdminCreateAutomatorRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an AdminCreateAutomatorRequest message. - * @function verify - * @memberof Automator.AdminCreateAutomatorRequest - * @static - * @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) { - if (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"; - if (message.name != null && message.hasOwnProperty("name")) - 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); - if (error) - return "skill." + error; - } - return null; - }; - /** * Creates an AdminCreateAutomatorRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -172236,6 +140213,8 @@ export const Automator = $root.Automator = (() => { AdminCreateAutomatorRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.Automator.AdminCreateAutomatorRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".Automator.AdminCreateAutomatorRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -172253,7 +140232,7 @@ export const Automator = $root.Automator = (() => { if (object.name != null) message.name = String(object.name); if (object.skill != null) { - if (typeof object.skill !== "object") + if (!$util.isObject(object.skill)) throw TypeError(".Automator.AdminCreateAutomatorRequest.skill: object expected"); message.skill = $root.Automator.AutomatorSkill.fromObject(object.skill, long + 1); } @@ -172286,16 +140265,16 @@ export const Automator = $root.Automator = (() => { object.name = ""; object.skill = null; } - if (message.nodeId != null && message.hasOwnProperty("nodeId")) + if (message.nodeId != null && Object.hasOwnProperty.call(message, "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") 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")) + if (message.name != null && Object.hasOwnProperty.call(message, "name")) object.name = message.name; - if (message.skill != null && message.hasOwnProperty("skill")) + if (message.skill != null && Object.hasOwnProperty.call(message, "skill")) object.skill = $root.Automator.AutomatorSkill.toObject(message.skill, options, q + 1); return object; }; @@ -172399,19 +140378,6 @@ export const Automator = $root.Automator = (() => { return writer; }; - /** - * Encodes the specified AdminDeleteAutomatorRequest message, length delimited. Does not implicitly {@link Automator.AdminDeleteAutomatorRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof Automator.AdminDeleteAutomatorRequest - * @static - * @param {Automator.IAdminDeleteAutomatorRequest} message AdminDeleteAutomatorRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - AdminDeleteAutomatorRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes an AdminDeleteAutomatorRequest message from the specified reader or buffer. * @function decode @@ -172448,43 +140414,6 @@ export const Automator = $root.Automator = (() => { return message; }; - /** - * Decodes an AdminDeleteAutomatorRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Automator.AdminDeleteAutomatorRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Automator.AdminDeleteAutomatorRequest} AdminDeleteAutomatorRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - AdminDeleteAutomatorRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an AdminDeleteAutomatorRequest message. - * @function verify - * @memberof Automator.AdminDeleteAutomatorRequest - * @static - * @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) { - if (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"; - return null; - }; - /** * Creates an AdminDeleteAutomatorRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -172496,6 +140425,8 @@ export const Automator = $root.Automator = (() => { AdminDeleteAutomatorRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.Automator.AdminDeleteAutomatorRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".Automator.AdminDeleteAutomatorRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -172536,7 +140467,7 @@ export const Automator = $root.Automator = (() => { object.automatorId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; } else object.automatorId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; - if (message.automatorId != null && message.hasOwnProperty("automatorId")) + if (message.automatorId != null && Object.hasOwnProperty.call(message, "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") @@ -172644,19 +140575,6 @@ export const Automator = $root.Automator = (() => { return writer; }; - /** - * Encodes the specified AdminGetAutomatorsOnNodeRequest message, length delimited. Does not implicitly {@link Automator.AdminGetAutomatorsOnNodeRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof Automator.AdminGetAutomatorsOnNodeRequest - * @static - * @param {Automator.IAdminGetAutomatorsOnNodeRequest} message AdminGetAutomatorsOnNodeRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - AdminGetAutomatorsOnNodeRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes an AdminGetAutomatorsOnNodeRequest message from the specified reader or buffer. * @function decode @@ -172693,43 +140611,6 @@ export const Automator = $root.Automator = (() => { return message; }; - /** - * Decodes an AdminGetAutomatorsOnNodeRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Automator.AdminGetAutomatorsOnNodeRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Automator.AdminGetAutomatorsOnNodeRequest} AdminGetAutomatorsOnNodeRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - AdminGetAutomatorsOnNodeRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an AdminGetAutomatorsOnNodeRequest message. - * @function verify - * @memberof Automator.AdminGetAutomatorsOnNodeRequest - * @static - * @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) { - if (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"; - return null; - }; - /** * Creates an AdminGetAutomatorsOnNodeRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -172741,6 +140622,8 @@ export const Automator = $root.Automator = (() => { AdminGetAutomatorsOnNodeRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.Automator.AdminGetAutomatorsOnNodeRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".Automator.AdminGetAutomatorsOnNodeRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -172781,7 +140664,7 @@ export const Automator = $root.Automator = (() => { object.nodeId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; } else object.nodeId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; - if (message.nodeId != null && message.hasOwnProperty("nodeId")) + if (message.nodeId != null && Object.hasOwnProperty.call(message, "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") @@ -172890,19 +140773,6 @@ export const Automator = $root.Automator = (() => { return writer; }; - /** - * Encodes the specified AdminGetAutomatorsForEnterpriseRequest message, length delimited. Does not implicitly {@link Automator.AdminGetAutomatorsForEnterpriseRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof Automator.AdminGetAutomatorsForEnterpriseRequest - * @static - * @param {Automator.IAdminGetAutomatorsForEnterpriseRequest} message AdminGetAutomatorsForEnterpriseRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - AdminGetAutomatorsForEnterpriseRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes an AdminGetAutomatorsForEnterpriseRequest message from the specified reader or buffer. * @function decode @@ -172939,43 +140809,6 @@ export const Automator = $root.Automator = (() => { return message; }; - /** - * Decodes an AdminGetAutomatorsForEnterpriseRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Automator.AdminGetAutomatorsForEnterpriseRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Automator.AdminGetAutomatorsForEnterpriseRequest} AdminGetAutomatorsForEnterpriseRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - AdminGetAutomatorsForEnterpriseRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an AdminGetAutomatorsForEnterpriseRequest message. - * @function verify - * @memberof Automator.AdminGetAutomatorsForEnterpriseRequest - * @static - * @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) { - if (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"; - return null; - }; - /** * Creates an AdminGetAutomatorsForEnterpriseRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -172987,6 +140820,8 @@ export const Automator = $root.Automator = (() => { AdminGetAutomatorsForEnterpriseRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.Automator.AdminGetAutomatorsForEnterpriseRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".Automator.AdminGetAutomatorsForEnterpriseRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -173016,7 +140851,7 @@ export const Automator = $root.Automator = (() => { let object = {}; if (options.defaults) object.enterpriseId = 0; - if (message.enterpriseId != null && message.hasOwnProperty("enterpriseId")) + if (message.enterpriseId != null && Object.hasOwnProperty.call(message, "enterpriseId")) object.enterpriseId = message.enterpriseId; return object; }; @@ -173117,19 +140952,6 @@ export const Automator = $root.Automator = (() => { return writer; }; - /** - * Encodes the specified AdminGetAutomatorRequest message, length delimited. Does not implicitly {@link Automator.AdminGetAutomatorRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof Automator.AdminGetAutomatorRequest - * @static - * @param {Automator.IAdminGetAutomatorRequest} message AdminGetAutomatorRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - AdminGetAutomatorRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes an AdminGetAutomatorRequest message from the specified reader or buffer. * @function decode @@ -173166,43 +140988,6 @@ export const Automator = $root.Automator = (() => { return message; }; - /** - * Decodes an AdminGetAutomatorRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Automator.AdminGetAutomatorRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Automator.AdminGetAutomatorRequest} AdminGetAutomatorRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - AdminGetAutomatorRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an AdminGetAutomatorRequest message. - * @function verify - * @memberof Automator.AdminGetAutomatorRequest - * @static - * @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) { - if (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"; - return null; - }; - /** * Creates an AdminGetAutomatorRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -173214,6 +140999,8 @@ export const Automator = $root.Automator = (() => { AdminGetAutomatorRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.Automator.AdminGetAutomatorRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".Automator.AdminGetAutomatorRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -173254,7 +141041,7 @@ export const Automator = $root.Automator = (() => { object.automatorId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; } else object.automatorId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; - if (message.automatorId != null && message.hasOwnProperty("automatorId")) + if (message.automatorId != null && Object.hasOwnProperty.call(message, "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") @@ -173371,19 +141158,6 @@ export const Automator = $root.Automator = (() => { return writer; }; - /** - * Encodes the specified AdminEnableAutomatorRequest message, length delimited. Does not implicitly {@link Automator.AdminEnableAutomatorRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof Automator.AdminEnableAutomatorRequest - * @static - * @param {Automator.IAdminEnableAutomatorRequest} message AdminEnableAutomatorRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - AdminEnableAutomatorRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes an AdminEnableAutomatorRequest message from the specified reader or buffer. * @function decode @@ -173424,46 +141198,6 @@ export const Automator = $root.Automator = (() => { return message; }; - /** - * Decodes an AdminEnableAutomatorRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Automator.AdminEnableAutomatorRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Automator.AdminEnableAutomatorRequest} AdminEnableAutomatorRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - AdminEnableAutomatorRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an AdminEnableAutomatorRequest message. - * @function verify - * @memberof Automator.AdminEnableAutomatorRequest - * @static - * @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) { - if (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"; - if (message.enabled != null && message.hasOwnProperty("enabled")) - if (typeof message.enabled !== "boolean") - return "enabled: boolean expected"; - return null; - }; - /** * Creates an AdminEnableAutomatorRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -173475,6 +141209,8 @@ export const Automator = $root.Automator = (() => { AdminEnableAutomatorRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.Automator.AdminEnableAutomatorRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".Automator.AdminEnableAutomatorRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -173519,14 +141255,14 @@ export const Automator = $root.Automator = (() => { object.automatorId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; object.enabled = false; } - if (message.automatorId != null && message.hasOwnProperty("automatorId")) + if (message.automatorId != null && Object.hasOwnProperty.call(message, "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") 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")) + if (message.enabled != null && Object.hasOwnProperty.call(message, "enabled")) object.enabled = message.enabled; return object; }; @@ -173691,19 +141427,6 @@ export const Automator = $root.Automator = (() => { return writer; }; - /** - * Encodes the specified AdminEditAutomatorRequest message, length delimited. Does not implicitly {@link Automator.AdminEditAutomatorRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof Automator.AdminEditAutomatorRequest - * @static - * @param {Automator.IAdminEditAutomatorRequest} message AdminEditAutomatorRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - AdminEditAutomatorRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes an AdminEditAutomatorRequest message from the specified reader or buffer. * @function decode @@ -173769,75 +141492,6 @@ export const Automator = $root.Automator = (() => { return message; }; - /** - * Decodes an AdminEditAutomatorRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Automator.AdminEditAutomatorRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Automator.AdminEditAutomatorRequest} AdminEditAutomatorRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - AdminEditAutomatorRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an AdminEditAutomatorRequest message. - * @function verify - * @memberof Automator.AdminEditAutomatorRequest - * @static - * @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) { - if (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"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.enabled != null && message.hasOwnProperty("enabled")) - if (typeof message.enabled !== "boolean") - return "enabled: boolean expected"; - if (message.url != null && message.hasOwnProperty("url")) - if (!$util.isString(message.url)) - return "url: string expected"; - if (message.skillTypes != null && message.hasOwnProperty("skillTypes")) { - if (!Array.isArray(message.skillTypes)) - return "skillTypes: array expected"; - for (let i = 0; i < message.skillTypes.length; ++i) - switch (message.skillTypes[i]) { - default: - return "skillTypes: enum value[] expected"; - case 0: - case 1: - case 2: - case 3: - break; - } - } - if (message.automatorSettingValues != null && message.hasOwnProperty("automatorSettingValues")) { - 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); - if (error) - return "automatorSettingValues." + error; - } - } - return null; - }; - /** * Creates an AdminEditAutomatorRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -173849,6 +141503,8 @@ export const Automator = $root.Automator = (() => { AdminEditAutomatorRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.Automator.AdminEditAutomatorRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".Automator.AdminEditAutomatorRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -173903,7 +141559,7 @@ export const Automator = $root.Automator = (() => { throw TypeError(".Automator.AdminEditAutomatorRequest.automatorSettingValues: array expected"); message.automatorSettingValues = []; for (let i = 0; i < object.automatorSettingValues.length; ++i) { - if (typeof object.automatorSettingValues[i] !== "object") + if (!$util.isObject(object.automatorSettingValues[i])) throw TypeError(".Automator.AdminEditAutomatorRequest.automatorSettingValues: object expected"); message.automatorSettingValues[i] = $root.Automator.AutomatorSettingValue.fromObject(object.automatorSettingValues[i], long + 1); } @@ -173942,18 +141598,18 @@ export const Automator = $root.Automator = (() => { object.enabled = false; object.url = ""; } - if (message.automatorId != null && message.hasOwnProperty("automatorId")) + if (message.automatorId != null && Object.hasOwnProperty.call(message, "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") 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.name != null && message.hasOwnProperty("name")) + if (message.name != null && Object.hasOwnProperty.call(message, "name")) object.name = message.name; - if (message.enabled != null && message.hasOwnProperty("enabled")) + if (message.enabled != null && Object.hasOwnProperty.call(message, "enabled")) object.enabled = message.enabled; - if (message.url != null && message.hasOwnProperty("url")) + if (message.url != null && Object.hasOwnProperty.call(message, "url")) object.url = message.url; if (message.skillTypes && message.skillTypes.length) { object.skillTypes = []; @@ -174126,19 +141782,6 @@ export const Automator = $root.Automator = (() => { return writer; }; - /** - * Encodes the specified AdminSetupAutomatorRequest message, length delimited. Does not implicitly {@link Automator.AdminSetupAutomatorRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof Automator.AdminSetupAutomatorRequest - * @static - * @param {Automator.IAdminSetupAutomatorRequest} message AdminSetupAutomatorRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - AdminSetupAutomatorRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes an AdminSetupAutomatorRequest message from the specified reader or buffer. * @function decode @@ -174202,78 +141845,6 @@ export const Automator = $root.Automator = (() => { return message; }; - /** - * Decodes an AdminSetupAutomatorRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Automator.AdminSetupAutomatorRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Automator.AdminSetupAutomatorRequest} AdminSetupAutomatorRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - AdminSetupAutomatorRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an AdminSetupAutomatorRequest message. - * @function verify - * @memberof Automator.AdminSetupAutomatorRequest - * @static - * @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) { - if (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"; - if (message.automatorState != null && message.hasOwnProperty("automatorState")) - switch (message.automatorState) { - default: - return "automatorState: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - break; - } - if (message.encryptedEccEnterprisePrivateKey != null && message.hasOwnProperty("encryptedEccEnterprisePrivateKey")) - if (!(message.encryptedEccEnterprisePrivateKey && typeof message.encryptedEccEnterprisePrivateKey.length === "number" || $util.isString(message.encryptedEccEnterprisePrivateKey))) - return "encryptedEccEnterprisePrivateKey: buffer expected"; - if (message.encryptedRsaEnterprisePrivateKey != null && message.hasOwnProperty("encryptedRsaEnterprisePrivateKey")) - if (!(message.encryptedRsaEnterprisePrivateKey && typeof message.encryptedRsaEnterprisePrivateKey.length === "number" || $util.isString(message.encryptedRsaEnterprisePrivateKey))) - return "encryptedRsaEnterprisePrivateKey: buffer expected"; - if (message.skillTypes != null && message.hasOwnProperty("skillTypes")) { - if (!Array.isArray(message.skillTypes)) - return "skillTypes: array expected"; - for (let i = 0; i < message.skillTypes.length; ++i) - switch (message.skillTypes[i]) { - default: - return "skillTypes: enum value[] expected"; - case 0: - case 1: - case 2: - case 3: - break; - } - } - if (message.encryptedTreeKey != null && message.hasOwnProperty("encryptedTreeKey")) - if (!(message.encryptedTreeKey && typeof message.encryptedTreeKey.length === "number" || $util.isString(message.encryptedTreeKey))) - return "encryptedTreeKey: buffer expected"; - return null; - }; - /** * Creates an AdminSetupAutomatorRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -174285,6 +141856,8 @@ export const Automator = $root.Automator = (() => { AdminSetupAutomatorRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.Automator.AdminSetupAutomatorRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".Automator.AdminSetupAutomatorRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -174426,25 +141999,25 @@ export const Automator = $root.Automator = (() => { object.encryptedTreeKey = $util.newBuffer(object.encryptedTreeKey); } } - if (message.automatorId != null && message.hasOwnProperty("automatorId")) + if (message.automatorId != null && Object.hasOwnProperty.call(message, "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") 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.automatorState != null && message.hasOwnProperty("automatorState")) + if (message.automatorState != null && Object.hasOwnProperty.call(message, "automatorState")) object.automatorState = options.enums === String ? $root.Automator.AutomatorState[message.automatorState] === undefined ? message.automatorState : $root.Automator.AutomatorState[message.automatorState] : message.automatorState; - if (message.encryptedEccEnterprisePrivateKey != null && message.hasOwnProperty("encryptedEccEnterprisePrivateKey")) + if (message.encryptedEccEnterprisePrivateKey != null && Object.hasOwnProperty.call(message, "encryptedEccEnterprisePrivateKey")) object.encryptedEccEnterprisePrivateKey = options.bytes === String ? $util.base64.encode(message.encryptedEccEnterprisePrivateKey, 0, message.encryptedEccEnterprisePrivateKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedEccEnterprisePrivateKey) : message.encryptedEccEnterprisePrivateKey; - if (message.encryptedRsaEnterprisePrivateKey != null && message.hasOwnProperty("encryptedRsaEnterprisePrivateKey")) + if (message.encryptedRsaEnterprisePrivateKey != null && Object.hasOwnProperty.call(message, "encryptedRsaEnterprisePrivateKey")) object.encryptedRsaEnterprisePrivateKey = options.bytes === String ? $util.base64.encode(message.encryptedRsaEnterprisePrivateKey, 0, message.encryptedRsaEnterprisePrivateKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedRsaEnterprisePrivateKey) : message.encryptedRsaEnterprisePrivateKey; if (message.skillTypes && message.skillTypes.length) { object.skillTypes = []; for (let j = 0; j < message.skillTypes.length; ++j) object.skillTypes[j] = options.enums === String ? $root.Automator.SkillType[message.skillTypes[j]] === undefined ? message.skillTypes[j] : $root.Automator.SkillType[message.skillTypes[j]] : message.skillTypes[j]; } - if (message.encryptedTreeKey != null && message.hasOwnProperty("encryptedTreeKey")) + if (message.encryptedTreeKey != null && Object.hasOwnProperty.call(message, "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; return object; }; @@ -174588,19 +142161,6 @@ export const Automator = $root.Automator = (() => { return writer; }; - /** - * Encodes the specified AdminSetupAutomatorResponse message, length delimited. Does not implicitly {@link Automator.AdminSetupAutomatorResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof Automator.AdminSetupAutomatorResponse - * @static - * @param {Automator.IAdminSetupAutomatorResponse} message AdminSetupAutomatorResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - AdminSetupAutomatorResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes an AdminSetupAutomatorResponse message from the specified reader or buffer. * @function decode @@ -174653,64 +142213,6 @@ export const Automator = $root.Automator = (() => { return message; }; - /** - * Decodes an AdminSetupAutomatorResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Automator.AdminSetupAutomatorResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Automator.AdminSetupAutomatorResponse} AdminSetupAutomatorResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - AdminSetupAutomatorResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an AdminSetupAutomatorResponse message. - * @function verify - * @memberof Automator.AdminSetupAutomatorResponse - * @static - * @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) { - if (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.message != null && message.hasOwnProperty("message")) - if (!$util.isString(message.message)) - return "message: string expected"; - 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"; - if (message.automatorState != null && message.hasOwnProperty("automatorState")) - switch (message.automatorState) { - default: - return "automatorState: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - break; - } - if (message.automatorEccPublicKey != null && message.hasOwnProperty("automatorEccPublicKey")) - if (!(message.automatorEccPublicKey && typeof message.automatorEccPublicKey.length === "number" || $util.isString(message.automatorEccPublicKey))) - return "automatorEccPublicKey: buffer expected"; - return null; - }; - /** * Creates an AdminSetupAutomatorResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -174722,6 +142224,8 @@ export const Automator = $root.Automator = (() => { AdminSetupAutomatorResponse.fromObject = function fromObject(object, long) { if (object instanceof $root.Automator.AdminSetupAutomatorResponse) return object; + if (!$util.isObject(object)) + throw TypeError(".Automator.AdminSetupAutomatorResponse: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -174814,20 +142318,20 @@ export const Automator = $root.Automator = (() => { object.automatorEccPublicKey = $util.newBuffer(object.automatorEccPublicKey); } } - if (message.success != null && message.hasOwnProperty("success")) + if (message.success != null && Object.hasOwnProperty.call(message, "success")) object.success = message.success; - if (message.message != null && message.hasOwnProperty("message")) + if (message.message != null && Object.hasOwnProperty.call(message, "message")) object.message = message.message; - if (message.automatorId != null && message.hasOwnProperty("automatorId")) + if (message.automatorId != null && Object.hasOwnProperty.call(message, "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") 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.automatorState != null && message.hasOwnProperty("automatorState")) + if (message.automatorState != null && Object.hasOwnProperty.call(message, "automatorState")) object.automatorState = options.enums === String ? $root.Automator.AutomatorState[message.automatorState] === undefined ? message.automatorState : $root.Automator.AutomatorState[message.automatorState] : message.automatorState; - if (message.automatorEccPublicKey != null && message.hasOwnProperty("automatorEccPublicKey")) + if (message.automatorEccPublicKey != null && Object.hasOwnProperty.call(message, "automatorEccPublicKey")) object.automatorEccPublicKey = options.bytes === String ? $util.base64.encode(message.automatorEccPublicKey, 0, message.automatorEccPublicKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.automatorEccPublicKey) : message.automatorEccPublicKey; return object; }; @@ -174929,19 +142433,6 @@ export const Automator = $root.Automator = (() => { return writer; }; - /** - * Encodes the specified AdminAutomatorSkillsRequest message, length delimited. Does not implicitly {@link Automator.AdminAutomatorSkillsRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof Automator.AdminAutomatorSkillsRequest - * @static - * @param {Automator.IAdminAutomatorSkillsRequest} message AdminAutomatorSkillsRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - AdminAutomatorSkillsRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes an AdminAutomatorSkillsRequest message from the specified reader or buffer. * @function decode @@ -174978,43 +142469,6 @@ export const Automator = $root.Automator = (() => { return message; }; - /** - * Decodes an AdminAutomatorSkillsRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Automator.AdminAutomatorSkillsRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Automator.AdminAutomatorSkillsRequest} AdminAutomatorSkillsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - AdminAutomatorSkillsRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an AdminAutomatorSkillsRequest message. - * @function verify - * @memberof Automator.AdminAutomatorSkillsRequest - * @static - * @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) { - if (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"; - return null; - }; - /** * Creates an AdminAutomatorSkillsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -175026,6 +142480,8 @@ export const Automator = $root.Automator = (() => { AdminAutomatorSkillsRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.Automator.AdminAutomatorSkillsRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".Automator.AdminAutomatorSkillsRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -175066,7 +142522,7 @@ export const Automator = $root.Automator = (() => { object.automatorId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; } else object.automatorId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; - if (message.automatorId != null && message.hasOwnProperty("automatorId")) + if (message.automatorId != null && Object.hasOwnProperty.call(message, "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") @@ -175192,19 +142648,6 @@ export const Automator = $root.Automator = (() => { return writer; }; - /** - * Encodes the specified AutomatorSkill message, length delimited. Does not implicitly {@link Automator.AutomatorSkill.verify|verify} messages. - * @function encodeDelimited - * @memberof Automator.AutomatorSkill - * @static - * @param {Automator.IAutomatorSkill} message AutomatorSkill message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - AutomatorSkill.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes an AutomatorSkill message from the specified reader or buffer. * @function decode @@ -175249,56 +142692,6 @@ export const Automator = $root.Automator = (() => { return message; }; - /** - * Decodes an AutomatorSkill message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Automator.AutomatorSkill - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Automator.AutomatorSkill} AutomatorSkill - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - AutomatorSkill.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an AutomatorSkill message. - * @function verify - * @memberof Automator.AutomatorSkill - * @static - * @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) { - if (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: - return "skillType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - break; - } - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.translatedName != null && message.hasOwnProperty("translatedName")) - if (!$util.isString(message.translatedName)) - return "translatedName: string expected"; - return null; - }; - /** * Creates an AutomatorSkill message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -175310,6 +142703,8 @@ export const Automator = $root.Automator = (() => { AutomatorSkill.fromObject = function fromObject(object, long) { if (object instanceof $root.Automator.AutomatorSkill) return object; + if (!$util.isObject(object)) + throw TypeError(".Automator.AutomatorSkill: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -175368,11 +142763,11 @@ export const Automator = $root.Automator = (() => { object.name = ""; object.translatedName = ""; } - if (message.skillType != null && message.hasOwnProperty("skillType")) + if (message.skillType != null && Object.hasOwnProperty.call(message, "skillType")) object.skillType = options.enums === String ? $root.Automator.SkillType[message.skillType] === undefined ? message.skillType : $root.Automator.SkillType[message.skillType] : message.skillType; - if (message.name != null && message.hasOwnProperty("name")) + if (message.name != null && Object.hasOwnProperty.call(message, "name")) object.name = message.name; - if (message.translatedName != null && message.hasOwnProperty("translatedName")) + if (message.translatedName != null && Object.hasOwnProperty.call(message, "translatedName")) object.translatedName = message.translatedName; return object; }; @@ -175495,19 +142890,6 @@ export const Automator = $root.Automator = (() => { return writer; }; - /** - * Encodes the specified AdminAutomatorSkillsResponse message, length delimited. Does not implicitly {@link Automator.AdminAutomatorSkillsResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof Automator.AdminAutomatorSkillsResponse - * @static - * @param {Automator.IAdminAutomatorSkillsResponse} message AdminAutomatorSkillsResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - AdminAutomatorSkillsResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes an AdminAutomatorSkillsResponse message from the specified reader or buffer. * @function decode @@ -175554,55 +142936,6 @@ export const Automator = $root.Automator = (() => { return message; }; - /** - * Decodes an AdminAutomatorSkillsResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Automator.AdminAutomatorSkillsResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Automator.AdminAutomatorSkillsResponse} AdminAutomatorSkillsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - AdminAutomatorSkillsResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an AdminAutomatorSkillsResponse message. - * @function verify - * @memberof Automator.AdminAutomatorSkillsResponse - * @static - * @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) { - if (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.message != null && message.hasOwnProperty("message")) - if (!$util.isString(message.message)) - return "message: string expected"; - if (message.automatorSkills != null && message.hasOwnProperty("automatorSkills")) { - 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); - if (error) - return "automatorSkills." + error; - } - } - return null; - }; - /** * Creates an AdminAutomatorSkillsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -175614,6 +142947,8 @@ export const Automator = $root.Automator = (() => { AdminAutomatorSkillsResponse.fromObject = function fromObject(object, long) { if (object instanceof $root.Automator.AdminAutomatorSkillsResponse) return object; + if (!$util.isObject(object)) + throw TypeError(".Automator.AdminAutomatorSkillsResponse: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -175628,7 +142963,7 @@ export const Automator = $root.Automator = (() => { throw TypeError(".Automator.AdminAutomatorSkillsResponse.automatorSkills: array expected"); message.automatorSkills = []; for (let i = 0; i < object.automatorSkills.length; ++i) { - if (typeof object.automatorSkills[i] !== "object") + if (!$util.isObject(object.automatorSkills[i])) throw TypeError(".Automator.AdminAutomatorSkillsResponse.automatorSkills: object expected"); message.automatorSkills[i] = $root.Automator.AutomatorSkill.fromObject(object.automatorSkills[i], long + 1); } @@ -175659,9 +142994,9 @@ export const Automator = $root.Automator = (() => { object.success = false; object.message = ""; } - if (message.success != null && message.hasOwnProperty("success")) + if (message.success != null && Object.hasOwnProperty.call(message, "success")) object.success = message.success; - if (message.message != null && message.hasOwnProperty("message")) + if (message.message != null && Object.hasOwnProperty.call(message, "message")) object.message = message.message; if (message.automatorSkills && message.automatorSkills.length) { object.automatorSkills = []; @@ -175769,19 +143104,6 @@ export const Automator = $root.Automator = (() => { return writer; }; - /** - * Encodes the specified AdminResetAutomatorRequest message, length delimited. Does not implicitly {@link Automator.AdminResetAutomatorRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof Automator.AdminResetAutomatorRequest - * @static - * @param {Automator.IAdminResetAutomatorRequest} message AdminResetAutomatorRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - AdminResetAutomatorRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes an AdminResetAutomatorRequest message from the specified reader or buffer. * @function decode @@ -175818,43 +143140,6 @@ export const Automator = $root.Automator = (() => { return message; }; - /** - * Decodes an AdminResetAutomatorRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Automator.AdminResetAutomatorRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Automator.AdminResetAutomatorRequest} AdminResetAutomatorRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - AdminResetAutomatorRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an AdminResetAutomatorRequest message. - * @function verify - * @memberof Automator.AdminResetAutomatorRequest - * @static - * @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) { - if (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"; - return null; - }; - /** * Creates an AdminResetAutomatorRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -175866,6 +143151,8 @@ export const Automator = $root.Automator = (() => { AdminResetAutomatorRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.Automator.AdminResetAutomatorRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".Automator.AdminResetAutomatorRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -175906,7 +143193,7 @@ export const Automator = $root.Automator = (() => { object.automatorId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; } else object.automatorId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; - if (message.automatorId != null && message.hasOwnProperty("automatorId")) + if (message.automatorId != null && Object.hasOwnProperty.call(message, "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") @@ -176013,19 +143300,6 @@ export const Automator = $root.Automator = (() => { return writer; }; - /** - * Encodes the specified AdminInitializeAutomatorRequest message, length delimited. Does not implicitly {@link Automator.AdminInitializeAutomatorRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof Automator.AdminInitializeAutomatorRequest - * @static - * @param {Automator.IAdminInitializeAutomatorRequest} message AdminInitializeAutomatorRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - AdminInitializeAutomatorRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes an AdminInitializeAutomatorRequest message from the specified reader or buffer. * @function decode @@ -176062,43 +143336,6 @@ export const Automator = $root.Automator = (() => { return message; }; - /** - * Decodes an AdminInitializeAutomatorRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Automator.AdminInitializeAutomatorRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Automator.AdminInitializeAutomatorRequest} AdminInitializeAutomatorRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - AdminInitializeAutomatorRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an AdminInitializeAutomatorRequest message. - * @function verify - * @memberof Automator.AdminInitializeAutomatorRequest - * @static - * @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) { - if (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"; - return null; - }; - /** * Creates an AdminInitializeAutomatorRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -176110,6 +143347,8 @@ export const Automator = $root.Automator = (() => { AdminInitializeAutomatorRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.Automator.AdminInitializeAutomatorRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".Automator.AdminInitializeAutomatorRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -176150,7 +143389,7 @@ export const Automator = $root.Automator = (() => { object.automatorId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; } else object.automatorId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; - if (message.automatorId != null && message.hasOwnProperty("automatorId")) + if (message.automatorId != null && Object.hasOwnProperty.call(message, "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") @@ -176259,19 +143498,6 @@ export const Automator = $root.Automator = (() => { return writer; }; - /** - * Encodes the specified AdminAutomatorLogRequest message, length delimited. Does not implicitly {@link Automator.AdminAutomatorLogRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof Automator.AdminAutomatorLogRequest - * @static - * @param {Automator.IAdminAutomatorLogRequest} message AdminAutomatorLogRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - AdminAutomatorLogRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes an AdminAutomatorLogRequest message from the specified reader or buffer. * @function decode @@ -176308,43 +143534,6 @@ export const Automator = $root.Automator = (() => { return message; }; - /** - * Decodes an AdminAutomatorLogRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Automator.AdminAutomatorLogRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Automator.AdminAutomatorLogRequest} AdminAutomatorLogRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - AdminAutomatorLogRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an AdminAutomatorLogRequest message. - * @function verify - * @memberof Automator.AdminAutomatorLogRequest - * @static - * @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) { - if (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"; - return null; - }; - /** * Creates an AdminAutomatorLogRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -176356,6 +143545,8 @@ export const Automator = $root.Automator = (() => { AdminAutomatorLogRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.Automator.AdminAutomatorLogRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".Automator.AdminAutomatorLogRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -176396,7 +143587,7 @@ export const Automator = $root.Automator = (() => { object.automatorId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; } else object.automatorId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; - if (message.automatorId != null && message.hasOwnProperty("automatorId")) + if (message.automatorId != null && Object.hasOwnProperty.call(message, "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") @@ -176505,19 +143696,6 @@ export const Automator = $root.Automator = (() => { return writer; }; - /** - * Encodes the specified AdminAutomatorLogClearRequest message, length delimited. Does not implicitly {@link Automator.AdminAutomatorLogClearRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof Automator.AdminAutomatorLogClearRequest - * @static - * @param {Automator.IAdminAutomatorLogClearRequest} message AdminAutomatorLogClearRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - AdminAutomatorLogClearRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes an AdminAutomatorLogClearRequest message from the specified reader or buffer. * @function decode @@ -176554,43 +143732,6 @@ export const Automator = $root.Automator = (() => { return message; }; - /** - * Decodes an AdminAutomatorLogClearRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Automator.AdminAutomatorLogClearRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Automator.AdminAutomatorLogClearRequest} AdminAutomatorLogClearRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - AdminAutomatorLogClearRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an AdminAutomatorLogClearRequest message. - * @function verify - * @memberof Automator.AdminAutomatorLogClearRequest - * @static - * @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) { - if (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"; - return null; - }; - /** * Creates an AdminAutomatorLogClearRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -176602,6 +143743,8 @@ export const Automator = $root.Automator = (() => { AdminAutomatorLogClearRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.Automator.AdminAutomatorLogClearRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".Automator.AdminAutomatorLogClearRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -176642,7 +143785,7 @@ export const Automator = $root.Automator = (() => { object.automatorId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; } else object.automatorId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; - if (message.automatorId != null && message.hasOwnProperty("automatorId")) + if (message.automatorId != null && Object.hasOwnProperty.call(message, "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") @@ -176862,19 +144005,6 @@ export const Automator = $root.Automator = (() => { return writer; }; - /** - * Encodes the specified ApproveTeamsForUserRequest message, length delimited. Does not implicitly {@link Automator.ApproveTeamsForUserRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof Automator.ApproveTeamsForUserRequest - * @static - * @param {Automator.IApproveTeamsForUserRequest} message ApproveTeamsForUserRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ApproveTeamsForUserRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes an ApproveTeamsForUserRequest message from the specified reader or buffer. * @function decode @@ -176953,85 +144083,6 @@ export const Automator = $root.Automator = (() => { return message; }; - /** - * Decodes an ApproveTeamsForUserRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Automator.ApproveTeamsForUserRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Automator.ApproveTeamsForUserRequest} ApproveTeamsForUserRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ApproveTeamsForUserRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an ApproveTeamsForUserRequest message. - * @function verify - * @memberof Automator.ApproveTeamsForUserRequest - * @static - * @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) { - if (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"; - if (message.ssoAuthenticationProtocolType != null && message.hasOwnProperty("ssoAuthenticationProtocolType")) - switch (message.ssoAuthenticationProtocolType) { - default: - return "ssoAuthenticationProtocolType: enum value expected"; - case 0: - case 1: - case 2: - break; - } - if (message.authMessage != null && message.hasOwnProperty("authMessage")) - if (!$util.isString(message.authMessage)) - return "authMessage: string expected"; - if (message.email != null && message.hasOwnProperty("email")) - if (!$util.isString(message.email)) - return "email: string expected"; - if (message.serverEccPublicKeyId != null && message.hasOwnProperty("serverEccPublicKeyId")) - if (!$util.isInteger(message.serverEccPublicKeyId)) - return "serverEccPublicKeyId: integer expected"; - if (message.ipAddress != null && message.hasOwnProperty("ipAddress")) - if (!$util.isString(message.ipAddress)) - return "ipAddress: string expected"; - if (message.userPublicKey != null && message.hasOwnProperty("userPublicKey")) - if (!(message.userPublicKey && typeof message.userPublicKey.length === "number" || $util.isString(message.userPublicKey))) - return "userPublicKey: buffer expected"; - if (message.teamDescription != null && message.hasOwnProperty("teamDescription")) { - 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); - if (error) - return "teamDescription." + error; - } - } - if (message.isTesting != null && message.hasOwnProperty("isTesting")) - if (typeof message.isTesting !== "boolean") - return "isTesting: boolean expected"; - if (message.isEccOnly != null && message.hasOwnProperty("isEccOnly")) - if (typeof message.isEccOnly !== "boolean") - return "isEccOnly: boolean expected"; - if (message.userPublicKeyEcc != null && message.hasOwnProperty("userPublicKeyEcc")) - if (!(message.userPublicKeyEcc && typeof message.userPublicKeyEcc.length === "number" || $util.isString(message.userPublicKeyEcc))) - return "userPublicKeyEcc: buffer expected"; - return null; - }; - /** * Creates an ApproveTeamsForUserRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -177043,6 +144094,8 @@ export const Automator = $root.Automator = (() => { ApproveTeamsForUserRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.Automator.ApproveTeamsForUserRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".Automator.ApproveTeamsForUserRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -177095,7 +144148,7 @@ export const Automator = $root.Automator = (() => { throw TypeError(".Automator.ApproveTeamsForUserRequest.teamDescription: array expected"); message.teamDescription = []; for (let i = 0; i < object.teamDescription.length; ++i) { - if (typeof object.teamDescription[i] !== "object") + if (!$util.isObject(object.teamDescription[i])) throw TypeError(".Automator.ApproveTeamsForUserRequest.teamDescription: object expected"); message.teamDescription[i] = $root.Automator.TeamDescription.fromObject(object.teamDescription[i], long + 1); } @@ -177159,35 +144212,35 @@ export const Automator = $root.Automator = (() => { object.userPublicKeyEcc = $util.newBuffer(object.userPublicKeyEcc); } } - if (message.automatorId != null && message.hasOwnProperty("automatorId")) + if (message.automatorId != null && Object.hasOwnProperty.call(message, "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") 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.ssoAuthenticationProtocolType != null && message.hasOwnProperty("ssoAuthenticationProtocolType")) + if (message.ssoAuthenticationProtocolType != null && Object.hasOwnProperty.call(message, "ssoAuthenticationProtocolType")) object.ssoAuthenticationProtocolType = options.enums === String ? $root.Automator.SsoAuthenticationProtocolType[message.ssoAuthenticationProtocolType] === undefined ? message.ssoAuthenticationProtocolType : $root.Automator.SsoAuthenticationProtocolType[message.ssoAuthenticationProtocolType] : message.ssoAuthenticationProtocolType; - if (message.authMessage != null && message.hasOwnProperty("authMessage")) + if (message.authMessage != null && Object.hasOwnProperty.call(message, "authMessage")) object.authMessage = message.authMessage; - if (message.email != null && message.hasOwnProperty("email")) + if (message.email != null && Object.hasOwnProperty.call(message, "email")) object.email = message.email; - if (message.serverEccPublicKeyId != null && message.hasOwnProperty("serverEccPublicKeyId")) + if (message.serverEccPublicKeyId != null && Object.hasOwnProperty.call(message, "serverEccPublicKeyId")) object.serverEccPublicKeyId = message.serverEccPublicKeyId; - if (message.ipAddress != null && message.hasOwnProperty("ipAddress")) + if (message.ipAddress != null && Object.hasOwnProperty.call(message, "ipAddress")) object.ipAddress = message.ipAddress; - if (message.userPublicKey != null && message.hasOwnProperty("userPublicKey")) + if (message.userPublicKey != null && Object.hasOwnProperty.call(message, "userPublicKey")) object.userPublicKey = options.bytes === String ? $util.base64.encode(message.userPublicKey, 0, message.userPublicKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.userPublicKey) : message.userPublicKey; 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); } - if (message.isTesting != null && message.hasOwnProperty("isTesting")) + if (message.isTesting != null && Object.hasOwnProperty.call(message, "isTesting")) object.isTesting = message.isTesting; - if (message.isEccOnly != null && message.hasOwnProperty("isEccOnly")) + if (message.isEccOnly != null && Object.hasOwnProperty.call(message, "isEccOnly")) object.isEccOnly = message.isEccOnly; - if (message.userPublicKeyEcc != null && message.hasOwnProperty("userPublicKeyEcc")) + if (message.userPublicKeyEcc != null && Object.hasOwnProperty.call(message, "userPublicKeyEcc")) object.userPublicKeyEcc = options.bytes === String ? $util.base64.encode(message.userPublicKeyEcc, 0, message.userPublicKeyEcc.length) : options.bytes === Array ? Array.prototype.slice.call(message.userPublicKeyEcc) : message.userPublicKeyEcc; return object; }; @@ -177322,19 +144375,6 @@ export const Automator = $root.Automator = (() => { return writer; }; - /** - * Encodes the specified TeamDescription message, length delimited. Does not implicitly {@link Automator.TeamDescription.verify|verify} messages. - * @function encodeDelimited - * @memberof Automator.TeamDescription - * @static - * @param {Automator.ITeamDescription} message TeamDescription message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TeamDescription.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a TeamDescription message from the specified reader or buffer. * @function decode @@ -177383,60 +144423,6 @@ export const Automator = $root.Automator = (() => { return message; }; - /** - * Decodes a TeamDescription message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Automator.TeamDescription - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Automator.TeamDescription} TeamDescription - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TeamDescription.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a TeamDescription message. - * @function verify - * @memberof Automator.TeamDescription - * @static - * @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) { - if (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"; - if (message.teamName != null && message.hasOwnProperty("teamName")) - if (!$util.isString(message.teamName)) - return "teamName: string expected"; - if (message.encryptedTeamKey != null && message.hasOwnProperty("encryptedTeamKey")) - if (!(message.encryptedTeamKey && typeof message.encryptedTeamKey.length === "number" || $util.isString(message.encryptedTeamKey))) - return "encryptedTeamKey: buffer expected"; - if (message.encryptedTeamKeyType != null && message.hasOwnProperty("encryptedTeamKeyType")) - switch (message.encryptedTeamKeyType) { - default: - return "encryptedTeamKeyType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - break; - } - return null; - }; - /** * Creates a TeamDescription message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -177448,6 +144434,8 @@ export const Automator = $root.Automator = (() => { TeamDescription.fromObject = function fromObject(object, long) { if (object instanceof $root.Automator.TeamDescription) return object; + if (!$util.isObject(object)) + throw TypeError(".Automator.TeamDescription: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -177531,13 +144519,13 @@ export const Automator = $root.Automator = (() => { } object.encryptedTeamKeyType = options.enums === String ? "KT_NO_KEY" : 0; } - if (message.teamUid != null && message.hasOwnProperty("teamUid")) + if (message.teamUid != null && Object.hasOwnProperty.call(message, "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.teamName != null && message.hasOwnProperty("teamName")) + if (message.teamName != null && Object.hasOwnProperty.call(message, "teamName")) object.teamName = message.teamName; - if (message.encryptedTeamKey != null && message.hasOwnProperty("encryptedTeamKey")) + if (message.encryptedTeamKey != null && Object.hasOwnProperty.call(message, "encryptedTeamKey")) object.encryptedTeamKey = options.bytes === String ? $util.base64.encode(message.encryptedTeamKey, 0, message.encryptedTeamKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedTeamKey) : message.encryptedTeamKey; - if (message.encryptedTeamKeyType != null && message.hasOwnProperty("encryptedTeamKeyType")) + if (message.encryptedTeamKeyType != null && Object.hasOwnProperty.call(message, "encryptedTeamKeyType")) object.encryptedTeamKeyType = options.enums === String ? $root.Enterprise.EncryptedKeyType[message.encryptedTeamKeyType] === undefined ? message.encryptedTeamKeyType : $root.Enterprise.EncryptedKeyType[message.encryptedTeamKeyType] : message.encryptedTeamKeyType; return object; }; @@ -177674,19 +144662,6 @@ export const Automator = $root.Automator = (() => { return writer; }; - /** - * Encodes the specified ApproveTeamsForUserResponse message, length delimited. Does not implicitly {@link Automator.ApproveTeamsForUserResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof Automator.ApproveTeamsForUserResponse - * @static - * @param {Automator.IApproveTeamsForUserResponse} message ApproveTeamsForUserResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ApproveTeamsForUserResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes an ApproveTeamsForUserResponse message from the specified reader or buffer. * @function decode @@ -177737,58 +144712,6 @@ export const Automator = $root.Automator = (() => { return message; }; - /** - * Decodes an ApproveTeamsForUserResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Automator.ApproveTeamsForUserResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Automator.ApproveTeamsForUserResponse} ApproveTeamsForUserResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ApproveTeamsForUserResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an ApproveTeamsForUserResponse message. - * @function verify - * @memberof Automator.ApproveTeamsForUserResponse - * @static - * @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) { - if (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"; - if (message.email != null && message.hasOwnProperty("email")) - if (!$util.isString(message.email)) - return "email: string expected"; - if (message.message != null && message.hasOwnProperty("message")) - if (!$util.isString(message.message)) - return "message: string expected"; - if (message.approveTeamResponse != null && message.hasOwnProperty("approveTeamResponse")) { - 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); - if (error) - return "approveTeamResponse." + error; - } - } - return null; - }; - /** * Creates an ApproveTeamsForUserResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -177800,6 +144723,8 @@ export const Automator = $root.Automator = (() => { ApproveTeamsForUserResponse.fromObject = function fromObject(object, long) { if (object instanceof $root.Automator.ApproveTeamsForUserResponse) return object; + if (!$util.isObject(object)) + throw TypeError(".Automator.ApproveTeamsForUserResponse: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -177823,7 +144748,7 @@ export const Automator = $root.Automator = (() => { throw TypeError(".Automator.ApproveTeamsForUserResponse.approveTeamResponse: array expected"); message.approveTeamResponse = []; for (let i = 0; i < object.approveTeamResponse.length; ++i) { - if (typeof object.approveTeamResponse[i] !== "object") + if (!$util.isObject(object.approveTeamResponse[i])) throw TypeError(".Automator.ApproveTeamsForUserResponse.approveTeamResponse: object expected"); message.approveTeamResponse[i] = $root.Automator.ApproveOneTeamForUserResponse.fromObject(object.approveTeamResponse[i], long + 1); } @@ -177859,16 +144784,16 @@ export const Automator = $root.Automator = (() => { object.email = ""; object.message = ""; } - if (message.automatorId != null && message.hasOwnProperty("automatorId")) + if (message.automatorId != null && Object.hasOwnProperty.call(message, "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") 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.email != null && message.hasOwnProperty("email")) + if (message.email != null && Object.hasOwnProperty.call(message, "email")) object.email = message.email; - if (message.message != null && message.hasOwnProperty("message")) + if (message.message != null && Object.hasOwnProperty.call(message, "message")) object.message = message.message; if (message.approveTeamResponse && message.approveTeamResponse.length) { object.approveTeamResponse = []; @@ -178052,19 +144977,6 @@ export const Automator = $root.Automator = (() => { return writer; }; - /** - * Encodes the specified ApproveOneTeamForUserResponse message, length delimited. Does not implicitly {@link Automator.ApproveOneTeamForUserResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof Automator.ApproveOneTeamForUserResponse - * @static - * @param {Automator.IApproveOneTeamForUserResponse} message ApproveOneTeamForUserResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ApproveOneTeamForUserResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes an ApproveOneTeamForUserResponse message from the specified reader or buffer. * @function decode @@ -178129,80 +145041,6 @@ export const Automator = $root.Automator = (() => { return message; }; - /** - * Decodes an ApproveOneTeamForUserResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Automator.ApproveOneTeamForUserResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Automator.ApproveOneTeamForUserResponse} ApproveOneTeamForUserResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ApproveOneTeamForUserResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an ApproveOneTeamForUserResponse message. - * @function verify - * @memberof Automator.ApproveOneTeamForUserResponse - * @static - * @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) { - if (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"; - if (message.message != null && message.hasOwnProperty("message")) - if (!$util.isString(message.message)) - return "message: string expected"; - if (message.teamUid != null && message.hasOwnProperty("teamUid")) - if (!(message.teamUid && typeof message.teamUid.length === "number" || $util.isString(message.teamUid))) - return "teamUid: buffer expected"; - if (message.teamName != null && message.hasOwnProperty("teamName")) - if (!$util.isString(message.teamName)) - return "teamName: string expected"; - if (message.userEncryptedTeamKey != null && message.hasOwnProperty("userEncryptedTeamKey")) - if (!(message.userEncryptedTeamKey && typeof message.userEncryptedTeamKey.length === "number" || $util.isString(message.userEncryptedTeamKey))) - return "userEncryptedTeamKey: buffer expected"; - if (message.userEncryptedTeamKeyType != null && message.hasOwnProperty("userEncryptedTeamKeyType")) - switch (message.userEncryptedTeamKeyType) { - default: - return "userEncryptedTeamKeyType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - break; - } - if (message.userEncryptedTeamKeyByEcc != null && message.hasOwnProperty("userEncryptedTeamKeyByEcc")) - if (!(message.userEncryptedTeamKeyByEcc && typeof message.userEncryptedTeamKeyByEcc.length === "number" || $util.isString(message.userEncryptedTeamKeyByEcc))) - return "userEncryptedTeamKeyByEcc: buffer expected"; - if (message.userEncryptedTeamKeyByEccType != null && message.hasOwnProperty("userEncryptedTeamKeyByEccType")) - switch (message.userEncryptedTeamKeyByEccType) { - default: - return "userEncryptedTeamKeyByEccType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - break; - } - return null; - }; - /** * Creates an ApproveOneTeamForUserResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -178214,6 +145052,8 @@ export const Automator = $root.Automator = (() => { ApproveOneTeamForUserResponse.fromObject = function fromObject(object, long) { if (object instanceof $root.Automator.ApproveOneTeamForUserResponse) return object; + if (!$util.isObject(object)) + throw TypeError(".Automator.ApproveOneTeamForUserResponse: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -178344,21 +145184,21 @@ export const Automator = $root.Automator = (() => { } object.userEncryptedTeamKeyByEccType = options.enums === String ? "KT_NO_KEY" : 0; } - if (message.approved != null && message.hasOwnProperty("approved")) + if (message.approved != null && Object.hasOwnProperty.call(message, "approved")) object.approved = message.approved; - if (message.message != null && message.hasOwnProperty("message")) + if (message.message != null && Object.hasOwnProperty.call(message, "message")) object.message = message.message; - if (message.teamUid != null && message.hasOwnProperty("teamUid")) + if (message.teamUid != null && Object.hasOwnProperty.call(message, "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.teamName != null && message.hasOwnProperty("teamName")) + if (message.teamName != null && Object.hasOwnProperty.call(message, "teamName")) object.teamName = message.teamName; - if (message.userEncryptedTeamKey != null && message.hasOwnProperty("userEncryptedTeamKey")) + if (message.userEncryptedTeamKey != null && Object.hasOwnProperty.call(message, "userEncryptedTeamKey")) object.userEncryptedTeamKey = options.bytes === String ? $util.base64.encode(message.userEncryptedTeamKey, 0, message.userEncryptedTeamKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.userEncryptedTeamKey) : message.userEncryptedTeamKey; - if (message.userEncryptedTeamKeyType != null && message.hasOwnProperty("userEncryptedTeamKeyType")) + if (message.userEncryptedTeamKeyType != null && Object.hasOwnProperty.call(message, "userEncryptedTeamKeyType")) object.userEncryptedTeamKeyType = options.enums === String ? $root.Enterprise.EncryptedKeyType[message.userEncryptedTeamKeyType] === undefined ? message.userEncryptedTeamKeyType : $root.Enterprise.EncryptedKeyType[message.userEncryptedTeamKeyType] : message.userEncryptedTeamKeyType; - if (message.userEncryptedTeamKeyByEcc != null && message.hasOwnProperty("userEncryptedTeamKeyByEcc")) + if (message.userEncryptedTeamKeyByEcc != null && Object.hasOwnProperty.call(message, "userEncryptedTeamKeyByEcc")) object.userEncryptedTeamKeyByEcc = options.bytes === String ? $util.base64.encode(message.userEncryptedTeamKeyByEcc, 0, message.userEncryptedTeamKeyByEcc.length) : options.bytes === Array ? Array.prototype.slice.call(message.userEncryptedTeamKeyByEcc) : message.userEncryptedTeamKeyByEcc; - if (message.userEncryptedTeamKeyByEccType != null && message.hasOwnProperty("userEncryptedTeamKeyByEccType")) + if (message.userEncryptedTeamKeyByEccType != null && Object.hasOwnProperty.call(message, "userEncryptedTeamKeyByEccType")) object.userEncryptedTeamKeyByEccType = options.enums === String ? $root.Enterprise.EncryptedKeyType[message.userEncryptedTeamKeyByEccType] === undefined ? message.userEncryptedTeamKeyByEccType : $root.Enterprise.EncryptedKeyType[message.userEncryptedTeamKeyByEccType] : message.userEncryptedTeamKeyByEccType; return object; }; @@ -178551,19 +145391,6 @@ export const Automator = $root.Automator = (() => { return writer; }; - /** - * Encodes the specified ApproveTeamsRequest message, length delimited. Does not implicitly {@link Automator.ApproveTeamsRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof Automator.ApproveTeamsRequest - * @static - * @param {Automator.IApproveTeamsRequest} message ApproveTeamsRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ApproveTeamsRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes an ApproveTeamsRequest message from the specified reader or buffer. * @function decode @@ -178634,79 +145461,6 @@ export const Automator = $root.Automator = (() => { return message; }; - /** - * Decodes an ApproveTeamsRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Automator.ApproveTeamsRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Automator.ApproveTeamsRequest} ApproveTeamsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ApproveTeamsRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an ApproveTeamsRequest message. - * @function verify - * @memberof Automator.ApproveTeamsRequest - * @static - * @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) { - if (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"; - if (message.ssoAuthenticationProtocolType != null && message.hasOwnProperty("ssoAuthenticationProtocolType")) - switch (message.ssoAuthenticationProtocolType) { - default: - return "ssoAuthenticationProtocolType: enum value expected"; - case 0: - case 1: - case 2: - break; - } - if (message.authMessage != null && message.hasOwnProperty("authMessage")) - if (!$util.isString(message.authMessage)) - return "authMessage: string expected"; - if (message.email != null && message.hasOwnProperty("email")) - if (!$util.isString(message.email)) - return "email: string expected"; - if (message.serverEccPublicKeyId != null && message.hasOwnProperty("serverEccPublicKeyId")) - if (!$util.isInteger(message.serverEccPublicKeyId)) - return "serverEccPublicKeyId: integer expected"; - if (message.ipAddress != null && message.hasOwnProperty("ipAddress")) - if (!$util.isString(message.ipAddress)) - return "ipAddress: string expected"; - if (message.teamDescription != null && message.hasOwnProperty("teamDescription")) { - 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); - if (error) - return "teamDescription." + error; - } - } - if (message.isEccOnly != null && message.hasOwnProperty("isEccOnly")) - if (typeof message.isEccOnly !== "boolean") - return "isEccOnly: boolean expected"; - if (message.isTesting != null && message.hasOwnProperty("isTesting")) - if (typeof message.isTesting !== "boolean") - return "isTesting: boolean expected"; - return null; - }; - /** * Creates an ApproveTeamsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -178718,6 +145472,8 @@ export const Automator = $root.Automator = (() => { ApproveTeamsRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.Automator.ApproveTeamsRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".Automator.ApproveTeamsRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -178765,7 +145521,7 @@ export const Automator = $root.Automator = (() => { throw TypeError(".Automator.ApproveTeamsRequest.teamDescription: array expected"); message.teamDescription = []; for (let i = 0; i < object.teamDescription.length; ++i) { - if (typeof object.teamDescription[i] !== "object") + if (!$util.isObject(object.teamDescription[i])) throw TypeError(".Automator.ApproveTeamsRequest.teamDescription: object expected"); message.teamDescription[i] = $root.Automator.TeamDescription.fromObject(object.teamDescription[i], long + 1); } @@ -178810,31 +145566,31 @@ export const Automator = $root.Automator = (() => { object.isEccOnly = false; object.isTesting = false; } - if (message.automatorId != null && message.hasOwnProperty("automatorId")) + if (message.automatorId != null && Object.hasOwnProperty.call(message, "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") 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.ssoAuthenticationProtocolType != null && message.hasOwnProperty("ssoAuthenticationProtocolType")) + if (message.ssoAuthenticationProtocolType != null && Object.hasOwnProperty.call(message, "ssoAuthenticationProtocolType")) object.ssoAuthenticationProtocolType = options.enums === String ? $root.Automator.SsoAuthenticationProtocolType[message.ssoAuthenticationProtocolType] === undefined ? message.ssoAuthenticationProtocolType : $root.Automator.SsoAuthenticationProtocolType[message.ssoAuthenticationProtocolType] : message.ssoAuthenticationProtocolType; - if (message.authMessage != null && message.hasOwnProperty("authMessage")) + if (message.authMessage != null && Object.hasOwnProperty.call(message, "authMessage")) object.authMessage = message.authMessage; - if (message.email != null && message.hasOwnProperty("email")) + if (message.email != null && Object.hasOwnProperty.call(message, "email")) object.email = message.email; - if (message.serverEccPublicKeyId != null && message.hasOwnProperty("serverEccPublicKeyId")) + if (message.serverEccPublicKeyId != null && Object.hasOwnProperty.call(message, "serverEccPublicKeyId")) object.serverEccPublicKeyId = message.serverEccPublicKeyId; - if (message.ipAddress != null && message.hasOwnProperty("ipAddress")) + if (message.ipAddress != null && Object.hasOwnProperty.call(message, "ipAddress")) object.ipAddress = message.ipAddress; 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); } - if (message.isEccOnly != null && message.hasOwnProperty("isEccOnly")) + if (message.isEccOnly != null && Object.hasOwnProperty.call(message, "isEccOnly")) object.isEccOnly = message.isEccOnly; - if (message.isTesting != null && message.hasOwnProperty("isTesting")) + if (message.isTesting != null && Object.hasOwnProperty.call(message, "isTesting")) object.isTesting = message.isTesting; return object; }; @@ -178960,19 +145716,6 @@ export const Automator = $root.Automator = (() => { return writer; }; - /** - * Encodes the specified ApproveTeamsResponse message, length delimited. Does not implicitly {@link Automator.ApproveTeamsResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof Automator.ApproveTeamsResponse - * @static - * @param {Automator.IApproveTeamsResponse} message ApproveTeamsResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ApproveTeamsResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes an ApproveTeamsResponse message from the specified reader or buffer. * @function decode @@ -179019,55 +145762,6 @@ export const Automator = $root.Automator = (() => { return message; }; - /** - * Decodes an ApproveTeamsResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Automator.ApproveTeamsResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Automator.ApproveTeamsResponse} ApproveTeamsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ApproveTeamsResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an ApproveTeamsResponse message. - * @function verify - * @memberof Automator.ApproveTeamsResponse - * @static - * @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) { - if (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"; - if (message.message != null && message.hasOwnProperty("message")) - if (!$util.isString(message.message)) - return "message: string expected"; - if (message.approveTeamResponse != null && message.hasOwnProperty("approveTeamResponse")) { - 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); - if (error) - return "approveTeamResponse." + error; - } - } - return null; - }; - /** * Creates an ApproveTeamsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -179079,6 +145773,8 @@ export const Automator = $root.Automator = (() => { ApproveTeamsResponse.fromObject = function fromObject(object, long) { if (object instanceof $root.Automator.ApproveTeamsResponse) return object; + if (!$util.isObject(object)) + throw TypeError(".Automator.ApproveTeamsResponse: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -179100,7 +145796,7 @@ export const Automator = $root.Automator = (() => { throw TypeError(".Automator.ApproveTeamsResponse.approveTeamResponse: array expected"); message.approveTeamResponse = []; for (let i = 0; i < object.approveTeamResponse.length; ++i) { - if (typeof object.approveTeamResponse[i] !== "object") + if (!$util.isObject(object.approveTeamResponse[i])) throw TypeError(".Automator.ApproveTeamsResponse.approveTeamResponse: object expected"); message.approveTeamResponse[i] = $root.Automator.ApproveOneTeamResponse.fromObject(object.approveTeamResponse[i], long + 1); } @@ -179135,14 +145831,14 @@ export const Automator = $root.Automator = (() => { object.automatorId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; object.message = ""; } - if (message.automatorId != null && message.hasOwnProperty("automatorId")) + if (message.automatorId != null && Object.hasOwnProperty.call(message, "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") 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.message != null && message.hasOwnProperty("message")) + if (message.message != null && Object.hasOwnProperty.call(message, "message")) object.message = message.message; if (message.approveTeamResponse && message.approveTeamResponse.length) { object.approveTeamResponse = []; @@ -179393,19 +146089,6 @@ export const Automator = $root.Automator = (() => { return writer; }; - /** - * Encodes the specified ApproveOneTeamResponse message, length delimited. Does not implicitly {@link Automator.ApproveOneTeamResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof Automator.ApproveOneTeamResponse - * @static - * @param {Automator.IApproveOneTeamResponse} message ApproveOneTeamResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ApproveOneTeamResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes an ApproveOneTeamResponse message from the specified reader or buffer. * @function decode @@ -179494,114 +146177,6 @@ export const Automator = $root.Automator = (() => { return message; }; - /** - * Decodes an ApproveOneTeamResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Automator.ApproveOneTeamResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Automator.ApproveOneTeamResponse} ApproveOneTeamResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ApproveOneTeamResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an ApproveOneTeamResponse message. - * @function verify - * @memberof Automator.ApproveOneTeamResponse - * @static - * @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) { - if (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"; - if (message.message != null && message.hasOwnProperty("message")) - if (!$util.isString(message.message)) - return "message: string expected"; - if (message.teamUid != null && message.hasOwnProperty("teamUid")) - if (!(message.teamUid && typeof message.teamUid.length === "number" || $util.isString(message.teamUid))) - return "teamUid: buffer expected"; - if (message.teamName != null && message.hasOwnProperty("teamName")) - if (!$util.isString(message.teamName)) - return "teamName: string expected"; - if (message.encryptedTeamKeyCbc != null && message.hasOwnProperty("encryptedTeamKeyCbc")) - if (!(message.encryptedTeamKeyCbc && typeof message.encryptedTeamKeyCbc.length === "number" || $util.isString(message.encryptedTeamKeyCbc))) - return "encryptedTeamKeyCbc: buffer expected"; - if (message.encryptedTeamKeyCbcType != null && message.hasOwnProperty("encryptedTeamKeyCbcType")) - switch (message.encryptedTeamKeyCbcType) { - default: - return "encryptedTeamKeyCbcType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - break; - } - if (message.encryptedTeamKeyGcm != null && message.hasOwnProperty("encryptedTeamKeyGcm")) - if (!(message.encryptedTeamKeyGcm && typeof message.encryptedTeamKeyGcm.length === "number" || $util.isString(message.encryptedTeamKeyGcm))) - return "encryptedTeamKeyGcm: buffer expected"; - if (message.encryptedTeamKeyGcmType != null && message.hasOwnProperty("encryptedTeamKeyGcmType")) - switch (message.encryptedTeamKeyGcmType) { - default: - return "encryptedTeamKeyGcmType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - break; - } - if (message.teamPublicKeyRsa != null && message.hasOwnProperty("teamPublicKeyRsa")) - if (!(message.teamPublicKeyRsa && typeof message.teamPublicKeyRsa.length === "number" || $util.isString(message.teamPublicKeyRsa))) - return "teamPublicKeyRsa: buffer expected"; - if (message.encryptedTeamPrivateKeyRsa != null && message.hasOwnProperty("encryptedTeamPrivateKeyRsa")) - if (!(message.encryptedTeamPrivateKeyRsa && typeof message.encryptedTeamPrivateKeyRsa.length === "number" || $util.isString(message.encryptedTeamPrivateKeyRsa))) - return "encryptedTeamPrivateKeyRsa: buffer expected"; - if (message.encryptedTeamPrivateKeyRsaType != null && message.hasOwnProperty("encryptedTeamPrivateKeyRsaType")) - switch (message.encryptedTeamPrivateKeyRsaType) { - default: - return "encryptedTeamPrivateKeyRsaType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - break; - } - if (message.teamPublicKeyEcc != null && message.hasOwnProperty("teamPublicKeyEcc")) - if (!(message.teamPublicKeyEcc && typeof message.teamPublicKeyEcc.length === "number" || $util.isString(message.teamPublicKeyEcc))) - return "teamPublicKeyEcc: buffer expected"; - if (message.encryptedTeamPrivateKeyEcc != null && message.hasOwnProperty("encryptedTeamPrivateKeyEcc")) - if (!(message.encryptedTeamPrivateKeyEcc && typeof message.encryptedTeamPrivateKeyEcc.length === "number" || $util.isString(message.encryptedTeamPrivateKeyEcc))) - return "encryptedTeamPrivateKeyEcc: buffer expected"; - if (message.encryptedTeamPrivateKeyEccType != null && message.hasOwnProperty("encryptedTeamPrivateKeyEccType")) - switch (message.encryptedTeamPrivateKeyEccType) { - default: - return "encryptedTeamPrivateKeyEccType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - break; - } - return null; - }; - /** * Creates an ApproveOneTeamResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -179613,6 +146188,8 @@ export const Automator = $root.Automator = (() => { ApproveOneTeamResponse.fromObject = function fromObject(object, long) { if (object instanceof $root.Automator.ApproveOneTeamResponse) return object; + if (!$util.isObject(object)) + throw TypeError(".Automator.ApproveOneTeamResponse: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -179849,33 +146426,33 @@ export const Automator = $root.Automator = (() => { } object.encryptedTeamPrivateKeyEccType = options.enums === String ? "KT_NO_KEY" : 0; } - if (message.approved != null && message.hasOwnProperty("approved")) + if (message.approved != null && Object.hasOwnProperty.call(message, "approved")) object.approved = message.approved; - if (message.message != null && message.hasOwnProperty("message")) + if (message.message != null && Object.hasOwnProperty.call(message, "message")) object.message = message.message; - if (message.teamUid != null && message.hasOwnProperty("teamUid")) + if (message.teamUid != null && Object.hasOwnProperty.call(message, "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.teamName != null && message.hasOwnProperty("teamName")) + if (message.teamName != null && Object.hasOwnProperty.call(message, "teamName")) object.teamName = message.teamName; - if (message.encryptedTeamKeyCbc != null && message.hasOwnProperty("encryptedTeamKeyCbc")) + if (message.encryptedTeamKeyCbc != null && Object.hasOwnProperty.call(message, "encryptedTeamKeyCbc")) object.encryptedTeamKeyCbc = options.bytes === String ? $util.base64.encode(message.encryptedTeamKeyCbc, 0, message.encryptedTeamKeyCbc.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedTeamKeyCbc) : message.encryptedTeamKeyCbc; - if (message.encryptedTeamKeyCbcType != null && message.hasOwnProperty("encryptedTeamKeyCbcType")) + if (message.encryptedTeamKeyCbcType != null && Object.hasOwnProperty.call(message, "encryptedTeamKeyCbcType")) object.encryptedTeamKeyCbcType = options.enums === String ? $root.Enterprise.EncryptedKeyType[message.encryptedTeamKeyCbcType] === undefined ? message.encryptedTeamKeyCbcType : $root.Enterprise.EncryptedKeyType[message.encryptedTeamKeyCbcType] : message.encryptedTeamKeyCbcType; - if (message.encryptedTeamKeyGcm != null && message.hasOwnProperty("encryptedTeamKeyGcm")) + if (message.encryptedTeamKeyGcm != null && Object.hasOwnProperty.call(message, "encryptedTeamKeyGcm")) object.encryptedTeamKeyGcm = options.bytes === String ? $util.base64.encode(message.encryptedTeamKeyGcm, 0, message.encryptedTeamKeyGcm.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedTeamKeyGcm) : message.encryptedTeamKeyGcm; - if (message.encryptedTeamKeyGcmType != null && message.hasOwnProperty("encryptedTeamKeyGcmType")) + if (message.encryptedTeamKeyGcmType != null && Object.hasOwnProperty.call(message, "encryptedTeamKeyGcmType")) object.encryptedTeamKeyGcmType = options.enums === String ? $root.Enterprise.EncryptedKeyType[message.encryptedTeamKeyGcmType] === undefined ? message.encryptedTeamKeyGcmType : $root.Enterprise.EncryptedKeyType[message.encryptedTeamKeyGcmType] : message.encryptedTeamKeyGcmType; - if (message.teamPublicKeyRsa != null && message.hasOwnProperty("teamPublicKeyRsa")) + if (message.teamPublicKeyRsa != null && Object.hasOwnProperty.call(message, "teamPublicKeyRsa")) object.teamPublicKeyRsa = options.bytes === String ? $util.base64.encode(message.teamPublicKeyRsa, 0, message.teamPublicKeyRsa.length) : options.bytes === Array ? Array.prototype.slice.call(message.teamPublicKeyRsa) : message.teamPublicKeyRsa; - if (message.encryptedTeamPrivateKeyRsa != null && message.hasOwnProperty("encryptedTeamPrivateKeyRsa")) + if (message.encryptedTeamPrivateKeyRsa != null && Object.hasOwnProperty.call(message, "encryptedTeamPrivateKeyRsa")) object.encryptedTeamPrivateKeyRsa = options.bytes === String ? $util.base64.encode(message.encryptedTeamPrivateKeyRsa, 0, message.encryptedTeamPrivateKeyRsa.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedTeamPrivateKeyRsa) : message.encryptedTeamPrivateKeyRsa; - if (message.encryptedTeamPrivateKeyRsaType != null && message.hasOwnProperty("encryptedTeamPrivateKeyRsaType")) + if (message.encryptedTeamPrivateKeyRsaType != null && Object.hasOwnProperty.call(message, "encryptedTeamPrivateKeyRsaType")) object.encryptedTeamPrivateKeyRsaType = options.enums === String ? $root.Enterprise.EncryptedKeyType[message.encryptedTeamPrivateKeyRsaType] === undefined ? message.encryptedTeamPrivateKeyRsaType : $root.Enterprise.EncryptedKeyType[message.encryptedTeamPrivateKeyRsaType] : message.encryptedTeamPrivateKeyRsaType; - if (message.teamPublicKeyEcc != null && message.hasOwnProperty("teamPublicKeyEcc")) + if (message.teamPublicKeyEcc != null && Object.hasOwnProperty.call(message, "teamPublicKeyEcc")) object.teamPublicKeyEcc = options.bytes === String ? $util.base64.encode(message.teamPublicKeyEcc, 0, message.teamPublicKeyEcc.length) : options.bytes === Array ? Array.prototype.slice.call(message.teamPublicKeyEcc) : message.teamPublicKeyEcc; - if (message.encryptedTeamPrivateKeyEcc != null && message.hasOwnProperty("encryptedTeamPrivateKeyEcc")) + if (message.encryptedTeamPrivateKeyEcc != null && Object.hasOwnProperty.call(message, "encryptedTeamPrivateKeyEcc")) object.encryptedTeamPrivateKeyEcc = options.bytes === String ? $util.base64.encode(message.encryptedTeamPrivateKeyEcc, 0, message.encryptedTeamPrivateKeyEcc.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedTeamPrivateKeyEcc) : message.encryptedTeamPrivateKeyEcc; - if (message.encryptedTeamPrivateKeyEccType != null && message.hasOwnProperty("encryptedTeamPrivateKeyEccType")) + if (message.encryptedTeamPrivateKeyEccType != null && Object.hasOwnProperty.call(message, "encryptedTeamPrivateKeyEccType")) object.encryptedTeamPrivateKeyEccType = options.enums === String ? $root.Enterprise.EncryptedKeyType[message.encryptedTeamPrivateKeyEccType] === undefined ? message.encryptedTeamPrivateKeyEccType : $root.Enterprise.EncryptedKeyType[message.encryptedTeamPrivateKeyEccType] : message.encryptedTeamPrivateKeyEccType; return object; }; @@ -180041,19 +146618,6 @@ export const Automator = $root.Automator = (() => { return writer; }; - /** - * Encodes the specified SSLCertificateInfo message, length delimited. Does not implicitly {@link Automator.SSLCertificateInfo.verify|verify} messages. - * @function encodeDelimited - * @memberof Automator.SSLCertificateInfo - * @static - * @param {Automator.ISSLCertificateInfo} message SSLCertificateInfo message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SSLCertificateInfo.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a SSLCertificateInfo message from the specified reader or buffer. * @function decode @@ -180114,61 +146678,6 @@ export const Automator = $root.Automator = (() => { return message; }; - /** - * Decodes a SSLCertificateInfo message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Automator.SSLCertificateInfo - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Automator.SSLCertificateInfo} SSLCertificateInfo - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SSLCertificateInfo.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a SSLCertificateInfo message. - * @function verify - * @memberof Automator.SSLCertificateInfo - * @static - * @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) { - if (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"; - if (message.hostUrl != null && message.hasOwnProperty("hostUrl")) - if (!$util.isString(message.hostUrl)) - return "hostUrl: string expected"; - if (message.subject != null && message.hasOwnProperty("subject")) - if (!$util.isString(message.subject)) - return "subject: string expected"; - if (message.issuer != null && message.hasOwnProperty("issuer")) - if (!$util.isString(message.issuer)) - return "issuer: string expected"; - if (message.issuedOn != null && message.hasOwnProperty("issuedOn")) - if (!$util.isInteger(message.issuedOn) && !(message.issuedOn && $util.isInteger(message.issuedOn.low) && $util.isInteger(message.issuedOn.high))) - return "issuedOn: integer|Long expected"; - if (message.expiresOn != null && message.hasOwnProperty("expiresOn")) - if (!$util.isInteger(message.expiresOn) && !(message.expiresOn && $util.isInteger(message.expiresOn.low) && $util.isInteger(message.expiresOn.high))) - return "expiresOn: integer|Long expected"; - if (message.checkedOn != null && message.hasOwnProperty("checkedOn")) - if (!$util.isInteger(message.checkedOn) && !(message.checkedOn && $util.isInteger(message.checkedOn.low) && $util.isInteger(message.checkedOn.high))) - return "checkedOn: integer|Long expected"; - return null; - }; - /** * Creates a SSLCertificateInfo message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -180180,6 +146689,8 @@ export const Automator = $root.Automator = (() => { SSLCertificateInfo.fromObject = function fromObject(object, long) { if (object instanceof $root.Automator.SSLCertificateInfo) return object; + if (!$util.isObject(object)) + throw TypeError(".Automator.SSLCertificateInfo: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -180272,34 +146783,34 @@ export const Automator = $root.Automator = (() => { } else object.checkedOn = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; } - if (message.automatorId != null && message.hasOwnProperty("automatorId")) + if (message.automatorId != null && Object.hasOwnProperty.call(message, "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") 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; - if (message.hostUrl != null && message.hasOwnProperty("hostUrl")) + if (message.hostUrl != null && Object.hasOwnProperty.call(message, "hostUrl")) object.hostUrl = message.hostUrl; - if (message.subject != null && message.hasOwnProperty("subject")) + if (message.subject != null && Object.hasOwnProperty.call(message, "subject")) object.subject = message.subject; - if (message.issuer != null && message.hasOwnProperty("issuer")) + if (message.issuer != null && Object.hasOwnProperty.call(message, "issuer")) object.issuer = message.issuer; - if (message.issuedOn != null && message.hasOwnProperty("issuedOn")) + if (message.issuedOn != null && Object.hasOwnProperty.call(message, "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") 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 (message.expiresOn != null && Object.hasOwnProperty.call(message, "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") 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 (message.checkedOn != null && Object.hasOwnProperty.call(message, "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") @@ -180633,19 +147144,6 @@ export const SsoCloud = $root.SsoCloud = (() => { return writer; }; - /** - * Encodes the specified SsoCloudSettingValue message, length delimited. Does not implicitly {@link SsoCloud.SsoCloudSettingValue.verify|verify} messages. - * @function encodeDelimited - * @memberof SsoCloud.SsoCloudSettingValue - * @static - * @param {SsoCloud.ISsoCloudSettingValue} message SsoCloudSettingValue message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SsoCloudSettingValue.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a SsoCloudSettingValue message from the specified reader or buffer. * @function decode @@ -180714,81 +147212,6 @@ export const SsoCloud = $root.SsoCloud = (() => { return message; }; - /** - * Decodes a SsoCloudSettingValue message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof SsoCloud.SsoCloudSettingValue - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {SsoCloud.SsoCloudSettingValue} SsoCloudSettingValue - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SsoCloudSettingValue.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a SsoCloudSettingValue message. - * @function verify - * @memberof SsoCloud.SsoCloudSettingValue - * @static - * @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) { - if (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"; - if (message.settingName != null && message.hasOwnProperty("settingName")) - if (!$util.isString(message.settingName)) - return "settingName: string expected"; - if (message.label != null && message.hasOwnProperty("label")) - if (!$util.isString(message.label)) - return "label: string expected"; - if (message.value != null && message.hasOwnProperty("value")) - if (!$util.isString(message.value)) - return "value: string expected"; - if (message.valueType != null && message.hasOwnProperty("valueType")) - switch (message.valueType) { - default: - return "valueType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: - case 9: - case 10: - break; - } - if (message.lastModified != null && message.hasOwnProperty("lastModified")) - if (!$util.isString(message.lastModified)) - return "lastModified: string expected"; - if (message.isFromFile != null && message.hasOwnProperty("isFromFile")) - if (typeof message.isFromFile !== "boolean") - return "isFromFile: boolean expected"; - if (message.isEditable != null && message.hasOwnProperty("isEditable")) - if (typeof message.isEditable !== "boolean") - return "isEditable: boolean expected"; - if (message.isRequired != null && message.hasOwnProperty("isRequired")) - if (typeof message.isRequired !== "boolean") - return "isRequired: boolean expected"; - return null; - }; - /** * Creates a SsoCloudSettingValue message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -180800,6 +147223,8 @@ export const SsoCloud = $root.SsoCloud = (() => { SsoCloudSettingValue.fromObject = function fromObject(object, long) { if (object instanceof $root.SsoCloud.SsoCloudSettingValue) return object; + if (!$util.isObject(object)) + throw TypeError(".SsoCloud.SsoCloudSettingValue: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -180915,28 +147340,28 @@ export const SsoCloud = $root.SsoCloud = (() => { object.isEditable = false; object.isRequired = false; } - if (message.settingId != null && message.hasOwnProperty("settingId")) + if (message.settingId != null && Object.hasOwnProperty.call(message, "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") 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; - if (message.settingName != null && message.hasOwnProperty("settingName")) + if (message.settingName != null && Object.hasOwnProperty.call(message, "settingName")) object.settingName = message.settingName; - if (message.label != null && message.hasOwnProperty("label")) + if (message.label != null && Object.hasOwnProperty.call(message, "label")) object.label = message.label; - if (message.value != null && message.hasOwnProperty("value")) + if (message.value != null && Object.hasOwnProperty.call(message, "value")) object.value = message.value; - if (message.valueType != null && message.hasOwnProperty("valueType")) + if (message.valueType != null && Object.hasOwnProperty.call(message, "valueType")) object.valueType = options.enums === String ? $root.SsoCloud.DataType[message.valueType] === undefined ? message.valueType : $root.SsoCloud.DataType[message.valueType] : message.valueType; - if (message.lastModified != null && message.hasOwnProperty("lastModified")) + if (message.lastModified != null && Object.hasOwnProperty.call(message, "lastModified")) object.lastModified = message.lastModified; - if (message.isFromFile != null && message.hasOwnProperty("isFromFile")) + if (message.isFromFile != null && Object.hasOwnProperty.call(message, "isFromFile")) object.isFromFile = message.isFromFile; - if (message.isEditable != null && message.hasOwnProperty("isEditable")) + if (message.isEditable != null && Object.hasOwnProperty.call(message, "isEditable")) object.isEditable = message.isEditable; - if (message.isRequired != null && message.hasOwnProperty("isRequired")) + if (message.isRequired != null && Object.hasOwnProperty.call(message, "isRequired")) object.isRequired = message.isRequired; return object; }; @@ -181068,19 +147493,6 @@ export const SsoCloud = $root.SsoCloud = (() => { return writer; }; - /** - * Encodes the specified SsoCloudSettingAction message, length delimited. Does not implicitly {@link SsoCloud.SsoCloudSettingAction.verify|verify} messages. - * @function encodeDelimited - * @memberof SsoCloud.SsoCloudSettingAction - * @static - * @param {SsoCloud.ISsoCloudSettingAction} message SsoCloudSettingAction message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SsoCloudSettingAction.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a SsoCloudSettingAction message from the specified reader or buffer. * @function decode @@ -181129,59 +147541,6 @@ export const SsoCloud = $root.SsoCloud = (() => { return message; }; - /** - * Decodes a SsoCloudSettingAction message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof SsoCloud.SsoCloudSettingAction - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {SsoCloud.SsoCloudSettingAction} SsoCloudSettingAction - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SsoCloudSettingAction.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a SsoCloudSettingAction message. - * @function verify - * @memberof SsoCloud.SsoCloudSettingAction - * @static - * @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) { - if (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"; - if (message.settingName != null && message.hasOwnProperty("settingName")) - if (!$util.isString(message.settingName)) - return "settingName: string expected"; - if (message.operation != null && message.hasOwnProperty("operation")) - switch (message.operation) { - default: - return "operation: enum value expected"; - case 0: - case 1: - case 2: - case 3: - break; - } - if (message.value != null && message.hasOwnProperty("value")) - if (!$util.isString(message.value)) - return "value: string expected"; - return null; - }; - /** * Creates a SsoCloudSettingAction message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -181193,6 +147552,8 @@ export const SsoCloud = $root.SsoCloud = (() => { SsoCloudSettingAction.fromObject = function fromObject(object, long) { if (object instanceof $root.SsoCloud.SsoCloudSettingAction) return object; + if (!$util.isObject(object)) + throw TypeError(".SsoCloud.SsoCloudSettingAction: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -181265,18 +147626,18 @@ export const SsoCloud = $root.SsoCloud = (() => { object.operation = options.enums === String ? "SET" : 0; object.value = ""; } - if (message.settingId != null && message.hasOwnProperty("settingId")) + if (message.settingId != null && Object.hasOwnProperty.call(message, "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") 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; - if (message.settingName != null && message.hasOwnProperty("settingName")) + if (message.settingName != null && Object.hasOwnProperty.call(message, "settingName")) object.settingName = message.settingName; - if (message.operation != null && message.hasOwnProperty("operation")) + if (message.operation != null && Object.hasOwnProperty.call(message, "operation")) object.operation = options.enums === String ? $root.SsoCloud.SsoCloudSettingOperationType[message.operation] === undefined ? message.operation : $root.SsoCloud.SsoCloudSettingOperationType[message.operation] : message.operation; - if (message.value != null && message.hasOwnProperty("value")) + if (message.value != null && Object.hasOwnProperty.call(message, "value")) object.value = message.value; return object; }; @@ -181421,19 +147782,6 @@ export const SsoCloud = $root.SsoCloud = (() => { return writer; }; - /** - * Encodes the specified SsoCloudConfigurationRequest message, length delimited. Does not implicitly {@link SsoCloud.SsoCloudConfigurationRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof SsoCloud.SsoCloudConfigurationRequest - * @static - * @param {SsoCloud.ISsoCloudConfigurationRequest} message SsoCloudConfigurationRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SsoCloudConfigurationRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a SsoCloudConfigurationRequest message from the specified reader or buffer. * @function decode @@ -181488,66 +147836,6 @@ export const SsoCloud = $root.SsoCloud = (() => { return message; }; - /** - * Decodes a SsoCloudConfigurationRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof SsoCloud.SsoCloudConfigurationRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {SsoCloud.SsoCloudConfigurationRequest} SsoCloudConfigurationRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SsoCloudConfigurationRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a SsoCloudConfigurationRequest message. - * @function verify - * @memberof SsoCloud.SsoCloudConfigurationRequest - * @static - * @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) { - if (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"; - 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"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.ssoAuthProtocolType != null && message.hasOwnProperty("ssoAuthProtocolType")) - switch (message.ssoAuthProtocolType) { - default: - return "ssoAuthProtocolType: enum value expected"; - case 0: - case 1: - break; - } - if (message.ssoCloudSettingAction != null && message.hasOwnProperty("ssoCloudSettingAction")) { - 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); - if (error) - return "ssoCloudSettingAction." + error; - } - } - return null; - }; - /** * Creates a SsoCloudConfigurationRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -181559,6 +147847,8 @@ export const SsoCloud = $root.SsoCloud = (() => { SsoCloudConfigurationRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.SsoCloud.SsoCloudConfigurationRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".SsoCloud.SsoCloudConfigurationRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -181605,7 +147895,7 @@ export const SsoCloud = $root.SsoCloud = (() => { throw TypeError(".SsoCloud.SsoCloudConfigurationRequest.ssoCloudSettingAction: array expected"); message.ssoCloudSettingAction = []; for (let i = 0; i < object.ssoCloudSettingAction.length; ++i) { - if (typeof object.ssoCloudSettingAction[i] !== "object") + if (!$util.isObject(object.ssoCloudSettingAction[i])) throw TypeError(".SsoCloud.SsoCloudConfigurationRequest.ssoCloudSettingAction: object expected"); message.ssoCloudSettingAction[i] = $root.SsoCloud.SsoCloudSettingAction.fromObject(object.ssoCloudSettingAction[i], long + 1); } @@ -181646,23 +147936,23 @@ export const SsoCloud = $root.SsoCloud = (() => { object.name = ""; object.ssoAuthProtocolType = options.enums === String ? "SAML2" : 0; } - if (message.ssoServiceProviderId != null && message.hasOwnProperty("ssoServiceProviderId")) + if (message.ssoServiceProviderId != null && Object.hasOwnProperty.call(message, "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") 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 (message.ssoSpConfigurationId != null && Object.hasOwnProperty.call(message, "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") 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.name != null && message.hasOwnProperty("name")) + if (message.name != null && Object.hasOwnProperty.call(message, "name")) object.name = message.name; - if (message.ssoAuthProtocolType != null && message.hasOwnProperty("ssoAuthProtocolType")) + if (message.ssoAuthProtocolType != null && Object.hasOwnProperty.call(message, "ssoAuthProtocolType")) object.ssoAuthProtocolType = options.enums === String ? $root.SsoCloud.AuthProtocolType[message.ssoAuthProtocolType] === undefined ? message.ssoAuthProtocolType : $root.SsoCloud.AuthProtocolType[message.ssoAuthProtocolType] : message.ssoAuthProtocolType; if (message.ssoCloudSettingAction && message.ssoCloudSettingAction.length) { object.ssoCloudSettingAction = []; @@ -181788,19 +148078,6 @@ export const SsoCloud = $root.SsoCloud = (() => { return writer; }; - /** - * Encodes the specified SsoSharedConfigItem message, length delimited. Does not implicitly {@link SsoCloud.SsoSharedConfigItem.verify|verify} messages. - * @function encodeDelimited - * @memberof SsoCloud.SsoSharedConfigItem - * @static - * @param {SsoCloud.ISsoSharedConfigItem} message SsoSharedConfigItem message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SsoSharedConfigItem.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a SsoSharedConfigItem message from the specified reader or buffer. * @function decode @@ -181845,49 +148122,6 @@ export const SsoCloud = $root.SsoCloud = (() => { return message; }; - /** - * Decodes a SsoSharedConfigItem message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof SsoCloud.SsoSharedConfigItem - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {SsoCloud.SsoSharedConfigItem} SsoSharedConfigItem - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SsoSharedConfigItem.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a SsoSharedConfigItem message. - * @function verify - * @memberof SsoCloud.SsoSharedConfigItem - * @static - * @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) { - if (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"; - 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"; - if (message.ssoNodeId != null && message.hasOwnProperty("ssoNodeId")) - if (!$util.isInteger(message.ssoNodeId) && !(message.ssoNodeId && $util.isInteger(message.ssoNodeId.low) && $util.isInteger(message.ssoNodeId.high))) - return "ssoNodeId: integer|Long expected"; - return null; - }; - /** * Creates a SsoSharedConfigItem message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -181899,6 +148133,8 @@ export const SsoCloud = $root.SsoCloud = (() => { SsoSharedConfigItem.fromObject = function fromObject(object, long) { if (object instanceof $root.SsoCloud.SsoSharedConfigItem) return object; + if (!$util.isObject(object)) + throw TypeError(".SsoCloud.SsoSharedConfigItem: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -181968,21 +148204,21 @@ export const SsoCloud = $root.SsoCloud = (() => { } else object.ssoNodeId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; } - if (message.ssoSpConfigurationId != null && message.hasOwnProperty("ssoSpConfigurationId")) + if (message.ssoSpConfigurationId != null && Object.hasOwnProperty.call(message, "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") 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 (message.ssoServiceProviderId != null && Object.hasOwnProperty.call(message, "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") 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 (message.ssoNodeId != null && Object.hasOwnProperty.call(message, "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") @@ -182178,19 +148414,6 @@ export const SsoCloud = $root.SsoCloud = (() => { return writer; }; - /** - * Encodes the specified SsoCloudConfigurationResponse message, length delimited. Does not implicitly {@link SsoCloud.SsoCloudConfigurationResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof SsoCloud.SsoCloudConfigurationResponse - * @static - * @param {SsoCloud.ISsoCloudConfigurationResponse} message SsoCloudConfigurationResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SsoCloudConfigurationResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a SsoCloudConfigurationResponse message from the specified reader or buffer. * @function decode @@ -182263,79 +148486,6 @@ export const SsoCloud = $root.SsoCloud = (() => { return message; }; - /** - * Decodes a SsoCloudConfigurationResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof SsoCloud.SsoCloudConfigurationResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {SsoCloud.SsoCloudConfigurationResponse} SsoCloudConfigurationResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SsoCloudConfigurationResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a SsoCloudConfigurationResponse message. - * @function verify - * @memberof SsoCloud.SsoCloudConfigurationResponse - * @static - * @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) { - if (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"; - 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"; - 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"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.protocol != null && message.hasOwnProperty("protocol")) - if (!$util.isString(message.protocol)) - return "protocol: string expected"; - if (message.lastModified != null && message.hasOwnProperty("lastModified")) - if (!$util.isString(message.lastModified)) - return "lastModified: string expected"; - if (message.ssoCloudSettingValue != null && message.hasOwnProperty("ssoCloudSettingValue")) { - 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); - if (error) - return "ssoCloudSettingValue." + error; - } - } - if (message.isShared != null && message.hasOwnProperty("isShared")) - if (typeof message.isShared !== "boolean") - return "isShared: boolean expected"; - if (message.sharedConfigs != null && message.hasOwnProperty("sharedConfigs")) { - 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); - if (error) - return "sharedConfigs." + error; - } - } - return null; - }; - /** * Creates a SsoCloudConfigurationResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -182347,6 +148497,8 @@ export const SsoCloud = $root.SsoCloud = (() => { SsoCloudConfigurationResponse.fromObject = function fromObject(object, long) { if (object instanceof $root.SsoCloud.SsoCloudConfigurationResponse) return object; + if (!$util.isObject(object)) + throw TypeError(".SsoCloud.SsoCloudConfigurationResponse: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -182390,7 +148542,7 @@ export const SsoCloud = $root.SsoCloud = (() => { throw TypeError(".SsoCloud.SsoCloudConfigurationResponse.ssoCloudSettingValue: array expected"); message.ssoCloudSettingValue = []; for (let i = 0; i < object.ssoCloudSettingValue.length; ++i) { - if (typeof object.ssoCloudSettingValue[i] !== "object") + if (!$util.isObject(object.ssoCloudSettingValue[i])) throw TypeError(".SsoCloud.SsoCloudConfigurationResponse.ssoCloudSettingValue: object expected"); message.ssoCloudSettingValue[i] = $root.SsoCloud.SsoCloudSettingValue.fromObject(object.ssoCloudSettingValue[i], long + 1); } @@ -182402,7 +148554,7 @@ export const SsoCloud = $root.SsoCloud = (() => { throw TypeError(".SsoCloud.SsoCloudConfigurationResponse.sharedConfigs: array expected"); message.sharedConfigs = []; for (let i = 0; i < object.sharedConfigs.length; ++i) { - if (typeof object.sharedConfigs[i] !== "object") + if (!$util.isObject(object.sharedConfigs[i])) throw TypeError(".SsoCloud.SsoCloudConfigurationResponse.sharedConfigs: object expected"); message.sharedConfigs[i] = $root.SsoCloud.SsoSharedConfigItem.fromObject(object.sharedConfigs[i], long + 1); } @@ -182452,39 +148604,39 @@ export const SsoCloud = $root.SsoCloud = (() => { object.lastModified = ""; object.isShared = false; } - if (message.ssoServiceProviderId != null && message.hasOwnProperty("ssoServiceProviderId")) + if (message.ssoServiceProviderId != null && Object.hasOwnProperty.call(message, "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") 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 (message.ssoSpConfigurationId != null && Object.hasOwnProperty.call(message, "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") 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 (message.enterpriseId != null && Object.hasOwnProperty.call(message, "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") 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; - if (message.name != null && message.hasOwnProperty("name")) + if (message.name != null && Object.hasOwnProperty.call(message, "name")) object.name = message.name; - if (message.protocol != null && message.hasOwnProperty("protocol")) + if (message.protocol != null && Object.hasOwnProperty.call(message, "protocol")) object.protocol = message.protocol; - if (message.lastModified != null && message.hasOwnProperty("lastModified")) + if (message.lastModified != null && Object.hasOwnProperty.call(message, "lastModified")) object.lastModified = message.lastModified; 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); } - if (message.isShared != null && message.hasOwnProperty("isShared")) + if (message.isShared != null && Object.hasOwnProperty.call(message, "isShared")) object.isShared = message.isShared; if (message.sharedConfigs && message.sharedConfigs.length) { object.sharedConfigs = []; @@ -182610,19 +148762,6 @@ export const SsoCloud = $root.SsoCloud = (() => { return writer; }; - /** - * Encodes the specified SsoIdpTypeRequest message, length delimited. Does not implicitly {@link SsoCloud.SsoIdpTypeRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof SsoCloud.SsoIdpTypeRequest - * @static - * @param {SsoCloud.ISsoIdpTypeRequest} message SsoIdpTypeRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SsoIdpTypeRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a SsoIdpTypeRequest message from the specified reader or buffer. * @function decode @@ -182667,49 +148806,6 @@ export const SsoCloud = $root.SsoCloud = (() => { return message; }; - /** - * Decodes a SsoIdpTypeRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof SsoCloud.SsoIdpTypeRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {SsoCloud.SsoIdpTypeRequest} SsoIdpTypeRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SsoIdpTypeRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a SsoIdpTypeRequest message. - * @function verify - * @memberof SsoCloud.SsoIdpTypeRequest - * @static - * @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) { - if (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"; - if (message.tag != null && message.hasOwnProperty("tag")) - if (!$util.isString(message.tag)) - return "tag: string expected"; - if (message.label != null && message.hasOwnProperty("label")) - if (!$util.isString(message.label)) - return "label: string expected"; - return null; - }; - /** * Creates a SsoIdpTypeRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -182721,6 +148817,8 @@ export const SsoCloud = $root.SsoCloud = (() => { SsoIdpTypeRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.SsoCloud.SsoIdpTypeRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".SsoCloud.SsoIdpTypeRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -182757,11 +148855,11 @@ export const SsoCloud = $root.SsoCloud = (() => { object.tag = ""; object.label = ""; } - if (message.ssoIdpTypeId != null && message.hasOwnProperty("ssoIdpTypeId")) + if (message.ssoIdpTypeId != null && Object.hasOwnProperty.call(message, "ssoIdpTypeId")) object.ssoIdpTypeId = message.ssoIdpTypeId; - if (message.tag != null && message.hasOwnProperty("tag")) + if (message.tag != null && Object.hasOwnProperty.call(message, "tag")) object.tag = message.tag; - if (message.label != null && message.hasOwnProperty("label")) + if (message.label != null && Object.hasOwnProperty.call(message, "label")) object.label = message.label; return object; }; @@ -182882,19 +148980,6 @@ export const SsoCloud = $root.SsoCloud = (() => { return writer; }; - /** - * Encodes the specified SsoIdpTypeResponse message, length delimited. Does not implicitly {@link SsoCloud.SsoIdpTypeResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof SsoCloud.SsoIdpTypeResponse - * @static - * @param {SsoCloud.ISsoIdpTypeResponse} message SsoIdpTypeResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SsoIdpTypeResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a SsoIdpTypeResponse message from the specified reader or buffer. * @function decode @@ -182939,49 +149024,6 @@ export const SsoCloud = $root.SsoCloud = (() => { return message; }; - /** - * Decodes a SsoIdpTypeResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof SsoCloud.SsoIdpTypeResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {SsoCloud.SsoIdpTypeResponse} SsoIdpTypeResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SsoIdpTypeResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a SsoIdpTypeResponse message. - * @function verify - * @memberof SsoCloud.SsoIdpTypeResponse - * @static - * @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) { - if (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"; - if (message.tag != null && message.hasOwnProperty("tag")) - if (!$util.isInteger(message.tag)) - return "tag: integer expected"; - if (message.label != null && message.hasOwnProperty("label")) - if (!$util.isInteger(message.label)) - return "label: integer expected"; - return null; - }; - /** * Creates a SsoIdpTypeResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -182993,6 +149035,8 @@ export const SsoCloud = $root.SsoCloud = (() => { SsoIdpTypeResponse.fromObject = function fromObject(object, long) { if (object instanceof $root.SsoCloud.SsoIdpTypeResponse) return object; + if (!$util.isObject(object)) + throw TypeError(".SsoCloud.SsoIdpTypeResponse: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -183029,11 +149073,11 @@ export const SsoCloud = $root.SsoCloud = (() => { object.tag = 0; object.label = 0; } - if (message.ssoIdpTypeId != null && message.hasOwnProperty("ssoIdpTypeId")) + if (message.ssoIdpTypeId != null && Object.hasOwnProperty.call(message, "ssoIdpTypeId")) object.ssoIdpTypeId = message.ssoIdpTypeId; - if (message.tag != null && message.hasOwnProperty("tag")) + if (message.tag != null && Object.hasOwnProperty.call(message, "tag")) object.tag = message.tag; - if (message.label != null && message.hasOwnProperty("label")) + if (message.label != null && Object.hasOwnProperty.call(message, "label")) object.label = message.label; return object; }; @@ -183132,19 +149176,6 @@ export const SsoCloud = $root.SsoCloud = (() => { return writer; }; - /** - * Encodes the specified SsoCloudSAMLLogRequest message, length delimited. Does not implicitly {@link SsoCloud.SsoCloudSAMLLogRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof SsoCloud.SsoCloudSAMLLogRequest - * @static - * @param {SsoCloud.ISsoCloudSAMLLogRequest} message SsoCloudSAMLLogRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SsoCloudSAMLLogRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a SsoCloudSAMLLogRequest message from the specified reader or buffer. * @function decode @@ -183181,43 +149212,6 @@ export const SsoCloud = $root.SsoCloud = (() => { return message; }; - /** - * Decodes a SsoCloudSAMLLogRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof SsoCloud.SsoCloudSAMLLogRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {SsoCloud.SsoCloudSAMLLogRequest} SsoCloudSAMLLogRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SsoCloudSAMLLogRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a SsoCloudSAMLLogRequest message. - * @function verify - * @memberof SsoCloud.SsoCloudSAMLLogRequest - * @static - * @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) { - if (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"; - return null; - }; - /** * Creates a SsoCloudSAMLLogRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -183229,6 +149223,8 @@ export const SsoCloud = $root.SsoCloud = (() => { SsoCloudSAMLLogRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.SsoCloud.SsoCloudSAMLLogRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".SsoCloud.SsoCloudSAMLLogRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -183269,7 +149265,7 @@ export const SsoCloud = $root.SsoCloud = (() => { object.ssoServiceProviderId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; } else object.ssoServiceProviderId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; - if (message.ssoServiceProviderId != null && message.hasOwnProperty("ssoServiceProviderId")) + if (message.ssoServiceProviderId != null && Object.hasOwnProperty.call(message, "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") @@ -183472,19 +149468,6 @@ export const SsoCloud = $root.SsoCloud = (() => { return writer; }; - /** - * Encodes the specified SsoCloudSAMLLogEntry message, length delimited. Does not implicitly {@link SsoCloud.SsoCloudSAMLLogEntry.verify|verify} messages. - * @function encodeDelimited - * @memberof SsoCloud.SsoCloudSAMLLogEntry - * @static - * @param {SsoCloud.ISsoCloudSAMLLogEntry} message SsoCloudSAMLLogEntry message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SsoCloudSAMLLogEntry.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a SsoCloudSAMLLogEntry message from the specified reader or buffer. * @function decode @@ -183557,70 +149540,6 @@ export const SsoCloud = $root.SsoCloud = (() => { return message; }; - /** - * Decodes a SsoCloudSAMLLogEntry message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof SsoCloud.SsoCloudSAMLLogEntry - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {SsoCloud.SsoCloudSAMLLogEntry} SsoCloudSAMLLogEntry - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SsoCloudSAMLLogEntry.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a SsoCloudSAMLLogEntry message. - * @function verify - * @memberof SsoCloud.SsoCloudSAMLLogEntry - * @static - * @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) { - if (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"; - if (message.direction != null && message.hasOwnProperty("direction")) - if (!$util.isString(message.direction)) - return "direction: string expected"; - if (message.messageType != null && message.hasOwnProperty("messageType")) - if (!$util.isString(message.messageType)) - return "messageType: string expected"; - if (message.messageIssued != null && message.hasOwnProperty("messageIssued")) - if (!$util.isString(message.messageIssued)) - return "messageIssued: string expected"; - if (message.fromEntityId != null && message.hasOwnProperty("fromEntityId")) - if (!$util.isString(message.fromEntityId)) - return "fromEntityId: string expected"; - if (message.samlStatus != null && message.hasOwnProperty("samlStatus")) - if (!$util.isString(message.samlStatus)) - return "samlStatus: string expected"; - if (message.relayState != null && message.hasOwnProperty("relayState")) - if (!$util.isString(message.relayState)) - return "relayState: string expected"; - if (message.samlContent != null && message.hasOwnProperty("samlContent")) - if (!$util.isString(message.samlContent)) - return "samlContent: string expected"; - if (message.isSigned != null && message.hasOwnProperty("isSigned")) - if (typeof message.isSigned !== "boolean") - return "isSigned: boolean expected"; - if (message.isOK != null && message.hasOwnProperty("isOK")) - if (typeof message.isOK !== "boolean") - return "isOK: boolean expected"; - return null; - }; - /** * Creates a SsoCloudSAMLLogEntry message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -183632,6 +149551,8 @@ export const SsoCloud = $root.SsoCloud = (() => { SsoCloudSAMLLogEntry.fromObject = function fromObject(object, long) { if (object instanceof $root.SsoCloud.SsoCloudSAMLLogEntry) return object; + if (!$util.isObject(object)) + throw TypeError(".SsoCloud.SsoCloudSAMLLogEntry: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -183689,25 +149610,25 @@ export const SsoCloud = $root.SsoCloud = (() => { object.isSigned = false; object.isOK = false; } - if (message.serverTime != null && message.hasOwnProperty("serverTime")) + if (message.serverTime != null && Object.hasOwnProperty.call(message, "serverTime")) object.serverTime = message.serverTime; - if (message.direction != null && message.hasOwnProperty("direction")) + if (message.direction != null && Object.hasOwnProperty.call(message, "direction")) object.direction = message.direction; - if (message.messageType != null && message.hasOwnProperty("messageType")) + if (message.messageType != null && Object.hasOwnProperty.call(message, "messageType")) object.messageType = message.messageType; - if (message.messageIssued != null && message.hasOwnProperty("messageIssued")) + if (message.messageIssued != null && Object.hasOwnProperty.call(message, "messageIssued")) object.messageIssued = message.messageIssued; - if (message.fromEntityId != null && message.hasOwnProperty("fromEntityId")) + if (message.fromEntityId != null && Object.hasOwnProperty.call(message, "fromEntityId")) object.fromEntityId = message.fromEntityId; - if (message.samlStatus != null && message.hasOwnProperty("samlStatus")) + if (message.samlStatus != null && Object.hasOwnProperty.call(message, "samlStatus")) object.samlStatus = message.samlStatus; - if (message.relayState != null && message.hasOwnProperty("relayState")) + if (message.relayState != null && Object.hasOwnProperty.call(message, "relayState")) object.relayState = message.relayState; - if (message.samlContent != null && message.hasOwnProperty("samlContent")) + if (message.samlContent != null && Object.hasOwnProperty.call(message, "samlContent")) object.samlContent = message.samlContent; - if (message.isSigned != null && message.hasOwnProperty("isSigned")) + if (message.isSigned != null && Object.hasOwnProperty.call(message, "isSigned")) object.isSigned = message.isSigned; - if (message.isOK != null && message.hasOwnProperty("isOK")) + if (message.isOK != null && Object.hasOwnProperty.call(message, "isOK")) object.isOK = message.isOK; return object; }; @@ -183819,19 +149740,6 @@ export const SsoCloud = $root.SsoCloud = (() => { return writer; }; - /** - * Encodes the specified SsoCloudSAMLLogResponse message, length delimited. Does not implicitly {@link SsoCloud.SsoCloudSAMLLogResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof SsoCloud.SsoCloudSAMLLogResponse - * @static - * @param {SsoCloud.ISsoCloudSAMLLogResponse} message SsoCloudSAMLLogResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SsoCloudSAMLLogResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a SsoCloudSAMLLogResponse message from the specified reader or buffer. * @function decode @@ -183874,52 +149782,6 @@ export const SsoCloud = $root.SsoCloud = (() => { return message; }; - /** - * Decodes a SsoCloudSAMLLogResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof SsoCloud.SsoCloudSAMLLogResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {SsoCloud.SsoCloudSAMLLogResponse} SsoCloudSAMLLogResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SsoCloudSAMLLogResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a SsoCloudSAMLLogResponse message. - * @function verify - * @memberof SsoCloud.SsoCloudSAMLLogResponse - * @static - * @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) { - if (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"; - 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.SsoCloud.SsoCloudSAMLLogEntry.verify(message.entry[i], long + 1); - if (error) - return "entry." + error; - } - } - return null; - }; - /** * Creates a SsoCloudSAMLLogResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -183931,6 +149793,8 @@ export const SsoCloud = $root.SsoCloud = (() => { SsoCloudSAMLLogResponse.fromObject = function fromObject(object, long) { if (object instanceof $root.SsoCloud.SsoCloudSAMLLogResponse) return object; + if (!$util.isObject(object)) + throw TypeError(".SsoCloud.SsoCloudSAMLLogResponse: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -183950,7 +149814,7 @@ export const SsoCloud = $root.SsoCloud = (() => { throw TypeError(".SsoCloud.SsoCloudSAMLLogResponse.entry: array expected"); message.entry = []; for (let i = 0; i < object.entry.length; ++i) { - if (typeof object.entry[i] !== "object") + if (!$util.isObject(object.entry[i])) throw TypeError(".SsoCloud.SsoCloudSAMLLogResponse.entry: object expected"); message.entry[i] = $root.SsoCloud.SsoCloudSAMLLogEntry.fromObject(object.entry[i], long + 1); } @@ -183983,7 +149847,7 @@ export const SsoCloud = $root.SsoCloud = (() => { object.ssoServiceProviderId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; } else object.ssoServiceProviderId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; - if (message.ssoServiceProviderId != null && message.hasOwnProperty("ssoServiceProviderId")) + if (message.ssoServiceProviderId != null && Object.hasOwnProperty.call(message, "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") @@ -184104,19 +149968,6 @@ export const SsoCloud = $root.SsoCloud = (() => { return writer; }; - /** - * Encodes the specified SsoCloudServiceProviderUpdateRequest message, length delimited. Does not implicitly {@link SsoCloud.SsoCloudServiceProviderUpdateRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof SsoCloud.SsoCloudServiceProviderUpdateRequest - * @static - * @param {SsoCloud.ISsoCloudServiceProviderUpdateRequest} message SsoCloudServiceProviderUpdateRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SsoCloudServiceProviderUpdateRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a SsoCloudServiceProviderUpdateRequest message from the specified reader or buffer. * @function decode @@ -184157,46 +150008,6 @@ export const SsoCloud = $root.SsoCloud = (() => { return message; }; - /** - * Decodes a SsoCloudServiceProviderUpdateRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof SsoCloud.SsoCloudServiceProviderUpdateRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {SsoCloud.SsoCloudServiceProviderUpdateRequest} SsoCloudServiceProviderUpdateRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SsoCloudServiceProviderUpdateRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a SsoCloudServiceProviderUpdateRequest message. - * @function verify - * @memberof SsoCloud.SsoCloudServiceProviderUpdateRequest - * @static - * @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) { - if (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"; - 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"; - return null; - }; - /** * Creates a SsoCloudServiceProviderUpdateRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -184208,6 +150019,8 @@ export const SsoCloud = $root.SsoCloud = (() => { SsoCloudServiceProviderUpdateRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.SsoCloud.SsoCloudServiceProviderUpdateRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".SsoCloud.SsoCloudServiceProviderUpdateRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -184263,14 +150076,14 @@ export const SsoCloud = $root.SsoCloud = (() => { } else object.ssoSpConfigurationId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; } - if (message.ssoServiceProviderId != null && message.hasOwnProperty("ssoServiceProviderId")) + if (message.ssoServiceProviderId != null && Object.hasOwnProperty.call(message, "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") 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 (message.ssoSpConfigurationId != null && Object.hasOwnProperty.call(message, "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") @@ -184397,19 +150210,6 @@ export const SsoCloud = $root.SsoCloud = (() => { return writer; }; - /** - * Encodes the specified SsoCloudIdpMetadataRequest message, length delimited. Does not implicitly {@link SsoCloud.SsoCloudIdpMetadataRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof SsoCloud.SsoCloudIdpMetadataRequest - * @static - * @param {SsoCloud.ISsoCloudIdpMetadataRequest} message SsoCloudIdpMetadataRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SsoCloudIdpMetadataRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a SsoCloudIdpMetadataRequest message from the specified reader or buffer. * @function decode @@ -184454,49 +150254,6 @@ export const SsoCloud = $root.SsoCloud = (() => { return message; }; - /** - * Decodes a SsoCloudIdpMetadataRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof SsoCloud.SsoCloudIdpMetadataRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {SsoCloud.SsoCloudIdpMetadataRequest} SsoCloudIdpMetadataRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SsoCloudIdpMetadataRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a SsoCloudIdpMetadataRequest message. - * @function verify - * @memberof SsoCloud.SsoCloudIdpMetadataRequest - * @static - * @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) { - if (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"; - if (message.filename != null && message.hasOwnProperty("filename")) - if (!$util.isString(message.filename)) - return "filename: string expected"; - if (message.content != null && message.hasOwnProperty("content")) - if (!(message.content && typeof message.content.length === "number" || $util.isString(message.content))) - return "content: buffer expected"; - return null; - }; - /** * Creates a SsoCloudIdpMetadataRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -184508,6 +150265,8 @@ export const SsoCloud = $root.SsoCloud = (() => { SsoCloudIdpMetadataRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.SsoCloud.SsoCloudIdpMetadataRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".SsoCloud.SsoCloudIdpMetadataRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -184564,16 +150323,16 @@ export const SsoCloud = $root.SsoCloud = (() => { object.content = $util.newBuffer(object.content); } } - if (message.ssoSpConfigurationId != null && message.hasOwnProperty("ssoSpConfigurationId")) + if (message.ssoSpConfigurationId != null && Object.hasOwnProperty.call(message, "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") 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.filename != null && message.hasOwnProperty("filename")) + if (message.filename != null && Object.hasOwnProperty.call(message, "filename")) object.filename = message.filename; - if (message.content != null && message.hasOwnProperty("content")) + if (message.content != null && Object.hasOwnProperty.call(message, "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; return object; }; @@ -184717,19 +150476,6 @@ export const SsoCloud = $root.SsoCloud = (() => { return writer; }; - /** - * Encodes the specified SsoCloudIdpMetadataSupportRequest message, length delimited. Does not implicitly {@link SsoCloud.SsoCloudIdpMetadataSupportRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof SsoCloud.SsoCloudIdpMetadataSupportRequest - * @static - * @param {SsoCloud.ISsoCloudIdpMetadataSupportRequest} message SsoCloudIdpMetadataSupportRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SsoCloudIdpMetadataSupportRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a SsoCloudIdpMetadataSupportRequest message from the specified reader or buffer. * @function decode @@ -184782,55 +150528,6 @@ export const SsoCloud = $root.SsoCloud = (() => { return message; }; - /** - * Decodes a SsoCloudIdpMetadataSupportRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof SsoCloud.SsoCloudIdpMetadataSupportRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {SsoCloud.SsoCloudIdpMetadataSupportRequest} SsoCloudIdpMetadataSupportRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SsoCloudIdpMetadataSupportRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a SsoCloudIdpMetadataSupportRequest message. - * @function verify - * @memberof SsoCloud.SsoCloudIdpMetadataSupportRequest - * @static - * @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) { - if (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"; - 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"; - if (message.ssoEnterpriseId != null && message.hasOwnProperty("ssoEnterpriseId")) - if (!$util.isInteger(message.ssoEnterpriseId) && !(message.ssoEnterpriseId && $util.isInteger(message.ssoEnterpriseId.low) && $util.isInteger(message.ssoEnterpriseId.high))) - return "ssoEnterpriseId: integer|Long expected"; - if (message.filename != null && message.hasOwnProperty("filename")) - if (!$util.isString(message.filename)) - return "filename: string expected"; - if (message.content != null && message.hasOwnProperty("content")) - if (!(message.content && typeof message.content.length === "number" || $util.isString(message.content))) - return "content: buffer expected"; - return null; - }; - /** * Creates a SsoCloudIdpMetadataSupportRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -184842,6 +150539,8 @@ export const SsoCloud = $root.SsoCloud = (() => { SsoCloudIdpMetadataSupportRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.SsoCloud.SsoCloudIdpMetadataSupportRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".SsoCloud.SsoCloudIdpMetadataSupportRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -184926,30 +150625,30 @@ export const SsoCloud = $root.SsoCloud = (() => { object.content = $util.newBuffer(object.content); } } - if (message.ssoServiceProviderId != null && message.hasOwnProperty("ssoServiceProviderId")) + if (message.ssoServiceProviderId != null && Object.hasOwnProperty.call(message, "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") 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 (message.ssoSpConfigurationId != null && Object.hasOwnProperty.call(message, "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") 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 (message.ssoEnterpriseId != null && Object.hasOwnProperty.call(message, "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") 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; - if (message.filename != null && message.hasOwnProperty("filename")) + if (message.filename != null && Object.hasOwnProperty.call(message, "filename")) object.filename = message.filename; - if (message.content != null && message.hasOwnProperty("content")) + if (message.content != null && Object.hasOwnProperty.call(message, "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; return object; }; @@ -185054,19 +150753,6 @@ export const SsoCloud = $root.SsoCloud = (() => { return writer; }; - /** - * Encodes the specified SsoCloudConfigurationValidationRequest message, length delimited. Does not implicitly {@link SsoCloud.SsoCloudConfigurationValidationRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof SsoCloud.SsoCloudConfigurationValidationRequest - * @static - * @param {SsoCloud.ISsoCloudConfigurationValidationRequest} message SsoCloudConfigurationValidationRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SsoCloudConfigurationValidationRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a SsoCloudConfigurationValidationRequest message from the specified reader or buffer. * @function decode @@ -185110,47 +150796,6 @@ export const SsoCloud = $root.SsoCloud = (() => { return message; }; - /** - * Decodes a SsoCloudConfigurationValidationRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof SsoCloud.SsoCloudConfigurationValidationRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {SsoCloud.SsoCloudConfigurationValidationRequest} SsoCloudConfigurationValidationRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SsoCloudConfigurationValidationRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a SsoCloudConfigurationValidationRequest message. - * @function verify - * @memberof SsoCloud.SsoCloudConfigurationValidationRequest - * @static - * @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) { - if (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"; - for (let i = 0; i < message.ssoSpConfigurationId.length; ++i) - if (!$util.isInteger(message.ssoSpConfigurationId[i]) && !(message.ssoSpConfigurationId[i] && $util.isInteger(message.ssoSpConfigurationId[i].low) && $util.isInteger(message.ssoSpConfigurationId[i].high))) - return "ssoSpConfigurationId: integer|Long[] expected"; - } - return null; - }; - /** * Creates a SsoCloudConfigurationValidationRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -185162,6 +150807,8 @@ export const SsoCloud = $root.SsoCloud = (() => { SsoCloudConfigurationValidationRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.SsoCloud.SsoCloudConfigurationValidationRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".SsoCloud.SsoCloudConfigurationValidationRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -185334,19 +150981,6 @@ export const SsoCloud = $root.SsoCloud = (() => { return writer; }; - /** - * Encodes the specified ValidationContent message, length delimited. Does not implicitly {@link SsoCloud.ValidationContent.verify|verify} messages. - * @function encodeDelimited - * @memberof SsoCloud.ValidationContent - * @static - * @param {SsoCloud.IValidationContent} message ValidationContent message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ValidationContent.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a ValidationContent message from the specified reader or buffer. * @function decode @@ -185393,53 +151027,6 @@ export const SsoCloud = $root.SsoCloud = (() => { return message; }; - /** - * Decodes a ValidationContent message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof SsoCloud.ValidationContent - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {SsoCloud.ValidationContent} ValidationContent - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ValidationContent.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a ValidationContent message. - * @function verify - * @memberof SsoCloud.ValidationContent - * @static - * @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) { - if (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"; - if (message.isSuccessful != null && message.hasOwnProperty("isSuccessful")) - if (typeof message.isSuccessful !== "boolean") - return "isSuccessful: boolean expected"; - if (message.errorMessage != null && message.hasOwnProperty("errorMessage")) { - if (!Array.isArray(message.errorMessage)) - return "errorMessage: array expected"; - for (let i = 0; i < message.errorMessage.length; ++i) - if (!$util.isString(message.errorMessage[i])) - return "errorMessage: string[] expected"; - } - return null; - }; - /** * Creates a ValidationContent message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -185451,6 +151038,8 @@ export const SsoCloud = $root.SsoCloud = (() => { ValidationContent.fromObject = function fromObject(object, long) { if (object instanceof $root.SsoCloud.ValidationContent) return object; + if (!$util.isObject(object)) + throw TypeError(".SsoCloud.ValidationContent: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -185504,14 +151093,14 @@ export const SsoCloud = $root.SsoCloud = (() => { object.ssoSpConfigurationId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; object.isSuccessful = false; } - if (message.ssoSpConfigurationId != null && message.hasOwnProperty("ssoSpConfigurationId")) + if (message.ssoSpConfigurationId != null && Object.hasOwnProperty.call(message, "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") 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.isSuccessful != null && message.hasOwnProperty("isSuccessful")) + if (message.isSuccessful != null && Object.hasOwnProperty.call(message, "isSuccessful")) object.isSuccessful = message.isSuccessful; if (message.errorMessage && message.errorMessage.length) { object.errorMessage = []; @@ -185617,19 +151206,6 @@ export const SsoCloud = $root.SsoCloud = (() => { return writer; }; - /** - * Encodes the specified SsoCloudConfigurationValidationResponse message, length delimited. Does not implicitly {@link SsoCloud.SsoCloudConfigurationValidationResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof SsoCloud.SsoCloudConfigurationValidationResponse - * @static - * @param {SsoCloud.ISsoCloudConfigurationValidationResponse} message SsoCloudConfigurationValidationResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SsoCloudConfigurationValidationResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a SsoCloudConfigurationValidationResponse message from the specified reader or buffer. * @function decode @@ -185668,49 +151244,6 @@ export const SsoCloud = $root.SsoCloud = (() => { return message; }; - /** - * Decodes a SsoCloudConfigurationValidationResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof SsoCloud.SsoCloudConfigurationValidationResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {SsoCloud.SsoCloudConfigurationValidationResponse} SsoCloudConfigurationValidationResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SsoCloudConfigurationValidationResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a SsoCloudConfigurationValidationResponse message. - * @function verify - * @memberof SsoCloud.SsoCloudConfigurationValidationResponse - * @static - * @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) { - if (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); - if (error) - return "validationContent." + error; - } - } - return null; - }; - /** * Creates a SsoCloudConfigurationValidationResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -185722,6 +151255,8 @@ export const SsoCloud = $root.SsoCloud = (() => { SsoCloudConfigurationValidationResponse.fromObject = function fromObject(object, long) { if (object instanceof $root.SsoCloud.SsoCloudConfigurationValidationResponse) return object; + if (!$util.isObject(object)) + throw TypeError(".SsoCloud.SsoCloudConfigurationValidationResponse: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -185732,7 +151267,7 @@ export const SsoCloud = $root.SsoCloud = (() => { throw TypeError(".SsoCloud.SsoCloudConfigurationValidationResponse.validationContent: array expected"); message.validationContent = []; for (let i = 0; i < object.validationContent.length; ++i) { - if (typeof object.validationContent[i] !== "object") + if (!$util.isObject(object.validationContent[i])) throw TypeError(".SsoCloud.SsoCloudConfigurationValidationResponse.validationContent: object expected"); message.validationContent[i] = $root.SsoCloud.ValidationContent.fromObject(object.validationContent[i], long + 1); } @@ -185861,19 +151396,6 @@ export const SsoCloud = $root.SsoCloud = (() => { return writer; }; - /** - * Encodes the specified SsoCloudServiceProviderConfigurationListRequest message, length delimited. Does not implicitly {@link SsoCloud.SsoCloudServiceProviderConfigurationListRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof SsoCloud.SsoCloudServiceProviderConfigurationListRequest - * @static - * @param {SsoCloud.ISsoCloudServiceProviderConfigurationListRequest} message SsoCloudServiceProviderConfigurationListRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SsoCloudServiceProviderConfigurationListRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a SsoCloudServiceProviderConfigurationListRequest message from the specified reader or buffer. * @function decode @@ -185910,43 +151432,6 @@ export const SsoCloud = $root.SsoCloud = (() => { return message; }; - /** - * Decodes a SsoCloudServiceProviderConfigurationListRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof SsoCloud.SsoCloudServiceProviderConfigurationListRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {SsoCloud.SsoCloudServiceProviderConfigurationListRequest} SsoCloudServiceProviderConfigurationListRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SsoCloudServiceProviderConfigurationListRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a SsoCloudServiceProviderConfigurationListRequest message. - * @function verify - * @memberof SsoCloud.SsoCloudServiceProviderConfigurationListRequest - * @static - * @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) { - if (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"; - return null; - }; - /** * Creates a SsoCloudServiceProviderConfigurationListRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -185958,6 +151443,8 @@ export const SsoCloud = $root.SsoCloud = (() => { SsoCloudServiceProviderConfigurationListRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.SsoCloud.SsoCloudServiceProviderConfigurationListRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".SsoCloud.SsoCloudServiceProviderConfigurationListRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -185998,7 +151485,7 @@ export const SsoCloud = $root.SsoCloud = (() => { object.ssoServiceProviderId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; } else object.ssoServiceProviderId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; - if (message.ssoServiceProviderId != null && message.hasOwnProperty("ssoServiceProviderId")) + if (message.ssoServiceProviderId != null && Object.hasOwnProperty.call(message, "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") @@ -186141,19 +151628,6 @@ export const SsoCloud = $root.SsoCloud = (() => { return writer; }; - /** - * Encodes the specified ConfigurationListItem message, length delimited. Does not implicitly {@link SsoCloud.ConfigurationListItem.verify|verify} messages. - * @function encodeDelimited - * @memberof SsoCloud.ConfigurationListItem - * @static - * @param {SsoCloud.IConfigurationListItem} message ConfigurationListItem message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ConfigurationListItem.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a ConfigurationListItem message from the specified reader or buffer. * @function decode @@ -186209,56 +151683,6 @@ export const SsoCloud = $root.SsoCloud = (() => { return message; }; - /** - * Decodes a ConfigurationListItem message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof SsoCloud.ConfigurationListItem - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {SsoCloud.ConfigurationListItem} ConfigurationListItem - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ConfigurationListItem.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a ConfigurationListItem message. - * @function verify - * @memberof SsoCloud.ConfigurationListItem - * @static - * @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) { - if (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"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.isSelected != null && message.hasOwnProperty("isSelected")) - if (typeof message.isSelected !== "boolean") - return "isSelected: boolean expected"; - if (message.ssoServiceProviderId != null && message.hasOwnProperty("ssoServiceProviderId")) { - if (!Array.isArray(message.ssoServiceProviderId)) - return "ssoServiceProviderId: array expected"; - for (let i = 0; i < message.ssoServiceProviderId.length; ++i) - if (!$util.isInteger(message.ssoServiceProviderId[i]) && !(message.ssoServiceProviderId[i] && $util.isInteger(message.ssoServiceProviderId[i].low) && $util.isInteger(message.ssoServiceProviderId[i].high))) - return "ssoServiceProviderId: integer|Long[] expected"; - } - return null; - }; - /** * Creates a ConfigurationListItem message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -186270,6 +151694,8 @@ export const SsoCloud = $root.SsoCloud = (() => { ConfigurationListItem.fromObject = function fromObject(object, long) { if (object instanceof $root.SsoCloud.ConfigurationListItem) return object; + if (!$util.isObject(object)) + throw TypeError(".SsoCloud.ConfigurationListItem: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -186333,16 +151759,16 @@ export const SsoCloud = $root.SsoCloud = (() => { object.name = ""; object.isSelected = false; } - if (message.ssoSpConfigurationId != null && message.hasOwnProperty("ssoSpConfigurationId")) + if (message.ssoSpConfigurationId != null && Object.hasOwnProperty.call(message, "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") 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.name != null && message.hasOwnProperty("name")) + if (message.name != null && Object.hasOwnProperty.call(message, "name")) object.name = message.name; - if (message.isSelected != null && message.hasOwnProperty("isSelected")) + if (message.isSelected != null && Object.hasOwnProperty.call(message, "isSelected")) object.isSelected = message.isSelected; if (message.ssoServiceProviderId && message.ssoServiceProviderId.length) { object.ssoServiceProviderId = []; @@ -186453,19 +151879,6 @@ export const SsoCloud = $root.SsoCloud = (() => { return writer; }; - /** - * Encodes the specified SsoCloudServiceProviderConfigurationListResponse message, length delimited. Does not implicitly {@link SsoCloud.SsoCloudServiceProviderConfigurationListResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof SsoCloud.SsoCloudServiceProviderConfigurationListResponse - * @static - * @param {SsoCloud.ISsoCloudServiceProviderConfigurationListResponse} message SsoCloudServiceProviderConfigurationListResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SsoCloudServiceProviderConfigurationListResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a SsoCloudServiceProviderConfigurationListResponse message from the specified reader or buffer. * @function decode @@ -186504,49 +151917,6 @@ export const SsoCloud = $root.SsoCloud = (() => { return message; }; - /** - * Decodes a SsoCloudServiceProviderConfigurationListResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof SsoCloud.SsoCloudServiceProviderConfigurationListResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {SsoCloud.SsoCloudServiceProviderConfigurationListResponse} SsoCloudServiceProviderConfigurationListResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SsoCloudServiceProviderConfigurationListResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a SsoCloudServiceProviderConfigurationListResponse message. - * @function verify - * @memberof SsoCloud.SsoCloudServiceProviderConfigurationListResponse - * @static - * @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) { - if (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); - if (error) - return "configurationItem." + error; - } - } - return null; - }; - /** * Creates a SsoCloudServiceProviderConfigurationListResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -186558,6 +151928,8 @@ export const SsoCloud = $root.SsoCloud = (() => { SsoCloudServiceProviderConfigurationListResponse.fromObject = function fromObject(object, long) { if (object instanceof $root.SsoCloud.SsoCloudServiceProviderConfigurationListResponse) return object; + if (!$util.isObject(object)) + throw TypeError(".SsoCloud.SsoCloudServiceProviderConfigurationListResponse: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -186568,7 +151940,7 @@ export const SsoCloud = $root.SsoCloud = (() => { throw TypeError(".SsoCloud.SsoCloudServiceProviderConfigurationListResponse.configurationItem: array expected"); message.configurationItem = []; for (let i = 0; i < object.configurationItem.length; ++i) { - if (typeof object.configurationItem[i] !== "object") + if (!$util.isObject(object.configurationItem[i])) throw TypeError(".SsoCloud.SsoCloudServiceProviderConfigurationListResponse.configurationItem: object expected"); message.configurationItem[i] = $root.SsoCloud.ConfigurationListItem.fromObject(object.configurationItem[i], long + 1); } @@ -186786,19 +152158,6 @@ export const SsoCloud = $root.SsoCloud = (() => { return writer; }; - /** - * Encodes the specified SsoCloudRequest message, length delimited. Does not implicitly {@link SsoCloud.SsoCloudRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof SsoCloud.SsoCloudRequest - * @static - * @param {SsoCloud.ISsoCloudRequest} message SsoCloudRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SsoCloudRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a SsoCloudRequest message from the specified reader or buffer. * @function decode @@ -186867,67 +152226,6 @@ export const SsoCloud = $root.SsoCloud = (() => { return message; }; - /** - * Decodes a SsoCloudRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof SsoCloud.SsoCloudRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {SsoCloud.SsoCloudRequest} SsoCloudRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SsoCloudRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a SsoCloudRequest message. - * @function verify - * @memberof SsoCloud.SsoCloudRequest - * @static - * @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) { - if (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"; - if (message.clientVersion != null && message.hasOwnProperty("clientVersion")) - if (!$util.isString(message.clientVersion)) - return "clientVersion: string expected"; - if (message.embedded != null && message.hasOwnProperty("embedded")) - if (typeof message.embedded !== "boolean") - return "embedded: boolean expected"; - if (message.json != null && message.hasOwnProperty("json")) - if (typeof message.json !== "boolean") - return "json: boolean expected"; - if (message.dest != null && message.hasOwnProperty("dest")) - if (!$util.isString(message.dest)) - return "dest: string expected"; - if (message.idpSessionId != null && message.hasOwnProperty("idpSessionId")) - if (!$util.isString(message.idpSessionId)) - return "idpSessionId: string expected"; - if (message.forceLogin != null && message.hasOwnProperty("forceLogin")) - if (typeof message.forceLogin !== "boolean") - return "forceLogin: boolean expected"; - if (message.username != null && message.hasOwnProperty("username")) - if (!$util.isString(message.username)) - return "username: string expected"; - if (message.detached != null && message.hasOwnProperty("detached")) - if (typeof message.detached !== "boolean") - return "detached: boolean expected"; - return null; - }; - /** * Creates a SsoCloudRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -186939,6 +152237,8 @@ export const SsoCloud = $root.SsoCloud = (() => { SsoCloudRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.SsoCloud.SsoCloudRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".SsoCloud.SsoCloudRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -187002,23 +152302,23 @@ export const SsoCloud = $root.SsoCloud = (() => { object.username = ""; object.detached = false; } - if (message.messageSessionUid != null && message.hasOwnProperty("messageSessionUid")) + if (message.messageSessionUid != null && Object.hasOwnProperty.call(message, "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.clientVersion != null && message.hasOwnProperty("clientVersion")) + if (message.clientVersion != null && Object.hasOwnProperty.call(message, "clientVersion")) object.clientVersion = message.clientVersion; - if (message.embedded != null && message.hasOwnProperty("embedded")) + if (message.embedded != null && Object.hasOwnProperty.call(message, "embedded")) object.embedded = message.embedded; - if (message.json != null && message.hasOwnProperty("json")) + if (message.json != null && Object.hasOwnProperty.call(message, "json")) object.json = message.json; - if (message.dest != null && message.hasOwnProperty("dest")) + if (message.dest != null && Object.hasOwnProperty.call(message, "dest")) object.dest = message.dest; - if (message.idpSessionId != null && message.hasOwnProperty("idpSessionId")) + if (message.idpSessionId != null && Object.hasOwnProperty.call(message, "idpSessionId")) object.idpSessionId = message.idpSessionId; - if (message.forceLogin != null && message.hasOwnProperty("forceLogin")) + if (message.forceLogin != null && Object.hasOwnProperty.call(message, "forceLogin")) object.forceLogin = message.forceLogin; - if (message.username != null && message.hasOwnProperty("username")) + if (message.username != null && Object.hasOwnProperty.call(message, "username")) object.username = message.username; - if (message.detached != null && message.hasOwnProperty("detached")) + if (message.detached != null && Object.hasOwnProperty.call(message, "detached")) object.detached = message.detached; return object; }; @@ -187195,19 +152495,6 @@ export const SsoCloud = $root.SsoCloud = (() => { return writer; }; - /** - * Encodes the specified SsoCloudResponse message, length delimited. Does not implicitly {@link SsoCloud.SsoCloudResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof SsoCloud.SsoCloudResponse - * @static - * @param {SsoCloud.ISsoCloudResponse} message SsoCloudResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SsoCloudResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a SsoCloudResponse message from the specified reader or buffer. * @function decode @@ -187272,64 +152559,6 @@ export const SsoCloud = $root.SsoCloud = (() => { return message; }; - /** - * Decodes a SsoCloudResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof SsoCloud.SsoCloudResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {SsoCloud.SsoCloudResponse} SsoCloudResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SsoCloudResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a SsoCloudResponse message. - * @function verify - * @memberof SsoCloud.SsoCloudResponse - * @static - * @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) { - if (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"; - if (message.messageSessionUid != null && message.hasOwnProperty("messageSessionUid")) - if (!(message.messageSessionUid && typeof message.messageSessionUid.length === "number" || $util.isString(message.messageSessionUid))) - return "messageSessionUid: buffer expected"; - if (message.email != null && message.hasOwnProperty("email")) - if (!$util.isString(message.email)) - return "email: string expected"; - if (message.encryptedLoginToken != null && message.hasOwnProperty("encryptedLoginToken")) - if (!(message.encryptedLoginToken && typeof message.encryptedLoginToken.length === "number" || $util.isString(message.encryptedLoginToken))) - return "encryptedLoginToken: buffer expected"; - if (message.providerName != null && message.hasOwnProperty("providerName")) - if (!$util.isString(message.providerName)) - return "providerName: string expected"; - if (message.idpSessionId != null && message.hasOwnProperty("idpSessionId")) - if (!$util.isString(message.idpSessionId)) - return "idpSessionId: string expected"; - if (message.encryptedSessionToken != null && message.hasOwnProperty("encryptedSessionToken")) - if (!(message.encryptedSessionToken && typeof message.encryptedSessionToken.length === "number" || $util.isString(message.encryptedSessionToken))) - return "encryptedSessionToken: buffer expected"; - if (message.errorToken != null && message.hasOwnProperty("errorToken")) - if (!$util.isString(message.errorToken)) - return "errorToken: string expected"; - return null; - }; - /** * Creates a SsoCloudResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -187341,6 +152570,8 @@ export const SsoCloud = $root.SsoCloud = (() => { SsoCloudResponse.fromObject = function fromObject(object, long) { if (object instanceof $root.SsoCloud.SsoCloudResponse) return object; + if (!$util.isObject(object)) + throw TypeError(".SsoCloud.SsoCloudResponse: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -187419,21 +152650,21 @@ export const SsoCloud = $root.SsoCloud = (() => { } object.errorToken = ""; } - if (message.command != null && message.hasOwnProperty("command")) + if (message.command != null && Object.hasOwnProperty.call(message, "command")) object.command = message.command; - if (message.messageSessionUid != null && message.hasOwnProperty("messageSessionUid")) + if (message.messageSessionUid != null && Object.hasOwnProperty.call(message, "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.email != null && message.hasOwnProperty("email")) + if (message.email != null && Object.hasOwnProperty.call(message, "email")) object.email = message.email; - if (message.encryptedLoginToken != null && message.hasOwnProperty("encryptedLoginToken")) + if (message.encryptedLoginToken != null && Object.hasOwnProperty.call(message, "encryptedLoginToken")) object.encryptedLoginToken = options.bytes === String ? $util.base64.encode(message.encryptedLoginToken, 0, message.encryptedLoginToken.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedLoginToken) : message.encryptedLoginToken; - if (message.providerName != null && message.hasOwnProperty("providerName")) + if (message.providerName != null && Object.hasOwnProperty.call(message, "providerName")) object.providerName = message.providerName; - if (message.idpSessionId != null && message.hasOwnProperty("idpSessionId")) + if (message.idpSessionId != null && Object.hasOwnProperty.call(message, "idpSessionId")) object.idpSessionId = message.idpSessionId; - if (message.encryptedSessionToken != null && message.hasOwnProperty("encryptedSessionToken")) + if (message.encryptedSessionToken != null && Object.hasOwnProperty.call(message, "encryptedSessionToken")) object.encryptedSessionToken = options.bytes === String ? $util.base64.encode(message.encryptedSessionToken, 0, message.encryptedSessionToken.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedSessionToken) : message.encryptedSessionToken; - if (message.errorToken != null && message.hasOwnProperty("errorToken")) + if (message.errorToken != null && Object.hasOwnProperty.call(message, "errorToken")) object.errorToken = message.errorToken; return object; }; @@ -187554,19 +152785,6 @@ export const SsoCloud = $root.SsoCloud = (() => { return writer; }; - /** - * Encodes the specified SsoCloudLogRequest message, length delimited. Does not implicitly {@link SsoCloud.SsoCloudLogRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof SsoCloud.SsoCloudLogRequest - * @static - * @param {SsoCloud.ISsoCloudLogRequest} message SsoCloudLogRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SsoCloudLogRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a SsoCloudLogRequest message from the specified reader or buffer. * @function decode @@ -187611,49 +152829,6 @@ export const SsoCloud = $root.SsoCloud = (() => { return message; }; - /** - * Decodes a SsoCloudLogRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof SsoCloud.SsoCloudLogRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {SsoCloud.SsoCloudLogRequest} SsoCloudLogRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SsoCloudLogRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a SsoCloudLogRequest message. - * @function verify - * @memberof SsoCloud.SsoCloudLogRequest - * @static - * @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) { - if (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"; - if (message.serviceName != null && message.hasOwnProperty("serviceName")) - if (!$util.isString(message.serviceName)) - return "serviceName: string expected"; - if (message.serviceId != null && message.hasOwnProperty("serviceId")) - if (!$util.isInteger(message.serviceId)) - return "serviceId: integer expected"; - return null; - }; - /** * Creates a SsoCloudLogRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -187665,6 +152840,8 @@ export const SsoCloud = $root.SsoCloud = (() => { SsoCloudLogRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.SsoCloud.SsoCloudLogRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".SsoCloud.SsoCloudLogRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -187712,16 +152889,16 @@ export const SsoCloud = $root.SsoCloud = (() => { object.serviceName = ""; object.serviceId = 0; } - if (message.ssoServiceProviderId != null && message.hasOwnProperty("ssoServiceProviderId")) + if (message.ssoServiceProviderId != null && Object.hasOwnProperty.call(message, "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") 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.serviceName != null && message.hasOwnProperty("serviceName")) + if (message.serviceName != null && Object.hasOwnProperty.call(message, "serviceName")) object.serviceName = message.serviceName; - if (message.serviceId != null && message.hasOwnProperty("serviceId")) + if (message.serviceId != null && Object.hasOwnProperty.call(message, "serviceId")) object.serviceId = message.serviceId; return object; }; @@ -187930,19 +153107,6 @@ export const SsoCloud = $root.SsoCloud = (() => { return writer; }; - /** - * Encodes the specified SamlRelayState message, length delimited. Does not implicitly {@link SsoCloud.SamlRelayState.verify|verify} messages. - * @function encodeDelimited - * @memberof SsoCloud.SamlRelayState - * @static - * @param {SsoCloud.ISamlRelayState} message SamlRelayState message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SamlRelayState.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a SamlRelayState message from the specified reader or buffer. * @function decode @@ -188019,99 +153183,6 @@ export const SsoCloud = $root.SsoCloud = (() => { return message; }; - /** - * Decodes a SamlRelayState message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof SsoCloud.SamlRelayState - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {SsoCloud.SamlRelayState} SamlRelayState - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SamlRelayState.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a SamlRelayState message. - * @function verify - * @memberof SsoCloud.SamlRelayState - * @static - * @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) { - if (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"; - if (message.username != null && message.hasOwnProperty("username")) - if (!$util.isString(message.username)) - return "username: string expected"; - if (message.embedded != null && message.hasOwnProperty("embedded")) - if (typeof message.embedded !== "boolean") - return "embedded: boolean expected"; - if (message.json != null && message.hasOwnProperty("json")) - if (typeof message.json !== "boolean") - return "json: boolean expected"; - if (message.destId != null && message.hasOwnProperty("destId")) - if (!$util.isInteger(message.destId)) - return "destId: integer expected"; - if (message.keyId != null && message.hasOwnProperty("keyId")) - if (!$util.isInteger(message.keyId)) - return "keyId: integer expected"; - if (message.supportedLanguage != null && message.hasOwnProperty("supportedLanguage")) - switch (message.supportedLanguage) { - default: - return "supportedLanguage: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: - case 9: - case 10: - case 11: - case 12: - case 13: - case 14: - case 15: - case 16: - case 17: - case 18: - case 19: - case 20: - case 21: - case 22: - break; - } - if (message.checksum != null && message.hasOwnProperty("checksum")) - if (!$util.isInteger(message.checksum) && !(message.checksum && $util.isInteger(message.checksum.low) && $util.isInteger(message.checksum.high))) - return "checksum: integer|Long expected"; - if (message.isGeneratedUid != null && message.hasOwnProperty("isGeneratedUid")) - if (typeof message.isGeneratedUid !== "boolean") - return "isGeneratedUid: boolean expected"; - 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"; - if (message.detached != null && message.hasOwnProperty("detached")) - if (typeof message.detached !== "boolean") - return "detached: boolean expected"; - return null; - }; - /** * Creates a SamlRelayState message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -188123,6 +153194,8 @@ export const SsoCloud = $root.SsoCloud = (() => { SamlRelayState.fromObject = function fromObject(object, long) { if (object instanceof $root.SsoCloud.SamlRelayState) return object; + if (!$util.isObject(object)) + throw TypeError(".SsoCloud.SamlRelayState: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -188312,37 +153385,37 @@ export const SsoCloud = $root.SsoCloud = (() => { object.deviceId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; object.detached = false; } - if (message.messageSessionUid != null && message.hasOwnProperty("messageSessionUid")) + if (message.messageSessionUid != null && Object.hasOwnProperty.call(message, "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.username != null && message.hasOwnProperty("username")) + if (message.username != null && Object.hasOwnProperty.call(message, "username")) object.username = message.username; - if (message.embedded != null && message.hasOwnProperty("embedded")) + if (message.embedded != null && Object.hasOwnProperty.call(message, "embedded")) object.embedded = message.embedded; - if (message.json != null && message.hasOwnProperty("json")) + if (message.json != null && Object.hasOwnProperty.call(message, "json")) object.json = message.json; - if (message.destId != null && message.hasOwnProperty("destId")) + if (message.destId != null && Object.hasOwnProperty.call(message, "destId")) object.destId = message.destId; - if (message.keyId != null && message.hasOwnProperty("keyId")) + if (message.keyId != null && Object.hasOwnProperty.call(message, "keyId")) object.keyId = message.keyId; - if (message.supportedLanguage != null && message.hasOwnProperty("supportedLanguage")) + if (message.supportedLanguage != null && Object.hasOwnProperty.call(message, "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 (message.checksum != null && Object.hasOwnProperty.call(message, "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") 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")) + if (message.isGeneratedUid != null && Object.hasOwnProperty.call(message, "isGeneratedUid")) object.isGeneratedUid = message.isGeneratedUid; - if (message.deviceId != null && message.hasOwnProperty("deviceId")) + if (message.deviceId != null && Object.hasOwnProperty.call(message, "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") 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.detached != null && message.hasOwnProperty("detached")) + if (message.detached != null && Object.hasOwnProperty.call(message, "detached")) object.detached = message.detached; return object; }; @@ -188488,19 +153561,6 @@ export const SsoCloud = $root.SsoCloud = (() => { return writer; }; - /** - * Encodes the specified SsoCloudMigrationStatusRequest message, length delimited. Does not implicitly {@link SsoCloud.SsoCloudMigrationStatusRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof SsoCloud.SsoCloudMigrationStatusRequest - * @static - * @param {SsoCloud.ISsoCloudMigrationStatusRequest} message SsoCloudMigrationStatusRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SsoCloudMigrationStatusRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a SsoCloudMigrationStatusRequest message from the specified reader or buffer. * @function decode @@ -188549,52 +153609,6 @@ export const SsoCloud = $root.SsoCloud = (() => { return message; }; - /** - * Decodes a SsoCloudMigrationStatusRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof SsoCloud.SsoCloudMigrationStatusRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {SsoCloud.SsoCloudMigrationStatusRequest} SsoCloudMigrationStatusRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SsoCloudMigrationStatusRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a SsoCloudMigrationStatusRequest message. - * @function verify - * @memberof SsoCloud.SsoCloudMigrationStatusRequest - * @static - * @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) { - if (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"; - if (message.fullStatus != null && message.hasOwnProperty("fullStatus")) - if (typeof message.fullStatus !== "boolean") - return "fullStatus: boolean expected"; - if (message.includeMigratedUsers != null && message.hasOwnProperty("includeMigratedUsers")) - if (typeof message.includeMigratedUsers !== "boolean") - return "includeMigratedUsers: boolean expected"; - if (message.limit != null && message.hasOwnProperty("limit")) - if (!$util.isInteger(message.limit)) - return "limit: integer expected"; - return null; - }; - /** * Creates a SsoCloudMigrationStatusRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -188606,6 +153620,8 @@ export const SsoCloud = $root.SsoCloud = (() => { SsoCloudMigrationStatusRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.SsoCloud.SsoCloudMigrationStatusRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".SsoCloud.SsoCloudMigrationStatusRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -188656,18 +153672,18 @@ export const SsoCloud = $root.SsoCloud = (() => { object.includeMigratedUsers = false; object.limit = 0; } - if (message.nodeId != null && message.hasOwnProperty("nodeId")) + if (message.nodeId != null && Object.hasOwnProperty.call(message, "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") 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.fullStatus != null && message.hasOwnProperty("fullStatus")) + if (message.fullStatus != null && Object.hasOwnProperty.call(message, "fullStatus")) object.fullStatus = message.fullStatus; - if (message.includeMigratedUsers != null && message.hasOwnProperty("includeMigratedUsers")) + if (message.includeMigratedUsers != null && Object.hasOwnProperty.call(message, "includeMigratedUsers")) object.includeMigratedUsers = message.includeMigratedUsers; - if (message.limit != null && message.hasOwnProperty("limit")) + if (message.limit != null && Object.hasOwnProperty.call(message, "limit")) object.limit = message.limit; return object; }; @@ -188885,19 +153901,6 @@ export const SsoCloud = $root.SsoCloud = (() => { return writer; }; - /** - * Encodes the specified SsoCloudMigrationStatusResponse message, length delimited. Does not implicitly {@link SsoCloud.SsoCloudMigrationStatusResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof SsoCloud.SsoCloudMigrationStatusResponse - * @static - * @param {SsoCloud.ISsoCloudMigrationStatusResponse} message SsoCloudMigrationStatusResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SsoCloudMigrationStatusResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a SsoCloudMigrationStatusResponse message from the specified reader or buffer. * @function decode @@ -188978,85 +153981,6 @@ export const SsoCloud = $root.SsoCloud = (() => { return message; }; - /** - * Decodes a SsoCloudMigrationStatusResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof SsoCloud.SsoCloudMigrationStatusResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {SsoCloud.SsoCloudMigrationStatusResponse} SsoCloudMigrationStatusResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SsoCloudMigrationStatusResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a SsoCloudMigrationStatusResponse message. - * @function verify - * @memberof SsoCloud.SsoCloudMigrationStatusResponse - * @static - * @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) { - if (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.message != null && message.hasOwnProperty("message")) - if (!$util.isString(message.message)) - return "message: string expected"; - 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"; - if (message.ssoConnectId != null && message.hasOwnProperty("ssoConnectId")) - if (!$util.isInteger(message.ssoConnectId) && !(message.ssoConnectId && $util.isInteger(message.ssoConnectId.low) && $util.isInteger(message.ssoConnectId.high))) - return "ssoConnectId: integer|Long expected"; - if (message.ssoConnectName != null && message.hasOwnProperty("ssoConnectName")) - if (!$util.isString(message.ssoConnectName)) - return "ssoConnectName: string expected"; - if (message.ssoConnectCloudId != null && message.hasOwnProperty("ssoConnectCloudId")) - if (!$util.isInteger(message.ssoConnectCloudId) && !(message.ssoConnectCloudId && $util.isInteger(message.ssoConnectCloudId.low) && $util.isInteger(message.ssoConnectCloudId.high))) - return "ssoConnectCloudId: integer|Long expected"; - if (message.ssoConnectCloudName != null && message.hasOwnProperty("ssoConnectCloudName")) - if (!$util.isString(message.ssoConnectCloudName)) - return "ssoConnectCloudName: string expected"; - if (message.totalUsersCount != null && message.hasOwnProperty("totalUsersCount")) - if (!$util.isInteger(message.totalUsersCount)) - return "totalUsersCount: integer expected"; - if (message.usersMigratedCount != null && message.hasOwnProperty("usersMigratedCount")) - if (!$util.isInteger(message.usersMigratedCount)) - return "usersMigratedCount: integer expected"; - if (message.migratedUsers != null && message.hasOwnProperty("migratedUsers")) { - 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); - if (error) - return "migratedUsers." + error; - } - } - if (message.unmigratedUsers != null && message.hasOwnProperty("unmigratedUsers")) { - 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); - if (error) - return "unmigratedUsers." + error; - } - } - return null; - }; - /** * Creates a SsoCloudMigrationStatusResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -189068,6 +153992,8 @@ export const SsoCloud = $root.SsoCloud = (() => { SsoCloudMigrationStatusResponse.fromObject = function fromObject(object, long) { if (object instanceof $root.SsoCloud.SsoCloudMigrationStatusResponse) return object; + if (!$util.isObject(object)) + throw TypeError(".SsoCloud.SsoCloudMigrationStatusResponse: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -189117,7 +154043,7 @@ export const SsoCloud = $root.SsoCloud = (() => { throw TypeError(".SsoCloud.SsoCloudMigrationStatusResponse.migratedUsers: array expected"); message.migratedUsers = []; for (let i = 0; i < object.migratedUsers.length; ++i) { - if (typeof object.migratedUsers[i] !== "object") + if (!$util.isObject(object.migratedUsers[i])) throw TypeError(".SsoCloud.SsoCloudMigrationStatusResponse.migratedUsers: object expected"); message.migratedUsers[i] = $root.SsoCloud.SsoCloudMigrationUserInfo.fromObject(object.migratedUsers[i], long + 1); } @@ -189127,7 +154053,7 @@ export const SsoCloud = $root.SsoCloud = (() => { throw TypeError(".SsoCloud.SsoCloudMigrationStatusResponse.unmigratedUsers: array expected"); message.unmigratedUsers = []; for (let i = 0; i < object.unmigratedUsers.length; ++i) { - if (typeof object.unmigratedUsers[i] !== "object") + if (!$util.isObject(object.unmigratedUsers[i])) throw TypeError(".SsoCloud.SsoCloudMigrationStatusResponse.unmigratedUsers: object expected"); message.unmigratedUsers[i] = $root.SsoCloud.SsoCloudMigrationUserInfo.fromObject(object.unmigratedUsers[i], long + 1); } @@ -189179,38 +154105,38 @@ export const SsoCloud = $root.SsoCloud = (() => { object.totalUsersCount = 0; object.usersMigratedCount = 0; } - if (message.success != null && message.hasOwnProperty("success")) + if (message.success != null && Object.hasOwnProperty.call(message, "success")) object.success = message.success; - if (message.message != null && message.hasOwnProperty("message")) + if (message.message != null && Object.hasOwnProperty.call(message, "message")) object.message = message.message; - if (message.nodeId != null && message.hasOwnProperty("nodeId")) + if (message.nodeId != null && Object.hasOwnProperty.call(message, "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") 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 (message.ssoConnectId != null && Object.hasOwnProperty.call(message, "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") 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")) + if (message.ssoConnectName != null && Object.hasOwnProperty.call(message, "ssoConnectName")) object.ssoConnectName = message.ssoConnectName; - if (message.ssoConnectCloudId != null && message.hasOwnProperty("ssoConnectCloudId")) + if (message.ssoConnectCloudId != null && Object.hasOwnProperty.call(message, "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") 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; - if (message.ssoConnectCloudName != null && message.hasOwnProperty("ssoConnectCloudName")) + if (message.ssoConnectCloudName != null && Object.hasOwnProperty.call(message, "ssoConnectCloudName")) object.ssoConnectCloudName = message.ssoConnectCloudName; - if (message.totalUsersCount != null && message.hasOwnProperty("totalUsersCount")) + if (message.totalUsersCount != null && Object.hasOwnProperty.call(message, "totalUsersCount")) object.totalUsersCount = message.totalUsersCount; - if (message.usersMigratedCount != null && message.hasOwnProperty("usersMigratedCount")) + if (message.usersMigratedCount != null && Object.hasOwnProperty.call(message, "usersMigratedCount")) object.usersMigratedCount = message.usersMigratedCount; if (message.migratedUsers && message.migratedUsers.length) { object.migratedUsers = []; @@ -189352,19 +154278,6 @@ export const SsoCloud = $root.SsoCloud = (() => { return writer; }; - /** - * Encodes the specified SsoCloudMigrationUserInfo message, length delimited. Does not implicitly {@link SsoCloud.SsoCloudMigrationUserInfo.verify|verify} messages. - * @function encodeDelimited - * @memberof SsoCloud.SsoCloudMigrationUserInfo - * @static - * @param {SsoCloud.ISsoCloudMigrationUserInfo} message SsoCloudMigrationUserInfo message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SsoCloudMigrationUserInfo.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a SsoCloudMigrationUserInfo message from the specified reader or buffer. * @function decode @@ -189413,52 +154326,6 @@ export const SsoCloud = $root.SsoCloud = (() => { return message; }; - /** - * Decodes a SsoCloudMigrationUserInfo message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof SsoCloud.SsoCloudMigrationUserInfo - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {SsoCloud.SsoCloudMigrationUserInfo} SsoCloudMigrationUserInfo - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SsoCloudMigrationUserInfo.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a SsoCloudMigrationUserInfo message. - * @function verify - * @memberof SsoCloud.SsoCloudMigrationUserInfo - * @static - * @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) { - if (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"; - if (message.email != null && message.hasOwnProperty("email")) - if (!$util.isString(message.email)) - return "email: string expected"; - if (message.fullName != null && message.hasOwnProperty("fullName")) - if (!$util.isString(message.fullName)) - return "fullName: string expected"; - if (message.isMigrated != null && message.hasOwnProperty("isMigrated")) - if (typeof message.isMigrated !== "boolean") - return "isMigrated: boolean expected"; - return null; - }; - /** * Creates a SsoCloudMigrationUserInfo message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -189470,6 +154337,8 @@ export const SsoCloud = $root.SsoCloud = (() => { SsoCloudMigrationUserInfo.fromObject = function fromObject(object, long) { if (object instanceof $root.SsoCloud.SsoCloudMigrationUserInfo) return object; + if (!$util.isObject(object)) + throw TypeError(".SsoCloud.SsoCloudMigrationUserInfo: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -189509,13 +154378,13 @@ export const SsoCloud = $root.SsoCloud = (() => { object.fullName = ""; object.isMigrated = false; } - if (message.userId != null && message.hasOwnProperty("userId")) + if (message.userId != null && Object.hasOwnProperty.call(message, "userId")) object.userId = message.userId; - if (message.email != null && message.hasOwnProperty("email")) + if (message.email != null && Object.hasOwnProperty.call(message, "email")) object.email = message.email; - if (message.fullName != null && message.hasOwnProperty("fullName")) + if (message.fullName != null && Object.hasOwnProperty.call(message, "fullName")) object.fullName = message.fullName; - if (message.isMigrated != null && message.hasOwnProperty("isMigrated")) + if (message.isMigrated != null && Object.hasOwnProperty.call(message, "isMigrated")) object.isMigrated = message.isMigrated; return object; }; @@ -189659,19 +154528,6 @@ export const SemanticVersion = $root.SemanticVersion = (() => { return writer; }; - /** - * Encodes the specified Version message, length delimited. Does not implicitly {@link SemanticVersion.Version.verify|verify} messages. - * @function encodeDelimited - * @memberof SemanticVersion.Version - * @static - * @param {SemanticVersion.IVersion} message Version message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Version.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a Version message from the specified reader or buffer. * @function decode @@ -189720,52 +154576,6 @@ export const SemanticVersion = $root.SemanticVersion = (() => { return message; }; - /** - * Decodes a Version message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof SemanticVersion.Version - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {SemanticVersion.Version} Version - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Version.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a Version message. - * @function verify - * @memberof SemanticVersion.Version - * @static - * @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) { - if (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"; - if (message.minor != null && message.hasOwnProperty("minor")) - if (!$util.isInteger(message.minor)) - return "minor: integer expected"; - if (message.patch != null && message.hasOwnProperty("patch")) - if (!$util.isInteger(message.patch)) - return "patch: integer expected"; - if (message.build != null && message.hasOwnProperty("build")) - if (!$util.isInteger(message.build)) - return "build: integer expected"; - return null; - }; - /** * Creates a Version message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -189777,6 +154587,8 @@ export const SemanticVersion = $root.SemanticVersion = (() => { Version.fromObject = function fromObject(object, long) { if (object instanceof $root.SemanticVersion.Version) return object; + if (!$util.isObject(object)) + throw TypeError(".SemanticVersion.Version: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -189816,13 +154628,13 @@ export const SemanticVersion = $root.SemanticVersion = (() => { object.patch = 0; object.build = 0; } - if (message.major != null && message.hasOwnProperty("major")) + if (message.major != null && Object.hasOwnProperty.call(message, "major")) object.major = message.major; - if (message.minor != null && message.hasOwnProperty("minor")) + if (message.minor != null && Object.hasOwnProperty.call(message, "minor")) object.minor = message.minor; - if (message.patch != null && message.hasOwnProperty("patch")) + if (message.patch != null && Object.hasOwnProperty.call(message, "patch")) object.patch = message.patch; - if (message.build != null && message.hasOwnProperty("build")) + if (message.build != null && Object.hasOwnProperty.call(message, "build")) object.build = message.build; return object; }; @@ -189980,19 +154792,6 @@ export const BreachWatch = $root.BreachWatch = (() => { return writer; }; - /** - * Encodes the specified BreachWatchRecordRequest message, length delimited. Does not implicitly {@link BreachWatch.BreachWatchRecordRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof BreachWatch.BreachWatchRecordRequest - * @static - * @param {BreachWatch.IBreachWatchRecordRequest} message BreachWatchRecordRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - BreachWatchRecordRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a BreachWatchRecordRequest message from the specified reader or buffer. * @function decode @@ -190041,57 +154840,6 @@ export const BreachWatch = $root.BreachWatch = (() => { return message; }; - /** - * Decodes a BreachWatchRecordRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof BreachWatch.BreachWatchRecordRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {BreachWatch.BreachWatchRecordRequest} BreachWatchRecordRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - BreachWatchRecordRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a BreachWatchRecordRequest message. - * @function verify - * @memberof BreachWatch.BreachWatchRecordRequest - * @static - * @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) { - if (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.encryptedData != null && message.hasOwnProperty("encryptedData")) - if (!(message.encryptedData && typeof message.encryptedData.length === "number" || $util.isString(message.encryptedData))) - return "encryptedData: buffer expected"; - if (message.breachWatchInfoType != null && message.hasOwnProperty("breachWatchInfoType")) - switch (message.breachWatchInfoType) { - default: - return "breachWatchInfoType: enum value expected"; - case 0: - case 1: - break; - } - if (message.updateUserWhoScanned != null && message.hasOwnProperty("updateUserWhoScanned")) - if (typeof message.updateUserWhoScanned !== "boolean") - return "updateUserWhoScanned: boolean expected"; - return null; - }; - /** * Creates a BreachWatchRecordRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -190103,6 +154851,8 @@ export const BreachWatch = $root.BreachWatch = (() => { BreachWatchRecordRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.BreachWatch.BreachWatchRecordRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".BreachWatch.BreachWatchRecordRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -190174,13 +154924,13 @@ export const BreachWatch = $root.BreachWatch = (() => { object.breachWatchInfoType = options.enums === String ? "RECORD" : 0; object.updateUserWhoScanned = false; } - if (message.recordUid != null && message.hasOwnProperty("recordUid")) + if (message.recordUid != null && Object.hasOwnProperty.call(message, "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.encryptedData != null && message.hasOwnProperty("encryptedData")) + if (message.encryptedData != null && Object.hasOwnProperty.call(message, "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; - if (message.breachWatchInfoType != null && message.hasOwnProperty("breachWatchInfoType")) + if (message.breachWatchInfoType != null && Object.hasOwnProperty.call(message, "breachWatchInfoType")) object.breachWatchInfoType = options.enums === String ? $root.BreachWatch.BreachWatchInfoType[message.breachWatchInfoType] === undefined ? message.breachWatchInfoType : $root.BreachWatch.BreachWatchInfoType[message.breachWatchInfoType] : message.breachWatchInfoType; - if (message.updateUserWhoScanned != null && message.hasOwnProperty("updateUserWhoScanned")) + if (message.updateUserWhoScanned != null && Object.hasOwnProperty.call(message, "updateUserWhoScanned")) object.updateUserWhoScanned = message.updateUserWhoScanned; return object; }; @@ -190292,19 +155042,6 @@ export const BreachWatch = $root.BreachWatch = (() => { return writer; }; - /** - * Encodes the specified BreachWatchUpdateRequest message, length delimited. Does not implicitly {@link BreachWatch.BreachWatchUpdateRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof BreachWatch.BreachWatchUpdateRequest - * @static - * @param {BreachWatch.IBreachWatchUpdateRequest} message BreachWatchUpdateRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - BreachWatchUpdateRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a BreachWatchUpdateRequest message from the specified reader or buffer. * @function decode @@ -190347,52 +155084,6 @@ export const BreachWatch = $root.BreachWatch = (() => { return message; }; - /** - * Decodes a BreachWatchUpdateRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof BreachWatch.BreachWatchUpdateRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {BreachWatch.BreachWatchUpdateRequest} BreachWatchUpdateRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - BreachWatchUpdateRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a BreachWatchUpdateRequest message. - * @function verify - * @memberof BreachWatch.BreachWatchUpdateRequest - * @static - * @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) { - if (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); - if (error) - return "breachWatchRecordRequest." + error; - } - } - if (message.encryptedData != null && message.hasOwnProperty("encryptedData")) - if (!(message.encryptedData && typeof message.encryptedData.length === "number" || $util.isString(message.encryptedData))) - return "encryptedData: buffer expected"; - return null; - }; - /** * Creates a BreachWatchUpdateRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -190404,6 +155095,8 @@ export const BreachWatch = $root.BreachWatch = (() => { BreachWatchUpdateRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.BreachWatch.BreachWatchUpdateRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".BreachWatch.BreachWatchUpdateRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -190414,7 +155107,7 @@ export const BreachWatch = $root.BreachWatch = (() => { throw TypeError(".BreachWatch.BreachWatchUpdateRequest.breachWatchRecordRequest: array expected"); message.breachWatchRecordRequest = []; for (let i = 0; i < object.breachWatchRecordRequest.length; ++i) { - if (typeof object.breachWatchRecordRequest[i] !== "object") + if (!$util.isObject(object.breachWatchRecordRequest[i])) throw TypeError(".BreachWatch.BreachWatchUpdateRequest.breachWatchRecordRequest: object expected"); message.breachWatchRecordRequest[i] = $root.BreachWatch.BreachWatchRecordRequest.fromObject(object.breachWatchRecordRequest[i], long + 1); } @@ -190459,7 +155152,7 @@ export const BreachWatch = $root.BreachWatch = (() => { for (let j = 0; j < message.breachWatchRecordRequest.length; ++j) object.breachWatchRecordRequest[j] = $root.BreachWatch.BreachWatchRecordRequest.toObject(message.breachWatchRecordRequest[j], options, q + 1); } - if (message.encryptedData != null && message.hasOwnProperty("encryptedData")) + if (message.encryptedData != null && Object.hasOwnProperty.call(message, "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; return object; }; @@ -190580,19 +155273,6 @@ export const BreachWatch = $root.BreachWatch = (() => { return writer; }; - /** - * Encodes the specified BreachWatchRecordStatus message, length delimited. Does not implicitly {@link BreachWatch.BreachWatchRecordStatus.verify|verify} messages. - * @function encodeDelimited - * @memberof BreachWatch.BreachWatchRecordStatus - * @static - * @param {BreachWatch.IBreachWatchRecordStatus} message BreachWatchRecordStatus message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - BreachWatchRecordStatus.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a BreachWatchRecordStatus message from the specified reader or buffer. * @function decode @@ -190637,49 +155317,6 @@ export const BreachWatch = $root.BreachWatch = (() => { return message; }; - /** - * Decodes a BreachWatchRecordStatus message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof BreachWatch.BreachWatchRecordStatus - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {BreachWatch.BreachWatchRecordStatus} BreachWatchRecordStatus - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - BreachWatchRecordStatus.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a BreachWatchRecordStatus message. - * @function verify - * @memberof BreachWatch.BreachWatchRecordStatus - * @static - * @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) { - if (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.status != null && message.hasOwnProperty("status")) - if (!$util.isString(message.status)) - return "status: string expected"; - if (message.reason != null && message.hasOwnProperty("reason")) - if (!$util.isString(message.reason)) - return "reason: string expected"; - return null; - }; - /** * Creates a BreachWatchRecordStatus message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -190691,6 +155328,8 @@ export const BreachWatch = $root.BreachWatch = (() => { BreachWatchRecordStatus.fromObject = function fromObject(object, long) { if (object instanceof $root.BreachWatch.BreachWatchRecordStatus) return object; + if (!$util.isObject(object)) + throw TypeError(".BreachWatch.BreachWatchRecordStatus: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -190736,11 +155375,11 @@ export const BreachWatch = $root.BreachWatch = (() => { object.status = ""; object.reason = ""; } - if (message.recordUid != null && message.hasOwnProperty("recordUid")) + if (message.recordUid != null && Object.hasOwnProperty.call(message, "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.status != null && message.hasOwnProperty("status")) + if (message.status != null && Object.hasOwnProperty.call(message, "status")) object.status = message.status; - if (message.reason != null && message.hasOwnProperty("reason")) + if (message.reason != null && Object.hasOwnProperty.call(message, "reason")) object.reason = message.reason; return object; }; @@ -190841,19 +155480,6 @@ export const BreachWatch = $root.BreachWatch = (() => { return writer; }; - /** - * Encodes the specified BreachWatchUpdateResponse message, length delimited. Does not implicitly {@link BreachWatch.BreachWatchUpdateResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof BreachWatch.BreachWatchUpdateResponse - * @static - * @param {BreachWatch.IBreachWatchUpdateResponse} message BreachWatchUpdateResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - BreachWatchUpdateResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a BreachWatchUpdateResponse message from the specified reader or buffer. * @function decode @@ -190892,49 +155518,6 @@ export const BreachWatch = $root.BreachWatch = (() => { return message; }; - /** - * Decodes a BreachWatchUpdateResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof BreachWatch.BreachWatchUpdateResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {BreachWatch.BreachWatchUpdateResponse} BreachWatchUpdateResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - BreachWatchUpdateResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a BreachWatchUpdateResponse message. - * @function verify - * @memberof BreachWatch.BreachWatchUpdateResponse - * @static - * @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) { - if (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); - if (error) - return "breachWatchRecordStatus." + error; - } - } - return null; - }; - /** * Creates a BreachWatchUpdateResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -190946,6 +155529,8 @@ export const BreachWatch = $root.BreachWatch = (() => { BreachWatchUpdateResponse.fromObject = function fromObject(object, long) { if (object instanceof $root.BreachWatch.BreachWatchUpdateResponse) return object; + if (!$util.isObject(object)) + throw TypeError(".BreachWatch.BreachWatchUpdateResponse: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -190956,7 +155541,7 @@ export const BreachWatch = $root.BreachWatch = (() => { throw TypeError(".BreachWatch.BreachWatchUpdateResponse.breachWatchRecordStatus: array expected"); message.breachWatchRecordStatus = []; for (let i = 0; i < object.breachWatchRecordStatus.length; ++i) { - if (typeof object.breachWatchRecordStatus[i] !== "object") + if (!$util.isObject(object.breachWatchRecordStatus[i])) throw TypeError(".BreachWatch.BreachWatchUpdateResponse.breachWatchRecordStatus: object expected"); message.breachWatchRecordStatus[i] = $root.BreachWatch.BreachWatchRecordStatus.fromObject(object.breachWatchRecordStatus[i], long + 1); } @@ -191085,19 +155670,6 @@ export const BreachWatch = $root.BreachWatch = (() => { return writer; }; - /** - * Encodes the specified BreachWatchTokenRequest message, length delimited. Does not implicitly {@link BreachWatch.BreachWatchTokenRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof BreachWatch.BreachWatchTokenRequest - * @static - * @param {BreachWatch.IBreachWatchTokenRequest} message BreachWatchTokenRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - BreachWatchTokenRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a BreachWatchTokenRequest message from the specified reader or buffer. * @function decode @@ -191134,43 +155706,6 @@ export const BreachWatch = $root.BreachWatch = (() => { return message; }; - /** - * Decodes a BreachWatchTokenRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof BreachWatch.BreachWatchTokenRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {BreachWatch.BreachWatchTokenRequest} BreachWatchTokenRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - BreachWatchTokenRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a BreachWatchTokenRequest message. - * @function verify - * @memberof BreachWatch.BreachWatchTokenRequest - * @static - * @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) { - if (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"; - return null; - }; - /** * Creates a BreachWatchTokenRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -191182,6 +155717,8 @@ export const BreachWatch = $root.BreachWatch = (() => { BreachWatchTokenRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.BreachWatch.BreachWatchTokenRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".BreachWatch.BreachWatchTokenRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -191220,7 +155757,7 @@ export const BreachWatch = $root.BreachWatch = (() => { if (options.bytes !== Array) object.breachWatchToken = $util.newBuffer(object.breachWatchToken); } - if (message.breachWatchToken != null && message.hasOwnProperty("breachWatchToken")) + if (message.breachWatchToken != null && Object.hasOwnProperty.call(message, "breachWatchToken")) object.breachWatchToken = options.bytes === String ? $util.base64.encode(message.breachWatchToken, 0, message.breachWatchToken.length) : options.bytes === Array ? Array.prototype.slice.call(message.breachWatchToken) : message.breachWatchToken; return object; }; @@ -191330,19 +155867,6 @@ export const BreachWatch = $root.BreachWatch = (() => { return writer; }; - /** - * Encodes the specified BreachWatchTokenResponse message, length delimited. Does not implicitly {@link BreachWatch.BreachWatchTokenResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof BreachWatch.BreachWatchTokenResponse - * @static - * @param {BreachWatch.IBreachWatchTokenResponse} message BreachWatchTokenResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - BreachWatchTokenResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a BreachWatchTokenResponse message from the specified reader or buffer. * @function decode @@ -191383,46 +155907,6 @@ export const BreachWatch = $root.BreachWatch = (() => { return message; }; - /** - * Decodes a BreachWatchTokenResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof BreachWatch.BreachWatchTokenResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {BreachWatch.BreachWatchTokenResponse} BreachWatchTokenResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - BreachWatchTokenResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a BreachWatchTokenResponse message. - * @function verify - * @memberof BreachWatch.BreachWatchTokenResponse - * @static - * @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) { - if (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"; - if (message.clientEncrypted != null && message.hasOwnProperty("clientEncrypted")) - if (typeof message.clientEncrypted !== "boolean") - return "clientEncrypted: boolean expected"; - return null; - }; - /** * Creates a BreachWatchTokenResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -191434,6 +155918,8 @@ export const BreachWatch = $root.BreachWatch = (() => { BreachWatchTokenResponse.fromObject = function fromObject(object, long) { if (object instanceof $root.BreachWatch.BreachWatchTokenResponse) return object; + if (!$util.isObject(object)) + throw TypeError(".BreachWatch.BreachWatchTokenResponse: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -191476,9 +155962,9 @@ export const BreachWatch = $root.BreachWatch = (() => { } object.clientEncrypted = false; } - if (message.breachWatchToken != null && message.hasOwnProperty("breachWatchToken")) + if (message.breachWatchToken != null && Object.hasOwnProperty.call(message, "breachWatchToken")) object.breachWatchToken = options.bytes === String ? $util.base64.encode(message.breachWatchToken, 0, message.breachWatchToken.length) : options.bytes === Array ? Array.prototype.slice.call(message.breachWatchToken) : message.breachWatchToken; - if (message.clientEncrypted != null && message.hasOwnProperty("clientEncrypted")) + if (message.clientEncrypted != null && Object.hasOwnProperty.call(message, "clientEncrypted")) object.clientEncrypted = message.clientEncrypted; return object; }; @@ -191599,19 +156085,6 @@ export const BreachWatch = $root.BreachWatch = (() => { return writer; }; - /** - * Encodes the specified AnonymizedTokenResponse message, length delimited. Does not implicitly {@link BreachWatch.AnonymizedTokenResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof BreachWatch.AnonymizedTokenResponse - * @static - * @param {BreachWatch.IAnonymizedTokenResponse} message AnonymizedTokenResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - AnonymizedTokenResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes an AnonymizedTokenResponse message from the specified reader or buffer. * @function decode @@ -191656,49 +156129,6 @@ export const BreachWatch = $root.BreachWatch = (() => { return message; }; - /** - * Decodes an AnonymizedTokenResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof BreachWatch.AnonymizedTokenResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {BreachWatch.AnonymizedTokenResponse} AnonymizedTokenResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - AnonymizedTokenResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an AnonymizedTokenResponse message. - * @function verify - * @memberof BreachWatch.AnonymizedTokenResponse - * @static - * @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) { - if (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"; - if (message.emailToken != null && message.hasOwnProperty("emailToken")) - if (!(message.emailToken && typeof message.emailToken.length === "number" || $util.isString(message.emailToken))) - return "emailToken: buffer expected"; - if (message.passwordToken != null && message.hasOwnProperty("passwordToken")) - if (!(message.passwordToken && typeof message.passwordToken.length === "number" || $util.isString(message.passwordToken))) - return "passwordToken: buffer expected"; - return null; - }; - /** * Creates an AnonymizedTokenResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -191710,6 +156140,8 @@ export const BreachWatch = $root.BreachWatch = (() => { AnonymizedTokenResponse.fromObject = function fromObject(object, long) { if (object instanceof $root.BreachWatch.AnonymizedTokenResponse) return object; + if (!$util.isObject(object)) + throw TypeError(".BreachWatch.AnonymizedTokenResponse: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -191773,11 +156205,11 @@ export const BreachWatch = $root.BreachWatch = (() => { object.passwordToken = $util.newBuffer(object.passwordToken); } } - if (message.domainToken != null && message.hasOwnProperty("domainToken")) + if (message.domainToken != null && Object.hasOwnProperty.call(message, "domainToken")) object.domainToken = options.bytes === String ? $util.base64.encode(message.domainToken, 0, message.domainToken.length) : options.bytes === Array ? Array.prototype.slice.call(message.domainToken) : message.domainToken; - if (message.emailToken != null && message.hasOwnProperty("emailToken")) + if (message.emailToken != null && Object.hasOwnProperty.call(message, "emailToken")) object.emailToken = options.bytes === String ? $util.base64.encode(message.emailToken, 0, message.emailToken.length) : options.bytes === Array ? Array.prototype.slice.call(message.emailToken) : message.emailToken; - if (message.passwordToken != null && message.hasOwnProperty("passwordToken")) + if (message.passwordToken != null && Object.hasOwnProperty.call(message, "passwordToken")) object.passwordToken = options.bytes === String ? $util.base64.encode(message.passwordToken, 0, message.passwordToken.length) : options.bytes === Array ? Array.prototype.slice.call(message.passwordToken) : message.passwordToken; return object; }; @@ -191887,19 +156319,6 @@ export const BreachWatch = $root.BreachWatch = (() => { return writer; }; - /** - * Encodes the specified HashCheck message, length delimited. Does not implicitly {@link BreachWatch.HashCheck.verify|verify} messages. - * @function encodeDelimited - * @memberof BreachWatch.HashCheck - * @static - * @param {BreachWatch.IHashCheck} message HashCheck message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - HashCheck.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a HashCheck message from the specified reader or buffer. * @function decode @@ -191940,46 +156359,6 @@ export const BreachWatch = $root.BreachWatch = (() => { return message; }; - /** - * Decodes a HashCheck message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof BreachWatch.HashCheck - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {BreachWatch.HashCheck} HashCheck - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - HashCheck.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a HashCheck message. - * @function verify - * @memberof BreachWatch.HashCheck - * @static - * @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) { - if (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"; - if (message.euid != null && message.hasOwnProperty("euid")) - if (!(message.euid && typeof message.euid.length === "number" || $util.isString(message.euid))) - return "euid: buffer expected"; - return null; - }; - /** * Creates a HashCheck message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -191991,6 +156370,8 @@ export const BreachWatch = $root.BreachWatch = (() => { HashCheck.fromObject = function fromObject(object, long) { if (object instanceof $root.BreachWatch.HashCheck) return object; + if (!$util.isObject(object)) + throw TypeError(".BreachWatch.HashCheck: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -192042,9 +156423,9 @@ export const BreachWatch = $root.BreachWatch = (() => { object.euid = $util.newBuffer(object.euid); } } - if (message.hash1 != null && message.hasOwnProperty("hash1")) + if (message.hash1 != null && Object.hasOwnProperty.call(message, "hash1")) object.hash1 = options.bytes === String ? $util.base64.encode(message.hash1, 0, message.hash1.length) : options.bytes === Array ? Array.prototype.slice.call(message.hash1) : message.hash1; - if (message.euid != null && message.hasOwnProperty("euid")) + if (message.euid != null && Object.hasOwnProperty.call(message, "euid")) object.euid = options.bytes === String ? $util.base64.encode(message.euid, 0, message.euid.length) : options.bytes === Array ? Array.prototype.slice.call(message.euid) : message.euid; return object; }; @@ -192169,19 +156550,6 @@ export const BreachWatch = $root.BreachWatch = (() => { return writer; }; - /** - * Encodes the specified BreachWatchStatusRequest message, length delimited. Does not implicitly {@link BreachWatch.BreachWatchStatusRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof BreachWatch.BreachWatchStatusRequest - * @static - * @param {BreachWatch.IBreachWatchStatusRequest} message BreachWatchStatusRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - BreachWatchStatusRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a BreachWatchStatusRequest message from the specified reader or buffer. * @function decode @@ -192230,59 +156598,6 @@ export const BreachWatch = $root.BreachWatch = (() => { return message; }; - /** - * Decodes a BreachWatchStatusRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof BreachWatch.BreachWatchStatusRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {BreachWatch.BreachWatchStatusRequest} BreachWatchStatusRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - BreachWatchStatusRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a BreachWatchStatusRequest message. - * @function verify - * @memberof BreachWatch.BreachWatchStatusRequest - * @static - * @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) { - if (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"; - if (message.hashCheck != null && message.hasOwnProperty("hashCheck")) { - 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); - if (error) - return "hashCheck." + error; - } - } - if (message.removedEuid != null && message.hasOwnProperty("removedEuid")) { - if (!Array.isArray(message.removedEuid)) - return "removedEuid: array expected"; - for (let i = 0; i < message.removedEuid.length; ++i) - if (!(message.removedEuid[i] && typeof message.removedEuid[i].length === "number" || $util.isString(message.removedEuid[i]))) - return "removedEuid: buffer[] expected"; - } - return null; - }; - /** * Creates a BreachWatchStatusRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -192294,6 +156609,8 @@ export const BreachWatch = $root.BreachWatch = (() => { BreachWatchStatusRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.BreachWatch.BreachWatchStatusRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".BreachWatch.BreachWatchStatusRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -192309,7 +156626,7 @@ export const BreachWatch = $root.BreachWatch = (() => { throw TypeError(".BreachWatch.BreachWatchStatusRequest.hashCheck: array expected"); message.hashCheck = []; for (let i = 0; i < object.hashCheck.length; ++i) { - if (typeof object.hashCheck[i] !== "object") + if (!$util.isObject(object.hashCheck[i])) throw TypeError(".BreachWatch.BreachWatchStatusRequest.hashCheck: object expected"); message.hashCheck[i] = $root.BreachWatch.HashCheck.fromObject(object.hashCheck[i], long + 1); } @@ -192356,7 +156673,7 @@ export const BreachWatch = $root.BreachWatch = (() => { if (options.bytes !== Array) object.anonymizedToken = $util.newBuffer(object.anonymizedToken); } - if (message.anonymizedToken != null && message.hasOwnProperty("anonymizedToken")) + if (message.anonymizedToken != null && Object.hasOwnProperty.call(message, "anonymizedToken")) object.anonymizedToken = options.bytes === String ? $util.base64.encode(message.anonymizedToken, 0, message.anonymizedToken.length) : options.bytes === Array ? Array.prototype.slice.call(message.anonymizedToken) : message.anonymizedToken; if (message.hashCheck && message.hashCheck.length) { object.hashCheck = []; @@ -192487,19 +156804,6 @@ export const BreachWatch = $root.BreachWatch = (() => { return writer; }; - /** - * Encodes the specified HashStatus message, length delimited. Does not implicitly {@link BreachWatch.HashStatus.verify|verify} messages. - * @function encodeDelimited - * @memberof BreachWatch.HashStatus - * @static - * @param {BreachWatch.IHashStatus} message HashStatus message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - HashStatus.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a HashStatus message from the specified reader or buffer. * @function decode @@ -192544,49 +156848,6 @@ export const BreachWatch = $root.BreachWatch = (() => { return message; }; - /** - * Decodes a HashStatus message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof BreachWatch.HashStatus - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {BreachWatch.HashStatus} HashStatus - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - HashStatus.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a HashStatus message. - * @function verify - * @memberof BreachWatch.HashStatus - * @static - * @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) { - if (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"; - if (message.euid != null && message.hasOwnProperty("euid")) - if (!(message.euid && typeof message.euid.length === "number" || $util.isString(message.euid))) - return "euid: buffer expected"; - if (message.breachDetected != null && message.hasOwnProperty("breachDetected")) - if (typeof message.breachDetected !== "boolean") - return "breachDetected: boolean expected"; - return null; - }; - /** * Creates a HashStatus message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -192598,6 +156859,8 @@ export const BreachWatch = $root.BreachWatch = (() => { HashStatus.fromObject = function fromObject(object, long) { if (object instanceof $root.BreachWatch.HashStatus) return object; + if (!$util.isObject(object)) + throw TypeError(".BreachWatch.HashStatus: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -192652,11 +156915,11 @@ export const BreachWatch = $root.BreachWatch = (() => { } object.breachDetected = false; } - if (message.hash1 != null && message.hasOwnProperty("hash1")) + if (message.hash1 != null && Object.hasOwnProperty.call(message, "hash1")) object.hash1 = options.bytes === String ? $util.base64.encode(message.hash1, 0, message.hash1.length) : options.bytes === Array ? Array.prototype.slice.call(message.hash1) : message.hash1; - if (message.euid != null && message.hasOwnProperty("euid")) + if (message.euid != null && Object.hasOwnProperty.call(message, "euid")) object.euid = options.bytes === String ? $util.base64.encode(message.euid, 0, message.euid.length) : options.bytes === Array ? Array.prototype.slice.call(message.euid) : message.euid; - if (message.breachDetected != null && message.hasOwnProperty("breachDetected")) + if (message.breachDetected != null && Object.hasOwnProperty.call(message, "breachDetected")) object.breachDetected = message.breachDetected; return object; }; @@ -192757,19 +157020,6 @@ export const BreachWatch = $root.BreachWatch = (() => { return writer; }; - /** - * Encodes the specified BreachWatchStatusResponse message, length delimited. Does not implicitly {@link BreachWatch.BreachWatchStatusResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof BreachWatch.BreachWatchStatusResponse - * @static - * @param {BreachWatch.IBreachWatchStatusResponse} message BreachWatchStatusResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - BreachWatchStatusResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a BreachWatchStatusResponse message from the specified reader or buffer. * @function decode @@ -192808,49 +157058,6 @@ export const BreachWatch = $root.BreachWatch = (() => { return message; }; - /** - * Decodes a BreachWatchStatusResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof BreachWatch.BreachWatchStatusResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {BreachWatch.BreachWatchStatusResponse} BreachWatchStatusResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - BreachWatchStatusResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a BreachWatchStatusResponse message. - * @function verify - * @memberof BreachWatch.BreachWatchStatusResponse - * @static - * @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) { - if (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); - if (error) - return "hashStatus." + error; - } - } - return null; - }; - /** * Creates a BreachWatchStatusResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -192862,6 +157069,8 @@ export const BreachWatch = $root.BreachWatch = (() => { BreachWatchStatusResponse.fromObject = function fromObject(object, long) { if (object instanceof $root.BreachWatch.BreachWatchStatusResponse) return object; + if (!$util.isObject(object)) + throw TypeError(".BreachWatch.BreachWatchStatusResponse: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -192872,7 +157081,7 @@ export const BreachWatch = $root.BreachWatch = (() => { throw TypeError(".BreachWatch.BreachWatchStatusResponse.hashStatus: array expected"); message.hashStatus = []; for (let i = 0; i < object.hashStatus.length; ++i) { - if (typeof object.hashStatus[i] !== "object") + if (!$util.isObject(object.hashStatus[i])) throw TypeError(".BreachWatch.BreachWatchStatusResponse.hashStatus: object expected"); message.hashStatus[i] = $root.BreachWatch.HashStatus.fromObject(object.hashStatus[i], long + 1); } @@ -193012,19 +157221,6 @@ export const BreachWatch = $root.BreachWatch = (() => { return writer; }; - /** - * Encodes the specified EnterprisePublicKeyResponse message, length delimited. Does not implicitly {@link BreachWatch.EnterprisePublicKeyResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof BreachWatch.EnterprisePublicKeyResponse - * @static - * @param {BreachWatch.IEnterprisePublicKeyResponse} message EnterprisePublicKeyResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - EnterprisePublicKeyResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes an EnterprisePublicKeyResponse message from the specified reader or buffer. * @function decode @@ -193065,46 +157261,6 @@ export const BreachWatch = $root.BreachWatch = (() => { return message; }; - /** - * Decodes an EnterprisePublicKeyResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof BreachWatch.EnterprisePublicKeyResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {BreachWatch.EnterprisePublicKeyResponse} EnterprisePublicKeyResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - EnterprisePublicKeyResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an EnterprisePublicKeyResponse message. - * @function verify - * @memberof BreachWatch.EnterprisePublicKeyResponse - * @static - * @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) { - if (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"; - if (message.enterpriseECCPublicKey != null && message.hasOwnProperty("enterpriseECCPublicKey")) - if (!(message.enterpriseECCPublicKey && typeof message.enterpriseECCPublicKey.length === "number" || $util.isString(message.enterpriseECCPublicKey))) - return "enterpriseECCPublicKey: buffer expected"; - return null; - }; - /** * Creates an EnterprisePublicKeyResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -193116,6 +157272,8 @@ export const BreachWatch = $root.BreachWatch = (() => { EnterprisePublicKeyResponse.fromObject = function fromObject(object, long) { if (object instanceof $root.BreachWatch.EnterprisePublicKeyResponse) return object; + if (!$util.isObject(object)) + throw TypeError(".BreachWatch.EnterprisePublicKeyResponse: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -193167,9 +157325,9 @@ export const BreachWatch = $root.BreachWatch = (() => { object.enterpriseECCPublicKey = $util.newBuffer(object.enterpriseECCPublicKey); } } - if (message.enterprisePublicKey != null && message.hasOwnProperty("enterprisePublicKey")) + if (message.enterprisePublicKey != null && Object.hasOwnProperty.call(message, "enterprisePublicKey")) object.enterprisePublicKey = options.bytes === String ? $util.base64.encode(message.enterprisePublicKey, 0, message.enterprisePublicKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.enterprisePublicKey) : message.enterprisePublicKey; - if (message.enterpriseECCPublicKey != null && message.hasOwnProperty("enterpriseECCPublicKey")) + if (message.enterpriseECCPublicKey != null && Object.hasOwnProperty.call(message, "enterpriseECCPublicKey")) object.enterpriseECCPublicKey = options.bytes === String ? $util.base64.encode(message.enterpriseECCPublicKey, 0, message.enterpriseECCPublicKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.enterpriseECCPublicKey) : message.enterpriseECCPublicKey; return object; }; @@ -193268,19 +157426,6 @@ export const BreachWatch = $root.BreachWatch = (() => { return writer; }; - /** - * Encodes the specified FreeScanRequest message, length delimited. Does not implicitly {@link BreachWatch.FreeScanRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof BreachWatch.FreeScanRequest - * @static - * @param {BreachWatch.IFreeScanRequest} message FreeScanRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - FreeScanRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a FreeScanRequest message from the specified reader or buffer. * @function decode @@ -193317,43 +157462,6 @@ export const BreachWatch = $root.BreachWatch = (() => { return message; }; - /** - * Decodes a FreeScanRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof BreachWatch.FreeScanRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {BreachWatch.FreeScanRequest} FreeScanRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - FreeScanRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a FreeScanRequest message. - * @function verify - * @memberof BreachWatch.FreeScanRequest - * @static - * @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) { - if (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"; - return null; - }; - /** * Creates a FreeScanRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -193365,6 +157473,8 @@ export const BreachWatch = $root.BreachWatch = (() => { FreeScanRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.BreachWatch.FreeScanRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".BreachWatch.FreeScanRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -193403,7 +157513,7 @@ export const BreachWatch = $root.BreachWatch = (() => { if (options.bytes !== Array) object.hashedEmail = $util.newBuffer(object.hashedEmail); } - if (message.hashedEmail != null && message.hasOwnProperty("hashedEmail")) + if (message.hashedEmail != null && Object.hasOwnProperty.call(message, "hashedEmail")) object.hashedEmail = options.bytes === String ? $util.base64.encode(message.hashedEmail, 0, message.hashedEmail.length) : options.bytes === Array ? Array.prototype.slice.call(message.hashedEmail) : message.hashedEmail; return object; }; @@ -193513,19 +157623,6 @@ export const BreachWatch = $root.BreachWatch = (() => { return writer; }; - /** - * Encodes the specified FreeScanResponse message, length delimited. Does not implicitly {@link BreachWatch.FreeScanResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof BreachWatch.FreeScanResponse - * @static - * @param {BreachWatch.IFreeScanResponse} message FreeScanResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - FreeScanResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a FreeScanResponse message from the specified reader or buffer. * @function decode @@ -193566,46 +157663,6 @@ export const BreachWatch = $root.BreachWatch = (() => { return message; }; - /** - * Decodes a FreeScanResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof BreachWatch.FreeScanResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {BreachWatch.FreeScanResponse} FreeScanResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - FreeScanResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a FreeScanResponse message. - * @function verify - * @memberof BreachWatch.FreeScanResponse - * @static - * @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) { - if (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"; - if (message.passwordBreaches != null && message.hasOwnProperty("passwordBreaches")) - if (!$util.isInteger(message.passwordBreaches)) - return "passwordBreaches: integer expected"; - return null; - }; - /** * Creates a FreeScanResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -193617,6 +157674,8 @@ export const BreachWatch = $root.BreachWatch = (() => { FreeScanResponse.fromObject = function fromObject(object, long) { if (object instanceof $root.BreachWatch.FreeScanResponse) return object; + if (!$util.isObject(object)) + throw TypeError(".BreachWatch.FreeScanResponse: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -193650,9 +157709,9 @@ export const BreachWatch = $root.BreachWatch = (() => { object.emailBreaches = 0; object.passwordBreaches = 0; } - if (message.emailBreaches != null && message.hasOwnProperty("emailBreaches")) + if (message.emailBreaches != null && Object.hasOwnProperty.call(message, "emailBreaches")) object.emailBreaches = message.emailBreaches; - if (message.passwordBreaches != null && message.hasOwnProperty("passwordBreaches")) + if (message.passwordBreaches != null && Object.hasOwnProperty.call(message, "passwordBreaches")) object.passwordBreaches = message.passwordBreaches; return object; }; @@ -193751,19 +157810,6 @@ export const BreachWatch = $root.BreachWatch = (() => { return writer; }; - /** - * Encodes the specified PaidUserRequest message, length delimited. Does not implicitly {@link BreachWatch.PaidUserRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof BreachWatch.PaidUserRequest - * @static - * @param {BreachWatch.IPaidUserRequest} message PaidUserRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - PaidUserRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a PaidUserRequest message from the specified reader or buffer. * @function decode @@ -193800,43 +157846,6 @@ export const BreachWatch = $root.BreachWatch = (() => { return message; }; - /** - * Decodes a PaidUserRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof BreachWatch.PaidUserRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {BreachWatch.PaidUserRequest} PaidUserRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - PaidUserRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a PaidUserRequest message. - * @function verify - * @memberof BreachWatch.PaidUserRequest - * @static - * @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) { - if (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"; - return null; - }; - /** * Creates a PaidUserRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -193848,6 +157857,8 @@ export const BreachWatch = $root.BreachWatch = (() => { PaidUserRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.BreachWatch.PaidUserRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".BreachWatch.PaidUserRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -193877,7 +157888,7 @@ export const BreachWatch = $root.BreachWatch = (() => { let object = {}; if (options.defaults) object.email = ""; - if (message.email != null && message.hasOwnProperty("email")) + if (message.email != null && Object.hasOwnProperty.call(message, "email")) object.email = message.email; return object; }; @@ -193976,19 +157987,6 @@ export const BreachWatch = $root.BreachWatch = (() => { return writer; }; - /** - * Encodes the specified PaidUserResponse message, length delimited. Does not implicitly {@link BreachWatch.PaidUserResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof BreachWatch.PaidUserResponse - * @static - * @param {BreachWatch.IPaidUserResponse} message PaidUserResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - PaidUserResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a PaidUserResponse message from the specified reader or buffer. * @function decode @@ -194025,43 +158023,6 @@ export const BreachWatch = $root.BreachWatch = (() => { return message; }; - /** - * Decodes a PaidUserResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof BreachWatch.PaidUserResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {BreachWatch.PaidUserResponse} PaidUserResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - PaidUserResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a PaidUserResponse message. - * @function verify - * @memberof BreachWatch.PaidUserResponse - * @static - * @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) { - if (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"; - return null; - }; - /** * Creates a PaidUserResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -194073,6 +158034,8 @@ export const BreachWatch = $root.BreachWatch = (() => { PaidUserResponse.fromObject = function fromObject(object, long) { if (object instanceof $root.BreachWatch.PaidUserResponse) return object; + if (!$util.isObject(object)) + throw TypeError(".BreachWatch.PaidUserResponse: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -194102,7 +158065,7 @@ export const BreachWatch = $root.BreachWatch = (() => { let object = {}; if (options.defaults) object.paidUser = false; - if (message.paidUser != null && message.hasOwnProperty("paidUser")) + if (message.paidUser != null && Object.hasOwnProperty.call(message, "paidUser")) object.paidUser = message.paidUser; return object; }; @@ -194201,19 +158164,6 @@ export const BreachWatch = $root.BreachWatch = (() => { return writer; }; - /** - * Encodes the specified DetailedScanRequest message, length delimited. Does not implicitly {@link BreachWatch.DetailedScanRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof BreachWatch.DetailedScanRequest - * @static - * @param {BreachWatch.IDetailedScanRequest} message DetailedScanRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - DetailedScanRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a DetailedScanRequest message from the specified reader or buffer. * @function decode @@ -194250,43 +158200,6 @@ export const BreachWatch = $root.BreachWatch = (() => { return message; }; - /** - * Decodes a DetailedScanRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof BreachWatch.DetailedScanRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {BreachWatch.DetailedScanRequest} DetailedScanRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - DetailedScanRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a DetailedScanRequest message. - * @function verify - * @memberof BreachWatch.DetailedScanRequest - * @static - * @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) { - if (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"; - return null; - }; - /** * Creates a DetailedScanRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -194298,6 +158211,8 @@ export const BreachWatch = $root.BreachWatch = (() => { DetailedScanRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.BreachWatch.DetailedScanRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".BreachWatch.DetailedScanRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -194327,7 +158242,7 @@ export const BreachWatch = $root.BreachWatch = (() => { let object = {}; if (options.defaults) object.email = ""; - if (message.email != null && message.hasOwnProperty("email")) + if (message.email != null && Object.hasOwnProperty.call(message, "email")) object.email = message.email; return object; }; @@ -194426,19 +158341,6 @@ export const BreachWatch = $root.BreachWatch = (() => { return writer; }; - /** - * Encodes the specified UseOneTimeTokenRequest message, length delimited. Does not implicitly {@link BreachWatch.UseOneTimeTokenRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof BreachWatch.UseOneTimeTokenRequest - * @static - * @param {BreachWatch.IUseOneTimeTokenRequest} message UseOneTimeTokenRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - UseOneTimeTokenRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a UseOneTimeTokenRequest message from the specified reader or buffer. * @function decode @@ -194475,43 +158377,6 @@ export const BreachWatch = $root.BreachWatch = (() => { return message; }; - /** - * Decodes a UseOneTimeTokenRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof BreachWatch.UseOneTimeTokenRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {BreachWatch.UseOneTimeTokenRequest} UseOneTimeTokenRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - UseOneTimeTokenRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a UseOneTimeTokenRequest message. - * @function verify - * @memberof BreachWatch.UseOneTimeTokenRequest - * @static - * @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) { - if (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"; - return null; - }; - /** * Creates a UseOneTimeTokenRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -194523,6 +158388,8 @@ export const BreachWatch = $root.BreachWatch = (() => { UseOneTimeTokenRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.BreachWatch.UseOneTimeTokenRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".BreachWatch.UseOneTimeTokenRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -194561,7 +158428,7 @@ export const BreachWatch = $root.BreachWatch = (() => { if (options.bytes !== Array) object.token = $util.newBuffer(object.token); } - if (message.token != null && message.hasOwnProperty("token")) + if (message.token != null && Object.hasOwnProperty.call(message, "token")) object.token = options.bytes === String ? $util.base64.encode(message.token, 0, message.token.length) : options.bytes === Array ? Array.prototype.slice.call(message.token) : message.token; return object; }; @@ -194704,19 +158571,6 @@ export const BreachWatch = $root.BreachWatch = (() => { return writer; }; - /** - * Encodes the specified BreachEvent message, length delimited. Does not implicitly {@link BreachWatch.BreachEvent.verify|verify} messages. - * @function encodeDelimited - * @memberof BreachWatch.BreachEvent - * @static - * @param {BreachWatch.IBreachEvent} message BreachEvent message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - BreachEvent.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a BreachEvent message from the specified reader or buffer. * @function decode @@ -194769,55 +158623,6 @@ export const BreachWatch = $root.BreachWatch = (() => { return message; }; - /** - * Decodes a BreachEvent message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof BreachWatch.BreachEvent - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {BreachWatch.BreachEvent} BreachEvent - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - BreachEvent.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a BreachEvent message. - * @function verify - * @memberof BreachWatch.BreachEvent - * @static - * @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) { - if (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"; - if (message.email != null && message.hasOwnProperty("email")) - if (!$util.isString(message.email)) - return "email: string expected"; - if (message.passwordInBreach != null && message.hasOwnProperty("passwordInBreach")) - if (typeof message.passwordInBreach !== "boolean") - return "passwordInBreach: boolean expected"; - if (message.date != null && message.hasOwnProperty("date")) - if (!$util.isString(message.date)) - return "date: string expected"; - if (message.description != null && message.hasOwnProperty("description")) - if (!$util.isString(message.description)) - return "description: string expected"; - return null; - }; - /** * Creates a BreachEvent message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -194829,6 +158634,8 @@ export const BreachWatch = $root.BreachWatch = (() => { BreachEvent.fromObject = function fromObject(object, long) { if (object instanceof $root.BreachWatch.BreachEvent) return object; + if (!$util.isObject(object)) + throw TypeError(".BreachWatch.BreachEvent: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -194871,15 +158678,15 @@ export const BreachWatch = $root.BreachWatch = (() => { object.date = ""; object.description = ""; } - if (message.site != null && message.hasOwnProperty("site")) + if (message.site != null && Object.hasOwnProperty.call(message, "site")) object.site = message.site; - if (message.email != null && message.hasOwnProperty("email")) + if (message.email != null && Object.hasOwnProperty.call(message, "email")) object.email = message.email; - if (message.passwordInBreach != null && message.hasOwnProperty("passwordInBreach")) + if (message.passwordInBreach != null && Object.hasOwnProperty.call(message, "passwordInBreach")) object.passwordInBreach = message.passwordInBreach; - if (message.date != null && message.hasOwnProperty("date")) + if (message.date != null && Object.hasOwnProperty.call(message, "date")) object.date = message.date; - if (message.description != null && message.hasOwnProperty("description")) + if (message.description != null && Object.hasOwnProperty.call(message, "description")) object.description = message.description; return object; }; @@ -195013,19 +158820,6 @@ export const BreachWatch = $root.BreachWatch = (() => { return writer; }; - /** - * Encodes the specified UseOneTimeTokenResponse message, length delimited. Does not implicitly {@link BreachWatch.UseOneTimeTokenResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof BreachWatch.UseOneTimeTokenResponse - * @static - * @param {BreachWatch.IUseOneTimeTokenResponse} message UseOneTimeTokenResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - UseOneTimeTokenResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a UseOneTimeTokenResponse message from the specified reader or buffer. * @function decode @@ -195076,58 +158870,6 @@ export const BreachWatch = $root.BreachWatch = (() => { return message; }; - /** - * Decodes a UseOneTimeTokenResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof BreachWatch.UseOneTimeTokenResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {BreachWatch.UseOneTimeTokenResponse} UseOneTimeTokenResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - UseOneTimeTokenResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a UseOneTimeTokenResponse message. - * @function verify - * @memberof BreachWatch.UseOneTimeTokenResponse - * @static - * @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) { - if (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"; - if (message.passwordBreaches != null && message.hasOwnProperty("passwordBreaches")) - if (!$util.isInteger(message.passwordBreaches)) - return "passwordBreaches: integer expected"; - if (message.breachEvents != null && message.hasOwnProperty("breachEvents")) { - 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); - if (error) - return "breachEvents." + error; - } - } - if (message.email != null && message.hasOwnProperty("email")) - if (!$util.isString(message.email)) - return "email: string expected"; - return null; - }; - /** * Creates a UseOneTimeTokenResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -195139,6 +158881,8 @@ export const BreachWatch = $root.BreachWatch = (() => { UseOneTimeTokenResponse.fromObject = function fromObject(object, long) { if (object instanceof $root.BreachWatch.UseOneTimeTokenResponse) return object; + if (!$util.isObject(object)) + throw TypeError(".BreachWatch.UseOneTimeTokenResponse: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -195153,7 +158897,7 @@ export const BreachWatch = $root.BreachWatch = (() => { throw TypeError(".BreachWatch.UseOneTimeTokenResponse.breachEvents: array expected"); message.breachEvents = []; for (let i = 0; i < object.breachEvents.length; ++i) { - if (typeof object.breachEvents[i] !== "object") + if (!$util.isObject(object.breachEvents[i])) throw TypeError(".BreachWatch.UseOneTimeTokenResponse.breachEvents: object expected"); message.breachEvents[i] = $root.BreachWatch.BreachEvent.fromObject(object.breachEvents[i], long + 1); } @@ -195187,16 +158931,16 @@ export const BreachWatch = $root.BreachWatch = (() => { object.passwordBreaches = 0; object.email = ""; } - if (message.emailBreaches != null && message.hasOwnProperty("emailBreaches")) + if (message.emailBreaches != null && Object.hasOwnProperty.call(message, "emailBreaches")) object.emailBreaches = message.emailBreaches; - if (message.passwordBreaches != null && message.hasOwnProperty("passwordBreaches")) + if (message.passwordBreaches != null && Object.hasOwnProperty.call(message, "passwordBreaches")) object.passwordBreaches = message.passwordBreaches; 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); } - if (message.email != null && message.hasOwnProperty("email")) + if (message.email != null && Object.hasOwnProperty.call(message, "email")) object.email = message.email; return object; }; @@ -195306,19 +159050,6 @@ export const BreachWatch = $root.BreachWatch = (() => { return writer; }; - /** - * Encodes the specified OneTimeUseToken message, length delimited. Does not implicitly {@link BreachWatch.OneTimeUseToken.verify|verify} messages. - * @function encodeDelimited - * @memberof BreachWatch.OneTimeUseToken - * @static - * @param {BreachWatch.IOneTimeUseToken} message OneTimeUseToken message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - OneTimeUseToken.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes an OneTimeUseToken message from the specified reader or buffer. * @function decode @@ -195359,46 +159090,6 @@ export const BreachWatch = $root.BreachWatch = (() => { return message; }; - /** - * Decodes an OneTimeUseToken message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof BreachWatch.OneTimeUseToken - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {BreachWatch.OneTimeUseToken} OneTimeUseToken - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - OneTimeUseToken.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an OneTimeUseToken message. - * @function verify - * @memberof BreachWatch.OneTimeUseToken - * @static - * @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) { - if (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"; - if (message.pad != null && message.hasOwnProperty("pad")) - if (!$util.isString(message.pad)) - return "pad: string expected"; - return null; - }; - /** * Creates an OneTimeUseToken message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -195410,6 +159101,8 @@ export const BreachWatch = $root.BreachWatch = (() => { OneTimeUseToken.fromObject = function fromObject(object, long) { if (object instanceof $root.BreachWatch.OneTimeUseToken) return object; + if (!$util.isObject(object)) + throw TypeError(".BreachWatch.OneTimeUseToken: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -195443,9 +159136,9 @@ export const BreachWatch = $root.BreachWatch = (() => { object.email = ""; object.pad = ""; } - if (message.email != null && message.hasOwnProperty("email")) + if (message.email != null && Object.hasOwnProperty.call(message, "email")) object.email = message.email; - if (message.pad != null && message.hasOwnProperty("pad")) + if (message.pad != null && Object.hasOwnProperty.call(message, "pad")) object.pad = message.pad; return object; }; @@ -195544,19 +159237,6 @@ export const BreachWatch = $root.BreachWatch = (() => { return writer; }; - /** - * Encodes the specified FreePasswordScanRequest message, length delimited. Does not implicitly {@link BreachWatch.FreePasswordScanRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof BreachWatch.FreePasswordScanRequest - * @static - * @param {BreachWatch.IFreePasswordScanRequest} message FreePasswordScanRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - FreePasswordScanRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a FreePasswordScanRequest message from the specified reader or buffer. * @function decode @@ -195593,43 +159273,6 @@ export const BreachWatch = $root.BreachWatch = (() => { return message; }; - /** - * Decodes a FreePasswordScanRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof BreachWatch.FreePasswordScanRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {BreachWatch.FreePasswordScanRequest} FreePasswordScanRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - FreePasswordScanRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a FreePasswordScanRequest message. - * @function verify - * @memberof BreachWatch.FreePasswordScanRequest - * @static - * @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) { - if (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"; - return null; - }; - /** * Creates a FreePasswordScanRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -195641,6 +159284,8 @@ export const BreachWatch = $root.BreachWatch = (() => { FreePasswordScanRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.BreachWatch.FreePasswordScanRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".BreachWatch.FreePasswordScanRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -195679,7 +159324,7 @@ export const BreachWatch = $root.BreachWatch = (() => { if (options.bytes !== Array) object.hashedPassword = $util.newBuffer(object.hashedPassword); } - if (message.hashedPassword != null && message.hasOwnProperty("hashedPassword")) + if (message.hashedPassword != null && Object.hasOwnProperty.call(message, "hashedPassword")) object.hashedPassword = options.bytes === String ? $util.base64.encode(message.hashedPassword, 0, message.hashedPassword.length) : options.bytes === Array ? Array.prototype.slice.call(message.hashedPassword) : message.hashedPassword; return object; }; @@ -195778,19 +159423,6 @@ export const BreachWatch = $root.BreachWatch = (() => { return writer; }; - /** - * Encodes the specified FreePasswordScanResponse message, length delimited. Does not implicitly {@link BreachWatch.FreePasswordScanResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof BreachWatch.FreePasswordScanResponse - * @static - * @param {BreachWatch.IFreePasswordScanResponse} message FreePasswordScanResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - FreePasswordScanResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a FreePasswordScanResponse message from the specified reader or buffer. * @function decode @@ -195827,43 +159459,6 @@ export const BreachWatch = $root.BreachWatch = (() => { return message; }; - /** - * Decodes a FreePasswordScanResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof BreachWatch.FreePasswordScanResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {BreachWatch.FreePasswordScanResponse} FreePasswordScanResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - FreePasswordScanResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a FreePasswordScanResponse message. - * @function verify - * @memberof BreachWatch.FreePasswordScanResponse - * @static - * @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) { - if (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"; - return null; - }; - /** * Creates a FreePasswordScanResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -195875,6 +159470,8 @@ export const BreachWatch = $root.BreachWatch = (() => { FreePasswordScanResponse.fromObject = function fromObject(object, long) { if (object instanceof $root.BreachWatch.FreePasswordScanResponse) return object; + if (!$util.isObject(object)) + throw TypeError(".BreachWatch.FreePasswordScanResponse: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -195915,7 +159512,7 @@ export const BreachWatch = $root.BreachWatch = (() => { object.passwordBreaches = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; } else object.passwordBreaches = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; - if (message.passwordBreaches != null && message.hasOwnProperty("passwordBreaches")) + if (message.passwordBreaches != null && Object.hasOwnProperty.call(message, "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") @@ -196044,19 +159641,6 @@ export const Tokens = $root.Tokens = (() => { return writer; }; - /** - * Encodes the specified BreachWatchUpdateRequest message, length delimited. Does not implicitly {@link Tokens.BreachWatchUpdateRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof Tokens.BreachWatchUpdateRequest - * @static - * @param {Tokens.IBreachWatchUpdateRequest} message BreachWatchUpdateRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - BreachWatchUpdateRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a BreachWatchUpdateRequest message from the specified reader or buffer. * @function decode @@ -196099,52 +159683,6 @@ export const Tokens = $root.Tokens = (() => { return message; }; - /** - * Decodes a BreachWatchUpdateRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Tokens.BreachWatchUpdateRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Tokens.BreachWatchUpdateRequest} BreachWatchUpdateRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - BreachWatchUpdateRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a BreachWatchUpdateRequest message. - * @function verify - * @memberof Tokens.BreachWatchUpdateRequest - * @static - * @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) { - if (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); - if (error) - return "breachWatchRecordRequest." + error; - } - } - if (message.encryptedData != null && message.hasOwnProperty("encryptedData")) - if (!(message.encryptedData && typeof message.encryptedData.length === "number" || $util.isString(message.encryptedData))) - return "encryptedData: buffer expected"; - return null; - }; - /** * Creates a BreachWatchUpdateRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -196156,6 +159694,8 @@ export const Tokens = $root.Tokens = (() => { BreachWatchUpdateRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.Tokens.BreachWatchUpdateRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".Tokens.BreachWatchUpdateRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -196166,7 +159706,7 @@ export const Tokens = $root.Tokens = (() => { throw TypeError(".Tokens.BreachWatchUpdateRequest.breachWatchRecordRequest: array expected"); message.breachWatchRecordRequest = []; for (let i = 0; i < object.breachWatchRecordRequest.length; ++i) { - if (typeof object.breachWatchRecordRequest[i] !== "object") + if (!$util.isObject(object.breachWatchRecordRequest[i])) throw TypeError(".Tokens.BreachWatchUpdateRequest.breachWatchRecordRequest: object expected"); message.breachWatchRecordRequest[i] = $root.Tokens.BreachWatchRecordRequest.fromObject(object.breachWatchRecordRequest[i], long + 1); } @@ -196211,7 +159751,7 @@ export const Tokens = $root.Tokens = (() => { for (let j = 0; j < message.breachWatchRecordRequest.length; ++j) object.breachWatchRecordRequest[j] = $root.Tokens.BreachWatchRecordRequest.toObject(message.breachWatchRecordRequest[j], options, q + 1); } - if (message.encryptedData != null && message.hasOwnProperty("encryptedData")) + if (message.encryptedData != null && Object.hasOwnProperty.call(message, "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; return object; }; @@ -196343,19 +159883,6 @@ export const Tokens = $root.Tokens = (() => { return writer; }; - /** - * Encodes the specified BreachWatchRecordRequest message, length delimited. Does not implicitly {@link Tokens.BreachWatchRecordRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof Tokens.BreachWatchRecordRequest - * @static - * @param {Tokens.IBreachWatchRecordRequest} message BreachWatchRecordRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - BreachWatchRecordRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a BreachWatchRecordRequest message from the specified reader or buffer. * @function decode @@ -196404,57 +159931,6 @@ export const Tokens = $root.Tokens = (() => { return message; }; - /** - * Decodes a BreachWatchRecordRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Tokens.BreachWatchRecordRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Tokens.BreachWatchRecordRequest} BreachWatchRecordRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - BreachWatchRecordRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a BreachWatchRecordRequest message. - * @function verify - * @memberof Tokens.BreachWatchRecordRequest - * @static - * @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) { - if (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.encryptedData != null && message.hasOwnProperty("encryptedData")) - if (!(message.encryptedData && typeof message.encryptedData.length === "number" || $util.isString(message.encryptedData))) - return "encryptedData: buffer expected"; - if (message.breachWatchInfoType != null && message.hasOwnProperty("breachWatchInfoType")) - switch (message.breachWatchInfoType) { - default: - return "breachWatchInfoType: enum value expected"; - case 0: - case 1: - break; - } - if (message.updateUserWhoScanned != null && message.hasOwnProperty("updateUserWhoScanned")) - if (typeof message.updateUserWhoScanned !== "boolean") - return "updateUserWhoScanned: boolean expected"; - return null; - }; - /** * Creates a BreachWatchRecordRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -196466,6 +159942,8 @@ export const Tokens = $root.Tokens = (() => { BreachWatchRecordRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.Tokens.BreachWatchRecordRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".Tokens.BreachWatchRecordRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -196537,13 +160015,13 @@ export const Tokens = $root.Tokens = (() => { object.breachWatchInfoType = options.enums === String ? "RECORD" : 0; object.updateUserWhoScanned = false; } - if (message.recordUid != null && message.hasOwnProperty("recordUid")) + if (message.recordUid != null && Object.hasOwnProperty.call(message, "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.encryptedData != null && message.hasOwnProperty("encryptedData")) + if (message.encryptedData != null && Object.hasOwnProperty.call(message, "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; - if (message.breachWatchInfoType != null && message.hasOwnProperty("breachWatchInfoType")) + if (message.breachWatchInfoType != null && Object.hasOwnProperty.call(message, "breachWatchInfoType")) object.breachWatchInfoType = options.enums === String ? $root.Tokens.BreachWatchInfoType[message.breachWatchInfoType] === undefined ? message.breachWatchInfoType : $root.Tokens.BreachWatchInfoType[message.breachWatchInfoType] : message.breachWatchInfoType; - if (message.updateUserWhoScanned != null && message.hasOwnProperty("updateUserWhoScanned")) + if (message.updateUserWhoScanned != null && Object.hasOwnProperty.call(message, "updateUserWhoScanned")) object.updateUserWhoScanned = message.updateUserWhoScanned; return object; }; @@ -196684,19 +160162,6 @@ export const Tokens = $root.Tokens = (() => { return writer; }; - /** - * Encodes the specified BreachWatchData message, length delimited. Does not implicitly {@link Tokens.BreachWatchData.verify|verify} messages. - * @function encodeDelimited - * @memberof Tokens.BreachWatchData - * @static - * @param {Tokens.IBreachWatchData} message BreachWatchData message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - BreachWatchData.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a BreachWatchData message from the specified reader or buffer. * @function decode @@ -196747,67 +160212,6 @@ export const Tokens = $root.Tokens = (() => { return message; }; - /** - * Decodes a BreachWatchData message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Tokens.BreachWatchData - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Tokens.BreachWatchData} BreachWatchData - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - BreachWatchData.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a BreachWatchData message. - * @function verify - * @memberof Tokens.BreachWatchData - * @static - * @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) { - if (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); - if (error) - return "passwords." + error; - } - } - if (message.emails != null && message.hasOwnProperty("emails")) { - 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); - if (error) - return "emails." + error; - } - } - if (message.domains != null && message.hasOwnProperty("domains")) { - 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); - if (error) - return "domains." + error; - } - } - return null; - }; - /** * Creates a BreachWatchData message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -196819,6 +160223,8 @@ export const Tokens = $root.Tokens = (() => { BreachWatchData.fromObject = function fromObject(object, long) { if (object instanceof $root.Tokens.BreachWatchData) return object; + if (!$util.isObject(object)) + throw TypeError(".Tokens.BreachWatchData: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -196829,7 +160235,7 @@ export const Tokens = $root.Tokens = (() => { throw TypeError(".Tokens.BreachWatchData.passwords: array expected"); message.passwords = []; for (let i = 0; i < object.passwords.length; ++i) { - if (typeof object.passwords[i] !== "object") + if (!$util.isObject(object.passwords[i])) throw TypeError(".Tokens.BreachWatchData.passwords: object expected"); message.passwords[i] = $root.Tokens.BWPassword.fromObject(object.passwords[i], long + 1); } @@ -196839,7 +160245,7 @@ export const Tokens = $root.Tokens = (() => { throw TypeError(".Tokens.BreachWatchData.emails: array expected"); message.emails = []; for (let i = 0; i < object.emails.length; ++i) { - if (typeof object.emails[i] !== "object") + if (!$util.isObject(object.emails[i])) throw TypeError(".Tokens.BreachWatchData.emails: object expected"); message.emails[i] = $root.Tokens.BWPassword.fromObject(object.emails[i], long + 1); } @@ -196849,7 +160255,7 @@ export const Tokens = $root.Tokens = (() => { throw TypeError(".Tokens.BreachWatchData.domains: array expected"); message.domains = []; for (let i = 0; i < object.domains.length; ++i) { - if (typeof object.domains[i] !== "object") + if (!$util.isObject(object.domains[i])) throw TypeError(".Tokens.BreachWatchData.domains: object expected"); message.domains[i] = $root.Tokens.BWPassword.fromObject(object.domains[i], long + 1); } @@ -197024,19 +160430,6 @@ export const Tokens = $root.Tokens = (() => { return writer; }; - /** - * Encodes the specified BWPassword message, length delimited. Does not implicitly {@link Tokens.BWPassword.verify|verify} messages. - * @function encodeDelimited - * @memberof Tokens.BWPassword - * @static - * @param {Tokens.IBWPassword} message BWPassword message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - BWPassword.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a BWPassword message from the specified reader or buffer. * @function decode @@ -197085,60 +160478,6 @@ export const Tokens = $root.Tokens = (() => { return message; }; - /** - * Decodes a BWPassword message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Tokens.BWPassword - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Tokens.BWPassword} BWPassword - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - BWPassword.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a BWPassword message. - * @function verify - * @memberof Tokens.BWPassword - * @static - * @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) { - if (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"; - if (message.resolved != null && message.hasOwnProperty("resolved")) - if (!$util.isInteger(message.resolved) && !(message.resolved && $util.isInteger(message.resolved.low) && $util.isInteger(message.resolved.high))) - return "resolved: integer|Long expected"; - if (message.status != null && message.hasOwnProperty("status")) - switch (message.status) { - default: - return "status: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - break; - } - if (message.euid != null && message.hasOwnProperty("euid")) - if (!(message.euid && typeof message.euid.length === "number" || $util.isString(message.euid))) - return "euid: buffer expected"; - return null; - }; - /** * Creates a BWPassword message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -197150,6 +160489,8 @@ export const Tokens = $root.Tokens = (() => { BWPassword.fromObject = function fromObject(object, long) { if (object instanceof $root.Tokens.BWPassword) return object; + if (!$util.isObject(object)) + throw TypeError(".Tokens.BWPassword: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -197235,18 +160576,18 @@ export const Tokens = $root.Tokens = (() => { object.euid = $util.newBuffer(object.euid); } } - if (message.value != null && message.hasOwnProperty("value")) + if (message.value != null && Object.hasOwnProperty.call(message, "value")) object.value = message.value; - if (message.resolved != null && message.hasOwnProperty("resolved")) + if (message.resolved != null && Object.hasOwnProperty.call(message, "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") 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; - if (message.status != null && message.hasOwnProperty("status")) + if (message.status != null && Object.hasOwnProperty.call(message, "status")) object.status = options.enums === String ? $root.Tokens.BWStatus[message.status] === undefined ? message.status : $root.Tokens.BWStatus[message.status] : message.status; - if (message.euid != null && message.hasOwnProperty("euid")) + if (message.euid != null && Object.hasOwnProperty.call(message, "euid")) object.euid = options.bytes === String ? $util.base64.encode(message.euid, 0, message.euid.length) : options.bytes === Array ? Array.prototype.slice.call(message.euid) : message.euid; return object; }; @@ -197376,19 +160717,6 @@ export const Tokens = $root.Tokens = (() => { return writer; }; - /** - * Encodes the specified DeviceToken message, length delimited. Does not implicitly {@link Tokens.DeviceToken.verify|verify} messages. - * @function encodeDelimited - * @memberof Tokens.DeviceToken - * @static - * @param {Tokens.IDeviceToken} message DeviceToken message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - DeviceToken.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a DeviceToken message from the specified reader or buffer. * @function decode @@ -197429,46 +160757,6 @@ export const Tokens = $root.Tokens = (() => { return message; }; - /** - * Decodes a DeviceToken message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Tokens.DeviceToken - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Tokens.DeviceToken} DeviceToken - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - DeviceToken.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a DeviceToken message. - * @function verify - * @memberof Tokens.DeviceToken - * @static - * @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) { - if (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"; - if (message.region != null && message.hasOwnProperty("region")) - if (!$util.isInteger(message.region)) - return "region: integer expected"; - return null; - }; - /** * Creates a DeviceToken message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -197480,6 +160768,8 @@ export const Tokens = $root.Tokens = (() => { DeviceToken.fromObject = function fromObject(object, long) { if (object instanceof $root.Tokens.DeviceToken) return object; + if (!$util.isObject(object)) + throw TypeError(".Tokens.DeviceToken: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -197524,14 +160814,14 @@ export const Tokens = $root.Tokens = (() => { object.deviceId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; object.region = 0; } - if (message.deviceId != null && message.hasOwnProperty("deviceId")) + if (message.deviceId != null && Object.hasOwnProperty.call(message, "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") 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.region != null && message.hasOwnProperty("region")) + if (message.region != null && Object.hasOwnProperty.call(message, "region")) object.region = message.region; return object; }; @@ -197663,19 +160953,6 @@ export const Tokens = $root.Tokens = (() => { return writer; }; - /** - * Encodes the specified SSOLoginToken message, length delimited. Does not implicitly {@link Tokens.SSOLoginToken.verify|verify} messages. - * @function encodeDelimited - * @memberof Tokens.SSOLoginToken - * @static - * @param {Tokens.ISSOLoginToken} message SSOLoginToken message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SSOLoginToken.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a SSOLoginToken message from the specified reader or buffer. * @function decode @@ -197724,52 +161001,6 @@ export const Tokens = $root.Tokens = (() => { return message; }; - /** - * Decodes a SSOLoginToken message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Tokens.SSOLoginToken - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Tokens.SSOLoginToken} SSOLoginToken - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SSOLoginToken.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a SSOLoginToken message. - * @function verify - * @memberof Tokens.SSOLoginToken - * @static - * @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) { - if (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"; - if (message.username != null && message.hasOwnProperty("username")) - if (!$util.isString(message.username)) - return "username: string expected"; - if (message.alias != null && message.hasOwnProperty("alias")) - if (!$util.isString(message.alias)) - return "alias: string expected"; - if (message.displayname != null && message.hasOwnProperty("displayname")) - if (!$util.isString(message.displayname)) - return "displayname: string expected"; - return null; - }; - /** * Creates a SSOLoginToken message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -197781,6 +161012,8 @@ export const Tokens = $root.Tokens = (() => { SSOLoginToken.fromObject = function fromObject(object, long) { if (object instanceof $root.Tokens.SSOLoginToken) return object; + if (!$util.isObject(object)) + throw TypeError(".Tokens.SSOLoginToken: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -197831,18 +161064,18 @@ export const Tokens = $root.Tokens = (() => { object.alias = ""; object.displayname = ""; } - if (message.ssoServiceProviderId != null && message.hasOwnProperty("ssoServiceProviderId")) + if (message.ssoServiceProviderId != null && Object.hasOwnProperty.call(message, "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") 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.username != null && message.hasOwnProperty("username")) + if (message.username != null && Object.hasOwnProperty.call(message, "username")) object.username = message.username; - if (message.alias != null && message.hasOwnProperty("alias")) + if (message.alias != null && Object.hasOwnProperty.call(message, "alias")) object.alias = message.alias; - if (message.displayname != null && message.hasOwnProperty("displayname")) + if (message.displayname != null && Object.hasOwnProperty.call(message, "displayname")) object.displayname = message.displayname; return object; }; @@ -197952,19 +161185,6 @@ export const Tokens = $root.Tokens = (() => { return writer; }; - /** - * Encodes the specified PasskeyLoginToken message, length delimited. Does not implicitly {@link Tokens.PasskeyLoginToken.verify|verify} messages. - * @function encodeDelimited - * @memberof Tokens.PasskeyLoginToken - * @static - * @param {Tokens.IPasskeyLoginToken} message PasskeyLoginToken message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - PasskeyLoginToken.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a PasskeyLoginToken message from the specified reader or buffer. * @function decode @@ -198005,46 +161225,6 @@ export const Tokens = $root.Tokens = (() => { return message; }; - /** - * Decodes a PasskeyLoginToken message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Tokens.PasskeyLoginToken - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Tokens.PasskeyLoginToken} PasskeyLoginToken - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - PasskeyLoginToken.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a PasskeyLoginToken message. - * @function verify - * @memberof Tokens.PasskeyLoginToken - * @static - * @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) { - if (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"; - if (message.challenge != null && message.hasOwnProperty("challenge")) - if (!(message.challenge && typeof message.challenge.length === "number" || $util.isString(message.challenge))) - return "challenge: buffer expected"; - return null; - }; - /** * Creates a PasskeyLoginToken message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -198056,6 +161236,8 @@ export const Tokens = $root.Tokens = (() => { PasskeyLoginToken.fromObject = function fromObject(object, long) { if (object instanceof $root.Tokens.PasskeyLoginToken) return object; + if (!$util.isObject(object)) + throw TypeError(".Tokens.PasskeyLoginToken: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -198109,14 +161291,14 @@ export const Tokens = $root.Tokens = (() => { object.challenge = $util.newBuffer(object.challenge); } } - if (message.passkeyVerificationMS != null && message.hasOwnProperty("passkeyVerificationMS")) + if (message.passkeyVerificationMS != null && Object.hasOwnProperty.call(message, "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") 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; - if (message.challenge != null && message.hasOwnProperty("challenge")) + if (message.challenge != null && Object.hasOwnProperty.call(message, "challenge")) object.challenge = options.bytes === String ? $util.base64.encode(message.challenge, 0, message.challenge.length) : options.bytes === Array ? Array.prototype.slice.call(message.challenge) : message.challenge; return object; }; @@ -198391,19 +161573,6 @@ export const Tokens = $root.Tokens = (() => { return writer; }; - /** - * Encodes the specified LoginToken message, length delimited. Does not implicitly {@link Tokens.LoginToken.verify|verify} messages. - * @function encodeDelimited - * @memberof Tokens.LoginToken - * @static - * @param {Tokens.ILoginToken} message LoginToken message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - LoginToken.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a LoginToken message from the specified reader or buffer. * @function decode @@ -198504,165 +161673,6 @@ export const Tokens = $root.Tokens = (() => { return message; }; - /** - * Decodes a LoginToken message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Tokens.LoginToken - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Tokens.LoginToken} LoginToken - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - LoginToken.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a LoginToken message. - * @function verify - * @memberof Tokens.LoginToken - * @static - * @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) { - if (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"; - 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"; - if (message.accountUid != null && message.hasOwnProperty("accountUid")) - if (!(message.accountUid && typeof message.accountUid.length === "number" || $util.isString(message.accountUid))) - return "accountUid: buffer expected"; - if (message.messageSessionUid != null && message.hasOwnProperty("messageSessionUid")) - if (!(message.messageSessionUid && typeof message.messageSessionUid.length === "number" || $util.isString(message.messageSessionUid))) - return "messageSessionUid: buffer expected"; - if (message.loginState != null && message.hasOwnProperty("loginState")) - switch (message.loginState) { - default: - return "loginState: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: - case 9: - case 10: - case 12: - case 13: - case 14: - case 15: - case 16: - case 17: - case 18: - case 19: - case 20: - case 21: - case 22: - case 99: - break; - } - if (message.loginMethod != null && message.hasOwnProperty("loginMethod")) - switch (message.loginMethod) { - default: - return "loginMethod: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - break; - } - 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"; - if (message.userId != null && message.hasOwnProperty("userId")) - if (!$util.isInteger(message.userId)) - return "userId: integer expected"; - 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"; - if (message.clientVersionId != null && message.hasOwnProperty("clientVersionId")) - if (!$util.isInteger(message.clientVersionId)) - return "clientVersionId: integer expected"; - if (message.supportedLanguage != null && message.hasOwnProperty("supportedLanguage")) - switch (message.supportedLanguage) { - default: - return "supportedLanguage: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: - case 9: - case 10: - case 11: - case 12: - case 13: - case 14: - case 15: - case 16: - case 17: - case 18: - case 19: - case 20: - case 21: - case 22: - break; - } - if (message.ssoLoginToken != null && message.hasOwnProperty("ssoLoginToken")) { - let error = $root.Tokens.SSOLoginToken.verify(message.ssoLoginToken, long + 1); - if (error) - return "ssoLoginToken." + error; - } - if (message.username != null && message.hasOwnProperty("username")) - if (!$util.isString(message.username)) - return "username: string expected"; - if (message.relogin != null && message.hasOwnProperty("relogin")) - if (typeof message.relogin !== "boolean") - return "relogin: boolean expected"; - if (message.loginType != null && message.hasOwnProperty("loginType")) - switch (message.loginType) { - default: - return "loginType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - break; - } - if (message.fromUserId != null && message.hasOwnProperty("fromUserId")) - 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); - if (error) - return "passkeyLoginToken." + error; - } - return null; - }; - /** * Creates a LoginToken message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -198674,6 +161684,8 @@ export const Tokens = $root.Tokens = (() => { LoginToken.fromObject = function fromObject(object, long) { if (object instanceof $root.Tokens.LoginToken) return object; + if (!$util.isObject(object)) + throw TypeError(".Tokens.LoginToken: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -198958,7 +161970,7 @@ export const Tokens = $root.Tokens = (() => { break; } if (object.ssoLoginToken != null) { - if (typeof object.ssoLoginToken !== "object") + if (!$util.isObject(object.ssoLoginToken)) throw TypeError(".Tokens.LoginToken.ssoLoginToken: object expected"); message.ssoLoginToken = $root.Tokens.SSOLoginToken.fromObject(object.ssoLoginToken, long + 1); } @@ -199005,7 +162017,7 @@ export const Tokens = $root.Tokens = (() => { if (object.fromUserId != null) message.fromUserId = object.fromUserId | 0; if (object.passkeyLoginToken != null) { - if (typeof object.passkeyLoginToken !== "object") + if (!$util.isObject(object.passkeyLoginToken)) throw TypeError(".Tokens.LoginToken.passkeyLoginToken: object expected"); message.passkeyLoginToken = $root.Tokens.PasskeyLoginToken.fromObject(object.passkeyLoginToken, long + 1); } @@ -199076,59 +162088,59 @@ export const Tokens = $root.Tokens = (() => { object.fromUserId = 0; object.passkeyLoginToken = null; } - if (message.loginSessionId != null && message.hasOwnProperty("loginSessionId")) + if (message.loginSessionId != null && Object.hasOwnProperty.call(message, "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") 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 (message.deviceId != null && Object.hasOwnProperty.call(message, "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") 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.accountUid != null && message.hasOwnProperty("accountUid")) + if (message.accountUid != null && Object.hasOwnProperty.call(message, "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.messageSessionUid != null && message.hasOwnProperty("messageSessionUid")) + if (message.messageSessionUid != null && Object.hasOwnProperty.call(message, "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.loginState != null && message.hasOwnProperty("loginState")) + if (message.loginState != null && Object.hasOwnProperty.call(message, "loginState")) object.loginState = options.enums === String ? $root.Authentication.LoginState[message.loginState] === undefined ? message.loginState : $root.Authentication.LoginState[message.loginState] : message.loginState; - if (message.loginMethod != null && message.hasOwnProperty("loginMethod")) + if (message.loginMethod != null && Object.hasOwnProperty.call(message, "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 (message.creation != null && Object.hasOwnProperty.call(message, "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") 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")) + if (message.userId != null && Object.hasOwnProperty.call(message, "userId")) object.userId = message.userId; - if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) + if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, "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") 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.clientVersionId != null && message.hasOwnProperty("clientVersionId")) + if (message.clientVersionId != null && Object.hasOwnProperty.call(message, "clientVersionId")) object.clientVersionId = message.clientVersionId; - if (message.supportedLanguage != null && message.hasOwnProperty("supportedLanguage")) + if (message.supportedLanguage != null && Object.hasOwnProperty.call(message, "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")) + if (message.ssoLoginToken != null && Object.hasOwnProperty.call(message, "ssoLoginToken")) object.ssoLoginToken = $root.Tokens.SSOLoginToken.toObject(message.ssoLoginToken, options, q + 1); - if (message.username != null && message.hasOwnProperty("username")) + if (message.username != null && Object.hasOwnProperty.call(message, "username")) object.username = message.username; - if (message.relogin != null && message.hasOwnProperty("relogin")) + if (message.relogin != null && Object.hasOwnProperty.call(message, "relogin")) object.relogin = message.relogin; - if (message.loginType != null && message.hasOwnProperty("loginType")) + if (message.loginType != null && Object.hasOwnProperty.call(message, "loginType")) object.loginType = options.enums === String ? $root.Authentication.LoginType[message.loginType] === undefined ? message.loginType : $root.Authentication.LoginType[message.loginType] : message.loginType; - if (message.fromUserId != null && message.hasOwnProperty("fromUserId")) + if (message.fromUserId != null && Object.hasOwnProperty.call(message, "fromUserId")) object.fromUserId = message.fromUserId; - if (message.passkeyLoginToken != null && message.hasOwnProperty("passkeyLoginToken")) + if (message.passkeyLoginToken != null && Object.hasOwnProperty.call(message, "passkeyLoginToken")) object.passkeyLoginToken = $root.Tokens.PasskeyLoginToken.toObject(message.passkeyLoginToken, options, q + 1); return object; }; @@ -199260,19 +162272,6 @@ export const Tokens = $root.Tokens = (() => { return writer; }; - /** - * Encodes the specified DeviceApprovalToken message, length delimited. Does not implicitly {@link Tokens.DeviceApprovalToken.verify|verify} messages. - * @function encodeDelimited - * @memberof Tokens.DeviceApprovalToken - * @static - * @param {Tokens.IDeviceApprovalToken} message DeviceApprovalToken message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - DeviceApprovalToken.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a DeviceApprovalToken message from the specified reader or buffer. * @function decode @@ -199321,80 +162320,6 @@ export const Tokens = $root.Tokens = (() => { return message; }; - /** - * Decodes a DeviceApprovalToken message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Tokens.DeviceApprovalToken - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Tokens.DeviceApprovalToken} DeviceApprovalToken - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - DeviceApprovalToken.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a DeviceApprovalToken message. - * @function verify - * @memberof Tokens.DeviceApprovalToken - * @static - * @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) { - if (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"; - 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"; - if (message.deviceToken != null && message.hasOwnProperty("deviceToken")) { - let error = $root.Tokens.DeviceToken.verify(message.deviceToken, long + 1); - if (error) - return "deviceToken." + error; - } - if (message.supportedLanguage != null && message.hasOwnProperty("supportedLanguage")) - switch (message.supportedLanguage) { - default: - return "supportedLanguage: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: - case 9: - case 10: - case 11: - case 12: - case 13: - case 14: - case 15: - case 16: - case 17: - case 18: - case 19: - case 20: - case 21: - case 22: - break; - } - return null; - }; - /** * Creates a DeviceApprovalToken message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -199406,6 +162331,8 @@ export const Tokens = $root.Tokens = (() => { DeviceApprovalToken.fromObject = function fromObject(object, long) { if (object instanceof $root.Tokens.DeviceApprovalToken) return object; + if (!$util.isObject(object)) + throw TypeError(".Tokens.DeviceApprovalToken: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -199430,7 +162357,7 @@ export const Tokens = $root.Tokens = (() => { else if (typeof object.expiration === "object") message.expiration = new $util.LongBits(object.expiration.low >>> 0, object.expiration.high >>> 0).toNumber(); if (object.deviceToken != null) { - if (typeof object.deviceToken !== "object") + if (!$util.isObject(object.deviceToken)) throw TypeError(".Tokens.DeviceApprovalToken.deviceToken: object expected"); message.deviceToken = $root.Tokens.DeviceToken.fromObject(object.deviceToken, long + 1); } @@ -199568,23 +162495,23 @@ export const Tokens = $root.Tokens = (() => { object.deviceToken = null; object.supportedLanguage = options.enums === String ? "ENGLISH" : 0; } - if (message.creation != null && message.hasOwnProperty("creation")) + if (message.creation != null && Object.hasOwnProperty.call(message, "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") 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 (message.expiration != null && Object.hasOwnProperty.call(message, "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") 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")) + if (message.deviceToken != null && Object.hasOwnProperty.call(message, "deviceToken")) object.deviceToken = $root.Tokens.DeviceToken.toObject(message.deviceToken, options, q + 1); - if (message.supportedLanguage != null && message.hasOwnProperty("supportedLanguage")) + if (message.supportedLanguage != null && Object.hasOwnProperty.call(message, "supportedLanguage")) object.supportedLanguage = options.enums === String ? $root.Authentication.SupportedLanguage[message.supportedLanguage] === undefined ? message.supportedLanguage : $root.Authentication.SupportedLanguage[message.supportedLanguage] : message.supportedLanguage; return object; }; @@ -199716,19 +162643,6 @@ export const Tokens = $root.Tokens = (() => { return writer; }; - /** - * Encodes the specified TwoFactorToken message, length delimited. Does not implicitly {@link Tokens.TwoFactorToken.verify|verify} messages. - * @function encodeDelimited - * @memberof Tokens.TwoFactorToken - * @static - * @param {Tokens.ITwoFactorToken} message TwoFactorToken message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TwoFactorToken.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a TwoFactorToken message from the specified reader or buffer. * @function decode @@ -199777,54 +162691,6 @@ export const Tokens = $root.Tokens = (() => { return message; }; - /** - * Decodes a TwoFactorToken message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Tokens.TwoFactorToken - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Tokens.TwoFactorToken} TwoFactorToken - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TwoFactorToken.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a TwoFactorToken message. - * @function verify - * @memberof Tokens.TwoFactorToken - * @static - * @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) { - if (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"; - 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"; - if (message.deviceToken != null && message.hasOwnProperty("deviceToken")) { - let error = $root.Tokens.DeviceToken.verify(message.deviceToken, long + 1); - if (error) - return "deviceToken." + error; - } - if (message.deviceIp != null && message.hasOwnProperty("deviceIp")) - if (!$util.isString(message.deviceIp)) - return "deviceIp: string expected"; - return null; - }; - /** * Creates a TwoFactorToken message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -199836,6 +162702,8 @@ export const Tokens = $root.Tokens = (() => { TwoFactorToken.fromObject = function fromObject(object, long) { if (object instanceof $root.Tokens.TwoFactorToken) return object; + if (!$util.isObject(object)) + throw TypeError(".Tokens.TwoFactorToken: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -199860,7 +162728,7 @@ export const Tokens = $root.Tokens = (() => { else if (typeof object.expiration === "object") message.expiration = new $util.LongBits(object.expiration.low >>> 0, object.expiration.high >>> 0).toNumber(); if (object.deviceToken != null) { - if (typeof object.deviceToken !== "object") + if (!$util.isObject(object.deviceToken)) throw TypeError(".Tokens.TwoFactorToken.deviceToken: object expected"); message.deviceToken = $root.Tokens.DeviceToken.fromObject(object.deviceToken, long + 1); } @@ -199900,23 +162768,23 @@ export const Tokens = $root.Tokens = (() => { object.deviceToken = null; object.deviceIp = ""; } - if (message.creation != null && message.hasOwnProperty("creation")) + if (message.creation != null && Object.hasOwnProperty.call(message, "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") 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 (message.expiration != null && Object.hasOwnProperty.call(message, "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") 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")) + if (message.deviceToken != null && Object.hasOwnProperty.call(message, "deviceToken")) object.deviceToken = $root.Tokens.DeviceToken.toObject(message.deviceToken, options, q + 1); - if (message.deviceIp != null && message.hasOwnProperty("deviceIp")) + if (message.deviceIp != null && Object.hasOwnProperty.call(message, "deviceIp")) object.deviceIp = message.deviceIp; return object; }; @@ -200048,19 +162916,6 @@ export const Tokens = $root.Tokens = (() => { return writer; }; - /** - * Encodes the specified BreachWatchToken message, length delimited. Does not implicitly {@link Tokens.BreachWatchToken.verify|verify} messages. - * @function encodeDelimited - * @memberof Tokens.BreachWatchToken - * @static - * @param {Tokens.IBreachWatchToken} message BreachWatchToken message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - BreachWatchToken.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a BreachWatchToken message from the specified reader or buffer. * @function decode @@ -200109,52 +162964,6 @@ export const Tokens = $root.Tokens = (() => { return message; }; - /** - * Decodes a BreachWatchToken message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Tokens.BreachWatchToken - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Tokens.BreachWatchToken} BreachWatchToken - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - BreachWatchToken.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a BreachWatchToken message. - * @function verify - * @memberof Tokens.BreachWatchToken - * @static - * @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) { - if (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"; - if (message.domainUid != null && message.hasOwnProperty("domainUid")) - if (!(message.domainUid && typeof message.domainUid.length === "number" || $util.isString(message.domainUid))) - return "domainUid: buffer expected"; - if (message.emailUid != null && message.hasOwnProperty("emailUid")) - if (!(message.emailUid && typeof message.emailUid.length === "number" || $util.isString(message.emailUid))) - return "emailUid: buffer expected"; - if (message.passwordUid != null && message.hasOwnProperty("passwordUid")) - if (!(message.passwordUid && typeof message.passwordUid.length === "number" || $util.isString(message.passwordUid))) - return "passwordUid: buffer expected"; - return null; - }; - /** * Creates a BreachWatchToken message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -200166,6 +162975,8 @@ export const Tokens = $root.Tokens = (() => { BreachWatchToken.fromObject = function fromObject(object, long) { if (object instanceof $root.Tokens.BreachWatchToken) return object; + if (!$util.isObject(object)) + throw TypeError(".Tokens.BreachWatchToken: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -200232,13 +163043,13 @@ export const Tokens = $root.Tokens = (() => { object.passwordUid = $util.newBuffer(object.passwordUid); } } - if (message.userId != null && message.hasOwnProperty("userId")) + if (message.userId != null && Object.hasOwnProperty.call(message, "userId")) object.userId = message.userId; - if (message.domainUid != null && message.hasOwnProperty("domainUid")) + if (message.domainUid != null && Object.hasOwnProperty.call(message, "domainUid")) object.domainUid = options.bytes === String ? $util.base64.encode(message.domainUid, 0, message.domainUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.domainUid) : message.domainUid; - if (message.emailUid != null && message.hasOwnProperty("emailUid")) + if (message.emailUid != null && Object.hasOwnProperty.call(message, "emailUid")) object.emailUid = options.bytes === String ? $util.base64.encode(message.emailUid, 0, message.emailUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.emailUid) : message.emailUid; - if (message.passwordUid != null && message.hasOwnProperty("passwordUid")) + if (message.passwordUid != null && Object.hasOwnProperty.call(message, "passwordUid")) object.passwordUid = options.bytes === String ? $util.base64.encode(message.passwordUid, 0, message.passwordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.passwordUid) : message.passwordUid; return object; }; @@ -200386,19 +163197,6 @@ export const Tokens = $root.Tokens = (() => { return writer; }; - /** - * Encodes the specified AnonymizedToken message, length delimited. Does not implicitly {@link Tokens.AnonymizedToken.verify|verify} messages. - * @function encodeDelimited - * @memberof Tokens.AnonymizedToken - * @static - * @param {Tokens.IAnonymizedToken} message AnonymizedToken message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - AnonymizedToken.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes an AnonymizedToken message from the specified reader or buffer. * @function decode @@ -200447,58 +163245,6 @@ export const Tokens = $root.Tokens = (() => { return message; }; - /** - * Decodes an AnonymizedToken message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Tokens.AnonymizedToken - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Tokens.AnonymizedToken} AnonymizedToken - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - AnonymizedToken.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an AnonymizedToken message. - * @function verify - * @memberof Tokens.AnonymizedToken - * @static - * @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) { - if (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"; - 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"; - 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.anonymizedTokenType != null && message.hasOwnProperty("anonymizedTokenType")) - switch (message.anonymizedTokenType) { - default: - return "anonymizedTokenType: enum value expected"; - case 0: - case 1: - case 2: - break; - } - return null; - }; - /** * Creates an AnonymizedToken message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -200510,6 +163256,8 @@ export const Tokens = $root.Tokens = (() => { AnonymizedToken.fromObject = function fromObject(object, long) { if (object instanceof $root.Tokens.AnonymizedToken) return object; + if (!$util.isObject(object)) + throw TypeError(".Tokens.AnonymizedToken: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -200598,23 +163346,23 @@ export const Tokens = $root.Tokens = (() => { } object.anonymizedTokenType = options.enums === String ? "DAT" : 0; } - if (message.created != null && message.hasOwnProperty("created")) + if (message.created != null && Object.hasOwnProperty.call(message, "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") 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 (message.expiration != null && Object.hasOwnProperty.call(message, "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") 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.uid != null && message.hasOwnProperty("uid")) + if (message.uid != null && Object.hasOwnProperty.call(message, "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.anonymizedTokenType != null && message.hasOwnProperty("anonymizedTokenType")) + if (message.anonymizedTokenType != null && Object.hasOwnProperty.call(message, "anonymizedTokenType")) object.anonymizedTokenType = options.enums === String ? $root.Tokens.AnonymizedTokenType[message.anonymizedTokenType] === undefined ? message.anonymizedTokenType : $root.Tokens.AnonymizedTokenType[message.anonymizedTokenType] : message.anonymizedTokenType; return object; }; @@ -200724,19 +163472,6 @@ export const Tokens = $root.Tokens = (() => { return writer; }; - /** - * Encodes the specified LicenseToken message, length delimited. Does not implicitly {@link Tokens.LicenseToken.verify|verify} messages. - * @function encodeDelimited - * @memberof Tokens.LicenseToken - * @static - * @param {Tokens.ILicenseToken} message LicenseToken message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - LicenseToken.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a LicenseToken message from the specified reader or buffer. * @function decode @@ -200777,53 +163512,6 @@ export const Tokens = $root.Tokens = (() => { return message; }; - /** - * Decodes a LicenseToken message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Tokens.LicenseToken - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Tokens.LicenseToken} LicenseToken - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - LicenseToken.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a LicenseToken message. - * @function verify - * @memberof Tokens.LicenseToken - * @static - * @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) { - if (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"; - if (message.licenseStatus != null && message.hasOwnProperty("licenseStatus")) - switch (message.licenseStatus) { - default: - return "licenseStatus: enum value expected"; - case 0: - case 1: - case 2: - case 3: - break; - } - return null; - }; - /** * Creates a LicenseToken message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -200835,6 +163523,8 @@ export const Tokens = $root.Tokens = (() => { LicenseToken.fromObject = function fromObject(object, long) { if (object instanceof $root.Tokens.LicenseToken) return object; + if (!$util.isObject(object)) + throw TypeError(".Tokens.LicenseToken: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -200901,14 +163591,14 @@ export const Tokens = $root.Tokens = (() => { object.expiration = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; object.licenseStatus = options.enums === String ? "OTHER" : 0; } - if (message.expiration != null && message.hasOwnProperty("expiration")) + if (message.expiration != null && Object.hasOwnProperty.call(message, "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") 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.licenseStatus != null && message.hasOwnProperty("licenseStatus")) + if (message.licenseStatus != null && Object.hasOwnProperty.call(message, "licenseStatus")) object.licenseStatus = options.enums === String ? $root.Authentication.LicenseStatus[message.licenseStatus] === undefined ? message.licenseStatus : $root.Authentication.LicenseStatus[message.licenseStatus] : message.licenseStatus; return object; }; @@ -201265,19 +163955,6 @@ export const Tokens = $root.Tokens = (() => { return writer; }; - /** - * Encodes the specified SessionToken message, length delimited. Does not implicitly {@link Tokens.SessionToken.verify|verify} messages. - * @function encodeDelimited - * @memberof Tokens.SessionToken - * @static - * @param {Tokens.ISessionToken} message SessionToken message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SessionToken.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a SessionToken message from the specified reader or buffer. * @function decode @@ -201402,140 +164079,6 @@ export const Tokens = $root.Tokens = (() => { return message; }; - /** - * Decodes a SessionToken message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Tokens.SessionToken - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Tokens.SessionToken} SessionToken - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SessionToken.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a SessionToken message. - * @function verify - * @memberof Tokens.SessionToken - * @static - * @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) { - if (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"; - 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"; - if (message.du1 != null && message.hasOwnProperty("du1")) - if (!$util.isString(message.du1)) - return "du1: string expected"; - if (message.messageSessionUid != null && message.hasOwnProperty("messageSessionUid")) - 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); - if (error) - return "du8." + error; - } - if (message.fromUserId != null && message.hasOwnProperty("fromUserId")) - if (!$util.isInteger(message.fromUserId)) - return "fromUserId: integer expected"; - if (message.forUserId != null && message.hasOwnProperty("forUserId")) - if (!$util.isInteger(message.forUserId)) - return "forUserId: integer expected"; - 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"; - if (message.du2 != null && message.hasOwnProperty("du2")) { - let error = $root.Tokens.LicenseToken.verify(message.du2, long + 1); - if (error) - return "du2." + error; - } - if (message.du3 != null && message.hasOwnProperty("du3")) { - let error = $root.Tokens.LicenseToken.verify(message.du3, long + 1); - if (error) - return "du3." + error; - } - if (message.du4 != null && message.hasOwnProperty("du4")) { - let error = $root.Tokens.LicenseToken.verify(message.du4, long + 1); - if (error) - return "du4." + error; - } - if (message.du5 != null && message.hasOwnProperty("du5")) { - let error = $root.Tokens.LicenseToken.verify(message.du5, long + 1); - if (error) - return "du5." + error; - } - if (message.du6 != null && message.hasOwnProperty("du6")) - switch (message.du6) { - default: - return "du6: enum value expected"; - case 0: - case 1: - case 2: - break; - } - if (message.clientVersionId != null && message.hasOwnProperty("clientVersionId")) - if (!$util.isInteger(message.clientVersionId)) - return "clientVersionId: integer expected"; - if (message.sessionTokenType != null && message.hasOwnProperty("sessionTokenType")) - switch (message.sessionTokenType) { - default: - return "sessionTokenType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: - case 9: - case 10: - case 11: - break; - } - if (message.mcEnterpriseId != null && message.hasOwnProperty("mcEnterpriseId")) - if (!$util.isInteger(message.mcEnterpriseId)) - return "mcEnterpriseId: integer expected"; - if (message.du7 != null && message.hasOwnProperty("du7")) - if (typeof message.du7 !== "boolean") - return "du7: boolean expected"; - 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"; - 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"; - if (message.clientTypeId != null && message.hasOwnProperty("clientTypeId")) - if (!$util.isInteger(message.clientTypeId)) - return "clientTypeId: integer expected"; - if (message.ipAddress != null && message.hasOwnProperty("ipAddress")) - if (!$util.isInteger(message.ipAddress) && !(message.ipAddress && $util.isInteger(message.ipAddress.low) && $util.isInteger(message.ipAddress.high))) - return "ipAddress: integer|Long expected"; - if (message.latitude != null && message.hasOwnProperty("latitude")) - if (typeof message.latitude !== "number") - return "latitude: number expected"; - if (message.longitude != null && message.hasOwnProperty("longitude")) - if (typeof message.longitude !== "number") - return "longitude: number expected"; - return null; - }; - /** * Creates a SessionToken message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -201547,6 +164090,8 @@ export const Tokens = $root.Tokens = (() => { SessionToken.fromObject = function fromObject(object, long) { if (object instanceof $root.Tokens.SessionToken) return object; + if (!$util.isObject(object)) + throw TypeError(".Tokens.SessionToken: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -201578,7 +164123,7 @@ export const Tokens = $root.Tokens = (() => { else if (object.messageSessionUid.length >= 0) message.messageSessionUid = object.messageSessionUid; if (object.du8 != null) { - if (typeof object.du8 !== "object") + if (!$util.isObject(object.du8)) throw TypeError(".Tokens.SessionToken.du8: object expected"); message.du8 = $root.Tokens.DeviceToken.fromObject(object.du8, long + 1); } @@ -201596,22 +164141,22 @@ export const Tokens = $root.Tokens = (() => { else if (typeof object.enterpriseUserId === "object") message.enterpriseUserId = new $util.LongBits(object.enterpriseUserId.low >>> 0, object.enterpriseUserId.high >>> 0).toNumber(); if (object.du2 != null) { - if (typeof object.du2 !== "object") + if (!$util.isObject(object.du2)) throw TypeError(".Tokens.SessionToken.du2: object expected"); message.du2 = $root.Tokens.LicenseToken.fromObject(object.du2, long + 1); } if (object.du3 != null) { - if (typeof object.du3 !== "object") + if (!$util.isObject(object.du3)) throw TypeError(".Tokens.SessionToken.du3: object expected"); message.du3 = $root.Tokens.LicenseToken.fromObject(object.du3, long + 1); } if (object.du4 != null) { - if (typeof object.du4 !== "object") + if (!$util.isObject(object.du4)) throw TypeError(".Tokens.SessionToken.du4: object expected"); message.du4 = $root.Tokens.LicenseToken.fromObject(object.du4, long + 1); } if (object.du5 != null) { - if (typeof object.du5 !== "object") + if (!$util.isObject(object.du5)) throw TypeError(".Tokens.SessionToken.du5: object expected"); message.du5 = $root.Tokens.LicenseToken.fromObject(object.du5, long + 1); } @@ -201805,81 +164350,81 @@ export const Tokens = $root.Tokens = (() => { object.latitude = 0; object.longitude = 0; } - if (message.created != null && message.hasOwnProperty("created")) + if (message.created != null && Object.hasOwnProperty.call(message, "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") 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 (message.expiration != null && Object.hasOwnProperty.call(message, "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") 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.du1 != null && message.hasOwnProperty("du1")) + if (message.du1 != null && Object.hasOwnProperty.call(message, "du1")) object.du1 = message.du1; - if (message.messageSessionUid != null && message.hasOwnProperty("messageSessionUid")) + if (message.messageSessionUid != null && Object.hasOwnProperty.call(message, "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")) + if (message.du8 != null && Object.hasOwnProperty.call(message, "du8")) object.du8 = $root.Tokens.DeviceToken.toObject(message.du8, options, q + 1); - if (message.fromUserId != null && message.hasOwnProperty("fromUserId")) + if (message.fromUserId != null && Object.hasOwnProperty.call(message, "fromUserId")) object.fromUserId = message.fromUserId; - if (message.forUserId != null && message.hasOwnProperty("forUserId")) + if (message.forUserId != null && Object.hasOwnProperty.call(message, "forUserId")) object.forUserId = message.forUserId; - if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) + if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, "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") 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 (message.du2 != null && Object.hasOwnProperty.call(message, "du2")) object.du2 = $root.Tokens.LicenseToken.toObject(message.du2, options, q + 1); - if (message.du3 != null && message.hasOwnProperty("du3")) + if (message.du3 != null && Object.hasOwnProperty.call(message, "du3")) object.du3 = $root.Tokens.LicenseToken.toObject(message.du3, options, q + 1); - if (message.du4 != null && message.hasOwnProperty("du4")) + if (message.du4 != null && Object.hasOwnProperty.call(message, "du4")) object.du4 = $root.Tokens.LicenseToken.toObject(message.du4, options, q + 1); - if (message.du6 != null && message.hasOwnProperty("du6")) + if (message.du6 != null && Object.hasOwnProperty.call(message, "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")) + if (message.clientVersionId != null && Object.hasOwnProperty.call(message, "clientVersionId")) object.clientVersionId = message.clientVersionId; - if (message.sessionTokenType != null && message.hasOwnProperty("sessionTokenType")) + if (message.sessionTokenType != null && Object.hasOwnProperty.call(message, "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")) + if (message.du5 != null && Object.hasOwnProperty.call(message, "du5")) object.du5 = $root.Tokens.LicenseToken.toObject(message.du5, options, q + 1); - if (message.mcEnterpriseId != null && message.hasOwnProperty("mcEnterpriseId")) + if (message.mcEnterpriseId != null && Object.hasOwnProperty.call(message, "mcEnterpriseId")) object.mcEnterpriseId = message.mcEnterpriseId; - if (message.du7 != null && message.hasOwnProperty("du7")) + if (message.du7 != null && Object.hasOwnProperty.call(message, "du7")) object.du7 = message.du7; - if (message.deviceId != null && message.hasOwnProperty("deviceId")) + if (message.deviceId != null && Object.hasOwnProperty.call(message, "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") 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 (message.loginSessionId != null && Object.hasOwnProperty.call(message, "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") 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")) + if (message.clientTypeId != null && Object.hasOwnProperty.call(message, "clientTypeId")) object.clientTypeId = message.clientTypeId; - if (message.ipAddress != null && message.hasOwnProperty("ipAddress")) + if (message.ipAddress != null && Object.hasOwnProperty.call(message, "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") 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; - if (message.latitude != null && message.hasOwnProperty("latitude")) + if (message.latitude != null && Object.hasOwnProperty.call(message, "latitude")) object.latitude = options.json && !isFinite(message.latitude) ? String(message.latitude) : message.latitude; - if (message.longitude != null && message.hasOwnProperty("longitude")) + if (message.longitude != null && Object.hasOwnProperty.call(message, "longitude")) object.longitude = options.json && !isFinite(message.longitude) ? String(message.longitude) : message.longitude; return object; }; @@ -201989,19 +164534,6 @@ export const Tokens = $root.Tokens = (() => { return writer; }; - /** - * Encodes the specified UserLicenseStatus message, length delimited. Does not implicitly {@link Tokens.UserLicenseStatus.verify|verify} messages. - * @function encodeDelimited - * @memberof Tokens.UserLicenseStatus - * @static - * @param {Tokens.IUserLicenseStatus} message UserLicenseStatus message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - UserLicenseStatus.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a UserLicenseStatus message from the specified reader or buffer. * @function decode @@ -202042,53 +164574,6 @@ export const Tokens = $root.Tokens = (() => { return message; }; - /** - * Decodes a UserLicenseStatus message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Tokens.UserLicenseStatus - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Tokens.UserLicenseStatus} UserLicenseStatus - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - UserLicenseStatus.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a UserLicenseStatus message. - * @function verify - * @memberof Tokens.UserLicenseStatus - * @static - * @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) { - if (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: - return "licenseType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - break; - } - 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"; - return null; - }; - /** * Creates a UserLicenseStatus message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -202100,6 +164585,8 @@ export const Tokens = $root.Tokens = (() => { UserLicenseStatus.fromObject = function fromObject(object, long) { if (object instanceof $root.Tokens.UserLicenseStatus) return object; + if (!$util.isObject(object)) + throw TypeError(".Tokens.UserLicenseStatus: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -202166,9 +164653,9 @@ export const Tokens = $root.Tokens = (() => { } else object.expiration = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; } - if (message.licenseType != null && message.hasOwnProperty("licenseType")) + if (message.licenseType != null && Object.hasOwnProperty.call(message, "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 (message.expiration != null && Object.hasOwnProperty.call(message, "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") @@ -202272,19 +164759,6 @@ export const Tokens = $root.Tokens = (() => { return writer; }; - /** - * Encodes the specified CheckOutTokenResponse message, length delimited. Does not implicitly {@link Tokens.CheckOutTokenResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof Tokens.CheckOutTokenResponse - * @static - * @param {Tokens.ICheckOutTokenResponse} message CheckOutTokenResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CheckOutTokenResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a CheckOutTokenResponse message from the specified reader or buffer. * @function decode @@ -202321,43 +164795,6 @@ export const Tokens = $root.Tokens = (() => { return message; }; - /** - * Decodes a CheckOutTokenResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Tokens.CheckOutTokenResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Tokens.CheckOutTokenResponse} CheckOutTokenResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CheckOutTokenResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a CheckOutTokenResponse message. - * @function verify - * @memberof Tokens.CheckOutTokenResponse - * @static - * @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) { - if (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"; - return null; - }; - /** * Creates a CheckOutTokenResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -202369,6 +164806,8 @@ export const Tokens = $root.Tokens = (() => { CheckOutTokenResponse.fromObject = function fromObject(object, long) { if (object instanceof $root.Tokens.CheckOutTokenResponse) return object; + if (!$util.isObject(object)) + throw TypeError(".Tokens.CheckOutTokenResponse: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -202398,7 +164837,7 @@ export const Tokens = $root.Tokens = (() => { let object = {}; if (options.defaults) object.checkOutToken = ""; - if (message.checkOutToken != null && message.hasOwnProperty("checkOutToken")) + if (message.checkOutToken != null && Object.hasOwnProperty.call(message, "checkOutToken")) object.checkOutToken = message.checkOutToken; return object; }; @@ -202519,19 +164958,6 @@ export const Tokens = $root.Tokens = (() => { return writer; }; - /** - * Encodes the specified ImporterToken message, length delimited. Does not implicitly {@link Tokens.ImporterToken.verify|verify} messages. - * @function encodeDelimited - * @memberof Tokens.ImporterToken - * @static - * @param {Tokens.IImporterToken} message ImporterToken message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ImporterToken.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes an ImporterToken message from the specified reader or buffer. * @function decode @@ -202576,49 +165002,6 @@ export const Tokens = $root.Tokens = (() => { return message; }; - /** - * Decodes an ImporterToken message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Tokens.ImporterToken - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Tokens.ImporterToken} ImporterToken - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ImporterToken.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an ImporterToken message. - * @function verify - * @memberof Tokens.ImporterToken - * @static - * @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) { - if (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"; - if (message.userId != null && message.hasOwnProperty("userId")) - if (!$util.isInteger(message.userId)) - return "userId: integer expected"; - if (message.region != null && message.hasOwnProperty("region")) - if (!$util.isString(message.region)) - return "region: string expected"; - return null; - }; - /** * Creates an ImporterToken message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -202630,6 +165013,8 @@ export const Tokens = $root.Tokens = (() => { ImporterToken.fromObject = function fromObject(object, long) { if (object instanceof $root.Tokens.ImporterToken) return object; + if (!$util.isObject(object)) + throw TypeError(".Tokens.ImporterToken: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -202666,11 +165051,11 @@ export const Tokens = $root.Tokens = (() => { object.userId = 0; object.region = ""; } - if (message.importId != null && message.hasOwnProperty("importId")) + if (message.importId != null && Object.hasOwnProperty.call(message, "importId")) object.importId = message.importId; - if (message.userId != null && message.hasOwnProperty("userId")) + if (message.userId != null && Object.hasOwnProperty.call(message, "userId")) object.userId = message.userId; - if (message.region != null && message.hasOwnProperty("region")) + if (message.region != null && Object.hasOwnProperty.call(message, "region")) object.region = message.region; return object; }; @@ -202824,19 +165209,6 @@ export const Tokens = $root.Tokens = (() => { return writer; }; - /** - * Encodes the specified ApiDecryptedRequest message, length delimited. Does not implicitly {@link Tokens.ApiDecryptedRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof Tokens.ApiDecryptedRequest - * @static - * @param {Tokens.IApiDecryptedRequest} message ApiDecryptedRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ApiDecryptedRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes an ApiDecryptedRequest message from the specified reader or buffer. * @function decode @@ -202893,86 +165265,6 @@ export const Tokens = $root.Tokens = (() => { return message; }; - /** - * Decodes an ApiDecryptedRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Tokens.ApiDecryptedRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Tokens.ApiDecryptedRequest} ApiDecryptedRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ApiDecryptedRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an ApiDecryptedRequest message. - * @function verify - * @memberof Tokens.ApiDecryptedRequest - * @static - * @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) { - if (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); - if (error) - return "apiRequestPayload." + error; - } - if (message.supportedLanguage != null && message.hasOwnProperty("supportedLanguage")) - switch (message.supportedLanguage) { - default: - return "supportedLanguage: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: - case 9: - case 10: - case 11: - case 12: - case 13: - case 14: - case 15: - case 16: - case 17: - case 18: - case 19: - case 20: - case 21: - case 22: - break; - } - if (message.recaptcha != null && message.hasOwnProperty("recaptcha")) - if (!$util.isString(message.recaptcha)) - return "recaptcha: string expected"; - if (message.userAgent != null && message.hasOwnProperty("userAgent")) - if (!$util.isString(message.userAgent)) - return "userAgent: string expected"; - if (message.subEnvironment != null && message.hasOwnProperty("subEnvironment")) - if (!$util.isString(message.subEnvironment)) - return "subEnvironment: string expected"; - return null; - }; - /** * Creates an ApiDecryptedRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -202984,6 +165276,8 @@ export const Tokens = $root.Tokens = (() => { ApiDecryptedRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.Tokens.ApiDecryptedRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".Tokens.ApiDecryptedRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -202995,7 +165289,7 @@ export const Tokens = $root.Tokens = (() => { else if (object.decryptedTransmissionKey.length >= 0) message.decryptedTransmissionKey = object.decryptedTransmissionKey; if (object.apiRequestPayload != null) { - if (typeof object.apiRequestPayload !== "object") + if (!$util.isObject(object.apiRequestPayload)) throw TypeError(".Tokens.ApiDecryptedRequest.apiRequestPayload: object expected"); message.apiRequestPayload = $root.Authentication.ApiRequestPayload.fromObject(object.apiRequestPayload, long + 1); } @@ -203139,17 +165433,17 @@ export const Tokens = $root.Tokens = (() => { object.userAgent = ""; object.subEnvironment = ""; } - if (message.decryptedTransmissionKey != null && message.hasOwnProperty("decryptedTransmissionKey")) + if (message.decryptedTransmissionKey != null && Object.hasOwnProperty.call(message, "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")) + if (message.apiRequestPayload != null && Object.hasOwnProperty.call(message, "apiRequestPayload")) object.apiRequestPayload = $root.Authentication.ApiRequestPayload.toObject(message.apiRequestPayload, options, q + 1); - if (message.supportedLanguage != null && message.hasOwnProperty("supportedLanguage")) + if (message.supportedLanguage != null && Object.hasOwnProperty.call(message, "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")) + if (message.recaptcha != null && Object.hasOwnProperty.call(message, "recaptcha")) object.recaptcha = message.recaptcha; - if (message.userAgent != null && message.hasOwnProperty("userAgent")) + if (message.userAgent != null && Object.hasOwnProperty.call(message, "userAgent")) object.userAgent = message.userAgent; - if (message.subEnvironment != null && message.hasOwnProperty("subEnvironment")) + if (message.subEnvironment != null && Object.hasOwnProperty.call(message, "subEnvironment")) object.subEnvironment = message.subEnvironment; return object; }; @@ -203303,19 +165597,6 @@ export const Tokens = $root.Tokens = (() => { return writer; }; - /** - * Encodes the specified ChangeEmailToken message, length delimited. Does not implicitly {@link Tokens.ChangeEmailToken.verify|verify} messages. - * @function encodeDelimited - * @memberof Tokens.ChangeEmailToken - * @static - * @param {Tokens.IChangeEmailToken} message ChangeEmailToken message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ChangeEmailToken.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a ChangeEmailToken message from the specified reader or buffer. * @function decode @@ -203372,84 +165653,6 @@ export const Tokens = $root.Tokens = (() => { return message; }; - /** - * Decodes a ChangeEmailToken message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Tokens.ChangeEmailToken - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Tokens.ChangeEmailToken} ChangeEmailToken - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ChangeEmailToken.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a ChangeEmailToken message. - * @function verify - * @memberof Tokens.ChangeEmailToken - * @static - * @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) { - if (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"; - if (message.newEmail != null && message.hasOwnProperty("newEmail")) - if (!$util.isString(message.newEmail)) - return "newEmail: string expected"; - if (message.supportedLanguage != null && message.hasOwnProperty("supportedLanguage")) - switch (message.supportedLanguage) { - default: - return "supportedLanguage: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: - case 9: - case 10: - case 11: - case 12: - case 13: - case 14: - case 15: - case 16: - case 17: - case 18: - case 19: - case 20: - case 21: - case 22: - break; - } - 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"; - 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"; - if (message.clientVersionId != null && message.hasOwnProperty("clientVersionId")) - if (!$util.isInteger(message.clientVersionId)) - return "clientVersionId: integer expected"; - return null; - }; - /** * Creates a ChangeEmailToken message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -203461,6 +165664,8 @@ export const Tokens = $root.Tokens = (() => { ChangeEmailToken.fromObject = function fromObject(object, long) { if (object instanceof $root.Tokens.ChangeEmailToken) return object; + if (!$util.isObject(object)) + throw TypeError(".Tokens.ChangeEmailToken: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -203626,27 +165831,27 @@ export const Tokens = $root.Tokens = (() => { object.creation = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; object.clientVersionId = 0; } - if (message.userId != null && message.hasOwnProperty("userId")) + if (message.userId != null && Object.hasOwnProperty.call(message, "userId")) object.userId = message.userId; - if (message.newEmail != null && message.hasOwnProperty("newEmail")) + if (message.newEmail != null && Object.hasOwnProperty.call(message, "newEmail")) object.newEmail = message.newEmail; - if (message.supportedLanguage != null && message.hasOwnProperty("supportedLanguage")) + if (message.supportedLanguage != null && Object.hasOwnProperty.call(message, "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 (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, "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") 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 (message.creation != null && Object.hasOwnProperty.call(message, "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") 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.clientVersionId != null && message.hasOwnProperty("clientVersionId")) + if (message.clientVersionId != null && Object.hasOwnProperty.call(message, "clientVersionId")) object.clientVersionId = message.clientVersionId; return object; }; @@ -203789,19 +165994,6 @@ export const Tokens = $root.Tokens = (() => { return writer; }; - /** - * Encodes the specified EmailVerificationToken message, length delimited. Does not implicitly {@link Tokens.EmailVerificationToken.verify|verify} messages. - * @function encodeDelimited - * @memberof Tokens.EmailVerificationToken - * @static - * @param {Tokens.IEmailVerificationToken} message EmailVerificationToken message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - EmailVerificationToken.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes an EmailVerificationToken message from the specified reader or buffer. * @function decode @@ -203854,55 +166046,6 @@ export const Tokens = $root.Tokens = (() => { return message; }; - /** - * Decodes an EmailVerificationToken message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Tokens.EmailVerificationToken - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Tokens.EmailVerificationToken} EmailVerificationToken - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - EmailVerificationToken.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an EmailVerificationToken message. - * @function verify - * @memberof Tokens.EmailVerificationToken - * @static - * @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) { - if (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"; - if (message.email != null && message.hasOwnProperty("email")) - if (!$util.isString(message.email)) - return "email: string expected"; - if (message.du1 != null && message.hasOwnProperty("du1")) - if (!$util.isString(message.du1)) - return "du1: string expected"; - 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"; - if (message.du2 != null && message.hasOwnProperty("du2")) - if (!$util.isInteger(message.du2) && !(message.du2 && $util.isInteger(message.du2.low) && $util.isInteger(message.du2.high))) - return "du2: integer|Long expected"; - return null; - }; - /** * Creates an EmailVerificationToken message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -203914,6 +166057,8 @@ export const Tokens = $root.Tokens = (() => { EmailVerificationToken.fromObject = function fromObject(object, long) { if (object instanceof $root.Tokens.EmailVerificationToken) return object; + if (!$util.isObject(object)) + throw TypeError(".Tokens.EmailVerificationToken: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -203978,20 +166123,20 @@ export const Tokens = $root.Tokens = (() => { } else object.du2 = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; } - if (message.userId != null && message.hasOwnProperty("userId")) + if (message.userId != null && Object.hasOwnProperty.call(message, "userId")) object.userId = message.userId; - if (message.email != null && message.hasOwnProperty("email")) + if (message.email != null && Object.hasOwnProperty.call(message, "email")) object.email = message.email; - if (message.du1 != null && message.hasOwnProperty("du1")) + if (message.du1 != null && Object.hasOwnProperty.call(message, "du1")) object.du1 = message.du1; - if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) + if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, "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") 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 (message.du2 != null && Object.hasOwnProperty.call(message, "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") @@ -204172,19 +166317,6 @@ export const Tokens = $root.Tokens = (() => { return writer; }; - /** - * Encodes the specified IpAddressVerificationToken message, length delimited. Does not implicitly {@link Tokens.IpAddressVerificationToken.verify|verify} messages. - * @function encodeDelimited - * @memberof Tokens.IpAddressVerificationToken - * @static - * @param {Tokens.IIpAddressVerificationToken} message IpAddressVerificationToken message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - IpAddressVerificationToken.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes an IpAddressVerificationToken message from the specified reader or buffer. * @function decode @@ -204249,64 +166381,6 @@ export const Tokens = $root.Tokens = (() => { return message; }; - /** - * Decodes an IpAddressVerificationToken message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Tokens.IpAddressVerificationToken - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Tokens.IpAddressVerificationToken} IpAddressVerificationToken - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - IpAddressVerificationToken.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an IpAddressVerificationToken message. - * @function verify - * @memberof Tokens.IpAddressVerificationToken - * @static - * @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) { - if (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"; - if (message.email != null && message.hasOwnProperty("email")) - if (!$util.isString(message.email)) - return "email: string expected"; - 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"; - if (message.ipAddress != null && message.hasOwnProperty("ipAddress")) - if (!$util.isString(message.ipAddress)) - return "ipAddress: string expected"; - if (message.du1 != null && message.hasOwnProperty("du1")) - if (!$util.isString(message.du1)) - return "du1: string expected"; - if (message.du2 != null && message.hasOwnProperty("du2")) - if (!$util.isInteger(message.du2) && !(message.du2 && $util.isInteger(message.du2.low) && $util.isInteger(message.du2.high))) - return "du2: integer|Long expected"; - if (message.enterpriseId != null && message.hasOwnProperty("enterpriseId")) - if (!$util.isInteger(message.enterpriseId)) - return "enterpriseId: integer expected"; - 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"; - return null; - }; - /** * Creates an IpAddressVerificationToken message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -204318,6 +166392,8 @@ export const Tokens = $root.Tokens = (() => { IpAddressVerificationToken.fromObject = function fromObject(object, long) { if (object instanceof $root.Tokens.IpAddressVerificationToken) return object; + if (!$util.isObject(object)) + throw TypeError(".Tokens.IpAddressVerificationToken: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -204402,31 +166478,31 @@ export const Tokens = $root.Tokens = (() => { } else object.deviceId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; } - if (message.userId != null && message.hasOwnProperty("userId")) + if (message.userId != null && Object.hasOwnProperty.call(message, "userId")) object.userId = message.userId; - if (message.email != null && message.hasOwnProperty("email")) + if (message.email != null && Object.hasOwnProperty.call(message, "email")) object.email = message.email; - if (message.ssoServiceProviderId != null && message.hasOwnProperty("ssoServiceProviderId")) + if (message.ssoServiceProviderId != null && Object.hasOwnProperty.call(message, "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") 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.ipAddress != null && message.hasOwnProperty("ipAddress")) + if (message.ipAddress != null && Object.hasOwnProperty.call(message, "ipAddress")) object.ipAddress = message.ipAddress; - if (message.du1 != null && message.hasOwnProperty("du1")) + if (message.du1 != null && Object.hasOwnProperty.call(message, "du1")) object.du1 = message.du1; - if (message.du2 != null && message.hasOwnProperty("du2")) + if (message.du2 != null && Object.hasOwnProperty.call(message, "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") 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")) + if (message.enterpriseId != null && Object.hasOwnProperty.call(message, "enterpriseId")) object.enterpriseId = message.enterpriseId; - if (message.deviceId != null && message.hasOwnProperty("deviceId")) + if (message.deviceId != null && Object.hasOwnProperty.call(message, "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") @@ -204585,19 +166661,6 @@ export const Tokens = $root.Tokens = (() => { return writer; }; - /** - * Encodes the specified EnterprisePersonalAccountToken message, length delimited. Does not implicitly {@link Tokens.EnterprisePersonalAccountToken.verify|verify} messages. - * @function encodeDelimited - * @memberof Tokens.EnterprisePersonalAccountToken - * @static - * @param {Tokens.IEnterprisePersonalAccountToken} message EnterprisePersonalAccountToken message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - EnterprisePersonalAccountToken.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes an EnterprisePersonalAccountToken message from the specified reader or buffer. * @function decode @@ -204654,84 +166717,6 @@ export const Tokens = $root.Tokens = (() => { return message; }; - /** - * Decodes an EnterprisePersonalAccountToken message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Tokens.EnterprisePersonalAccountToken - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Tokens.EnterprisePersonalAccountToken} EnterprisePersonalAccountToken - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - EnterprisePersonalAccountToken.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an EnterprisePersonalAccountToken message. - * @function verify - * @memberof Tokens.EnterprisePersonalAccountToken - * @static - * @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) { - if (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"; - if (message.email != null && message.hasOwnProperty("email")) - if (!$util.isString(message.email)) - return "email: string expected"; - if (message.supportedLanguage != null && message.hasOwnProperty("supportedLanguage")) - switch (message.supportedLanguage) { - default: - return "supportedLanguage: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: - case 9: - case 10: - case 11: - case 12: - case 13: - case 14: - case 15: - case 16: - case 17: - case 18: - case 19: - case 20: - case 21: - case 22: - break; - } - if (message.duration != null && message.hasOwnProperty("duration")) - if (!$util.isInteger(message.duration) && !(message.duration && $util.isInteger(message.duration.low) && $util.isInteger(message.duration.high))) - return "duration: integer|Long expected"; - if (message.referralName != null && message.hasOwnProperty("referralName")) - if (!$util.isString(message.referralName)) - return "referralName: string expected"; - 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"; - return null; - }; - /** * Creates an EnterprisePersonalAccountToken message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -204743,6 +166728,8 @@ export const Tokens = $root.Tokens = (() => { EnterprisePersonalAccountToken.fromObject = function fromObject(object, long) { if (object instanceof $root.Tokens.EnterprisePersonalAccountToken) return object; + if (!$util.isObject(object)) + throw TypeError(".Tokens.EnterprisePersonalAccountToken: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -204919,27 +166906,27 @@ export const Tokens = $root.Tokens = (() => { } else object.creation = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; } - if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) + if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, "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") 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.email != null && message.hasOwnProperty("email")) + if (message.email != null && Object.hasOwnProperty.call(message, "email")) object.email = message.email; - if (message.supportedLanguage != null && message.hasOwnProperty("supportedLanguage")) + if (message.supportedLanguage != null && Object.hasOwnProperty.call(message, "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 (message.duration != null && Object.hasOwnProperty.call(message, "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") 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")) + if (message.referralName != null && Object.hasOwnProperty.call(message, "referralName")) object.referralName = message.referralName; - if (message.creation != null && message.hasOwnProperty("creation")) + if (message.creation != null && Object.hasOwnProperty.call(message, "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") @@ -205109,19 +167096,6 @@ export const Tokens = $root.Tokens = (() => { return writer; }; - /** - * Encodes the specified UsernameVerificationToken message, length delimited. Does not implicitly {@link Tokens.UsernameVerificationToken.verify|verify} messages. - * @function encodeDelimited - * @memberof Tokens.UsernameVerificationToken - * @static - * @param {Tokens.IUsernameVerificationToken} message UsernameVerificationToken message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - UsernameVerificationToken.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a UsernameVerificationToken message from the specified reader or buffer. * @function decode @@ -205182,87 +167156,6 @@ export const Tokens = $root.Tokens = (() => { return message; }; - /** - * Decodes a UsernameVerificationToken message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Tokens.UsernameVerificationToken - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Tokens.UsernameVerificationToken} UsernameVerificationToken - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - UsernameVerificationToken.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a UsernameVerificationToken message. - * @function verify - * @memberof Tokens.UsernameVerificationToken - * @static - * @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) { - if (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"; - if (message.accountUid != null && message.hasOwnProperty("accountUid")) - if (!(message.accountUid && typeof message.accountUid.length === "number" || $util.isString(message.accountUid))) - return "accountUid: buffer expected"; - if (message.supportedLanguage != null && message.hasOwnProperty("supportedLanguage")) - switch (message.supportedLanguage) { - default: - return "supportedLanguage: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: - case 9: - case 10: - case 11: - case 12: - case 13: - case 14: - case 15: - case 16: - case 17: - case 18: - case 19: - case 20: - case 21: - case 22: - break; - } - 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"; - if (message.clientVersionId != null && message.hasOwnProperty("clientVersionId")) - if (!$util.isInteger(message.clientVersionId)) - return "clientVersionId: integer expected"; - if (message.alternateUsername != null && message.hasOwnProperty("alternateUsername")) - if (!$util.isString(message.alternateUsername)) - return "alternateUsername: string expected"; - if (message.toUsername != null && message.hasOwnProperty("toUsername")) - if (!$util.isString(message.toUsername)) - return "toUsername: string expected"; - return null; - }; - /** * Creates a UsernameVerificationToken message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -205274,6 +167167,8 @@ export const Tokens = $root.Tokens = (() => { UsernameVerificationToken.fromObject = function fromObject(object, long) { if (object instanceof $root.Tokens.UsernameVerificationToken) return object; + if (!$util.isObject(object)) + throw TypeError(".Tokens.UsernameVerificationToken: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -205440,24 +167335,24 @@ export const Tokens = $root.Tokens = (() => { object.alternateUsername = ""; object.toUsername = ""; } - if (message.username != null && message.hasOwnProperty("username")) + if (message.username != null && Object.hasOwnProperty.call(message, "username")) object.username = message.username; - if (message.accountUid != null && message.hasOwnProperty("accountUid")) + if (message.accountUid != null && Object.hasOwnProperty.call(message, "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.supportedLanguage != null && message.hasOwnProperty("supportedLanguage")) + if (message.supportedLanguage != null && Object.hasOwnProperty.call(message, "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 (message.creation != null && Object.hasOwnProperty.call(message, "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") 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.clientVersionId != null && message.hasOwnProperty("clientVersionId")) + if (message.clientVersionId != null && Object.hasOwnProperty.call(message, "clientVersionId")) object.clientVersionId = message.clientVersionId; - if (message.alternateUsername != null && message.hasOwnProperty("alternateUsername")) + if (message.alternateUsername != null && Object.hasOwnProperty.call(message, "alternateUsername")) object.alternateUsername = message.alternateUsername; - if (message.toUsername != null && message.hasOwnProperty("toUsername")) + if (message.toUsername != null && Object.hasOwnProperty.call(message, "toUsername")) object.toUsername = message.toUsername; return object; }; @@ -205633,19 +167528,6 @@ export const Tokens = $root.Tokens = (() => { return writer; }; - /** - * Encodes the specified DeviceVerificationToken message, length delimited. Does not implicitly {@link Tokens.DeviceVerificationToken.verify|verify} messages. - * @function encodeDelimited - * @memberof Tokens.DeviceVerificationToken - * @static - * @param {Tokens.IDeviceVerificationToken} message DeviceVerificationToken message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - DeviceVerificationToken.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a DeviceVerificationToken message from the specified reader or buffer. * @function decode @@ -205710,90 +167592,6 @@ export const Tokens = $root.Tokens = (() => { return message; }; - /** - * Decodes a DeviceVerificationToken message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Tokens.DeviceVerificationToken - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Tokens.DeviceVerificationToken} DeviceVerificationToken - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - DeviceVerificationToken.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a DeviceVerificationToken message. - * @function verify - * @memberof Tokens.DeviceVerificationToken - * @static - * @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) { - if (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"; - if (message.username != null && message.hasOwnProperty("username")) - if (!$util.isString(message.username)) - return "username: string expected"; - if (message.accountUid != null && message.hasOwnProperty("accountUid")) - if (!(message.accountUid && typeof message.accountUid.length === "number" || $util.isString(message.accountUid))) - return "accountUid: buffer expected"; - if (message.clientVersion != null && message.hasOwnProperty("clientVersion")) - if (!$util.isString(message.clientVersion)) - return "clientVersion: string expected"; - if (message.supportedLanguage != null && message.hasOwnProperty("supportedLanguage")) - switch (message.supportedLanguage) { - default: - return "supportedLanguage: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: - case 9: - case 10: - case 11: - case 12: - case 13: - case 14: - case 15: - case 16: - case 17: - case 18: - case 19: - case 20: - case 21: - case 22: - break; - } - 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"; - if (message.messageSessionUid != null && message.hasOwnProperty("messageSessionUid")) - if (!(message.messageSessionUid && typeof message.messageSessionUid.length === "number" || $util.isString(message.messageSessionUid))) - return "messageSessionUid: buffer expected"; - if (message.ipAddress != null && message.hasOwnProperty("ipAddress")) - if (!$util.isString(message.ipAddress)) - return "ipAddress: string expected"; - return null; - }; - /** * Creates a DeviceVerificationToken message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -205805,6 +167603,8 @@ export const Tokens = $root.Tokens = (() => { DeviceVerificationToken.fromObject = function fromObject(object, long) { if (object instanceof $root.Tokens.DeviceVerificationToken) return object; + if (!$util.isObject(object)) + throw TypeError(".Tokens.DeviceVerificationToken: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -205994,31 +167794,31 @@ export const Tokens = $root.Tokens = (() => { } object.ipAddress = ""; } - if (message.deviceId != null && message.hasOwnProperty("deviceId")) + if (message.deviceId != null && Object.hasOwnProperty.call(message, "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") 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.username != null && message.hasOwnProperty("username")) + if (message.username != null && Object.hasOwnProperty.call(message, "username")) object.username = message.username; - if (message.accountUid != null && message.hasOwnProperty("accountUid")) + if (message.accountUid != null && Object.hasOwnProperty.call(message, "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.clientVersion != null && message.hasOwnProperty("clientVersion")) + if (message.clientVersion != null && Object.hasOwnProperty.call(message, "clientVersion")) object.clientVersion = message.clientVersion; - if (message.supportedLanguage != null && message.hasOwnProperty("supportedLanguage")) + if (message.supportedLanguage != null && Object.hasOwnProperty.call(message, "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 (message.creation != null && Object.hasOwnProperty.call(message, "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") 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.messageSessionUid != null && message.hasOwnProperty("messageSessionUid")) + if (message.messageSessionUid != null && Object.hasOwnProperty.call(message, "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.ipAddress != null && message.hasOwnProperty("ipAddress")) + if (message.ipAddress != null && Object.hasOwnProperty.call(message, "ipAddress")) object.ipAddress = message.ipAddress; return object; }; @@ -206172,19 +167972,6 @@ export const Tokens = $root.Tokens = (() => { return writer; }; - /** - * Encodes the specified ReActivateDeviceApprovalRequestToken message, length delimited. Does not implicitly {@link Tokens.ReActivateDeviceApprovalRequestToken.verify|verify} messages. - * @function encodeDelimited - * @memberof Tokens.ReActivateDeviceApprovalRequestToken - * @static - * @param {Tokens.IReActivateDeviceApprovalRequestToken} message ReActivateDeviceApprovalRequestToken message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ReActivateDeviceApprovalRequestToken.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a ReActivateDeviceApprovalRequestToken message from the specified reader or buffer. * @function decode @@ -206241,84 +168028,6 @@ export const Tokens = $root.Tokens = (() => { return message; }; - /** - * Decodes a ReActivateDeviceApprovalRequestToken message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Tokens.ReActivateDeviceApprovalRequestToken - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Tokens.ReActivateDeviceApprovalRequestToken} ReActivateDeviceApprovalRequestToken - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ReActivateDeviceApprovalRequestToken.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a ReActivateDeviceApprovalRequestToken message. - * @function verify - * @memberof Tokens.ReActivateDeviceApprovalRequestToken - * @static - * @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) { - if (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"; - if (message.fromUsername != null && message.hasOwnProperty("fromUsername")) - if (!$util.isString(message.fromUsername)) - return "fromUsername: string expected"; - if (message.forUsername != null && message.hasOwnProperty("forUsername")) - if (!$util.isString(message.forUsername)) - return "forUsername: string expected"; - if (message.accountUid != null && message.hasOwnProperty("accountUid")) - if (!(message.accountUid && typeof message.accountUid.length === "number" || $util.isString(message.accountUid))) - return "accountUid: buffer expected"; - if (message.requestTimeStamp != null && message.hasOwnProperty("requestTimeStamp")) - if (!$util.isInteger(message.requestTimeStamp) && !(message.requestTimeStamp && $util.isInteger(message.requestTimeStamp.low) && $util.isInteger(message.requestTimeStamp.high))) - return "requestTimeStamp: integer|Long expected"; - if (message.supportedLanguage != null && message.hasOwnProperty("supportedLanguage")) - switch (message.supportedLanguage) { - default: - return "supportedLanguage: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: - case 9: - case 10: - case 11: - case 12: - case 13: - case 14: - case 15: - case 16: - case 17: - case 18: - case 19: - case 20: - case 21: - case 22: - break; - } - return null; - }; - /** * Creates a ReActivateDeviceApprovalRequestToken message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -206330,6 +168039,8 @@ export const Tokens = $root.Tokens = (() => { ReActivateDeviceApprovalRequestToken.fromObject = function fromObject(object, long) { if (object instanceof $root.Tokens.ReActivateDeviceApprovalRequestToken) return object; + if (!$util.isObject(object)) + throw TypeError(".Tokens.ReActivateDeviceApprovalRequestToken: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -206504,27 +168215,27 @@ export const Tokens = $root.Tokens = (() => { object.requestTimeStamp = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; object.supportedLanguage = options.enums === String ? "ENGLISH" : 0; } - if (message.deviceId != null && message.hasOwnProperty("deviceId")) + if (message.deviceId != null && Object.hasOwnProperty.call(message, "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") 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.fromUsername != null && message.hasOwnProperty("fromUsername")) + if (message.fromUsername != null && Object.hasOwnProperty.call(message, "fromUsername")) object.fromUsername = message.fromUsername; - if (message.forUsername != null && message.hasOwnProperty("forUsername")) + if (message.forUsername != null && Object.hasOwnProperty.call(message, "forUsername")) object.forUsername = message.forUsername; - if (message.accountUid != null && message.hasOwnProperty("accountUid")) + if (message.accountUid != null && Object.hasOwnProperty.call(message, "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 (message.requestTimeStamp != null && Object.hasOwnProperty.call(message, "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") 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; - if (message.supportedLanguage != null && message.hasOwnProperty("supportedLanguage")) + if (message.supportedLanguage != null && Object.hasOwnProperty.call(message, "supportedLanguage")) object.supportedLanguage = options.enums === String ? $root.Authentication.SupportedLanguage[message.supportedLanguage] === undefined ? message.supportedLanguage : $root.Authentication.SupportedLanguage[message.supportedLanguage] : message.supportedLanguage; return object; }; @@ -206689,19 +168400,6 @@ export const Tokens = $root.Tokens = (() => { return writer; }; - /** - * Encodes the specified CreateUserToken message, length delimited. Does not implicitly {@link Tokens.CreateUserToken.verify|verify} messages. - * @function encodeDelimited - * @memberof Tokens.CreateUserToken - * @static - * @param {Tokens.ICreateUserToken} message CreateUserToken message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CreateUserToken.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a CreateUserToken message from the specified reader or buffer. * @function decode @@ -206762,87 +168460,6 @@ export const Tokens = $root.Tokens = (() => { return message; }; - /** - * Decodes a CreateUserToken message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Tokens.CreateUserToken - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Tokens.CreateUserToken} CreateUserToken - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CreateUserToken.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a CreateUserToken message. - * @function verify - * @memberof Tokens.CreateUserToken - * @static - * @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) { - if (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"; - if (message.verificationCode != null && message.hasOwnProperty("verificationCode")) - if (!$util.isString(message.verificationCode)) - return "verificationCode: string expected"; - if (message.requestTimeStamp != null && message.hasOwnProperty("requestTimeStamp")) - if (!$util.isInteger(message.requestTimeStamp) && !(message.requestTimeStamp && $util.isInteger(message.requestTimeStamp.low) && $util.isInteger(message.requestTimeStamp.high))) - return "requestTimeStamp: integer|Long expected"; - if (message.supportedLanguage != null && message.hasOwnProperty("supportedLanguage")) - switch (message.supportedLanguage) { - default: - return "supportedLanguage: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: - case 9: - case 10: - case 11: - case 12: - case 13: - case 14: - case 15: - case 16: - case 17: - case 18: - case 19: - case 20: - case 21: - case 22: - break; - } - if (message.remoteAddress != null && message.hasOwnProperty("remoteAddress")) - if (!$util.isString(message.remoteAddress)) - return "remoteAddress: string expected"; - if (message.messageSessionUid != null && message.hasOwnProperty("messageSessionUid")) - if (!(message.messageSessionUid && typeof message.messageSessionUid.length === "number" || $util.isString(message.messageSessionUid))) - return "messageSessionUid: buffer expected"; - 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"; - return null; - }; - /** * Creates a CreateUserToken message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -206854,6 +168471,8 @@ export const Tokens = $root.Tokens = (() => { CreateUserToken.fromObject = function fromObject(object, long) { if (object instanceof $root.Tokens.CreateUserToken) return object; + if (!$util.isObject(object)) + throw TypeError(".Tokens.CreateUserToken: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -207031,24 +168650,24 @@ export const Tokens = $root.Tokens = (() => { } else object.deviceId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; } - if (message.createUserRequestId != null && message.hasOwnProperty("createUserRequestId")) + if (message.createUserRequestId != null && Object.hasOwnProperty.call(message, "createUserRequestId")) object.createUserRequestId = message.createUserRequestId; - if (message.verificationCode != null && message.hasOwnProperty("verificationCode")) + if (message.verificationCode != null && Object.hasOwnProperty.call(message, "verificationCode")) object.verificationCode = message.verificationCode; - if (message.requestTimeStamp != null && message.hasOwnProperty("requestTimeStamp")) + if (message.requestTimeStamp != null && Object.hasOwnProperty.call(message, "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") 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; - if (message.supportedLanguage != null && message.hasOwnProperty("supportedLanguage")) + if (message.supportedLanguage != null && Object.hasOwnProperty.call(message, "supportedLanguage")) object.supportedLanguage = options.enums === String ? $root.Authentication.SupportedLanguage[message.supportedLanguage] === undefined ? message.supportedLanguage : $root.Authentication.SupportedLanguage[message.supportedLanguage] : message.supportedLanguage; - if (message.remoteAddress != null && message.hasOwnProperty("remoteAddress")) + if (message.remoteAddress != null && Object.hasOwnProperty.call(message, "remoteAddress")) object.remoteAddress = message.remoteAddress; - if (message.messageSessionUid != null && message.hasOwnProperty("messageSessionUid")) + if (message.messageSessionUid != null && Object.hasOwnProperty.call(message, "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 (message.deviceId != null && Object.hasOwnProperty.call(message, "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") @@ -207196,19 +168815,6 @@ export const Tokens = $root.Tokens = (() => { return writer; }; - /** - * Encodes the specified DeleteUserToken message, length delimited. Does not implicitly {@link Tokens.DeleteUserToken.verify|verify} messages. - * @function encodeDelimited - * @memberof Tokens.DeleteUserToken - * @static - * @param {Tokens.IDeleteUserToken} message DeleteUserToken message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - DeleteUserToken.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a DeleteUserToken message from the specified reader or buffer. * @function decode @@ -207261,81 +168867,6 @@ export const Tokens = $root.Tokens = (() => { return message; }; - /** - * Decodes a DeleteUserToken message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Tokens.DeleteUserToken - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Tokens.DeleteUserToken} DeleteUserToken - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - DeleteUserToken.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a DeleteUserToken message. - * @function verify - * @memberof Tokens.DeleteUserToken - * @static - * @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) { - if (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"; - if (message.username != null && message.hasOwnProperty("username")) - if (!$util.isString(message.username)) - return "username: string expected"; - if (message.reason != null && message.hasOwnProperty("reason")) - if (!$util.isString(message.reason)) - return "reason: string expected"; - if (message.requestTimeStamp != null && message.hasOwnProperty("requestTimeStamp")) - if (!$util.isInteger(message.requestTimeStamp) && !(message.requestTimeStamp && $util.isInteger(message.requestTimeStamp.low) && $util.isInteger(message.requestTimeStamp.high))) - return "requestTimeStamp: integer|Long expected"; - if (message.supportedLanguage != null && message.hasOwnProperty("supportedLanguage")) - switch (message.supportedLanguage) { - default: - return "supportedLanguage: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: - case 9: - case 10: - case 11: - case 12: - case 13: - case 14: - case 15: - case 16: - case 17: - case 18: - case 19: - case 20: - case 21: - case 22: - break; - } - return null; - }; - /** * Creates a DeleteUserToken message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -207347,6 +168878,8 @@ export const Tokens = $root.Tokens = (() => { DeleteUserToken.fromObject = function fromObject(object, long) { if (object instanceof $root.Tokens.DeleteUserToken) return object; + if (!$util.isObject(object)) + throw TypeError(".Tokens.DeleteUserToken: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -207498,20 +169031,20 @@ export const Tokens = $root.Tokens = (() => { object.requestTimeStamp = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; object.supportedLanguage = options.enums === String ? "ENGLISH" : 0; } - if (message.userIdForDelete != null && message.hasOwnProperty("userIdForDelete")) + if (message.userIdForDelete != null && Object.hasOwnProperty.call(message, "userIdForDelete")) object.userIdForDelete = message.userIdForDelete; - if (message.username != null && message.hasOwnProperty("username")) + if (message.username != null && Object.hasOwnProperty.call(message, "username")) object.username = message.username; - if (message.reason != null && message.hasOwnProperty("reason")) + if (message.reason != null && Object.hasOwnProperty.call(message, "reason")) object.reason = message.reason; - if (message.requestTimeStamp != null && message.hasOwnProperty("requestTimeStamp")) + if (message.requestTimeStamp != null && Object.hasOwnProperty.call(message, "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") 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; - if (message.supportedLanguage != null && message.hasOwnProperty("supportedLanguage")) + if (message.supportedLanguage != null && Object.hasOwnProperty.call(message, "supportedLanguage")) object.supportedLanguage = options.enums === String ? $root.Authentication.SupportedLanguage[message.supportedLanguage] === undefined ? message.supportedLanguage : $root.Authentication.SupportedLanguage[message.supportedLanguage] : message.supportedLanguage; return object; }; @@ -207682,19 +169215,6 @@ export const Tokens = $root.Tokens = (() => { return writer; }; - /** - * Encodes the specified ProcessToken message, length delimited. Does not implicitly {@link Tokens.ProcessToken.verify|verify} messages. - * @function encodeDelimited - * @memberof Tokens.ProcessToken - * @static - * @param {Tokens.IProcessToken} message ProcessToken message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ProcessToken.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a ProcessToken message from the specified reader or buffer. * @function decode @@ -207747,93 +169267,6 @@ export const Tokens = $root.Tokens = (() => { return message; }; - /** - * Decodes a ProcessToken message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Tokens.ProcessToken - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Tokens.ProcessToken} ProcessToken - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ProcessToken.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a ProcessToken message. - * @function verify - * @memberof Tokens.ProcessToken - * @static - * @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) { - if (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: - return "processTokenType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: - break; - } - if (message.payload != null && message.hasOwnProperty("payload")) - if (!(message.payload && typeof message.payload.length === "number" || $util.isString(message.payload))) - return "payload: buffer expected"; - 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"; - if (message.supportedLanguage != null && message.hasOwnProperty("supportedLanguage")) - switch (message.supportedLanguage) { - default: - return "supportedLanguage: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: - case 9: - case 10: - case 11: - case 12: - case 13: - case 14: - case 15: - case 16: - case 17: - case 18: - case 19: - case 20: - case 21: - case 22: - break; - } - if (message.subEnvironment != null && message.hasOwnProperty("subEnvironment")) - if (!$util.isString(message.subEnvironment)) - return "subEnvironment: string expected"; - return null; - }; - /** * Creates a ProcessToken message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -207845,6 +169278,8 @@ export const Tokens = $root.Tokens = (() => { ProcessToken.fromObject = function fromObject(object, long) { if (object instanceof $root.Tokens.ProcessToken) return object; + if (!$util.isObject(object)) + throw TypeError(".Tokens.ProcessToken: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -208047,20 +169482,20 @@ export const Tokens = $root.Tokens = (() => { object.supportedLanguage = options.enums === String ? "ENGLISH" : 0; object.subEnvironment = ""; } - if (message.processTokenType != null && message.hasOwnProperty("processTokenType")) + if (message.processTokenType != null && Object.hasOwnProperty.call(message, "processTokenType")) object.processTokenType = options.enums === String ? $root.Tokens.ProcessTokenType[message.processTokenType] === undefined ? message.processTokenType : $root.Tokens.ProcessTokenType[message.processTokenType] : message.processTokenType; - if (message.payload != null && message.hasOwnProperty("payload")) + if (message.payload != null && Object.hasOwnProperty.call(message, "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 (message.creation != null && Object.hasOwnProperty.call(message, "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") 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.supportedLanguage != null && message.hasOwnProperty("supportedLanguage")) + if (message.supportedLanguage != null && Object.hasOwnProperty.call(message, "supportedLanguage")) object.supportedLanguage = options.enums === String ? $root.Authentication.SupportedLanguage[message.supportedLanguage] === undefined ? message.supportedLanguage : $root.Authentication.SupportedLanguage[message.supportedLanguage] : message.supportedLanguage; - if (message.subEnvironment != null && message.hasOwnProperty("subEnvironment")) + if (message.subEnvironment != null && Object.hasOwnProperty.call(message, "subEnvironment")) object.subEnvironment = message.subEnvironment; return object; }; @@ -208206,19 +169641,6 @@ export const Tokens = $root.Tokens = (() => { return writer; }; - /** - * Encodes the specified EnterpriseDataContinuationToken message, length delimited. Does not implicitly {@link Tokens.EnterpriseDataContinuationToken.verify|verify} messages. - * @function encodeDelimited - * @memberof Tokens.EnterpriseDataContinuationToken - * @static - * @param {Tokens.IEnterpriseDataContinuationToken} message EnterpriseDataContinuationToken message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - EnterpriseDataContinuationToken.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes an EnterpriseDataContinuationToken message from the specified reader or buffer. * @function decode @@ -208267,59 +169689,6 @@ export const Tokens = $root.Tokens = (() => { return message; }; - /** - * Decodes an EnterpriseDataContinuationToken message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Tokens.EnterpriseDataContinuationToken - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Tokens.EnterpriseDataContinuationToken} EnterpriseDataContinuationToken - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - EnterpriseDataContinuationToken.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an EnterpriseDataContinuationToken message. - * @function verify - * @memberof Tokens.EnterpriseDataContinuationToken - * @static - * @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) { - if (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: - return "startType: enum value expected"; - case 0: - case 1: - break; - } - if (message.processedUpToTransactionId != null && message.hasOwnProperty("processedUpToTransactionId")) - 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); - if (error) - return "position." + error; - } - if (message.lastProcessedTime != null && message.hasOwnProperty("lastProcessedTime")) - if (!$util.isString(message.lastProcessedTime)) - return "lastProcessedTime: string expected"; - return null; - }; - /** * Creates an EnterpriseDataContinuationToken message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -208331,6 +169700,8 @@ export const Tokens = $root.Tokens = (() => { EnterpriseDataContinuationToken.fromObject = function fromObject(object, long) { if (object instanceof $root.Tokens.EnterpriseDataContinuationToken) return object; + if (!$util.isObject(object)) + throw TypeError(".Tokens.EnterpriseDataContinuationToken: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -208362,7 +169733,7 @@ export const Tokens = $root.Tokens = (() => { else if (typeof object.processedUpToTransactionId === "object") message.processedUpToTransactionId = new $util.LongBits(object.processedUpToTransactionId.low >>> 0, object.processedUpToTransactionId.high >>> 0).toNumber(); if (object.position != null) { - if (typeof object.position !== "object") + if (!$util.isObject(object.position)) throw TypeError(".Tokens.EnterpriseDataContinuationToken.position: object expected"); message.position = $root.Tokens.Position.fromObject(object.position, long + 1); } @@ -208398,18 +169769,18 @@ export const Tokens = $root.Tokens = (() => { object.position = null; object.lastProcessedTime = ""; } - if (message.startType != null && message.hasOwnProperty("startType")) + if (message.startType != null && Object.hasOwnProperty.call(message, "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 (message.processedUpToTransactionId != null && Object.hasOwnProperty.call(message, "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") 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")) + if (message.position != null && Object.hasOwnProperty.call(message, "position")) object.position = $root.Tokens.Position.toObject(message.position, options, q + 1); - if (message.lastProcessedTime != null && message.hasOwnProperty("lastProcessedTime")) + if (message.lastProcessedTime != null && Object.hasOwnProperty.call(message, "lastProcessedTime")) object.lastProcessedTime = message.lastProcessedTime; return object; }; @@ -208652,19 +170023,6 @@ export const Tokens = $root.Tokens = (() => { return writer; }; - /** - * Encodes the specified Position message, length delimited. Does not implicitly {@link Tokens.Position.verify|verify} messages. - * @function encodeDelimited - * @memberof Tokens.Position - * @static - * @param {Tokens.IPosition} message Position message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Position.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a Position message from the specified reader or buffer. * @function decode @@ -208709,76 +170067,6 @@ export const Tokens = $root.Tokens = (() => { return message; }; - /** - * Decodes a Position message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Tokens.Position - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Tokens.Position} Position - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Position.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a Position message. - * @function verify - * @memberof Tokens.Position - * @static - * @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) { - if (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: - return "entity: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: - case 9: - case 10: - case 11: - case 12: - case 13: - case 14: - case 15: - case 16: - case 17: - case 18: - case 19: - case 20: - case 21: - case 22: - case 23: - break; - } - 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"; - if (message.location != null && message.hasOwnProperty("location")) - if (!(message.location && typeof message.location.length === "number" || $util.isString(message.location))) - return "location: buffer expected"; - return null; - }; - /** * Creates a Position message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -208790,6 +170078,8 @@ export const Tokens = $root.Tokens = (() => { Position.fromObject = function fromObject(object, long) { if (object instanceof $root.Tokens.Position) return object; + if (!$util.isObject(object)) + throw TypeError(".Tokens.Position: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -208948,16 +170238,16 @@ export const Tokens = $root.Tokens = (() => { object.location = $util.newBuffer(object.location); } } - if (message.entity != null && message.hasOwnProperty("entity")) + if (message.entity != null && Object.hasOwnProperty.call(message, "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 (message.nodeId != null && Object.hasOwnProperty.call(message, "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") 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.location != null && message.hasOwnProperty("location")) + if (message.location != null && Object.hasOwnProperty.call(message, "location")) object.location = options.bytes === String ? $util.base64.encode(message.location, 0, message.location.length) : options.bytes === Array ? Array.prototype.slice.call(message.location) : message.location; return object; }; @@ -209056,19 +170346,6 @@ export const Tokens = $root.Tokens = (() => { return writer; }; - /** - * Encodes the specified LocationL message, length delimited. Does not implicitly {@link Tokens.LocationL.verify|verify} messages. - * @function encodeDelimited - * @memberof Tokens.LocationL - * @static - * @param {Tokens.ILocationL} message LocationL message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - LocationL.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a LocationL message from the specified reader or buffer. * @function decode @@ -209105,43 +170382,6 @@ export const Tokens = $root.Tokens = (() => { return message; }; - /** - * Decodes a LocationL message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Tokens.LocationL - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Tokens.LocationL} LocationL - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - LocationL.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a LocationL message. - * @function verify - * @memberof Tokens.LocationL - * @static - * @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) { - if (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"; - return null; - }; - /** * Creates a LocationL message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -209153,6 +170393,8 @@ export const Tokens = $root.Tokens = (() => { LocationL.fromObject = function fromObject(object, long) { if (object instanceof $root.Tokens.LocationL) return object; + if (!$util.isObject(object)) + throw TypeError(".Tokens.LocationL: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -209193,7 +170435,7 @@ export const Tokens = $root.Tokens = (() => { object.id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; } else object.id = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; - if (message.id != null && message.hasOwnProperty("id")) + if (message.id != null && Object.hasOwnProperty.call(message, "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") @@ -209308,19 +170550,6 @@ export const Tokens = $root.Tokens = (() => { return writer; }; - /** - * Encodes the specified LocationLL message, length delimited. Does not implicitly {@link Tokens.LocationLL.verify|verify} messages. - * @function encodeDelimited - * @memberof Tokens.LocationLL - * @static - * @param {Tokens.ILocationLL} message LocationLL message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - LocationLL.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a LocationLL message from the specified reader or buffer. * @function decode @@ -209361,46 +170590,6 @@ export const Tokens = $root.Tokens = (() => { return message; }; - /** - * Decodes a LocationLL message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Tokens.LocationLL - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Tokens.LocationLL} LocationLL - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - LocationLL.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a LocationLL message. - * @function verify - * @memberof Tokens.LocationLL - * @static - * @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) { - if (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"; - if (message.id2 != null && message.hasOwnProperty("id2")) - if (!$util.isInteger(message.id2) && !(message.id2 && $util.isInteger(message.id2.low) && $util.isInteger(message.id2.high))) - return "id2: integer|Long expected"; - return null; - }; - /** * Creates a LocationLL message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -209412,6 +170601,8 @@ export const Tokens = $root.Tokens = (() => { LocationLL.fromObject = function fromObject(object, long) { if (object instanceof $root.Tokens.LocationLL) return object; + if (!$util.isObject(object)) + throw TypeError(".Tokens.LocationLL: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -209467,14 +170658,14 @@ export const Tokens = $root.Tokens = (() => { } else object.id2 = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; } - if (message.id1 != null && message.hasOwnProperty("id1")) + if (message.id1 != null && Object.hasOwnProperty.call(message, "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") 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 (message.id2 != null && Object.hasOwnProperty.call(message, "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") @@ -209589,19 +170780,6 @@ export const Tokens = $root.Tokens = (() => { return writer; }; - /** - * Encodes the specified LocationLI message, length delimited. Does not implicitly {@link Tokens.LocationLI.verify|verify} messages. - * @function encodeDelimited - * @memberof Tokens.LocationLI - * @static - * @param {Tokens.ILocationLI} message LocationLI message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - LocationLI.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a LocationLI message from the specified reader or buffer. * @function decode @@ -209642,46 +170820,6 @@ export const Tokens = $root.Tokens = (() => { return message; }; - /** - * Decodes a LocationLI message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Tokens.LocationLI - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Tokens.LocationLI} LocationLI - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - LocationLI.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a LocationLI message. - * @function verify - * @memberof Tokens.LocationLI - * @static - * @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) { - if (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"; - if (message.id2 != null && message.hasOwnProperty("id2")) - if (!$util.isInteger(message.id2)) - return "id2: integer expected"; - return null; - }; - /** * Creates a LocationLI message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -209693,6 +170831,8 @@ export const Tokens = $root.Tokens = (() => { LocationLI.fromObject = function fromObject(object, long) { if (object instanceof $root.Tokens.LocationLI) return object; + if (!$util.isObject(object)) + throw TypeError(".Tokens.LocationLI: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -209737,14 +170877,14 @@ export const Tokens = $root.Tokens = (() => { object.id1 = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; object.id2 = 0; } - if (message.id1 != null && message.hasOwnProperty("id1")) + if (message.id1 != null && Object.hasOwnProperty.call(message, "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") 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 (message.id2 != null && Object.hasOwnProperty.call(message, "id2")) object.id2 = message.id2; return object; }; @@ -209854,19 +170994,6 @@ export const Tokens = $root.Tokens = (() => { return writer; }; - /** - * Encodes the specified LocationII message, length delimited. Does not implicitly {@link Tokens.LocationII.verify|verify} messages. - * @function encodeDelimited - * @memberof Tokens.LocationII - * @static - * @param {Tokens.ILocationII} message LocationII message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - LocationII.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a LocationII message from the specified reader or buffer. * @function decode @@ -209907,46 +171034,6 @@ export const Tokens = $root.Tokens = (() => { return message; }; - /** - * Decodes a LocationII message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Tokens.LocationII - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Tokens.LocationII} LocationII - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - LocationII.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a LocationII message. - * @function verify - * @memberof Tokens.LocationII - * @static - * @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) { - if (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"; - if (message.id2 != null && message.hasOwnProperty("id2")) - if (!$util.isInteger(message.id2)) - return "id2: integer expected"; - return null; - }; - /** * Creates a LocationII message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -209958,6 +171045,8 @@ export const Tokens = $root.Tokens = (() => { LocationII.fromObject = function fromObject(object, long) { if (object instanceof $root.Tokens.LocationII) return object; + if (!$util.isObject(object)) + throw TypeError(".Tokens.LocationII: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -209991,9 +171080,9 @@ export const Tokens = $root.Tokens = (() => { object.id1 = 0; object.id2 = 0; } - if (message.id1 != null && message.hasOwnProperty("id1")) + if (message.id1 != null && Object.hasOwnProperty.call(message, "id1")) object.id1 = message.id1; - if (message.id2 != null && message.hasOwnProperty("id2")) + if (message.id2 != null && Object.hasOwnProperty.call(message, "id2")) object.id2 = message.id2; return object; }; @@ -210092,19 +171181,6 @@ export const Tokens = $root.Tokens = (() => { return writer; }; - /** - * Encodes the specified LocationB message, length delimited. Does not implicitly {@link Tokens.LocationB.verify|verify} messages. - * @function encodeDelimited - * @memberof Tokens.LocationB - * @static - * @param {Tokens.ILocationB} message LocationB message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - LocationB.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a LocationB message from the specified reader or buffer. * @function decode @@ -210141,43 +171217,6 @@ export const Tokens = $root.Tokens = (() => { return message; }; - /** - * Decodes a LocationB message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Tokens.LocationB - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Tokens.LocationB} LocationB - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - LocationB.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a LocationB message. - * @function verify - * @memberof Tokens.LocationB - * @static - * @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) { - if (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"; - return null; - }; - /** * Creates a LocationB message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -210189,6 +171228,8 @@ export const Tokens = $root.Tokens = (() => { LocationB.fromObject = function fromObject(object, long) { if (object instanceof $root.Tokens.LocationB) return object; + if (!$util.isObject(object)) + throw TypeError(".Tokens.LocationB: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -210227,7 +171268,7 @@ export const Tokens = $root.Tokens = (() => { if (options.bytes !== Array) object.uid = $util.newBuffer(object.uid); } - if (message.uid != null && message.hasOwnProperty("uid")) + if (message.uid != null && Object.hasOwnProperty.call(message, "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; return object; }; @@ -210337,19 +171378,6 @@ export const Tokens = $root.Tokens = (() => { return writer; }; - /** - * Encodes the specified LocationLB message, length delimited. Does not implicitly {@link Tokens.LocationLB.verify|verify} messages. - * @function encodeDelimited - * @memberof Tokens.LocationLB - * @static - * @param {Tokens.ILocationLB} message LocationLB message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - LocationLB.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a LocationLB message from the specified reader or buffer. * @function decode @@ -210390,46 +171418,6 @@ export const Tokens = $root.Tokens = (() => { return message; }; - /** - * Decodes a LocationLB message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Tokens.LocationLB - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Tokens.LocationLB} LocationLB - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - LocationLB.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a LocationLB message. - * @function verify - * @memberof Tokens.LocationLB - * @static - * @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) { - if (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"; - if (message.uid != null && message.hasOwnProperty("uid")) - if (!(message.uid && typeof message.uid.length === "number" || $util.isString(message.uid))) - return "uid: buffer expected"; - return null; - }; - /** * Creates a LocationLB message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -210441,6 +171429,8 @@ export const Tokens = $root.Tokens = (() => { LocationLB.fromObject = function fromObject(object, long) { if (object instanceof $root.Tokens.LocationLB) return object; + if (!$util.isObject(object)) + throw TypeError(".Tokens.LocationLB: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -210494,14 +171484,14 @@ export const Tokens = $root.Tokens = (() => { object.uid = $util.newBuffer(object.uid); } } - if (message.id != null && message.hasOwnProperty("id")) + if (message.id != null && Object.hasOwnProperty.call(message, "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") 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; - if (message.uid != null && message.hasOwnProperty("uid")) + if (message.uid != null && Object.hasOwnProperty.call(message, "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; return object; }; @@ -210611,19 +171601,6 @@ export const Tokens = $root.Tokens = (() => { return writer; }; - /** - * Encodes the specified LocationBI message, length delimited. Does not implicitly {@link Tokens.LocationBI.verify|verify} messages. - * @function encodeDelimited - * @memberof Tokens.LocationBI - * @static - * @param {Tokens.ILocationBI} message LocationBI message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - LocationBI.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a LocationBI message from the specified reader or buffer. * @function decode @@ -210664,46 +171641,6 @@ export const Tokens = $root.Tokens = (() => { return message; }; - /** - * Decodes a LocationBI message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Tokens.LocationBI - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Tokens.LocationBI} LocationBI - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - LocationBI.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a LocationBI message. - * @function verify - * @memberof Tokens.LocationBI - * @static - * @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) { - if (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.id != null && message.hasOwnProperty("id")) - if (!$util.isInteger(message.id)) - return "id: integer expected"; - return null; - }; - /** * Creates a LocationBI message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -210715,6 +171652,8 @@ export const Tokens = $root.Tokens = (() => { LocationBI.fromObject = function fromObject(object, long) { if (object instanceof $root.Tokens.LocationBI) return object; + if (!$util.isObject(object)) + throw TypeError(".Tokens.LocationBI: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -210757,9 +171696,9 @@ export const Tokens = $root.Tokens = (() => { } object.id = 0; } - if (message.uid != null && message.hasOwnProperty("uid")) + if (message.uid != null && Object.hasOwnProperty.call(message, "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.id != null && message.hasOwnProperty("id")) + if (message.id != null && Object.hasOwnProperty.call(message, "id")) object.id = message.id; return object; }; @@ -210869,19 +171808,6 @@ export const Tokens = $root.Tokens = (() => { return writer; }; - /** - * Encodes the specified LocationLS message, length delimited. Does not implicitly {@link Tokens.LocationLS.verify|verify} messages. - * @function encodeDelimited - * @memberof Tokens.LocationLS - * @static - * @param {Tokens.ILocationLS} message LocationLS message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - LocationLS.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a LocationLS message from the specified reader or buffer. * @function decode @@ -210922,46 +171848,6 @@ export const Tokens = $root.Tokens = (() => { return message; }; - /** - * Decodes a LocationLS message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Tokens.LocationLS - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Tokens.LocationLS} LocationLS - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - LocationLS.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a LocationLS message. - * @function verify - * @memberof Tokens.LocationLS - * @static - * @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) { - if (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"; - if (message.str != null && message.hasOwnProperty("str")) - if (!$util.isString(message.str)) - return "str: string expected"; - return null; - }; - /** * Creates a LocationLS message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -210973,6 +171859,8 @@ export const Tokens = $root.Tokens = (() => { LocationLS.fromObject = function fromObject(object, long) { if (object instanceof $root.Tokens.LocationLS) return object; + if (!$util.isObject(object)) + throw TypeError(".Tokens.LocationLS: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -211017,14 +171905,14 @@ export const Tokens = $root.Tokens = (() => { object.id1 = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; object.str = ""; } - if (message.id1 != null && message.hasOwnProperty("id1")) + if (message.id1 != null && Object.hasOwnProperty.call(message, "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") 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.str != null && message.hasOwnProperty("str")) + if (message.str != null && Object.hasOwnProperty.call(message, "str")) object.str = message.str; return object; }; @@ -211145,19 +172033,6 @@ export const Tokens = $root.Tokens = (() => { return writer; }; - /** - * Encodes the specified EnterpriseDataRoleTeamsPageToken message, length delimited. Does not implicitly {@link Tokens.EnterpriseDataRoleTeamsPageToken.verify|verify} messages. - * @function encodeDelimited - * @memberof Tokens.EnterpriseDataRoleTeamsPageToken - * @static - * @param {Tokens.IEnterpriseDataRoleTeamsPageToken} message EnterpriseDataRoleTeamsPageToken message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - EnterpriseDataRoleTeamsPageToken.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes an EnterpriseDataRoleTeamsPageToken message from the specified reader or buffer. * @function decode @@ -211202,49 +172077,6 @@ export const Tokens = $root.Tokens = (() => { return message; }; - /** - * Decodes an EnterpriseDataRoleTeamsPageToken message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Tokens.EnterpriseDataRoleTeamsPageToken - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Tokens.EnterpriseDataRoleTeamsPageToken} EnterpriseDataRoleTeamsPageToken - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - EnterpriseDataRoleTeamsPageToken.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an EnterpriseDataRoleTeamsPageToken message. - * @function verify - * @memberof Tokens.EnterpriseDataRoleTeamsPageToken - * @static - * @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) { - if (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"; - if (message.lastRoleId != null && message.hasOwnProperty("lastRoleId")) - if (!$util.isInteger(message.lastRoleId) && !(message.lastRoleId && $util.isInteger(message.lastRoleId.low) && $util.isInteger(message.lastRoleId.high))) - return "lastRoleId: integer|Long expected"; - if (message.lastTeamUid != null && message.hasOwnProperty("lastTeamUid")) - if (!(message.lastTeamUid && typeof message.lastTeamUid.length === "number" || $util.isString(message.lastTeamUid))) - return "lastTeamUid: buffer expected"; - return null; - }; - /** * Creates an EnterpriseDataRoleTeamsPageToken message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -211256,6 +172088,8 @@ export const Tokens = $root.Tokens = (() => { EnterpriseDataRoleTeamsPageToken.fromObject = function fromObject(object, long) { if (object instanceof $root.Tokens.EnterpriseDataRoleTeamsPageToken) return object; + if (!$util.isObject(object)) + throw TypeError(".Tokens.EnterpriseDataRoleTeamsPageToken: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -211323,21 +172157,21 @@ export const Tokens = $root.Tokens = (() => { object.lastTeamUid = $util.newBuffer(object.lastTeamUid); } } - if (message.lastNodeId != null && message.hasOwnProperty("lastNodeId")) + if (message.lastNodeId != null && Object.hasOwnProperty.call(message, "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") 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 (message.lastRoleId != null && Object.hasOwnProperty.call(message, "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") 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; - if (message.lastTeamUid != null && message.hasOwnProperty("lastTeamUid")) + if (message.lastTeamUid != null && Object.hasOwnProperty.call(message, "lastTeamUid")) object.lastTeamUid = options.bytes === String ? $util.base64.encode(message.lastTeamUid, 0, message.lastTeamUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.lastTeamUid) : message.lastTeamUid; return object; }; @@ -211447,19 +172281,6 @@ export const Tokens = $root.Tokens = (() => { return writer; }; - /** - * Encodes the specified EnterpriseDataTeamsPageToken message, length delimited. Does not implicitly {@link Tokens.EnterpriseDataTeamsPageToken.verify|verify} messages. - * @function encodeDelimited - * @memberof Tokens.EnterpriseDataTeamsPageToken - * @static - * @param {Tokens.IEnterpriseDataTeamsPageToken} message EnterpriseDataTeamsPageToken message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - EnterpriseDataTeamsPageToken.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes an EnterpriseDataTeamsPageToken message from the specified reader or buffer. * @function decode @@ -211500,46 +172321,6 @@ export const Tokens = $root.Tokens = (() => { return message; }; - /** - * Decodes an EnterpriseDataTeamsPageToken message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Tokens.EnterpriseDataTeamsPageToken - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Tokens.EnterpriseDataTeamsPageToken} EnterpriseDataTeamsPageToken - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - EnterpriseDataTeamsPageToken.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an EnterpriseDataTeamsPageToken message. - * @function verify - * @memberof Tokens.EnterpriseDataTeamsPageToken - * @static - * @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) { - if (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"; - if (message.lastTeamUid != null && message.hasOwnProperty("lastTeamUid")) - if (!(message.lastTeamUid && typeof message.lastTeamUid.length === "number" || $util.isString(message.lastTeamUid))) - return "lastTeamUid: buffer expected"; - return null; - }; - /** * Creates an EnterpriseDataTeamsPageToken message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -211551,6 +172332,8 @@ export const Tokens = $root.Tokens = (() => { EnterpriseDataTeamsPageToken.fromObject = function fromObject(object, long) { if (object instanceof $root.Tokens.EnterpriseDataTeamsPageToken) return object; + if (!$util.isObject(object)) + throw TypeError(".Tokens.EnterpriseDataTeamsPageToken: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -211604,14 +172387,14 @@ export const Tokens = $root.Tokens = (() => { object.lastTeamUid = $util.newBuffer(object.lastTeamUid); } } - if (message.lastNodeId != null && message.hasOwnProperty("lastNodeId")) + if (message.lastNodeId != null && Object.hasOwnProperty.call(message, "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") 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.lastTeamUid != null && message.hasOwnProperty("lastTeamUid")) + if (message.lastTeamUid != null && Object.hasOwnProperty.call(message, "lastTeamUid")) object.lastTeamUid = options.bytes === String ? $util.base64.encode(message.lastTeamUid, 0, message.lastTeamUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.lastTeamUid) : message.lastTeamUid; return object; }; @@ -211732,19 +172515,6 @@ export const Tokens = $root.Tokens = (() => { return writer; }; - /** - * Encodes the specified EnterpriseDataTeamUsersPageToken message, length delimited. Does not implicitly {@link Tokens.EnterpriseDataTeamUsersPageToken.verify|verify} messages. - * @function encodeDelimited - * @memberof Tokens.EnterpriseDataTeamUsersPageToken - * @static - * @param {Tokens.IEnterpriseDataTeamUsersPageToken} message EnterpriseDataTeamUsersPageToken message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - EnterpriseDataTeamUsersPageToken.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes an EnterpriseDataTeamUsersPageToken message from the specified reader or buffer. * @function decode @@ -211789,49 +172559,6 @@ export const Tokens = $root.Tokens = (() => { return message; }; - /** - * Decodes an EnterpriseDataTeamUsersPageToken message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Tokens.EnterpriseDataTeamUsersPageToken - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Tokens.EnterpriseDataTeamUsersPageToken} EnterpriseDataTeamUsersPageToken - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - EnterpriseDataTeamUsersPageToken.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an EnterpriseDataTeamUsersPageToken message. - * @function verify - * @memberof Tokens.EnterpriseDataTeamUsersPageToken - * @static - * @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) { - if (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"; - if (message.lastTeamUid != null && message.hasOwnProperty("lastTeamUid")) - if (!(message.lastTeamUid && typeof message.lastTeamUid.length === "number" || $util.isString(message.lastTeamUid))) - return "lastTeamUid: buffer expected"; - if (message.userId != null && message.hasOwnProperty("userId")) - if (!$util.isInteger(message.userId)) - return "userId: integer expected"; - return null; - }; - /** * Creates an EnterpriseDataTeamUsersPageToken message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -211843,6 +172570,8 @@ export const Tokens = $root.Tokens = (() => { EnterpriseDataTeamUsersPageToken.fromObject = function fromObject(object, long) { if (object instanceof $root.Tokens.EnterpriseDataTeamUsersPageToken) return object; + if (!$util.isObject(object)) + throw TypeError(".Tokens.EnterpriseDataTeamUsersPageToken: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -211899,16 +172628,16 @@ export const Tokens = $root.Tokens = (() => { } object.userId = 0; } - if (message.lastNodeId != null && message.hasOwnProperty("lastNodeId")) + if (message.lastNodeId != null && Object.hasOwnProperty.call(message, "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") 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.lastTeamUid != null && message.hasOwnProperty("lastTeamUid")) + if (message.lastTeamUid != null && Object.hasOwnProperty.call(message, "lastTeamUid")) object.lastTeamUid = options.bytes === String ? $util.base64.encode(message.lastTeamUid, 0, message.lastTeamUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.lastTeamUid) : message.lastTeamUid; - if (message.userId != null && message.hasOwnProperty("userId")) + if (message.userId != null && Object.hasOwnProperty.call(message, "userId")) object.userId = message.userId; return object; }; @@ -212058,19 +172787,6 @@ export const Tokens = $root.Tokens = (() => { return writer; }; - /** - * Encodes the specified EnterpriseBackupUnlockPair message, length delimited. Does not implicitly {@link Tokens.EnterpriseBackupUnlockPair.verify|verify} messages. - * @function encodeDelimited - * @memberof Tokens.EnterpriseBackupUnlockPair - * @static - * @param {Tokens.IEnterpriseBackupUnlockPair} message EnterpriseBackupUnlockPair message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - EnterpriseBackupUnlockPair.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes an EnterpriseBackupUnlockPair message from the specified reader or buffer. * @function decode @@ -212119,52 +172835,6 @@ export const Tokens = $root.Tokens = (() => { return message; }; - /** - * Decodes an EnterpriseBackupUnlockPair message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Tokens.EnterpriseBackupUnlockPair - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Tokens.EnterpriseBackupUnlockPair} EnterpriseBackupUnlockPair - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - EnterpriseBackupUnlockPair.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an EnterpriseBackupUnlockPair message. - * @function verify - * @memberof Tokens.EnterpriseBackupUnlockPair - * @static - * @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) { - if (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"; - if (message.user2Id != null && message.hasOwnProperty("user2Id")) - if (!$util.isInteger(message.user2Id)) - return "user2Id: integer expected"; - if (message.user1Key != null && message.hasOwnProperty("user1Key")) - if (!(message.user1Key && typeof message.user1Key.length === "number" || $util.isString(message.user1Key))) - return "user1Key: buffer expected"; - if (message.user2Key != null && message.hasOwnProperty("user2Key")) - if (!(message.user2Key && typeof message.user2Key.length === "number" || $util.isString(message.user2Key))) - return "user2Key: buffer expected"; - return null; - }; - /** * Creates an EnterpriseBackupUnlockPair message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -212176,6 +172846,8 @@ export const Tokens = $root.Tokens = (() => { EnterpriseBackupUnlockPair.fromObject = function fromObject(object, long) { if (object instanceof $root.Tokens.EnterpriseBackupUnlockPair) return object; + if (!$util.isObject(object)) + throw TypeError(".Tokens.EnterpriseBackupUnlockPair: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -212233,13 +172905,13 @@ export const Tokens = $root.Tokens = (() => { object.user2Key = $util.newBuffer(object.user2Key); } } - if (message.user1Id != null && message.hasOwnProperty("user1Id")) + if (message.user1Id != null && Object.hasOwnProperty.call(message, "user1Id")) object.user1Id = message.user1Id; - if (message.user2Id != null && message.hasOwnProperty("user2Id")) + if (message.user2Id != null && Object.hasOwnProperty.call(message, "user2Id")) object.user2Id = message.user2Id; - if (message.user1Key != null && message.hasOwnProperty("user1Key")) + if (message.user1Key != null && Object.hasOwnProperty.call(message, "user1Key")) object.user1Key = options.bytes === String ? $util.base64.encode(message.user1Key, 0, message.user1Key.length) : options.bytes === Array ? Array.prototype.slice.call(message.user1Key) : message.user1Key; - if (message.user2Key != null && message.hasOwnProperty("user2Key")) + if (message.user2Key != null && Object.hasOwnProperty.call(message, "user2Key")) object.user2Key = options.bytes === String ? $util.base64.encode(message.user2Key, 0, message.user2Key.length) : options.bytes === Array ? Array.prototype.slice.call(message.user2Key) : message.user2Key; return object; }; @@ -212384,19 +173056,6 @@ export const Tokens = $root.Tokens = (() => { return writer; }; - /** - * Encodes the specified EnterpriseBackupContinuationToken message, length delimited. Does not implicitly {@link Tokens.EnterpriseBackupContinuationToken.verify|verify} messages. - * @function encodeDelimited - * @memberof Tokens.EnterpriseBackupContinuationToken - * @static - * @param {Tokens.IEnterpriseBackupContinuationToken} message EnterpriseBackupContinuationToken message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - EnterpriseBackupContinuationToken.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes an EnterpriseBackupContinuationToken message from the specified reader or buffer. * @function decode @@ -212451,68 +173110,6 @@ export const Tokens = $root.Tokens = (() => { return message; }; - /** - * Decodes an EnterpriseBackupContinuationToken message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Tokens.EnterpriseBackupContinuationToken - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Tokens.EnterpriseBackupContinuationToken} EnterpriseBackupContinuationToken - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - EnterpriseBackupContinuationToken.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an EnterpriseBackupContinuationToken message. - * @function verify - * @memberof Tokens.EnterpriseBackupContinuationToken - * @static - * @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) { - if (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"; - if (message.unlockPairs != null && message.hasOwnProperty("unlockPairs")) { - 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); - if (error) - return "unlockPairs." + error; - } - } - if (message.backupStage != null && message.hasOwnProperty("backupStage")) - switch (message.backupStage) { - default: - return "backupStage: enum value expected"; - case 0: - case 1: - case 2: - case 3: - break; - } - if (message.startUser != null && message.hasOwnProperty("startUser")) - if (!$util.isInteger(message.startUser) && !(message.startUser && $util.isInteger(message.startUser.low) && $util.isInteger(message.startUser.high))) - return "startUser: integer|Long expected"; - if (message.startRecord != null && message.hasOwnProperty("startRecord")) - if (!(message.startRecord && typeof message.startRecord.length === "number" || $util.isString(message.startRecord))) - return "startRecord: buffer expected"; - return null; - }; - /** * Creates an EnterpriseBackupContinuationToken message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -212524,6 +173121,8 @@ export const Tokens = $root.Tokens = (() => { EnterpriseBackupContinuationToken.fromObject = function fromObject(object, long) { if (object instanceof $root.Tokens.EnterpriseBackupContinuationToken) return object; + if (!$util.isObject(object)) + throw TypeError(".Tokens.EnterpriseBackupContinuationToken: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -212539,7 +173138,7 @@ export const Tokens = $root.Tokens = (() => { throw TypeError(".Tokens.EnterpriseBackupContinuationToken.unlockPairs: array expected"); message.unlockPairs = []; for (let i = 0; i < object.unlockPairs.length; ++i) { - if (typeof object.unlockPairs[i] !== "object") + if (!$util.isObject(object.unlockPairs[i])) throw TypeError(".Tokens.EnterpriseBackupContinuationToken.unlockPairs: object expected"); message.unlockPairs[i] = $root.Tokens.EnterpriseBackupUnlockPair.fromObject(object.unlockPairs[i], long + 1); } @@ -212626,23 +173225,23 @@ export const Tokens = $root.Tokens = (() => { object.startRecord = $util.newBuffer(object.startRecord); } } - if (message.backupKey != null && message.hasOwnProperty("backupKey")) + if (message.backupKey != null && Object.hasOwnProperty.call(message, "backupKey")) object.backupKey = options.bytes === String ? $util.base64.encode(message.backupKey, 0, message.backupKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.backupKey) : message.backupKey; 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); } - if (message.backupStage != null && message.hasOwnProperty("backupStage")) + if (message.backupStage != null && Object.hasOwnProperty.call(message, "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 (message.startUser != null && Object.hasOwnProperty.call(message, "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") 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; - if (message.startRecord != null && message.hasOwnProperty("startRecord")) + if (message.startRecord != null && Object.hasOwnProperty.call(message, "startRecord")) object.startRecord = options.bytes === String ? $util.base64.encode(message.startRecord, 0, message.startRecord.length) : options.bytes === Array ? Array.prototype.slice.call(message.startRecord) : message.startRecord; return object; }; @@ -212774,19 +173373,6 @@ export const Tokens = $root.Tokens = (() => { return writer; }; - /** - * Encodes the specified VerificationToken message, length delimited. Does not implicitly {@link Tokens.VerificationToken.verify|verify} messages. - * @function encodeDelimited - * @memberof Tokens.VerificationToken - * @static - * @param {Tokens.IVerificationToken} message VerificationToken message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - VerificationToken.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a VerificationToken message from the specified reader or buffer. * @function decode @@ -212835,52 +173421,6 @@ export const Tokens = $root.Tokens = (() => { return message; }; - /** - * Decodes a VerificationToken message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Tokens.VerificationToken - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Tokens.VerificationToken} VerificationToken - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - VerificationToken.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a VerificationToken message. - * @function verify - * @memberof Tokens.VerificationToken - * @static - * @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) { - if (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"; - if (message.username != null && message.hasOwnProperty("username")) - if (!$util.isString(message.username)) - return "username: string expected"; - if (message.regionId != null && message.hasOwnProperty("regionId")) - if (!$util.isInteger(message.regionId)) - return "regionId: integer expected"; - 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"; - return null; - }; - /** * Creates a VerificationToken message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -212892,6 +173432,8 @@ export const Tokens = $root.Tokens = (() => { VerificationToken.fromObject = function fromObject(object, long) { if (object instanceof $root.Tokens.VerificationToken) return object; + if (!$util.isObject(object)) + throw TypeError(".Tokens.VerificationToken: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -212951,13 +173493,13 @@ export const Tokens = $root.Tokens = (() => { } else object.creation = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; } - if (message.accountUid != null && message.hasOwnProperty("accountUid")) + if (message.accountUid != null && Object.hasOwnProperty.call(message, "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.username != null && message.hasOwnProperty("username")) + if (message.username != null && Object.hasOwnProperty.call(message, "username")) object.username = message.username; - if (message.regionId != null && message.hasOwnProperty("regionId")) + if (message.regionId != null && Object.hasOwnProperty.call(message, "regionId")) object.regionId = message.regionId; - if (message.creation != null && message.hasOwnProperty("creation")) + if (message.creation != null && Object.hasOwnProperty.call(message, "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") @@ -213097,19 +173639,6 @@ export const Tokens = $root.Tokens = (() => { return writer; }; - /** - * Encodes the specified ComplianceDataContinuationToken message, length delimited. Does not implicitly {@link Tokens.ComplianceDataContinuationToken.verify|verify} messages. - * @function encodeDelimited - * @memberof Tokens.ComplianceDataContinuationToken - * @static - * @param {Tokens.IComplianceDataContinuationToken} message ComplianceDataContinuationToken message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ComplianceDataContinuationToken.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a ComplianceDataContinuationToken message from the specified reader or buffer. * @function decode @@ -213154,54 +173683,6 @@ export const Tokens = $root.Tokens = (() => { return message; }; - /** - * Decodes a ComplianceDataContinuationToken message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Tokens.ComplianceDataContinuationToken - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Tokens.ComplianceDataContinuationToken} ComplianceDataContinuationToken - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ComplianceDataContinuationToken.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a ComplianceDataContinuationToken message. - * @function verify - * @memberof Tokens.ComplianceDataContinuationToken - * @static - * @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) { - if (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"; - 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.source != null && message.hasOwnProperty("source")) - switch (message.source) { - default: - return "source: enum value expected"; - case 0: - case 1: - break; - } - return null; - }; - /** * Creates a ComplianceDataContinuationToken message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -213213,6 +173694,8 @@ export const Tokens = $root.Tokens = (() => { ComplianceDataContinuationToken.fromObject = function fromObject(object, long) { if (object instanceof $root.Tokens.ComplianceDataContinuationToken) return object; + if (!$util.isObject(object)) + throw TypeError(".Tokens.ComplianceDataContinuationToken: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -213283,16 +173766,16 @@ export const Tokens = $root.Tokens = (() => { } object.source = options.enums === String ? "LEGACY" : 0; } - if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) + if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, "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") 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.recordUid != null && message.hasOwnProperty("recordUid")) + if (message.recordUid != null && Object.hasOwnProperty.call(message, "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.source != null && message.hasOwnProperty("source")) + if (message.source != null && Object.hasOwnProperty.call(message, "source")) object.source = options.enums === String ? $root.Tokens.AuditRecordSource[message.source] === undefined ? message.source : $root.Tokens.AuditRecordSource[message.source] : message.source; return object; }; @@ -213534,19 +174017,6 @@ export const Tokens = $root.Tokens = (() => { return writer; }; - /** - * Encodes the specified VaultSyncDownContinuationToken message, length delimited. Does not implicitly {@link Tokens.VaultSyncDownContinuationToken.verify|verify} messages. - * @function encodeDelimited - * @memberof Tokens.VaultSyncDownContinuationToken - * @static - * @param {Tokens.IVaultSyncDownContinuationToken} message VaultSyncDownContinuationToken message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - VaultSyncDownContinuationToken.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a VaultSyncDownContinuationToken message from the specified reader or buffer. * @function decode @@ -213635,84 +174105,6 @@ export const Tokens = $root.Tokens = (() => { return message; }; - /** - * Decodes a VaultSyncDownContinuationToken message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Tokens.VaultSyncDownContinuationToken - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Tokens.VaultSyncDownContinuationToken} VaultSyncDownContinuationToken - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - VaultSyncDownContinuationToken.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a VaultSyncDownContinuationToken message. - * @function verify - * @memberof Tokens.VaultSyncDownContinuationToken - * @static - * @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) { - if (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"; - if (message.syncedToSyncOrder != null && message.hasOwnProperty("syncedToSyncOrder")) - if (!$util.isInteger(message.syncedToSyncOrder) && !(message.syncedToSyncOrder && $util.isInteger(message.syncedToSyncOrder.low) && $util.isInteger(message.syncedToSyncOrder.high))) - return "syncedToSyncOrder: integer|Long expected"; - if (message.syncingToSyncOrder != null && message.hasOwnProperty("syncingToSyncOrder")) - if (!$util.isInteger(message.syncingToSyncOrder) && !(message.syncingToSyncOrder && $util.isInteger(message.syncingToSyncOrder.low) && $util.isInteger(message.syncingToSyncOrder.high))) - return "syncingToSyncOrder: integer|Long expected"; - if (message.tokenGenerated != null && message.hasOwnProperty("tokenGenerated")) - if (!$util.isInteger(message.tokenGenerated)) - return "tokenGenerated: integer expected"; - if (message.lastFullSyncCompleted != null && message.hasOwnProperty("lastFullSyncCompleted")) - 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); - if (error) - return "locations." + error; - } - if (message.checkForAuditData != null && message.hasOwnProperty("checkForAuditData")) - if (typeof message.checkForAuditData !== "boolean") - return "checkForAuditData: boolean expected"; - if (message.clientVersion != null && message.hasOwnProperty("clientVersion")) - if (!$util.isInteger(message.clientVersion)) - return "clientVersion: integer expected"; - if (message.clientDataVersion != null && message.hasOwnProperty("clientDataVersion")) - if (!$util.isInteger(message.clientDataVersion)) - return "clientDataVersion: integer expected"; - if (message.noRemovedSharedFoldersWithTeamAccess != null && message.hasOwnProperty("noRemovedSharedFoldersWithTeamAccess")) - if (typeof message.noRemovedSharedFoldersWithTeamAccess !== "boolean") - return "noRemovedSharedFoldersWithTeamAccess: boolean expected"; - if (message.notificationSyncPoint != null && message.hasOwnProperty("notificationSyncPoint")) - if (!$util.isInteger(message.notificationSyncPoint) && !(message.notificationSyncPoint && $util.isInteger(message.notificationSyncPoint.low) && $util.isInteger(message.notificationSyncPoint.high))) - return "notificationSyncPoint: integer|Long expected"; - if (message.skipUserRevision != null && message.hasOwnProperty("skipUserRevision")) - if (typeof message.skipUserRevision !== "boolean") - return "skipUserRevision: boolean expected"; - if (message.multiPageIncrementalClientVersion != null && message.hasOwnProperty("multiPageIncrementalClientVersion")) - if (!$util.isInteger(message.multiPageIncrementalClientVersion)) - return "multiPageIncrementalClientVersion: integer expected"; - if (message.dagSyncPoint != null && message.hasOwnProperty("dagSyncPoint")) - if (!$util.isInteger(message.dagSyncPoint) && !(message.dagSyncPoint && $util.isInteger(message.dagSyncPoint.low) && $util.isInteger(message.dagSyncPoint.high))) - return "dagSyncPoint: integer|Long expected"; - return null; - }; - /** * Creates a VaultSyncDownContinuationToken message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -213724,6 +174116,8 @@ export const Tokens = $root.Tokens = (() => { VaultSyncDownContinuationToken.fromObject = function fromObject(object, long) { if (object instanceof $root.Tokens.VaultSyncDownContinuationToken) return object; + if (!$util.isObject(object)) + throw TypeError(".Tokens.VaultSyncDownContinuationToken: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -213754,7 +174148,7 @@ export const Tokens = $root.Tokens = (() => { if (object.lastFullSyncCompleted != null) message.lastFullSyncCompleted = object.lastFullSyncCompleted | 0; if (object.locations != null) { - if (typeof object.locations !== "object") + if (!$util.isObject(object.locations)) throw TypeError(".Tokens.VaultSyncDownContinuationToken.locations: object expected"); message.locations = $root.Tokens.VaultSyncDownLocations.fromObject(object.locations, long + 1); } @@ -213840,48 +174234,48 @@ export const Tokens = $root.Tokens = (() => { } else object.dagSyncPoint = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; } - if (message.tokenVersion != null && message.hasOwnProperty("tokenVersion")) + if (message.tokenVersion != null && Object.hasOwnProperty.call(message, "tokenVersion")) object.tokenVersion = message.tokenVersion; - if (message.syncedToSyncOrder != null && message.hasOwnProperty("syncedToSyncOrder")) + if (message.syncedToSyncOrder != null && Object.hasOwnProperty.call(message, "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") 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 (message.syncingToSyncOrder != null && Object.hasOwnProperty.call(message, "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") 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; - if (message.tokenGenerated != null && message.hasOwnProperty("tokenGenerated")) + if (message.tokenGenerated != null && Object.hasOwnProperty.call(message, "tokenGenerated")) object.tokenGenerated = message.tokenGenerated; - if (message.lastFullSyncCompleted != null && message.hasOwnProperty("lastFullSyncCompleted")) + if (message.lastFullSyncCompleted != null && Object.hasOwnProperty.call(message, "lastFullSyncCompleted")) object.lastFullSyncCompleted = message.lastFullSyncCompleted; - if (message.locations != null && message.hasOwnProperty("locations")) + if (message.locations != null && Object.hasOwnProperty.call(message, "locations")) object.locations = $root.Tokens.VaultSyncDownLocations.toObject(message.locations, options, q + 1); - if (message.checkForAuditData != null && message.hasOwnProperty("checkForAuditData")) + if (message.checkForAuditData != null && Object.hasOwnProperty.call(message, "checkForAuditData")) object.checkForAuditData = message.checkForAuditData; - if (message.clientVersion != null && message.hasOwnProperty("clientVersion")) + if (message.clientVersion != null && Object.hasOwnProperty.call(message, "clientVersion")) object.clientVersion = message.clientVersion; - if (message.clientDataVersion != null && message.hasOwnProperty("clientDataVersion")) + if (message.clientDataVersion != null && Object.hasOwnProperty.call(message, "clientDataVersion")) object.clientDataVersion = message.clientDataVersion; - if (message.noRemovedSharedFoldersWithTeamAccess != null && message.hasOwnProperty("noRemovedSharedFoldersWithTeamAccess")) + if (message.noRemovedSharedFoldersWithTeamAccess != null && Object.hasOwnProperty.call(message, "noRemovedSharedFoldersWithTeamAccess")) object.noRemovedSharedFoldersWithTeamAccess = message.noRemovedSharedFoldersWithTeamAccess; - if (message.notificationSyncPoint != null && message.hasOwnProperty("notificationSyncPoint")) + if (message.notificationSyncPoint != null && Object.hasOwnProperty.call(message, "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") 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; - if (message.skipUserRevision != null && message.hasOwnProperty("skipUserRevision")) + if (message.skipUserRevision != null && Object.hasOwnProperty.call(message, "skipUserRevision")) object.skipUserRevision = message.skipUserRevision; - if (message.multiPageIncrementalClientVersion != null && message.hasOwnProperty("multiPageIncrementalClientVersion")) + if (message.multiPageIncrementalClientVersion != null && Object.hasOwnProperty.call(message, "multiPageIncrementalClientVersion")) object.multiPageIncrementalClientVersion = message.multiPageIncrementalClientVersion; - if (message.dagSyncPoint != null && message.hasOwnProperty("dagSyncPoint")) + if (message.dagSyncPoint != null && Object.hasOwnProperty.call(message, "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") @@ -214150,19 +174544,6 @@ export const Tokens = $root.Tokens = (() => { return writer; }; - /** - * Encodes the specified VaultSyncDownLocations message, length delimited. Does not implicitly {@link Tokens.VaultSyncDownLocations.verify|verify} messages. - * @function encodeDelimited - * @memberof Tokens.VaultSyncDownLocations - * @static - * @param {Tokens.IVaultSyncDownLocations} message VaultSyncDownLocations message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - VaultSyncDownLocations.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a VaultSyncDownLocations message from the specified reader or buffer. * @function decode @@ -214259,118 +174640,6 @@ export const Tokens = $root.Tokens = (() => { return message; }; - /** - * Decodes a VaultSyncDownLocations message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Tokens.VaultSyncDownLocations - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Tokens.VaultSyncDownLocations} VaultSyncDownLocations - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - VaultSyncDownLocations.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a VaultSyncDownLocations message. - * @function verify - * @memberof Tokens.VaultSyncDownLocations - * @static - * @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) { - if (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); - if (error) - return "recordLocation." + error; - } - if (message.recordLinkLocation != null && message.hasOwnProperty("recordLinkLocation")) { - let error = $root.Tokens.RecordLinkLocation.verify(message.recordLinkLocation, long + 1); - if (error) - return "recordLinkLocation." + error; - } - if (message.folderLocation != null && message.hasOwnProperty("folderLocation")) { - let error = $root.Tokens.FolderLocation.verify(message.folderLocation, long + 1); - if (error) - return "folderLocation." + error; - } - if (message.folderRecordLocation != null && message.hasOwnProperty("folderRecordLocation")) { - let error = $root.Tokens.FolderRecordLocation.verify(message.folderRecordLocation, long + 1); - if (error) - return "folderRecordLocation." + error; - } - if (message.folderSharedFolderLocation != null && message.hasOwnProperty("folderSharedFolderLocation")) { - let error = $root.Tokens.FolderSharedFolderLocation.verify(message.folderSharedFolderLocation, long + 1); - if (error) - return "folderSharedFolderLocation." + error; - } - if (message.sharedFolderLocation != null && message.hasOwnProperty("sharedFolderLocation")) { - let error = $root.Tokens.SharedFolderLocation.verify(message.sharedFolderLocation, long + 1); - if (error) - return "sharedFolderLocation." + error; - } - if (message.sharedFolderRecordLocation != null && message.hasOwnProperty("sharedFolderRecordLocation")) { - let error = $root.Tokens.SharedFolderRecordLocation.verify(message.sharedFolderRecordLocation, long + 1); - if (error) - return "sharedFolderRecordLocation." + error; - } - if (message.sharedFolderTeamLocation != null && message.hasOwnProperty("sharedFolderTeamLocation")) { - let error = $root.Tokens.SharedFolderTeamLocation.verify(message.sharedFolderTeamLocation, long + 1); - if (error) - return "sharedFolderTeamLocation." + error; - } - if (message.sharedFolderUserLocation != null && message.hasOwnProperty("sharedFolderUserLocation")) { - let error = $root.Tokens.SharedFolderUserLocation.verify(message.sharedFolderUserLocation, long + 1); - if (error) - return "sharedFolderUserLocation." + error; - } - if (message.shareInvitationLocation != null && message.hasOwnProperty("shareInvitationLocation")) { - let error = $root.Tokens.ShareInvitationLocation.verify(message.shareInvitationLocation, long + 1); - if (error) - return "shareInvitationLocation." + error; - } - if (message.teamLocation != null && message.hasOwnProperty("teamLocation")) { - let error = $root.Tokens.TeamLocation.verify(message.teamLocation, long + 1); - if (error) - return "teamLocation." + error; - } - if (message.userAuthHashLocation != null && message.hasOwnProperty("userAuthHashLocation")) { - let error = $root.Tokens.UserAuthHashLocation.verify(message.userAuthHashLocation, long + 1); - if (error) - return "userAuthHashLocation." + error; - } - if (message.ksmLocation != null && message.hasOwnProperty("ksmLocation")) { - let error = $root.Tokens.KsmLocation.verify(message.ksmLocation, long + 1); - if (error) - return "ksmLocation." + error; - } - if (message.sharedFolderFolderRecordLocation != null && message.hasOwnProperty("sharedFolderFolderRecordLocation")) { - let error = $root.Tokens.SharedFolderFolderRecordLocation.verify(message.sharedFolderFolderRecordLocation, long + 1); - if (error) - return "sharedFolderFolderRecordLocation." + error; - } - if (message.userLocation != null && message.hasOwnProperty("userLocation")) { - let error = $root.Tokens.UserLocation.verify(message.userLocation, long + 1); - if (error) - return "userLocation." + error; - } - return null; - }; - /** * Creates a VaultSyncDownLocations message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -214382,6 +174651,8 @@ export const Tokens = $root.Tokens = (() => { VaultSyncDownLocations.fromObject = function fromObject(object, long) { if (object instanceof $root.Tokens.VaultSyncDownLocations) return object; + if (!$util.isObject(object)) + throw TypeError(".Tokens.VaultSyncDownLocations: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -214390,77 +174661,77 @@ export const Tokens = $root.Tokens = (() => { if (object.vaultDataEntity != null) message.vaultDataEntity = object.vaultDataEntity | 0; if (object.recordLocation != null) { - if (typeof object.recordLocation !== "object") + if (!$util.isObject(object.recordLocation)) throw TypeError(".Tokens.VaultSyncDownLocations.recordLocation: object expected"); message.recordLocation = $root.Tokens.RecordLocation.fromObject(object.recordLocation, long + 1); } if (object.recordLinkLocation != null) { - if (typeof object.recordLinkLocation !== "object") + if (!$util.isObject(object.recordLinkLocation)) throw TypeError(".Tokens.VaultSyncDownLocations.recordLinkLocation: object expected"); message.recordLinkLocation = $root.Tokens.RecordLinkLocation.fromObject(object.recordLinkLocation, long + 1); } if (object.folderLocation != null) { - if (typeof object.folderLocation !== "object") + if (!$util.isObject(object.folderLocation)) throw TypeError(".Tokens.VaultSyncDownLocations.folderLocation: object expected"); message.folderLocation = $root.Tokens.FolderLocation.fromObject(object.folderLocation, long + 1); } if (object.folderRecordLocation != null) { - if (typeof object.folderRecordLocation !== "object") + if (!$util.isObject(object.folderRecordLocation)) throw TypeError(".Tokens.VaultSyncDownLocations.folderRecordLocation: object expected"); message.folderRecordLocation = $root.Tokens.FolderRecordLocation.fromObject(object.folderRecordLocation, long + 1); } if (object.folderSharedFolderLocation != null) { - if (typeof object.folderSharedFolderLocation !== "object") + if (!$util.isObject(object.folderSharedFolderLocation)) throw TypeError(".Tokens.VaultSyncDownLocations.folderSharedFolderLocation: object expected"); message.folderSharedFolderLocation = $root.Tokens.FolderSharedFolderLocation.fromObject(object.folderSharedFolderLocation, long + 1); } if (object.sharedFolderLocation != null) { - if (typeof object.sharedFolderLocation !== "object") + if (!$util.isObject(object.sharedFolderLocation)) throw TypeError(".Tokens.VaultSyncDownLocations.sharedFolderLocation: object expected"); message.sharedFolderLocation = $root.Tokens.SharedFolderLocation.fromObject(object.sharedFolderLocation, long + 1); } if (object.sharedFolderRecordLocation != null) { - if (typeof object.sharedFolderRecordLocation !== "object") + if (!$util.isObject(object.sharedFolderRecordLocation)) throw TypeError(".Tokens.VaultSyncDownLocations.sharedFolderRecordLocation: object expected"); message.sharedFolderRecordLocation = $root.Tokens.SharedFolderRecordLocation.fromObject(object.sharedFolderRecordLocation, long + 1); } if (object.sharedFolderTeamLocation != null) { - if (typeof object.sharedFolderTeamLocation !== "object") + if (!$util.isObject(object.sharedFolderTeamLocation)) throw TypeError(".Tokens.VaultSyncDownLocations.sharedFolderTeamLocation: object expected"); message.sharedFolderTeamLocation = $root.Tokens.SharedFolderTeamLocation.fromObject(object.sharedFolderTeamLocation, long + 1); } if (object.sharedFolderUserLocation != null) { - if (typeof object.sharedFolderUserLocation !== "object") + if (!$util.isObject(object.sharedFolderUserLocation)) throw TypeError(".Tokens.VaultSyncDownLocations.sharedFolderUserLocation: object expected"); message.sharedFolderUserLocation = $root.Tokens.SharedFolderUserLocation.fromObject(object.sharedFolderUserLocation, long + 1); } if (object.shareInvitationLocation != null) { - if (typeof object.shareInvitationLocation !== "object") + if (!$util.isObject(object.shareInvitationLocation)) throw TypeError(".Tokens.VaultSyncDownLocations.shareInvitationLocation: object expected"); message.shareInvitationLocation = $root.Tokens.ShareInvitationLocation.fromObject(object.shareInvitationLocation, long + 1); } if (object.teamLocation != null) { - if (typeof object.teamLocation !== "object") + if (!$util.isObject(object.teamLocation)) throw TypeError(".Tokens.VaultSyncDownLocations.teamLocation: object expected"); message.teamLocation = $root.Tokens.TeamLocation.fromObject(object.teamLocation, long + 1); } if (object.userAuthHashLocation != null) { - if (typeof object.userAuthHashLocation !== "object") + if (!$util.isObject(object.userAuthHashLocation)) throw TypeError(".Tokens.VaultSyncDownLocations.userAuthHashLocation: object expected"); message.userAuthHashLocation = $root.Tokens.UserAuthHashLocation.fromObject(object.userAuthHashLocation, long + 1); } if (object.ksmLocation != null) { - if (typeof object.ksmLocation !== "object") + if (!$util.isObject(object.ksmLocation)) throw TypeError(".Tokens.VaultSyncDownLocations.ksmLocation: object expected"); message.ksmLocation = $root.Tokens.KsmLocation.fromObject(object.ksmLocation, long + 1); } if (object.sharedFolderFolderRecordLocation != null) { - if (typeof object.sharedFolderFolderRecordLocation !== "object") + if (!$util.isObject(object.sharedFolderFolderRecordLocation)) throw TypeError(".Tokens.VaultSyncDownLocations.sharedFolderFolderRecordLocation: object expected"); message.sharedFolderFolderRecordLocation = $root.Tokens.SharedFolderFolderRecordLocation.fromObject(object.sharedFolderFolderRecordLocation, long + 1); } if (object.userLocation != null) { - if (typeof object.userLocation !== "object") + if (!$util.isObject(object.userLocation)) throw TypeError(".Tokens.VaultSyncDownLocations.userLocation: object expected"); message.userLocation = $root.Tokens.UserLocation.fromObject(object.userLocation, long + 1); } @@ -214502,37 +174773,37 @@ export const Tokens = $root.Tokens = (() => { object.sharedFolderFolderRecordLocation = null; object.userLocation = null; } - if (message.vaultDataEntity != null && message.hasOwnProperty("vaultDataEntity")) + if (message.vaultDataEntity != null && Object.hasOwnProperty.call(message, "vaultDataEntity")) object.vaultDataEntity = message.vaultDataEntity; - if (message.recordLocation != null && message.hasOwnProperty("recordLocation")) + if (message.recordLocation != null && Object.hasOwnProperty.call(message, "recordLocation")) object.recordLocation = $root.Tokens.RecordLocation.toObject(message.recordLocation, options, q + 1); - if (message.recordLinkLocation != null && message.hasOwnProperty("recordLinkLocation")) + if (message.recordLinkLocation != null && Object.hasOwnProperty.call(message, "recordLinkLocation")) object.recordLinkLocation = $root.Tokens.RecordLinkLocation.toObject(message.recordLinkLocation, options, q + 1); - if (message.folderLocation != null && message.hasOwnProperty("folderLocation")) + if (message.folderLocation != null && Object.hasOwnProperty.call(message, "folderLocation")) object.folderLocation = $root.Tokens.FolderLocation.toObject(message.folderLocation, options, q + 1); - if (message.folderRecordLocation != null && message.hasOwnProperty("folderRecordLocation")) + if (message.folderRecordLocation != null && Object.hasOwnProperty.call(message, "folderRecordLocation")) object.folderRecordLocation = $root.Tokens.FolderRecordLocation.toObject(message.folderRecordLocation, options, q + 1); - if (message.folderSharedFolderLocation != null && message.hasOwnProperty("folderSharedFolderLocation")) + if (message.folderSharedFolderLocation != null && Object.hasOwnProperty.call(message, "folderSharedFolderLocation")) object.folderSharedFolderLocation = $root.Tokens.FolderSharedFolderLocation.toObject(message.folderSharedFolderLocation, options, q + 1); - if (message.sharedFolderLocation != null && message.hasOwnProperty("sharedFolderLocation")) + if (message.sharedFolderLocation != null && Object.hasOwnProperty.call(message, "sharedFolderLocation")) object.sharedFolderLocation = $root.Tokens.SharedFolderLocation.toObject(message.sharedFolderLocation, options, q + 1); - if (message.sharedFolderRecordLocation != null && message.hasOwnProperty("sharedFolderRecordLocation")) + if (message.sharedFolderRecordLocation != null && Object.hasOwnProperty.call(message, "sharedFolderRecordLocation")) object.sharedFolderRecordLocation = $root.Tokens.SharedFolderRecordLocation.toObject(message.sharedFolderRecordLocation, options, q + 1); - if (message.sharedFolderTeamLocation != null && message.hasOwnProperty("sharedFolderTeamLocation")) + if (message.sharedFolderTeamLocation != null && Object.hasOwnProperty.call(message, "sharedFolderTeamLocation")) object.sharedFolderTeamLocation = $root.Tokens.SharedFolderTeamLocation.toObject(message.sharedFolderTeamLocation, options, q + 1); - if (message.sharedFolderUserLocation != null && message.hasOwnProperty("sharedFolderUserLocation")) + if (message.sharedFolderUserLocation != null && Object.hasOwnProperty.call(message, "sharedFolderUserLocation")) object.sharedFolderUserLocation = $root.Tokens.SharedFolderUserLocation.toObject(message.sharedFolderUserLocation, options, q + 1); - if (message.shareInvitationLocation != null && message.hasOwnProperty("shareInvitationLocation")) + if (message.shareInvitationLocation != null && Object.hasOwnProperty.call(message, "shareInvitationLocation")) object.shareInvitationLocation = $root.Tokens.ShareInvitationLocation.toObject(message.shareInvitationLocation, options, q + 1); - if (message.teamLocation != null && message.hasOwnProperty("teamLocation")) + if (message.teamLocation != null && Object.hasOwnProperty.call(message, "teamLocation")) object.teamLocation = $root.Tokens.TeamLocation.toObject(message.teamLocation, options, q + 1); - if (message.userAuthHashLocation != null && message.hasOwnProperty("userAuthHashLocation")) + if (message.userAuthHashLocation != null && Object.hasOwnProperty.call(message, "userAuthHashLocation")) object.userAuthHashLocation = $root.Tokens.UserAuthHashLocation.toObject(message.userAuthHashLocation, options, q + 1); - if (message.ksmLocation != null && message.hasOwnProperty("ksmLocation")) + if (message.ksmLocation != null && Object.hasOwnProperty.call(message, "ksmLocation")) object.ksmLocation = $root.Tokens.KsmLocation.toObject(message.ksmLocation, options, q + 1); - if (message.sharedFolderFolderRecordLocation != null && message.hasOwnProperty("sharedFolderFolderRecordLocation")) + if (message.sharedFolderFolderRecordLocation != null && Object.hasOwnProperty.call(message, "sharedFolderFolderRecordLocation")) object.sharedFolderFolderRecordLocation = $root.Tokens.SharedFolderFolderRecordLocation.toObject(message.sharedFolderFolderRecordLocation, options, q + 1); - if (message.userLocation != null && message.hasOwnProperty("userLocation")) + if (message.userLocation != null && Object.hasOwnProperty.call(message, "userLocation")) object.userLocation = $root.Tokens.UserLocation.toObject(message.userLocation, options, q + 1); return object; }; @@ -214642,19 +174913,6 @@ export const Tokens = $root.Tokens = (() => { return writer; }; - /** - * Encodes the specified RecordLocation message, length delimited. Does not implicitly {@link Tokens.RecordLocation.verify|verify} messages. - * @function encodeDelimited - * @memberof Tokens.RecordLocation - * @static - * @param {Tokens.IRecordLocation} message RecordLocation message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RecordLocation.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a RecordLocation message from the specified reader or buffer. * @function decode @@ -214695,46 +174953,6 @@ export const Tokens = $root.Tokens = (() => { return message; }; - /** - * Decodes a RecordLocation message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Tokens.RecordLocation - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Tokens.RecordLocation} RecordLocation - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RecordLocation.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a RecordLocation message. - * @function verify - * @memberof Tokens.RecordLocation - * @static - * @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) { - if (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.lastSyncRevision != null && message.hasOwnProperty("lastSyncRevision")) - if (!$util.isInteger(message.lastSyncRevision) && !(message.lastSyncRevision && $util.isInteger(message.lastSyncRevision.low) && $util.isInteger(message.lastSyncRevision.high))) - return "lastSyncRevision: integer|Long expected"; - return null; - }; - /** * Creates a RecordLocation message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -214746,6 +174964,8 @@ export const Tokens = $root.Tokens = (() => { RecordLocation.fromObject = function fromObject(object, long) { if (object instanceof $root.Tokens.RecordLocation) return object; + if (!$util.isObject(object)) + throw TypeError(".Tokens.RecordLocation: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -214799,9 +175019,9 @@ export const Tokens = $root.Tokens = (() => { } else object.lastSyncRevision = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; } - if (message.recordUid != null && message.hasOwnProperty("recordUid")) + if (message.recordUid != null && Object.hasOwnProperty.call(message, "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 (message.lastSyncRevision != null && Object.hasOwnProperty.call(message, "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") @@ -214916,19 +175136,6 @@ export const Tokens = $root.Tokens = (() => { return writer; }; - /** - * Encodes the specified FolderLocation message, length delimited. Does not implicitly {@link Tokens.FolderLocation.verify|verify} messages. - * @function encodeDelimited - * @memberof Tokens.FolderLocation - * @static - * @param {Tokens.IFolderLocation} message FolderLocation message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - FolderLocation.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a FolderLocation message from the specified reader or buffer. * @function decode @@ -214969,46 +175176,6 @@ export const Tokens = $root.Tokens = (() => { return message; }; - /** - * Decodes a FolderLocation message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Tokens.FolderLocation - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Tokens.FolderLocation} FolderLocation - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - FolderLocation.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a FolderLocation message. - * @function verify - * @memberof Tokens.FolderLocation - * @static - * @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) { - if (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.lastSyncRevision != null && message.hasOwnProperty("lastSyncRevision")) - if (!$util.isInteger(message.lastSyncRevision) && !(message.lastSyncRevision && $util.isInteger(message.lastSyncRevision.low) && $util.isInteger(message.lastSyncRevision.high))) - return "lastSyncRevision: integer|Long expected"; - return null; - }; - /** * Creates a FolderLocation message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -215020,6 +175187,8 @@ export const Tokens = $root.Tokens = (() => { FolderLocation.fromObject = function fromObject(object, long) { if (object instanceof $root.Tokens.FolderLocation) return object; + if (!$util.isObject(object)) + throw TypeError(".Tokens.FolderLocation: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -215073,9 +175242,9 @@ export const Tokens = $root.Tokens = (() => { } else object.lastSyncRevision = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; } - if (message.folderUid != null && message.hasOwnProperty("folderUid")) + if (message.folderUid != null && Object.hasOwnProperty.call(message, "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 (message.lastSyncRevision != null && Object.hasOwnProperty.call(message, "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") @@ -215190,19 +175359,6 @@ export const Tokens = $root.Tokens = (() => { return writer; }; - /** - * Encodes the specified SharedFolderLocation message, length delimited. Does not implicitly {@link Tokens.SharedFolderLocation.verify|verify} messages. - * @function encodeDelimited - * @memberof Tokens.SharedFolderLocation - * @static - * @param {Tokens.ISharedFolderLocation} message SharedFolderLocation message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SharedFolderLocation.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a SharedFolderLocation message from the specified reader or buffer. * @function decode @@ -215243,46 +175399,6 @@ export const Tokens = $root.Tokens = (() => { return message; }; - /** - * Decodes a SharedFolderLocation message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Tokens.SharedFolderLocation - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Tokens.SharedFolderLocation} SharedFolderLocation - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SharedFolderLocation.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a SharedFolderLocation message. - * @function verify - * @memberof Tokens.SharedFolderLocation - * @static - * @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) { - if (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"; - if (message.lastSyncRevision != null && message.hasOwnProperty("lastSyncRevision")) - if (!$util.isInteger(message.lastSyncRevision) && !(message.lastSyncRevision && $util.isInteger(message.lastSyncRevision.low) && $util.isInteger(message.lastSyncRevision.high))) - return "lastSyncRevision: integer|Long expected"; - return null; - }; - /** * Creates a SharedFolderLocation message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -215294,6 +175410,8 @@ export const Tokens = $root.Tokens = (() => { SharedFolderLocation.fromObject = function fromObject(object, long) { if (object instanceof $root.Tokens.SharedFolderLocation) return object; + if (!$util.isObject(object)) + throw TypeError(".Tokens.SharedFolderLocation: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -215347,9 +175465,9 @@ export const Tokens = $root.Tokens = (() => { } else object.lastSyncRevision = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; } - if (message.sharedFolderUid != null && message.hasOwnProperty("sharedFolderUid")) + if (message.sharedFolderUid != null && Object.hasOwnProperty.call(message, "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 (message.lastSyncRevision != null && Object.hasOwnProperty.call(message, "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") @@ -215486,19 +175604,6 @@ export const Tokens = $root.Tokens = (() => { return writer; }; - /** - * Encodes the specified SharedFolderUserLocation message, length delimited. Does not implicitly {@link Tokens.SharedFolderUserLocation.verify|verify} messages. - * @function encodeDelimited - * @memberof Tokens.SharedFolderUserLocation - * @static - * @param {Tokens.ISharedFolderUserLocation} message SharedFolderUserLocation message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SharedFolderUserLocation.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a SharedFolderUserLocation message from the specified reader or buffer. * @function decode @@ -215547,52 +175652,6 @@ export const Tokens = $root.Tokens = (() => { return message; }; - /** - * Decodes a SharedFolderUserLocation message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Tokens.SharedFolderUserLocation - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Tokens.SharedFolderUserLocation} SharedFolderUserLocation - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SharedFolderUserLocation.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a SharedFolderUserLocation message. - * @function verify - * @memberof Tokens.SharedFolderUserLocation - * @static - * @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) { - if (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"; - if (message.username != null && message.hasOwnProperty("username")) - if (!$util.isString(message.username)) - return "username: string expected"; - if (message.lastSyncRevision != null && message.hasOwnProperty("lastSyncRevision")) - if (!$util.isInteger(message.lastSyncRevision) && !(message.lastSyncRevision && $util.isInteger(message.lastSyncRevision.low) && $util.isInteger(message.lastSyncRevision.high))) - return "lastSyncRevision: integer|Long expected"; - if (message.accountUid != null && message.hasOwnProperty("accountUid")) - if (!(message.accountUid && typeof message.accountUid.length === "number" || $util.isString(message.accountUid))) - return "accountUid: buffer expected"; - return null; - }; - /** * Creates a SharedFolderUserLocation message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -215604,6 +175663,8 @@ export const Tokens = $root.Tokens = (() => { SharedFolderUserLocation.fromObject = function fromObject(object, long) { if (object instanceof $root.Tokens.SharedFolderUserLocation) return object; + if (!$util.isObject(object)) + throw TypeError(".Tokens.SharedFolderUserLocation: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -215672,18 +175733,18 @@ export const Tokens = $root.Tokens = (() => { object.accountUid = $util.newBuffer(object.accountUid); } } - if (message.sharedFolderUid != null && message.hasOwnProperty("sharedFolderUid")) + if (message.sharedFolderUid != null && Object.hasOwnProperty.call(message, "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.username != null && message.hasOwnProperty("username")) + if (message.username != null && Object.hasOwnProperty.call(message, "username")) object.username = message.username; - if (message.lastSyncRevision != null && message.hasOwnProperty("lastSyncRevision")) + if (message.lastSyncRevision != null && Object.hasOwnProperty.call(message, "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") 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; - if (message.accountUid != null && message.hasOwnProperty("accountUid")) + if (message.accountUid != null && Object.hasOwnProperty.call(message, "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; return object; }; @@ -215804,19 +175865,6 @@ export const Tokens = $root.Tokens = (() => { return writer; }; - /** - * Encodes the specified SharedFolderTeamLocation message, length delimited. Does not implicitly {@link Tokens.SharedFolderTeamLocation.verify|verify} messages. - * @function encodeDelimited - * @memberof Tokens.SharedFolderTeamLocation - * @static - * @param {Tokens.ISharedFolderTeamLocation} message SharedFolderTeamLocation message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SharedFolderTeamLocation.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a SharedFolderTeamLocation message from the specified reader or buffer. * @function decode @@ -215861,49 +175909,6 @@ export const Tokens = $root.Tokens = (() => { return message; }; - /** - * Decodes a SharedFolderTeamLocation message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Tokens.SharedFolderTeamLocation - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Tokens.SharedFolderTeamLocation} SharedFolderTeamLocation - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SharedFolderTeamLocation.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a SharedFolderTeamLocation message. - * @function verify - * @memberof Tokens.SharedFolderTeamLocation - * @static - * @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) { - if (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"; - if (message.teamUid != null && message.hasOwnProperty("teamUid")) - if (!(message.teamUid && typeof message.teamUid.length === "number" || $util.isString(message.teamUid))) - return "teamUid: buffer expected"; - if (message.lastSyncRevision != null && message.hasOwnProperty("lastSyncRevision")) - if (!$util.isInteger(message.lastSyncRevision) && !(message.lastSyncRevision && $util.isInteger(message.lastSyncRevision.low) && $util.isInteger(message.lastSyncRevision.high))) - return "lastSyncRevision: integer|Long expected"; - return null; - }; - /** * Creates a SharedFolderTeamLocation message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -215915,6 +175920,8 @@ export const Tokens = $root.Tokens = (() => { SharedFolderTeamLocation.fromObject = function fromObject(object, long) { if (object instanceof $root.Tokens.SharedFolderTeamLocation) return object; + if (!$util.isObject(object)) + throw TypeError(".Tokens.SharedFolderTeamLocation: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -215980,11 +175987,11 @@ export const Tokens = $root.Tokens = (() => { } else object.lastSyncRevision = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; } - if (message.sharedFolderUid != null && message.hasOwnProperty("sharedFolderUid")) + if (message.sharedFolderUid != null && Object.hasOwnProperty.call(message, "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")) + if (message.teamUid != null && Object.hasOwnProperty.call(message, "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 (message.lastSyncRevision != null && Object.hasOwnProperty.call(message, "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") @@ -216110,19 +176117,6 @@ export const Tokens = $root.Tokens = (() => { return writer; }; - /** - * Encodes the specified SharedFolderRecordLocation message, length delimited. Does not implicitly {@link Tokens.SharedFolderRecordLocation.verify|verify} messages. - * @function encodeDelimited - * @memberof Tokens.SharedFolderRecordLocation - * @static - * @param {Tokens.ISharedFolderRecordLocation} message SharedFolderRecordLocation message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SharedFolderRecordLocation.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a SharedFolderRecordLocation message from the specified reader or buffer. * @function decode @@ -216167,49 +176161,6 @@ export const Tokens = $root.Tokens = (() => { return message; }; - /** - * Decodes a SharedFolderRecordLocation message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Tokens.SharedFolderRecordLocation - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Tokens.SharedFolderRecordLocation} SharedFolderRecordLocation - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SharedFolderRecordLocation.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a SharedFolderRecordLocation message. - * @function verify - * @memberof Tokens.SharedFolderRecordLocation - * @static - * @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) { - if (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"; - 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.lastSyncRevision != null && message.hasOwnProperty("lastSyncRevision")) - if (!$util.isInteger(message.lastSyncRevision) && !(message.lastSyncRevision && $util.isInteger(message.lastSyncRevision.low) && $util.isInteger(message.lastSyncRevision.high))) - return "lastSyncRevision: integer|Long expected"; - return null; - }; - /** * Creates a SharedFolderRecordLocation message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -216221,6 +176172,8 @@ export const Tokens = $root.Tokens = (() => { SharedFolderRecordLocation.fromObject = function fromObject(object, long) { if (object instanceof $root.Tokens.SharedFolderRecordLocation) return object; + if (!$util.isObject(object)) + throw TypeError(".Tokens.SharedFolderRecordLocation: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -216286,11 +176239,11 @@ export const Tokens = $root.Tokens = (() => { } else object.lastSyncRevision = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; } - if (message.sharedFolderUid != null && message.hasOwnProperty("sharedFolderUid")) + if (message.sharedFolderUid != null && Object.hasOwnProperty.call(message, "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")) + if (message.recordUid != null && Object.hasOwnProperty.call(message, "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 (message.lastSyncRevision != null && Object.hasOwnProperty.call(message, "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") @@ -216416,19 +176369,6 @@ export const Tokens = $root.Tokens = (() => { return writer; }; - /** - * Encodes the specified SharedFolderFolderRecordLocation message, length delimited. Does not implicitly {@link Tokens.SharedFolderFolderRecordLocation.verify|verify} messages. - * @function encodeDelimited - * @memberof Tokens.SharedFolderFolderRecordLocation - * @static - * @param {Tokens.ISharedFolderFolderRecordLocation} message SharedFolderFolderRecordLocation message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SharedFolderFolderRecordLocation.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a SharedFolderFolderRecordLocation message from the specified reader or buffer. * @function decode @@ -216473,49 +176413,6 @@ export const Tokens = $root.Tokens = (() => { return message; }; - /** - * Decodes a SharedFolderFolderRecordLocation message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Tokens.SharedFolderFolderRecordLocation - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Tokens.SharedFolderFolderRecordLocation} SharedFolderFolderRecordLocation - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SharedFolderFolderRecordLocation.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a SharedFolderFolderRecordLocation message. - * @function verify - * @memberof Tokens.SharedFolderFolderRecordLocation - * @static - * @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) { - if (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"; - 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.recordUid != null && message.hasOwnProperty("recordUid")) - if (!(message.recordUid && typeof message.recordUid.length === "number" || $util.isString(message.recordUid))) - return "recordUid: buffer expected"; - return null; - }; - /** * Creates a SharedFolderFolderRecordLocation message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -216527,6 +176424,8 @@ export const Tokens = $root.Tokens = (() => { SharedFolderFolderRecordLocation.fromObject = function fromObject(object, long) { if (object instanceof $root.Tokens.SharedFolderFolderRecordLocation) return object; + if (!$util.isObject(object)) + throw TypeError(".Tokens.SharedFolderFolderRecordLocation: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -216590,11 +176489,11 @@ export const Tokens = $root.Tokens = (() => { object.recordUid = $util.newBuffer(object.recordUid); } } - if (message.sharedFolderUid != null && message.hasOwnProperty("sharedFolderUid")) + if (message.sharedFolderUid != null && Object.hasOwnProperty.call(message, "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.folderUid != null && message.hasOwnProperty("folderUid")) + if (message.folderUid != null && Object.hasOwnProperty.call(message, "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")) + if (message.recordUid != null && Object.hasOwnProperty.call(message, "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; return object; }; @@ -216704,19 +176603,6 @@ export const Tokens = $root.Tokens = (() => { return writer; }; - /** - * Encodes the specified TeamLocation message, length delimited. Does not implicitly {@link Tokens.TeamLocation.verify|verify} messages. - * @function encodeDelimited - * @memberof Tokens.TeamLocation - * @static - * @param {Tokens.ITeamLocation} message TeamLocation message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TeamLocation.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a TeamLocation message from the specified reader or buffer. * @function decode @@ -216757,46 +176643,6 @@ export const Tokens = $root.Tokens = (() => { return message; }; - /** - * Decodes a TeamLocation message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Tokens.TeamLocation - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Tokens.TeamLocation} TeamLocation - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TeamLocation.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a TeamLocation message. - * @function verify - * @memberof Tokens.TeamLocation - * @static - * @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) { - if (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"; - if (message.lastSyncRevision != null && message.hasOwnProperty("lastSyncRevision")) - if (!$util.isInteger(message.lastSyncRevision) && !(message.lastSyncRevision && $util.isInteger(message.lastSyncRevision.low) && $util.isInteger(message.lastSyncRevision.high))) - return "lastSyncRevision: integer|Long expected"; - return null; - }; - /** * Creates a TeamLocation message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -216808,6 +176654,8 @@ export const Tokens = $root.Tokens = (() => { TeamLocation.fromObject = function fromObject(object, long) { if (object instanceof $root.Tokens.TeamLocation) return object; + if (!$util.isObject(object)) + throw TypeError(".Tokens.TeamLocation: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -216861,9 +176709,9 @@ export const Tokens = $root.Tokens = (() => { } else object.lastSyncRevision = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; } - if (message.teamUid != null && message.hasOwnProperty("teamUid")) + if (message.teamUid != null && Object.hasOwnProperty.call(message, "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 (message.lastSyncRevision != null && Object.hasOwnProperty.call(message, "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") @@ -216978,19 +176826,6 @@ export const Tokens = $root.Tokens = (() => { return writer; }; - /** - * Encodes the specified UserAuthHashLocation message, length delimited. Does not implicitly {@link Tokens.UserAuthHashLocation.verify|verify} messages. - * @function encodeDelimited - * @memberof Tokens.UserAuthHashLocation - * @static - * @param {Tokens.IUserAuthHashLocation} message UserAuthHashLocation message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - UserAuthHashLocation.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a UserAuthHashLocation message from the specified reader or buffer. * @function decode @@ -217031,46 +176866,6 @@ export const Tokens = $root.Tokens = (() => { return message; }; - /** - * Decodes a UserAuthHashLocation message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Tokens.UserAuthHashLocation - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Tokens.UserAuthHashLocation} UserAuthHashLocation - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - UserAuthHashLocation.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a UserAuthHashLocation message. - * @function verify - * @memberof Tokens.UserAuthHashLocation - * @static - * @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) { - if (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"; - if (message.lastSyncRevision != null && message.hasOwnProperty("lastSyncRevision")) - if (!$util.isInteger(message.lastSyncRevision) && !(message.lastSyncRevision && $util.isInteger(message.lastSyncRevision.low) && $util.isInteger(message.lastSyncRevision.high))) - return "lastSyncRevision: integer|Long expected"; - return null; - }; - /** * Creates a UserAuthHashLocation message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -217082,6 +176877,8 @@ export const Tokens = $root.Tokens = (() => { UserAuthHashLocation.fromObject = function fromObject(object, long) { if (object instanceof $root.Tokens.UserAuthHashLocation) return object; + if (!$util.isObject(object)) + throw TypeError(".Tokens.UserAuthHashLocation: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -217135,9 +176932,9 @@ export const Tokens = $root.Tokens = (() => { } else object.lastSyncRevision = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; } - if (message.userAuthHashUid != null && message.hasOwnProperty("userAuthHashUid")) + if (message.userAuthHashUid != null && Object.hasOwnProperty.call(message, "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 (message.lastSyncRevision != null && Object.hasOwnProperty.call(message, "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") @@ -217263,19 +177060,6 @@ export const Tokens = $root.Tokens = (() => { return writer; }; - /** - * Encodes the specified FolderRecordLocation message, length delimited. Does not implicitly {@link Tokens.FolderRecordLocation.verify|verify} messages. - * @function encodeDelimited - * @memberof Tokens.FolderRecordLocation - * @static - * @param {Tokens.IFolderRecordLocation} message FolderRecordLocation message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - FolderRecordLocation.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a FolderRecordLocation message from the specified reader or buffer. * @function decode @@ -217320,49 +177104,6 @@ export const Tokens = $root.Tokens = (() => { return message; }; - /** - * Decodes a FolderRecordLocation message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Tokens.FolderRecordLocation - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Tokens.FolderRecordLocation} FolderRecordLocation - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - FolderRecordLocation.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a FolderRecordLocation message. - * @function verify - * @memberof Tokens.FolderRecordLocation - * @static - * @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) { - if (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.recordUid != null && message.hasOwnProperty("recordUid")) - if (!(message.recordUid && typeof message.recordUid.length === "number" || $util.isString(message.recordUid))) - return "recordUid: buffer expected"; - if (message.lastSyncRevision != null && message.hasOwnProperty("lastSyncRevision")) - if (!$util.isInteger(message.lastSyncRevision) && !(message.lastSyncRevision && $util.isInteger(message.lastSyncRevision.low) && $util.isInteger(message.lastSyncRevision.high))) - return "lastSyncRevision: integer|Long expected"; - return null; - }; - /** * Creates a FolderRecordLocation message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -217374,6 +177115,8 @@ export const Tokens = $root.Tokens = (() => { FolderRecordLocation.fromObject = function fromObject(object, long) { if (object instanceof $root.Tokens.FolderRecordLocation) return object; + if (!$util.isObject(object)) + throw TypeError(".Tokens.FolderRecordLocation: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -217439,11 +177182,11 @@ export const Tokens = $root.Tokens = (() => { } else object.lastSyncRevision = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; } - if (message.folderUid != null && message.hasOwnProperty("folderUid")) + if (message.folderUid != null && Object.hasOwnProperty.call(message, "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")) + if (message.recordUid != null && Object.hasOwnProperty.call(message, "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 (message.lastSyncRevision != null && Object.hasOwnProperty.call(message, "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") @@ -217569,19 +177312,6 @@ export const Tokens = $root.Tokens = (() => { return writer; }; - /** - * Encodes the specified RecordLinkLocation message, length delimited. Does not implicitly {@link Tokens.RecordLinkLocation.verify|verify} messages. - * @function encodeDelimited - * @memberof Tokens.RecordLinkLocation - * @static - * @param {Tokens.IRecordLinkLocation} message RecordLinkLocation message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RecordLinkLocation.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a RecordLinkLocation message from the specified reader or buffer. * @function decode @@ -217626,49 +177356,6 @@ export const Tokens = $root.Tokens = (() => { return message; }; - /** - * Decodes a RecordLinkLocation message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Tokens.RecordLinkLocation - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Tokens.RecordLinkLocation} RecordLinkLocation - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RecordLinkLocation.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a RecordLinkLocation message. - * @function verify - * @memberof Tokens.RecordLinkLocation - * @static - * @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) { - if (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"; - if (message.childRecordUid != null && message.hasOwnProperty("childRecordUid")) - if (!(message.childRecordUid && typeof message.childRecordUid.length === "number" || $util.isString(message.childRecordUid))) - return "childRecordUid: buffer expected"; - if (message.lastSyncRevision != null && message.hasOwnProperty("lastSyncRevision")) - if (!$util.isInteger(message.lastSyncRevision) && !(message.lastSyncRevision && $util.isInteger(message.lastSyncRevision.low) && $util.isInteger(message.lastSyncRevision.high))) - return "lastSyncRevision: integer|Long expected"; - return null; - }; - /** * Creates a RecordLinkLocation message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -217680,6 +177367,8 @@ export const Tokens = $root.Tokens = (() => { RecordLinkLocation.fromObject = function fromObject(object, long) { if (object instanceof $root.Tokens.RecordLinkLocation) return object; + if (!$util.isObject(object)) + throw TypeError(".Tokens.RecordLinkLocation: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -217745,11 +177434,11 @@ export const Tokens = $root.Tokens = (() => { } else object.lastSyncRevision = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; } - if (message.parentRecordUid != null && message.hasOwnProperty("parentRecordUid")) + if (message.parentRecordUid != null && Object.hasOwnProperty.call(message, "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")) + if (message.childRecordUid != null && Object.hasOwnProperty.call(message, "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 (message.lastSyncRevision != null && Object.hasOwnProperty.call(message, "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") @@ -217875,19 +177564,6 @@ export const Tokens = $root.Tokens = (() => { return writer; }; - /** - * Encodes the specified KsmLocation message, length delimited. Does not implicitly {@link Tokens.KsmLocation.verify|verify} messages. - * @function encodeDelimited - * @memberof Tokens.KsmLocation - * @static - * @param {Tokens.IKsmLocation} message KsmLocation message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - KsmLocation.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a KsmLocation message from the specified reader or buffer. * @function decode @@ -217932,49 +177608,6 @@ export const Tokens = $root.Tokens = (() => { return message; }; - /** - * Decodes a KsmLocation message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Tokens.KsmLocation - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Tokens.KsmLocation} KsmLocation - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - KsmLocation.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a KsmLocation message. - * @function verify - * @memberof Tokens.KsmLocation - * @static - * @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) { - if (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"; - if (message.detailUid != null && message.hasOwnProperty("detailUid")) - if (!(message.detailUid && typeof message.detailUid.length === "number" || $util.isString(message.detailUid))) - return "detailUid: buffer expected"; - if (message.lastSyncRevision != null && message.hasOwnProperty("lastSyncRevision")) - if (!$util.isInteger(message.lastSyncRevision) && !(message.lastSyncRevision && $util.isInteger(message.lastSyncRevision.low) && $util.isInteger(message.lastSyncRevision.high))) - return "lastSyncRevision: integer|Long expected"; - return null; - }; - /** * Creates a KsmLocation message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -217986,6 +177619,8 @@ export const Tokens = $root.Tokens = (() => { KsmLocation.fromObject = function fromObject(object, long) { if (object instanceof $root.Tokens.KsmLocation) return object; + if (!$util.isObject(object)) + throw TypeError(".Tokens.KsmLocation: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -218051,11 +177686,11 @@ export const Tokens = $root.Tokens = (() => { } else object.lastSyncRevision = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; } - if (message.appRecordUid != null && message.hasOwnProperty("appRecordUid")) + if (message.appRecordUid != null && Object.hasOwnProperty.call(message, "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")) + if (message.detailUid != null && Object.hasOwnProperty.call(message, "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 (message.lastSyncRevision != null && Object.hasOwnProperty.call(message, "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") @@ -218181,19 +177816,6 @@ export const Tokens = $root.Tokens = (() => { return writer; }; - /** - * Encodes the specified FolderSharedFolderLocation message, length delimited. Does not implicitly {@link Tokens.FolderSharedFolderLocation.verify|verify} messages. - * @function encodeDelimited - * @memberof Tokens.FolderSharedFolderLocation - * @static - * @param {Tokens.IFolderSharedFolderLocation} message FolderSharedFolderLocation message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - FolderSharedFolderLocation.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a FolderSharedFolderLocation message from the specified reader or buffer. * @function decode @@ -218238,49 +177860,6 @@ export const Tokens = $root.Tokens = (() => { return message; }; - /** - * Decodes a FolderSharedFolderLocation message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Tokens.FolderSharedFolderLocation - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Tokens.FolderSharedFolderLocation} FolderSharedFolderLocation - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - FolderSharedFolderLocation.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a FolderSharedFolderLocation message. - * @function verify - * @memberof Tokens.FolderSharedFolderLocation - * @static - * @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) { - if (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.sharedFolderUid != null && message.hasOwnProperty("sharedFolderUid")) - if (!(message.sharedFolderUid && typeof message.sharedFolderUid.length === "number" || $util.isString(message.sharedFolderUid))) - return "sharedFolderUid: buffer expected"; - if (message.lastSyncRevision != null && message.hasOwnProperty("lastSyncRevision")) - if (!$util.isInteger(message.lastSyncRevision) && !(message.lastSyncRevision && $util.isInteger(message.lastSyncRevision.low) && $util.isInteger(message.lastSyncRevision.high))) - return "lastSyncRevision: integer|Long expected"; - return null; - }; - /** * Creates a FolderSharedFolderLocation message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -218292,6 +177871,8 @@ export const Tokens = $root.Tokens = (() => { FolderSharedFolderLocation.fromObject = function fromObject(object, long) { if (object instanceof $root.Tokens.FolderSharedFolderLocation) return object; + if (!$util.isObject(object)) + throw TypeError(".Tokens.FolderSharedFolderLocation: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -218357,11 +177938,11 @@ export const Tokens = $root.Tokens = (() => { } else object.lastSyncRevision = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; } - if (message.folderUid != null && message.hasOwnProperty("folderUid")) + if (message.folderUid != null && Object.hasOwnProperty.call(message, "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")) + if (message.sharedFolderUid != null && Object.hasOwnProperty.call(message, "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 (message.lastSyncRevision != null && Object.hasOwnProperty.call(message, "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") @@ -218465,19 +178046,6 @@ export const Tokens = $root.Tokens = (() => { return writer; }; - /** - * Encodes the specified ShareInvitationLocation message, length delimited. Does not implicitly {@link Tokens.ShareInvitationLocation.verify|verify} messages. - * @function encodeDelimited - * @memberof Tokens.ShareInvitationLocation - * @static - * @param {Tokens.IShareInvitationLocation} message ShareInvitationLocation message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ShareInvitationLocation.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a ShareInvitationLocation message from the specified reader or buffer. * @function decode @@ -218514,43 +178082,6 @@ export const Tokens = $root.Tokens = (() => { return message; }; - /** - * Decodes a ShareInvitationLocation message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Tokens.ShareInvitationLocation - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Tokens.ShareInvitationLocation} ShareInvitationLocation - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ShareInvitationLocation.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a ShareInvitationLocation message. - * @function verify - * @memberof Tokens.ShareInvitationLocation - * @static - * @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) { - if (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"; - return null; - }; - /** * Creates a ShareInvitationLocation message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -218562,6 +178093,8 @@ export const Tokens = $root.Tokens = (() => { ShareInvitationLocation.fromObject = function fromObject(object, long) { if (object instanceof $root.Tokens.ShareInvitationLocation) return object; + if (!$util.isObject(object)) + throw TypeError(".Tokens.ShareInvitationLocation: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -218591,7 +178124,7 @@ export const Tokens = $root.Tokens = (() => { let object = {}; if (options.defaults) object.username = ""; - if (message.username != null && message.hasOwnProperty("username")) + if (message.username != null && Object.hasOwnProperty.call(message, "username")) object.username = message.username; return object; }; @@ -218690,19 +178223,6 @@ export const Tokens = $root.Tokens = (() => { return writer; }; - /** - * Encodes the specified UserLocation message, length delimited. Does not implicitly {@link Tokens.UserLocation.verify|verify} messages. - * @function encodeDelimited - * @memberof Tokens.UserLocation - * @static - * @param {Tokens.IUserLocation} message UserLocation message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - UserLocation.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a UserLocation message from the specified reader or buffer. * @function decode @@ -218739,43 +178259,6 @@ export const Tokens = $root.Tokens = (() => { return message; }; - /** - * Decodes a UserLocation message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Tokens.UserLocation - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Tokens.UserLocation} UserLocation - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - UserLocation.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a UserLocation message. - * @function verify - * @memberof Tokens.UserLocation - * @static - * @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) { - if (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"; - return null; - }; - /** * Creates a UserLocation message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -218787,6 +178270,8 @@ export const Tokens = $root.Tokens = (() => { UserLocation.fromObject = function fromObject(object, long) { if (object instanceof $root.Tokens.UserLocation) return object; + if (!$util.isObject(object)) + throw TypeError(".Tokens.UserLocation: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -218816,7 +178301,7 @@ export const Tokens = $root.Tokens = (() => { let object = {}; if (options.defaults) object.userId = 0; - if (message.userId != null && message.hasOwnProperty("userId")) + if (message.userId != null && Object.hasOwnProperty.call(message, "userId")) object.userId = message.userId; return object; }; @@ -218928,19 +178413,6 @@ export const Tokens = $root.Tokens = (() => { return writer; }; - /** - * Encodes the specified KeyCloakToken message, length delimited. Does not implicitly {@link Tokens.KeyCloakToken.verify|verify} messages. - * @function encodeDelimited - * @memberof Tokens.KeyCloakToken - * @static - * @param {Tokens.IKeyCloakToken} message KeyCloakToken message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - KeyCloakToken.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a KeyCloakToken message from the specified reader or buffer. * @function decode @@ -218983,50 +178455,6 @@ export const Tokens = $root.Tokens = (() => { return message; }; - /** - * Decodes a KeyCloakToken message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Tokens.KeyCloakToken - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Tokens.KeyCloakToken} KeyCloakToken - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - KeyCloakToken.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a KeyCloakToken message. - * @function verify - * @memberof Tokens.KeyCloakToken - * @static - * @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) { - if (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"; - if (message.groups != null && message.hasOwnProperty("groups")) { - if (!Array.isArray(message.groups)) - return "groups: array expected"; - for (let i = 0; i < message.groups.length; ++i) - if (!$util.isString(message.groups[i])) - return "groups: string[] expected"; - } - return null; - }; - /** * Creates a KeyCloakToken message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -219038,6 +178466,8 @@ export const Tokens = $root.Tokens = (() => { KeyCloakToken.fromObject = function fromObject(object, long) { if (object instanceof $root.Tokens.KeyCloakToken) return object; + if (!$util.isObject(object)) + throw TypeError(".Tokens.KeyCloakToken: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -219076,7 +178506,7 @@ export const Tokens = $root.Tokens = (() => { object.groups = []; if (options.defaults) object.email = ""; - if (message.email != null && message.hasOwnProperty("email")) + if (message.email != null && Object.hasOwnProperty.call(message, "email")) object.email = message.email; if (message.groups && message.groups.length) { object.groups = []; @@ -219180,19 +178610,6 @@ export const Tokens = $root.Tokens = (() => { return writer; }; - /** - * Encodes the specified IPWhiteList message, length delimited. Does not implicitly {@link Tokens.IPWhiteList.verify|verify} messages. - * @function encodeDelimited - * @memberof Tokens.IPWhiteList - * @static - * @param {Tokens.IIPWhiteList} message IPWhiteList message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - IPWhiteList.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a IPWhiteList message from the specified reader or buffer. * @function decode @@ -219229,43 +178646,6 @@ export const Tokens = $root.Tokens = (() => { return message; }; - /** - * Decodes a IPWhiteList message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Tokens.IPWhiteList - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Tokens.IPWhiteList} IPWhiteList - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - IPWhiteList.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a IPWhiteList message. - * @function verify - * @memberof Tokens.IPWhiteList - * @static - * @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) { - if (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"; - return null; - }; - /** * Creates a IPWhiteList message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -219277,6 +178657,8 @@ export const Tokens = $root.Tokens = (() => { IPWhiteList.fromObject = function fromObject(object, long) { if (object instanceof $root.Tokens.IPWhiteList) return object; + if (!$util.isObject(object)) + throw TypeError(".Tokens.IPWhiteList: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -219306,7 +178688,7 @@ export const Tokens = $root.Tokens = (() => { let object = {}; if (options.defaults) object.ipranges = ""; - if (message.ipranges != null && message.hasOwnProperty("ipranges")) + if (message.ipranges != null && Object.hasOwnProperty.call(message, "ipranges")) object.ipranges = message.ipranges; return object; }; @@ -219427,19 +178809,6 @@ export const Tokens = $root.Tokens = (() => { return writer; }; - /** - * Encodes the specified IncrementalSecurityDataContToken message, length delimited. Does not implicitly {@link Tokens.IncrementalSecurityDataContToken.verify|verify} messages. - * @function encodeDelimited - * @memberof Tokens.IncrementalSecurityDataContToken - * @static - * @param {Tokens.IIncrementalSecurityDataContToken} message IncrementalSecurityDataContToken message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - IncrementalSecurityDataContToken.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes an IncrementalSecurityDataContToken message from the specified reader or buffer. * @function decode @@ -219484,49 +178853,6 @@ export const Tokens = $root.Tokens = (() => { return message; }; - /** - * Decodes an IncrementalSecurityDataContToken message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Tokens.IncrementalSecurityDataContToken - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Tokens.IncrementalSecurityDataContToken} IncrementalSecurityDataContToken - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - IncrementalSecurityDataContToken.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an IncrementalSecurityDataContToken message. - * @function verify - * @memberof Tokens.IncrementalSecurityDataContToken - * @static - * @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) { - if (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"; - if (message.revisionUpToSave != null && message.hasOwnProperty("revisionUpToSave")) - if (!$util.isInteger(message.revisionUpToSave) && !(message.revisionUpToSave && $util.isInteger(message.revisionUpToSave.low) && $util.isInteger(message.revisionUpToSave.high))) - return "revisionUpToSave: integer|Long expected"; - if (message.recordUidUpToSave != null && message.hasOwnProperty("recordUidUpToSave")) - if (!(message.recordUidUpToSave && typeof message.recordUidUpToSave.length === "number" || $util.isString(message.recordUidUpToSave))) - return "recordUidUpToSave: buffer expected"; - return null; - }; - /** * Creates an IncrementalSecurityDataContToken message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -219538,6 +178864,8 @@ export const Tokens = $root.Tokens = (() => { IncrementalSecurityDataContToken.fromObject = function fromObject(object, long) { if (object instanceof $root.Tokens.IncrementalSecurityDataContToken) return object; + if (!$util.isObject(object)) + throw TypeError(".Tokens.IncrementalSecurityDataContToken: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -219605,21 +178933,21 @@ export const Tokens = $root.Tokens = (() => { object.recordUidUpToSave = $util.newBuffer(object.recordUidUpToSave); } } - if (message.enterpriseUserIdUpToSave != null && message.hasOwnProperty("enterpriseUserIdUpToSave")) + if (message.enterpriseUserIdUpToSave != null && Object.hasOwnProperty.call(message, "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") 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 (message.revisionUpToSave != null && Object.hasOwnProperty.call(message, "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") 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; - if (message.recordUidUpToSave != null && message.hasOwnProperty("recordUidUpToSave")) + if (message.recordUidUpToSave != null && Object.hasOwnProperty.call(message, "recordUidUpToSave")) object.recordUidUpToSave = options.bytes === String ? $util.base64.encode(message.recordUidUpToSave, 0, message.recordUidUpToSave.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordUidUpToSave) : message.recordUidUpToSave; return object; }; @@ -219763,19 +179091,6 @@ export const ExternalService = $root.ExternalService = (() => { return writer; }; - /** - * Encodes the specified SaveSettingsRequest message, length delimited. Does not implicitly {@link ExternalService.SaveSettingsRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof ExternalService.SaveSettingsRequest - * @static - * @param {ExternalService.ISaveSettingsRequest} message SaveSettingsRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SaveSettingsRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a SaveSettingsRequest message from the specified reader or buffer. * @function decode @@ -219824,52 +179139,6 @@ export const ExternalService = $root.ExternalService = (() => { return message; }; - /** - * Decodes a SaveSettingsRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof ExternalService.SaveSettingsRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ExternalService.SaveSettingsRequest} SaveSettingsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SaveSettingsRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a SaveSettingsRequest message. - * @function verify - * @memberof ExternalService.SaveSettingsRequest - * @static - * @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) { - if (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"; - if (message.certificate != null && message.hasOwnProperty("certificate")) - if (!(message.certificate && typeof message.certificate.length === "number" || $util.isString(message.certificate))) - return "certificate: buffer expected"; - if (message.password != null && message.hasOwnProperty("password")) - if (!$util.isString(message.password)) - return "password: string expected"; - if (message.directoryUrl != null && message.hasOwnProperty("directoryUrl")) - if (!$util.isString(message.directoryUrl)) - return "directoryUrl: string expected"; - return null; - }; - /** * Creates a SaveSettingsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -219881,6 +179150,8 @@ export const ExternalService = $root.ExternalService = (() => { SaveSettingsRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.ExternalService.SaveSettingsRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".ExternalService.SaveSettingsRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -219929,13 +179200,13 @@ export const ExternalService = $root.ExternalService = (() => { object.password = ""; object.directoryUrl = ""; } - if (message.enterpriseId != null && message.hasOwnProperty("enterpriseId")) + if (message.enterpriseId != null && Object.hasOwnProperty.call(message, "enterpriseId")) object.enterpriseId = message.enterpriseId; - if (message.certificate != null && message.hasOwnProperty("certificate")) + if (message.certificate != null && Object.hasOwnProperty.call(message, "certificate")) object.certificate = options.bytes === String ? $util.base64.encode(message.certificate, 0, message.certificate.length) : options.bytes === Array ? Array.prototype.slice.call(message.certificate) : message.certificate; - if (message.password != null && message.hasOwnProperty("password")) + if (message.password != null && Object.hasOwnProperty.call(message, "password")) object.password = message.password; - if (message.directoryUrl != null && message.hasOwnProperty("directoryUrl")) + if (message.directoryUrl != null && Object.hasOwnProperty.call(message, "directoryUrl")) object.directoryUrl = message.directoryUrl; return object; }; @@ -220045,19 +179316,6 @@ export const ExternalService = $root.ExternalService = (() => { return writer; }; - /** - * Encodes the specified GetUsersRequest message, length delimited. Does not implicitly {@link ExternalService.GetUsersRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof ExternalService.GetUsersRequest - * @static - * @param {ExternalService.IGetUsersRequest} message GetUsersRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetUsersRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a GetUsersRequest message from the specified reader or buffer. * @function decode @@ -220098,46 +179356,6 @@ export const ExternalService = $root.ExternalService = (() => { return message; }; - /** - * Decodes a GetUsersRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof ExternalService.GetUsersRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ExternalService.GetUsersRequest} GetUsersRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetUsersRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a GetUsersRequest message. - * @function verify - * @memberof ExternalService.GetUsersRequest - * @static - * @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) { - if (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"; - if (message.value != null && message.hasOwnProperty("value")) - if (!$util.isString(message.value)) - return "value: string expected"; - return null; - }; - /** * Creates a GetUsersRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -220149,6 +179367,8 @@ export const ExternalService = $root.ExternalService = (() => { GetUsersRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.ExternalService.GetUsersRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".ExternalService.GetUsersRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -220182,9 +179402,9 @@ export const ExternalService = $root.ExternalService = (() => { object.field = ""; object.value = ""; } - if (message.field != null && message.hasOwnProperty("field")) + if (message.field != null && Object.hasOwnProperty.call(message, "field")) object.field = message.field; - if (message.value != null && message.hasOwnProperty("value")) + if (message.value != null && Object.hasOwnProperty.call(message, "value")) object.value = message.value; return object; }; @@ -220350,19 +179570,6 @@ export const ExternalService = $root.ExternalService = (() => { return writer; }; - /** - * Encodes the specified User message, length delimited. Does not implicitly {@link ExternalService.User.verify|verify} messages. - * @function encodeDelimited - * @memberof ExternalService.User - * @static - * @param {ExternalService.IUser} message User message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - User.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a User message from the specified reader or buffer. * @function decode @@ -220411,65 +179618,6 @@ export const ExternalService = $root.ExternalService = (() => { return message; }; - /** - * Decodes a User message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof ExternalService.User - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ExternalService.User} User - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - User.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a User message. - * @function verify - * @memberof ExternalService.User - * @static - * @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) { - if (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"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.status != null && message.hasOwnProperty("status")) - switch (message.status) { - default: - return "status: enum value expected"; - case 0: - case 1: - case 2: - case 3: - break; - } - if (message.lockStatus != null && message.hasOwnProperty("lockStatus")) - switch (message.lockStatus) { - default: - return "lockStatus: enum value expected"; - case 0: - case 1: - case 2: - break; - } - return null; - }; - /** * Creates a User message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -220481,6 +179629,8 @@ export const ExternalService = $root.ExternalService = (() => { User.fromObject = function fromObject(object, long) { if (object instanceof $root.ExternalService.User) return object; + if (!$util.isObject(object)) + throw TypeError(".ExternalService.User: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -220560,13 +179710,13 @@ export const ExternalService = $root.ExternalService = (() => { object.status = options.enums === String ? "NEW" : 0; object.lockStatus = options.enums === String ? "UNLOCKED" : 0; } - if (message.email != null && message.hasOwnProperty("email")) + if (message.email != null && Object.hasOwnProperty.call(message, "email")) object.email = message.email; - if (message.name != null && message.hasOwnProperty("name")) + if (message.name != null && Object.hasOwnProperty.call(message, "name")) object.name = message.name; - if (message.status != null && message.hasOwnProperty("status")) + if (message.status != null && Object.hasOwnProperty.call(message, "status")) object.status = options.enums === String ? $root.ExternalService.UserStatus[message.status] === undefined ? message.status : $root.ExternalService.UserStatus[message.status] : message.status; - if (message.lockStatus != null && message.hasOwnProperty("lockStatus")) + if (message.lockStatus != null && Object.hasOwnProperty.call(message, "lockStatus")) object.lockStatus = options.enums === String ? $root.ExternalService.LockStatus[message.lockStatus] === undefined ? message.lockStatus : $root.ExternalService.LockStatus[message.lockStatus] : message.lockStatus; return object; }; @@ -220667,19 +179817,6 @@ export const ExternalService = $root.ExternalService = (() => { return writer; }; - /** - * Encodes the specified GetUsersResponse message, length delimited. Does not implicitly {@link ExternalService.GetUsersResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof ExternalService.GetUsersResponse - * @static - * @param {ExternalService.IGetUsersResponse} message GetUsersResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetUsersResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a GetUsersResponse message from the specified reader or buffer. * @function decode @@ -220718,49 +179855,6 @@ export const ExternalService = $root.ExternalService = (() => { return message; }; - /** - * Decodes a GetUsersResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof ExternalService.GetUsersResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ExternalService.GetUsersResponse} GetUsersResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetUsersResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a GetUsersResponse message. - * @function verify - * @memberof ExternalService.GetUsersResponse - * @static - * @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) { - if (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); - if (error) - return "users." + error; - } - } - return null; - }; - /** * Creates a GetUsersResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -220772,6 +179866,8 @@ export const ExternalService = $root.ExternalService = (() => { GetUsersResponse.fromObject = function fromObject(object, long) { if (object instanceof $root.ExternalService.GetUsersResponse) return object; + if (!$util.isObject(object)) + throw TypeError(".ExternalService.GetUsersResponse: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -220782,7 +179878,7 @@ export const ExternalService = $root.ExternalService = (() => { throw TypeError(".ExternalService.GetUsersResponse.users: array expected"); message.users = []; for (let i = 0; i < object.users.length; ++i) { - if (typeof object.users[i] !== "object") + if (!$util.isObject(object.users[i])) throw TypeError(".ExternalService.GetUsersResponse.users: object expected"); message.users[i] = $root.ExternalService.User.fromObject(object.users[i], long + 1); } @@ -220945,19 +180041,6 @@ export const Push = $root.Push = (() => { return writer; }; - /** - * Encodes the specified UserRegistrationRequest message, length delimited. Does not implicitly {@link Push.UserRegistrationRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof Push.UserRegistrationRequest - * @static - * @param {Push.IUserRegistrationRequest} message UserRegistrationRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - UserRegistrationRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a UserRegistrationRequest message from the specified reader or buffer. * @function decode @@ -221002,49 +180085,6 @@ export const Push = $root.Push = (() => { return message; }; - /** - * Decodes a UserRegistrationRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Push.UserRegistrationRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Push.UserRegistrationRequest} UserRegistrationRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - UserRegistrationRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a UserRegistrationRequest message. - * @function verify - * @memberof Push.UserRegistrationRequest - * @static - * @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) { - if (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"; - if (message.userId != null && message.hasOwnProperty("userId")) - if (!$util.isInteger(message.userId)) - return "userId: integer expected"; - if (message.enterpriseId != null && message.hasOwnProperty("enterpriseId")) - if (!$util.isInteger(message.enterpriseId)) - return "enterpriseId: integer expected"; - return null; - }; - /** * Creates a UserRegistrationRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -221056,6 +180096,8 @@ export const Push = $root.Push = (() => { UserRegistrationRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.Push.UserRegistrationRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".Push.UserRegistrationRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -221101,11 +180143,11 @@ export const Push = $root.Push = (() => { object.userId = 0; object.enterpriseId = 0; } - if (message.messageSessionUid != null && message.hasOwnProperty("messageSessionUid")) + if (message.messageSessionUid != null && Object.hasOwnProperty.call(message, "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.userId != null && message.hasOwnProperty("userId")) + if (message.userId != null && Object.hasOwnProperty.call(message, "userId")) object.userId = message.userId; - if (message.enterpriseId != null && message.hasOwnProperty("enterpriseId")) + if (message.enterpriseId != null && Object.hasOwnProperty.call(message, "enterpriseId")) object.enterpriseId = message.enterpriseId; return object; }; @@ -221301,19 +180343,6 @@ export const Push = $root.Push = (() => { return writer; }; - /** - * Encodes the specified KAToPushServerRequest message, length delimited. Does not implicitly {@link Push.KAToPushServerRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof Push.KAToPushServerRequest - * @static - * @param {Push.IKAToPushServerRequest} message KAToPushServerRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - KAToPushServerRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a KAToPushServerRequest message from the specified reader or buffer. * @function decode @@ -221386,83 +180415,6 @@ export const Push = $root.Push = (() => { return message; }; - /** - * Decodes a KAToPushServerRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Push.KAToPushServerRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Push.KAToPushServerRequest} KAToPushServerRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - KAToPushServerRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a KAToPushServerRequest message. - * @function verify - * @memberof Push.KAToPushServerRequest - * @static - * @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) { - if (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: - return "messageType: 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.message != null && message.hasOwnProperty("message")) - if (!$util.isString(message.message)) - return "message: string expected"; - if (message.messageSessionUid != null && message.hasOwnProperty("messageSessionUid")) - if (!(message.messageSessionUid && typeof message.messageSessionUid.length === "number" || $util.isString(message.messageSessionUid))) - return "messageSessionUid: buffer expected"; - if (message.encryptedDeviceToken != null && message.hasOwnProperty("encryptedDeviceToken")) { - if (!Array.isArray(message.encryptedDeviceToken)) - return "encryptedDeviceToken: array expected"; - for (let i = 0; i < message.encryptedDeviceToken.length; ++i) - if (!(message.encryptedDeviceToken[i] && typeof message.encryptedDeviceToken[i].length === "number" || $util.isString(message.encryptedDeviceToken[i]))) - return "encryptedDeviceToken: buffer[] expected"; - } - if (message.userId != null && message.hasOwnProperty("userId")) { - if (!Array.isArray(message.userId)) - return "userId: array expected"; - for (let i = 0; i < message.userId.length; ++i) - if (!$util.isInteger(message.userId[i])) - return "userId: integer[] expected"; - } - if (message.enterpriseId != null && message.hasOwnProperty("enterpriseId")) { - if (!Array.isArray(message.enterpriseId)) - return "enterpriseId: array expected"; - for (let i = 0; i < message.enterpriseId.length; ++i) - if (!$util.isInteger(message.enterpriseId[i])) - return "enterpriseId: integer[] expected"; - } - return null; - }; - /** * Creates a KAToPushServerRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -221474,6 +180426,8 @@ export const Push = $root.Push = (() => { KAToPushServerRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.Push.KAToPushServerRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".Push.KAToPushServerRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -221594,11 +180548,11 @@ export const Push = $root.Push = (() => { object.messageSessionUid = $util.newBuffer(object.messageSessionUid); } } - if (message.messageType != null && message.hasOwnProperty("messageType")) + if (message.messageType != null && Object.hasOwnProperty.call(message, "messageType")) object.messageType = options.enums === String ? $root.Push.MessageType[message.messageType] === undefined ? message.messageType : $root.Push.MessageType[message.messageType] : message.messageType; - if (message.message != null && message.hasOwnProperty("message")) + if (message.message != null && Object.hasOwnProperty.call(message, "message")) object.message = message.message; - if (message.messageSessionUid != null && message.hasOwnProperty("messageSessionUid")) + if (message.messageSessionUid != null && Object.hasOwnProperty.call(message, "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 && message.encryptedDeviceToken.length) { object.encryptedDeviceToken = []; @@ -221734,19 +180688,6 @@ export const Push = $root.Push = (() => { return writer; }; - /** - * Encodes the specified WssConnectionRequest message, length delimited. Does not implicitly {@link Push.WssConnectionRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof Push.WssConnectionRequest - * @static - * @param {Push.IWssConnectionRequest} message WssConnectionRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - WssConnectionRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a WssConnectionRequest message from the specified reader or buffer. * @function decode @@ -221791,49 +180732,6 @@ export const Push = $root.Push = (() => { return message; }; - /** - * Decodes a WssConnectionRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Push.WssConnectionRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Push.WssConnectionRequest} WssConnectionRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - WssConnectionRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a WssConnectionRequest message. - * @function verify - * @memberof Push.WssConnectionRequest - * @static - * @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) { - if (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"; - if (message.encryptedDeviceToken != null && message.hasOwnProperty("encryptedDeviceToken")) - if (!(message.encryptedDeviceToken && typeof message.encryptedDeviceToken.length === "number" || $util.isString(message.encryptedDeviceToken))) - return "encryptedDeviceToken: buffer expected"; - if (message.deviceTimeStamp != null && message.hasOwnProperty("deviceTimeStamp")) - if (!$util.isInteger(message.deviceTimeStamp) && !(message.deviceTimeStamp && $util.isInteger(message.deviceTimeStamp.low) && $util.isInteger(message.deviceTimeStamp.high))) - return "deviceTimeStamp: integer|Long expected"; - return null; - }; - /** * Creates a WssConnectionRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -221845,6 +180743,8 @@ export const Push = $root.Push = (() => { WssConnectionRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.Push.WssConnectionRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".Push.WssConnectionRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -221910,11 +180810,11 @@ export const Push = $root.Push = (() => { } else object.deviceTimeStamp = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; } - if (message.messageSessionUid != null && message.hasOwnProperty("messageSessionUid")) + if (message.messageSessionUid != null && Object.hasOwnProperty.call(message, "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")) + if (message.encryptedDeviceToken != null && Object.hasOwnProperty.call(message, "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 (message.deviceTimeStamp != null && Object.hasOwnProperty.call(message, "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") @@ -222029,19 +180929,6 @@ export const Push = $root.Push = (() => { return writer; }; - /** - * Encodes the specified WssClientResponse message, length delimited. Does not implicitly {@link Push.WssClientResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof Push.WssClientResponse - * @static - * @param {Push.IWssClientResponse} message WssClientResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - WssClientResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a WssClientResponse message from the specified reader or buffer. * @function decode @@ -222082,59 +180969,6 @@ export const Push = $root.Push = (() => { return message; }; - /** - * Decodes a WssClientResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Push.WssClientResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Push.WssClientResponse} WssClientResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - WssClientResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a WssClientResponse message. - * @function verify - * @memberof Push.WssClientResponse - * @static - * @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) { - if (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: - return "messageType: 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.message != null && message.hasOwnProperty("message")) - if (!$util.isString(message.message)) - return "message: string expected"; - return null; - }; - /** * Creates a WssClientResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -222146,6 +180980,8 @@ export const Push = $root.Push = (() => { WssClientResponse.fromObject = function fromObject(object, long) { if (object instanceof $root.Push.WssClientResponse) return object; + if (!$util.isObject(object)) + throw TypeError(".Push.WssClientResponse: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -222225,9 +181061,9 @@ export const Push = $root.Push = (() => { object.messageType = options.enums === String ? "UNKNOWN" : 0; object.message = ""; } - if (message.messageType != null && message.hasOwnProperty("messageType")) + if (message.messageType != null && Object.hasOwnProperty.call(message, "messageType")) object.messageType = options.enums === String ? $root.Push.MessageType[message.messageType] === undefined ? message.messageType : $root.Push.MessageType[message.messageType] : message.messageType; - if (message.message != null && message.hasOwnProperty("message")) + if (message.message != null && Object.hasOwnProperty.call(message, "message")) object.message = message.message; return object; }; @@ -222359,19 +181195,6 @@ export const Push = $root.Push = (() => { return writer; }; - /** - * Encodes the specified PushServerDeviceRegistrationRequest message, length delimited. Does not implicitly {@link Push.PushServerDeviceRegistrationRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof Push.PushServerDeviceRegistrationRequest - * @static - * @param {Push.IPushServerDeviceRegistrationRequest} message PushServerDeviceRegistrationRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - PushServerDeviceRegistrationRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a PushServerDeviceRegistrationRequest message from the specified reader or buffer. * @function decode @@ -222420,52 +181243,6 @@ export const Push = $root.Push = (() => { return message; }; - /** - * Decodes a PushServerDeviceRegistrationRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Push.PushServerDeviceRegistrationRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Push.PushServerDeviceRegistrationRequest} PushServerDeviceRegistrationRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - PushServerDeviceRegistrationRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a PushServerDeviceRegistrationRequest message. - * @function verify - * @memberof Push.PushServerDeviceRegistrationRequest - * @static - * @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) { - if (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"; - if (message.pushToken != null && message.hasOwnProperty("pushToken")) - if (!$util.isString(message.pushToken)) - return "pushToken: string expected"; - if (message.mobilePushPlatform != null && message.hasOwnProperty("mobilePushPlatform")) - if (!$util.isString(message.mobilePushPlatform)) - return "mobilePushPlatform: string expected"; - if (message.transmissionKey != null && message.hasOwnProperty("transmissionKey")) - if (!(message.transmissionKey && typeof message.transmissionKey.length === "number" || $util.isString(message.transmissionKey))) - return "transmissionKey: buffer expected"; - return null; - }; - /** * Creates a PushServerDeviceRegistrationRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -222477,6 +181254,8 @@ export const Push = $root.Push = (() => { PushServerDeviceRegistrationRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.Push.PushServerDeviceRegistrationRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".Push.PushServerDeviceRegistrationRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -222534,13 +181313,13 @@ export const Push = $root.Push = (() => { object.transmissionKey = $util.newBuffer(object.transmissionKey); } } - if (message.encryptedDeviceToken != null && message.hasOwnProperty("encryptedDeviceToken")) + if (message.encryptedDeviceToken != null && Object.hasOwnProperty.call(message, "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.pushToken != null && message.hasOwnProperty("pushToken")) + if (message.pushToken != null && Object.hasOwnProperty.call(message, "pushToken")) object.pushToken = message.pushToken; - if (message.mobilePushPlatform != null && message.hasOwnProperty("mobilePushPlatform")) + if (message.mobilePushPlatform != null && Object.hasOwnProperty.call(message, "mobilePushPlatform")) object.mobilePushPlatform = message.mobilePushPlatform; - if (message.transmissionKey != null && message.hasOwnProperty("transmissionKey")) + if (message.transmissionKey != null && Object.hasOwnProperty.call(message, "transmissionKey")) object.transmissionKey = options.bytes === String ? $util.base64.encode(message.transmissionKey, 0, message.transmissionKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.transmissionKey) : message.transmissionKey; return object; }; @@ -222650,19 +181429,6 @@ export const Push = $root.Push = (() => { return writer; }; - /** - * Encodes the specified SnsMessage message, length delimited. Does not implicitly {@link Push.SnsMessage.verify|verify} messages. - * @function encodeDelimited - * @memberof Push.SnsMessage - * @static - * @param {Push.ISnsMessage} message SnsMessage message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SnsMessage.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a SnsMessage message from the specified reader or buffer. * @function decode @@ -222703,59 +181469,6 @@ export const Push = $root.Push = (() => { return message; }; - /** - * Decodes a SnsMessage message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Push.SnsMessage - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Push.SnsMessage} SnsMessage - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SnsMessage.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a SnsMessage message. - * @function verify - * @memberof Push.SnsMessage - * @static - * @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) { - if (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: - return "messageType: 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.message != null && message.hasOwnProperty("message")) - if (!(message.message && typeof message.message.length === "number" || $util.isString(message.message))) - return "message: buffer expected"; - return null; - }; - /** * Creates a SnsMessage message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -222767,6 +181480,8 @@ export const Push = $root.Push = (() => { SnsMessage.fromObject = function fromObject(object, long) { if (object instanceof $root.Push.SnsMessage) return object; + if (!$util.isObject(object)) + throw TypeError(".Push.SnsMessage: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -222855,9 +181570,9 @@ export const Push = $root.Push = (() => { object.message = $util.newBuffer(object.message); } } - if (message.messageType != null && message.hasOwnProperty("messageType")) + if (message.messageType != null && Object.hasOwnProperty.call(message, "messageType")) object.messageType = options.enums === String ? $root.Push.MessageType[message.messageType] === undefined ? message.messageType : $root.Push.MessageType[message.messageType] : message.messageType; - if (message.message != null && message.hasOwnProperty("message")) + if (message.message != null && Object.hasOwnProperty.call(message, "message")) object.message = options.bytes === String ? $util.base64.encode(message.message, 0, message.message.length) : options.bytes === Array ? Array.prototype.slice.call(message.message) : message.message; return object; }; @@ -222979,19 +181694,6 @@ export const ServiceLogger = $root.ServiceLogger = (() => { return writer; }; - /** - * Encodes the specified IdRange message, length delimited. Does not implicitly {@link ServiceLogger.IdRange.verify|verify} messages. - * @function encodeDelimited - * @memberof ServiceLogger.IdRange - * @static - * @param {ServiceLogger.IIdRange} message IdRange message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - IdRange.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes an IdRange message from the specified reader or buffer. * @function decode @@ -223032,46 +181734,6 @@ export const ServiceLogger = $root.ServiceLogger = (() => { return message; }; - /** - * Decodes an IdRange message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof ServiceLogger.IdRange - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ServiceLogger.IdRange} IdRange - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - IdRange.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an IdRange message. - * @function verify - * @memberof ServiceLogger.IdRange - * @static - * @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) { - if (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"; - if (message.endingId != null && message.hasOwnProperty("endingId")) - if (!$util.isInteger(message.endingId) && !(message.endingId && $util.isInteger(message.endingId.low) && $util.isInteger(message.endingId.high))) - return "endingId: integer|Long expected"; - return null; - }; - /** * Creates an IdRange message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -223083,6 +181745,8 @@ export const ServiceLogger = $root.ServiceLogger = (() => { IdRange.fromObject = function fromObject(object, long) { if (object instanceof $root.ServiceLogger.IdRange) return object; + if (!$util.isObject(object)) + throw TypeError(".ServiceLogger.IdRange: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -223138,14 +181802,14 @@ export const ServiceLogger = $root.ServiceLogger = (() => { } else object.endingId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; } - if (message.startingId != null && message.hasOwnProperty("startingId")) + if (message.startingId != null && Object.hasOwnProperty.call(message, "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") 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 (message.endingId != null && Object.hasOwnProperty.call(message, "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") @@ -223271,19 +181935,6 @@ export const ServiceLogger = $root.ServiceLogger = (() => { return writer; }; - /** - * Encodes the specified ServiceInfoSpecifier message, length delimited. Does not implicitly {@link ServiceLogger.ServiceInfoSpecifier.verify|verify} messages. - * @function encodeDelimited - * @memberof ServiceLogger.ServiceInfoSpecifier - * @static - * @param {ServiceLogger.IServiceInfoSpecifier} message ServiceInfoSpecifier message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ServiceInfoSpecifier.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a ServiceInfoSpecifier message from the specified reader or buffer. * @function decode @@ -223328,49 +181979,6 @@ export const ServiceLogger = $root.ServiceLogger = (() => { return message; }; - /** - * Decodes a ServiceInfoSpecifier message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof ServiceLogger.ServiceInfoSpecifier - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ServiceLogger.ServiceInfoSpecifier} ServiceInfoSpecifier - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ServiceInfoSpecifier.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a ServiceInfoSpecifier message. - * @function verify - * @memberof ServiceLogger.ServiceInfoSpecifier - * @static - * @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) { - if (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"; - 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"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - return null; - }; - /** * Creates a ServiceInfoSpecifier message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -223382,6 +181990,8 @@ export const ServiceLogger = $root.ServiceLogger = (() => { ServiceInfoSpecifier.fromObject = function fromObject(object, long) { if (object instanceof $root.ServiceLogger.ServiceInfoSpecifier) return object; + if (!$util.isObject(object)) + throw TypeError(".ServiceLogger.ServiceInfoSpecifier: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -223429,16 +182039,16 @@ export const ServiceLogger = $root.ServiceLogger = (() => { object.serviceInfoId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; object.name = ""; } - if (message.all != null && message.hasOwnProperty("all")) + if (message.all != null && Object.hasOwnProperty.call(message, "all")) object.all = message.all; - if (message.serviceInfoId != null && message.hasOwnProperty("serviceInfoId")) + if (message.serviceInfoId != null && Object.hasOwnProperty.call(message, "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") 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.name != null && message.hasOwnProperty("name")) + if (message.name != null && Object.hasOwnProperty.call(message, "name")) object.name = message.name; return object; }; @@ -223539,19 +182149,6 @@ export const ServiceLogger = $root.ServiceLogger = (() => { return writer; }; - /** - * Encodes the specified ServiceInfoRequest message, length delimited. Does not implicitly {@link ServiceLogger.ServiceInfoRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof ServiceLogger.ServiceInfoRequest - * @static - * @param {ServiceLogger.IServiceInfoRequest} message ServiceInfoRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ServiceInfoRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a ServiceInfoRequest message from the specified reader or buffer. * @function decode @@ -223590,49 +182187,6 @@ export const ServiceLogger = $root.ServiceLogger = (() => { return message; }; - /** - * Decodes a ServiceInfoRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof ServiceLogger.ServiceInfoRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ServiceLogger.ServiceInfoRequest} ServiceInfoRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ServiceInfoRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a ServiceInfoRequest message. - * @function verify - * @memberof ServiceLogger.ServiceInfoRequest - * @static - * @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) { - if (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); - if (error) - return "serviceInfoSpecifier." + error; - } - } - return null; - }; - /** * Creates a ServiceInfoRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -223644,6 +182198,8 @@ export const ServiceLogger = $root.ServiceLogger = (() => { ServiceInfoRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.ServiceLogger.ServiceInfoRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".ServiceLogger.ServiceInfoRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -223654,7 +182210,7 @@ export const ServiceLogger = $root.ServiceLogger = (() => { throw TypeError(".ServiceLogger.ServiceInfoRequest.serviceInfoSpecifier: array expected"); message.serviceInfoSpecifier = []; for (let i = 0; i < object.serviceInfoSpecifier.length; ++i) { - if (typeof object.serviceInfoSpecifier[i] !== "object") + if (!$util.isObject(object.serviceInfoSpecifier[i])) throw TypeError(".ServiceLogger.ServiceInfoRequest.serviceInfoSpecifier: object expected"); message.serviceInfoSpecifier[i] = $root.ServiceLogger.ServiceInfoSpecifier.fromObject(object.serviceInfoSpecifier[i], long + 1); } @@ -223827,19 +182383,6 @@ export const ServiceLogger = $root.ServiceLogger = (() => { return writer; }; - /** - * Encodes the specified ServiceInfoRecord message, length delimited. Does not implicitly {@link ServiceLogger.ServiceInfoRecord.verify|verify} messages. - * @function encodeDelimited - * @memberof ServiceLogger.ServiceInfoRecord - * @static - * @param {ServiceLogger.IServiceInfoRecord} message ServiceInfoRecord message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ServiceInfoRecord.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a ServiceInfoRecord message from the specified reader or buffer. * @function decode @@ -223892,55 +182435,6 @@ export const ServiceLogger = $root.ServiceLogger = (() => { return message; }; - /** - * Decodes a ServiceInfoRecord message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof ServiceLogger.ServiceInfoRecord - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ServiceLogger.ServiceInfoRecord} ServiceInfoRecord - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ServiceInfoRecord.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a ServiceInfoRecord message. - * @function verify - * @memberof ServiceLogger.ServiceInfoRecord - * @static - * @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) { - if (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"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.deleteAfter != null && message.hasOwnProperty("deleteAfter")) - if (!$util.isInteger(message.deleteAfter)) - return "deleteAfter: integer expected"; - if (message.deleteAfterTimeUnits != null && message.hasOwnProperty("deleteAfterTimeUnits")) - if (!$util.isString(message.deleteAfterTimeUnits)) - return "deleteAfterTimeUnits: string expected"; - if (message.isShortTermLogging != null && message.hasOwnProperty("isShortTermLogging")) - if (typeof message.isShortTermLogging !== "boolean") - return "isShortTermLogging: boolean expected"; - return null; - }; - /** * Creates a ServiceInfoRecord message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -223952,6 +182446,8 @@ export const ServiceLogger = $root.ServiceLogger = (() => { ServiceInfoRecord.fromObject = function fromObject(object, long) { if (object instanceof $root.ServiceLogger.ServiceInfoRecord) return object; + if (!$util.isObject(object)) + throw TypeError(".ServiceLogger.ServiceInfoRecord: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -224005,20 +182501,20 @@ export const ServiceLogger = $root.ServiceLogger = (() => { object.deleteAfterTimeUnits = ""; object.isShortTermLogging = false; } - if (message.serviceInfoId != null && message.hasOwnProperty("serviceInfoId")) + if (message.serviceInfoId != null && Object.hasOwnProperty.call(message, "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") 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.name != null && message.hasOwnProperty("name")) + if (message.name != null && Object.hasOwnProperty.call(message, "name")) object.name = message.name; - if (message.deleteAfter != null && message.hasOwnProperty("deleteAfter")) + if (message.deleteAfter != null && Object.hasOwnProperty.call(message, "deleteAfter")) object.deleteAfter = message.deleteAfter; - if (message.deleteAfterTimeUnits != null && message.hasOwnProperty("deleteAfterTimeUnits")) + if (message.deleteAfterTimeUnits != null && Object.hasOwnProperty.call(message, "deleteAfterTimeUnits")) object.deleteAfterTimeUnits = message.deleteAfterTimeUnits; - if (message.isShortTermLogging != null && message.hasOwnProperty("isShortTermLogging")) + if (message.isShortTermLogging != null && Object.hasOwnProperty.call(message, "isShortTermLogging")) object.isShortTermLogging = message.isShortTermLogging; return object; }; @@ -224119,19 +182615,6 @@ export const ServiceLogger = $root.ServiceLogger = (() => { return writer; }; - /** - * Encodes the specified ServiceInfoResponse message, length delimited. Does not implicitly {@link ServiceLogger.ServiceInfoResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof ServiceLogger.ServiceInfoResponse - * @static - * @param {ServiceLogger.IServiceInfoResponse} message ServiceInfoResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ServiceInfoResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a ServiceInfoResponse message from the specified reader or buffer. * @function decode @@ -224170,49 +182653,6 @@ export const ServiceLogger = $root.ServiceLogger = (() => { return message; }; - /** - * Decodes a ServiceInfoResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof ServiceLogger.ServiceInfoResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ServiceLogger.ServiceInfoResponse} ServiceInfoResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ServiceInfoResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a ServiceInfoResponse message. - * @function verify - * @memberof ServiceLogger.ServiceInfoResponse - * @static - * @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) { - if (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); - if (error) - return "serviceInfoRecord." + error; - } - } - return null; - }; - /** * Creates a ServiceInfoResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -224224,6 +182664,8 @@ export const ServiceLogger = $root.ServiceLogger = (() => { ServiceInfoResponse.fromObject = function fromObject(object, long) { if (object instanceof $root.ServiceLogger.ServiceInfoResponse) return object; + if (!$util.isObject(object)) + throw TypeError(".ServiceLogger.ServiceInfoResponse: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -224234,7 +182676,7 @@ export const ServiceLogger = $root.ServiceLogger = (() => { throw TypeError(".ServiceLogger.ServiceInfoResponse.serviceInfoRecord: array expected"); message.serviceInfoRecord = []; for (let i = 0; i < object.serviceInfoRecord.length; ++i) { - if (typeof object.serviceInfoRecord[i] !== "object") + if (!$util.isObject(object.serviceInfoRecord[i])) throw TypeError(".ServiceLogger.ServiceInfoResponse.serviceInfoRecord: object expected"); message.serviceInfoRecord[i] = $root.ServiceLogger.ServiceInfoRecord.fromObject(object.serviceInfoRecord[i], long + 1); } @@ -224365,19 +182807,6 @@ export const ServiceLogger = $root.ServiceLogger = (() => { return writer; }; - /** - * Encodes the specified ServiceInfoUpdateRequest message, length delimited. Does not implicitly {@link ServiceLogger.ServiceInfoUpdateRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof ServiceLogger.ServiceInfoUpdateRequest - * @static - * @param {ServiceLogger.IServiceInfoUpdateRequest} message ServiceInfoUpdateRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ServiceInfoUpdateRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a ServiceInfoUpdateRequest message from the specified reader or buffer. * @function decode @@ -224416,49 +182845,6 @@ export const ServiceLogger = $root.ServiceLogger = (() => { return message; }; - /** - * Decodes a ServiceInfoUpdateRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof ServiceLogger.ServiceInfoUpdateRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ServiceLogger.ServiceInfoUpdateRequest} ServiceInfoUpdateRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ServiceInfoUpdateRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a ServiceInfoUpdateRequest message. - * @function verify - * @memberof ServiceLogger.ServiceInfoUpdateRequest - * @static - * @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) { - if (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); - if (error) - return "serviceInfoRecord." + error; - } - } - return null; - }; - /** * Creates a ServiceInfoUpdateRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -224470,6 +182856,8 @@ export const ServiceLogger = $root.ServiceLogger = (() => { ServiceInfoUpdateRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.ServiceLogger.ServiceInfoUpdateRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".ServiceLogger.ServiceInfoUpdateRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -224480,7 +182868,7 @@ export const ServiceLogger = $root.ServiceLogger = (() => { throw TypeError(".ServiceLogger.ServiceInfoUpdateRequest.serviceInfoRecord: array expected"); message.serviceInfoRecord = []; for (let i = 0; i < object.serviceInfoRecord.length; ++i) { - if (typeof object.serviceInfoRecord[i] !== "object") + if (!$util.isObject(object.serviceInfoRecord[i])) throw TypeError(".ServiceLogger.ServiceInfoUpdateRequest.serviceInfoRecord: object expected"); message.serviceInfoRecord[i] = $root.ServiceLogger.ServiceInfoRecord.fromObject(object.serviceInfoRecord[i], long + 1); } @@ -224644,19 +183032,6 @@ export const ServiceLogger = $root.ServiceLogger = (() => { return writer; }; - /** - * Encodes the specified ServiceRuleSpecifier message, length delimited. Does not implicitly {@link ServiceLogger.ServiceRuleSpecifier.verify|verify} messages. - * @function encodeDelimited - * @memberof ServiceLogger.ServiceRuleSpecifier - * @static - * @param {ServiceLogger.IServiceRuleSpecifier} message ServiceRuleSpecifier message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ServiceRuleSpecifier.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a ServiceRuleSpecifier message from the specified reader or buffer. * @function decode @@ -224707,58 +183082,6 @@ export const ServiceLogger = $root.ServiceLogger = (() => { return message; }; - /** - * Decodes a ServiceRuleSpecifier message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof ServiceLogger.ServiceRuleSpecifier - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ServiceLogger.ServiceRuleSpecifier} ServiceRuleSpecifier - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ServiceRuleSpecifier.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a ServiceRuleSpecifier message. - * @function verify - * @memberof ServiceLogger.ServiceRuleSpecifier - * @static - * @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) { - if (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"; - 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"; - 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"; - if (message.resourceIdRange != null && message.hasOwnProperty("resourceIdRange")) { - 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); - if (error) - return "resourceIdRange." + error; - } - } - return null; - }; - /** * Creates a ServiceRuleSpecifier message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -224770,6 +183093,8 @@ export const ServiceLogger = $root.ServiceLogger = (() => { ServiceRuleSpecifier.fromObject = function fromObject(object, long) { if (object instanceof $root.ServiceLogger.ServiceRuleSpecifier) return object; + if (!$util.isObject(object)) + throw TypeError(".ServiceLogger.ServiceRuleSpecifier: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -224800,7 +183125,7 @@ export const ServiceLogger = $root.ServiceLogger = (() => { throw TypeError(".ServiceLogger.ServiceRuleSpecifier.resourceIdRange: array expected"); message.resourceIdRange = []; for (let i = 0; i < object.resourceIdRange.length; ++i) { - if (typeof object.resourceIdRange[i] !== "object") + if (!$util.isObject(object.resourceIdRange[i])) throw TypeError(".ServiceLogger.ServiceRuleSpecifier.resourceIdRange: object expected"); message.resourceIdRange[i] = $root.ServiceLogger.IdRange.fromObject(object.resourceIdRange[i], long + 1); } @@ -224840,16 +183165,16 @@ export const ServiceLogger = $root.ServiceLogger = (() => { } else object.serviceInfoId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; } - if (message.all != null && message.hasOwnProperty("all")) + if (message.all != null && Object.hasOwnProperty.call(message, "all")) object.all = message.all; - if (message.serviceRuleId != null && message.hasOwnProperty("serviceRuleId")) + if (message.serviceRuleId != null && Object.hasOwnProperty.call(message, "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") 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 (message.serviceInfoId != null && Object.hasOwnProperty.call(message, "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") @@ -224960,19 +183285,6 @@ export const ServiceLogger = $root.ServiceLogger = (() => { return writer; }; - /** - * Encodes the specified ServiceRuleRequest message, length delimited. Does not implicitly {@link ServiceLogger.ServiceRuleRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof ServiceLogger.ServiceRuleRequest - * @static - * @param {ServiceLogger.IServiceRuleRequest} message ServiceRuleRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ServiceRuleRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a ServiceRuleRequest message from the specified reader or buffer. * @function decode @@ -225011,49 +183323,6 @@ export const ServiceLogger = $root.ServiceLogger = (() => { return message; }; - /** - * Decodes a ServiceRuleRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof ServiceLogger.ServiceRuleRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ServiceLogger.ServiceRuleRequest} ServiceRuleRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ServiceRuleRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a ServiceRuleRequest message. - * @function verify - * @memberof ServiceLogger.ServiceRuleRequest - * @static - * @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) { - if (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); - if (error) - return "serviceRuleSpecifier." + error; - } - } - return null; - }; - /** * Creates a ServiceRuleRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -225065,6 +183334,8 @@ export const ServiceLogger = $root.ServiceLogger = (() => { ServiceRuleRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.ServiceLogger.ServiceRuleRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".ServiceLogger.ServiceRuleRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -225075,7 +183346,7 @@ export const ServiceLogger = $root.ServiceLogger = (() => { throw TypeError(".ServiceLogger.ServiceRuleRequest.serviceRuleSpecifier: array expected"); message.serviceRuleSpecifier = []; for (let i = 0; i < object.serviceRuleSpecifier.length; ++i) { - if (typeof object.serviceRuleSpecifier[i] !== "object") + if (!$util.isObject(object.serviceRuleSpecifier[i])) throw TypeError(".ServiceLogger.ServiceRuleRequest.serviceRuleSpecifier: object expected"); message.serviceRuleSpecifier[i] = $root.ServiceLogger.ServiceRuleSpecifier.fromObject(object.serviceRuleSpecifier[i], long + 1); } @@ -225281,19 +183552,6 @@ export const ServiceLogger = $root.ServiceLogger = (() => { return writer; }; - /** - * Encodes the specified ServiceRuleRecord message, length delimited. Does not implicitly {@link ServiceLogger.ServiceRuleRecord.verify|verify} messages. - * @function encodeDelimited - * @memberof ServiceLogger.ServiceRuleRecord - * @static - * @param {ServiceLogger.IServiceRuleRecord} message ServiceRuleRecord message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ServiceRuleRecord.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a ServiceRuleRecord message from the specified reader or buffer. * @function decode @@ -225358,64 +183616,6 @@ export const ServiceLogger = $root.ServiceLogger = (() => { return message; }; - /** - * Decodes a ServiceRuleRecord message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof ServiceLogger.ServiceRuleRecord - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ServiceLogger.ServiceRuleRecord} ServiceRuleRecord - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ServiceRuleRecord.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a ServiceRuleRecord message. - * @function verify - * @memberof ServiceLogger.ServiceRuleRecord - * @static - * @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) { - if (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"; - 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"; - if (message.resourceId != null && message.hasOwnProperty("resourceId")) - if (!$util.isInteger(message.resourceId) && !(message.resourceId && $util.isInteger(message.resourceId.low) && $util.isInteger(message.resourceId.high))) - return "resourceId: integer|Long expected"; - if (message.isLoggingEnabled != null && message.hasOwnProperty("isLoggingEnabled")) - if (typeof message.isLoggingEnabled !== "boolean") - return "isLoggingEnabled: boolean expected"; - if (message.logLevel != null && message.hasOwnProperty("logLevel")) - if (!$util.isString(message.logLevel)) - return "logLevel: string expected"; - if (message.ruleStart != null && message.hasOwnProperty("ruleStart")) - if (!$util.isString(message.ruleStart)) - return "ruleStart: string expected"; - if (message.ruleEnd != null && message.hasOwnProperty("ruleEnd")) - if (!$util.isString(message.ruleEnd)) - return "ruleEnd: string expected"; - if (message.dateModified != null && message.hasOwnProperty("dateModified")) - if (!$util.isString(message.dateModified)) - return "dateModified: string expected"; - return null; - }; - /** * Creates a ServiceRuleRecord message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -225427,6 +183627,8 @@ export const ServiceLogger = $root.ServiceLogger = (() => { ServiceRuleRecord.fromObject = function fromObject(object, long) { if (object instanceof $root.ServiceLogger.ServiceRuleRecord) return object; + if (!$util.isObject(object)) + throw TypeError(".ServiceLogger.ServiceRuleRecord: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -225511,36 +183713,36 @@ export const ServiceLogger = $root.ServiceLogger = (() => { object.ruleEnd = ""; object.dateModified = ""; } - if (message.serviceRuleId != null && message.hasOwnProperty("serviceRuleId")) + if (message.serviceRuleId != null && Object.hasOwnProperty.call(message, "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") 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 (message.serviceInfoId != null && Object.hasOwnProperty.call(message, "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") 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 (message.resourceId != null && Object.hasOwnProperty.call(message, "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") 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; - if (message.isLoggingEnabled != null && message.hasOwnProperty("isLoggingEnabled")) + if (message.isLoggingEnabled != null && Object.hasOwnProperty.call(message, "isLoggingEnabled")) object.isLoggingEnabled = message.isLoggingEnabled; - if (message.logLevel != null && message.hasOwnProperty("logLevel")) + if (message.logLevel != null && Object.hasOwnProperty.call(message, "logLevel")) object.logLevel = message.logLevel; - if (message.ruleStart != null && message.hasOwnProperty("ruleStart")) + if (message.ruleStart != null && Object.hasOwnProperty.call(message, "ruleStart")) object.ruleStart = message.ruleStart; - if (message.ruleEnd != null && message.hasOwnProperty("ruleEnd")) + if (message.ruleEnd != null && Object.hasOwnProperty.call(message, "ruleEnd")) object.ruleEnd = message.ruleEnd; - if (message.dateModified != null && message.hasOwnProperty("dateModified")) + if (message.dateModified != null && Object.hasOwnProperty.call(message, "dateModified")) object.dateModified = message.dateModified; return object; }; @@ -225641,19 +183843,6 @@ export const ServiceLogger = $root.ServiceLogger = (() => { return writer; }; - /** - * Encodes the specified ServiceRuleResponse message, length delimited. Does not implicitly {@link ServiceLogger.ServiceRuleResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof ServiceLogger.ServiceRuleResponse - * @static - * @param {ServiceLogger.IServiceRuleResponse} message ServiceRuleResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ServiceRuleResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a ServiceRuleResponse message from the specified reader or buffer. * @function decode @@ -225692,49 +183881,6 @@ export const ServiceLogger = $root.ServiceLogger = (() => { return message; }; - /** - * Decodes a ServiceRuleResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof ServiceLogger.ServiceRuleResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ServiceLogger.ServiceRuleResponse} ServiceRuleResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ServiceRuleResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a ServiceRuleResponse message. - * @function verify - * @memberof ServiceLogger.ServiceRuleResponse - * @static - * @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) { - if (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); - if (error) - return "serviceRule." + error; - } - } - return null; - }; - /** * Creates a ServiceRuleResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -225746,6 +183892,8 @@ export const ServiceLogger = $root.ServiceLogger = (() => { ServiceRuleResponse.fromObject = function fromObject(object, long) { if (object instanceof $root.ServiceLogger.ServiceRuleResponse) return object; + if (!$util.isObject(object)) + throw TypeError(".ServiceLogger.ServiceRuleResponse: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -225756,7 +183904,7 @@ export const ServiceLogger = $root.ServiceLogger = (() => { throw TypeError(".ServiceLogger.ServiceRuleResponse.serviceRule: array expected"); message.serviceRule = []; for (let i = 0; i < object.serviceRule.length; ++i) { - if (typeof object.serviceRule[i] !== "object") + if (!$util.isObject(object.serviceRule[i])) throw TypeError(".ServiceLogger.ServiceRuleResponse.serviceRule: object expected"); message.serviceRule[i] = $root.ServiceLogger.ServiceRuleRecord.fromObject(object.serviceRule[i], long + 1); } @@ -225887,19 +184035,6 @@ export const ServiceLogger = $root.ServiceLogger = (() => { return writer; }; - /** - * Encodes the specified ServiceRuleUpdateRequest message, length delimited. Does not implicitly {@link ServiceLogger.ServiceRuleUpdateRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof ServiceLogger.ServiceRuleUpdateRequest - * @static - * @param {ServiceLogger.IServiceRuleUpdateRequest} message ServiceRuleUpdateRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ServiceRuleUpdateRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a ServiceRuleUpdateRequest message from the specified reader or buffer. * @function decode @@ -225938,49 +184073,6 @@ export const ServiceLogger = $root.ServiceLogger = (() => { return message; }; - /** - * Decodes a ServiceRuleUpdateRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof ServiceLogger.ServiceRuleUpdateRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ServiceLogger.ServiceRuleUpdateRequest} ServiceRuleUpdateRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ServiceRuleUpdateRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a ServiceRuleUpdateRequest message. - * @function verify - * @memberof ServiceLogger.ServiceRuleUpdateRequest - * @static - * @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) { - if (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); - if (error) - return "serviceRuleRecord." + error; - } - } - return null; - }; - /** * Creates a ServiceRuleUpdateRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -225992,6 +184084,8 @@ export const ServiceLogger = $root.ServiceLogger = (() => { ServiceRuleUpdateRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.ServiceLogger.ServiceRuleUpdateRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".ServiceLogger.ServiceRuleUpdateRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -226002,7 +184096,7 @@ export const ServiceLogger = $root.ServiceLogger = (() => { throw TypeError(".ServiceLogger.ServiceRuleUpdateRequest.serviceRuleRecord: array expected"); message.serviceRuleRecord = []; for (let i = 0; i < object.serviceRuleRecord.length; ++i) { - if (typeof object.serviceRuleRecord[i] !== "object") + if (!$util.isObject(object.serviceRuleRecord[i])) throw TypeError(".ServiceLogger.ServiceRuleUpdateRequest.serviceRuleRecord: object expected"); message.serviceRuleRecord[i] = $root.ServiceLogger.ServiceRuleRecord.fromObject(object.serviceRuleRecord[i], long + 1); } @@ -226190,19 +184284,6 @@ export const ServiceLogger = $root.ServiceLogger = (() => { return writer; }; - /** - * Encodes the specified ServiceLogSpecifier message, length delimited. Does not implicitly {@link ServiceLogger.ServiceLogSpecifier.verify|verify} messages. - * @function encodeDelimited - * @memberof ServiceLogger.ServiceLogSpecifier - * @static - * @param {ServiceLogger.IServiceLogSpecifier} message ServiceLogSpecifier message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ServiceLogSpecifier.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a ServiceLogSpecifier message from the specified reader or buffer. * @function decode @@ -226263,70 +184344,6 @@ export const ServiceLogger = $root.ServiceLogger = (() => { return message; }; - /** - * Decodes a ServiceLogSpecifier message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof ServiceLogger.ServiceLogSpecifier - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ServiceLogger.ServiceLogSpecifier} ServiceLogSpecifier - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ServiceLogSpecifier.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a ServiceLogSpecifier message. - * @function verify - * @memberof ServiceLogger.ServiceLogSpecifier - * @static - * @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) { - if (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"; - 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"; - if (message.serviceIdRange != null && message.hasOwnProperty("serviceIdRange")) { - 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); - if (error) - return "serviceIdRange." + error; - } - } - if (message.resourceIdRange != null && message.hasOwnProperty("resourceIdRange")) { - 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); - if (error) - return "resourceIdRange." + error; - } - } - if (message.startDateTime != null && message.hasOwnProperty("startDateTime")) - if (!$util.isString(message.startDateTime)) - return "startDateTime: string expected"; - if (message.endDateTime != null && message.hasOwnProperty("endDateTime")) - if (!$util.isString(message.endDateTime)) - return "endDateTime: string expected"; - return null; - }; - /** * Creates a ServiceLogSpecifier message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -226338,6 +184355,8 @@ export const ServiceLogger = $root.ServiceLogger = (() => { ServiceLogSpecifier.fromObject = function fromObject(object, long) { if (object instanceof $root.ServiceLogger.ServiceLogSpecifier) return object; + if (!$util.isObject(object)) + throw TypeError(".ServiceLogger.ServiceLogSpecifier: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -226359,7 +184378,7 @@ export const ServiceLogger = $root.ServiceLogger = (() => { throw TypeError(".ServiceLogger.ServiceLogSpecifier.serviceIdRange: array expected"); message.serviceIdRange = []; for (let i = 0; i < object.serviceIdRange.length; ++i) { - if (typeof object.serviceIdRange[i] !== "object") + if (!$util.isObject(object.serviceIdRange[i])) throw TypeError(".ServiceLogger.ServiceLogSpecifier.serviceIdRange: object expected"); message.serviceIdRange[i] = $root.ServiceLogger.IdRange.fromObject(object.serviceIdRange[i], long + 1); } @@ -226369,7 +184388,7 @@ export const ServiceLogger = $root.ServiceLogger = (() => { throw TypeError(".ServiceLogger.ServiceLogSpecifier.resourceIdRange: array expected"); message.resourceIdRange = []; for (let i = 0; i < object.resourceIdRange.length; ++i) { - if (typeof object.resourceIdRange[i] !== "object") + if (!$util.isObject(object.resourceIdRange[i])) throw TypeError(".ServiceLogger.ServiceLogSpecifier.resourceIdRange: object expected"); message.resourceIdRange[i] = $root.ServiceLogger.IdRange.fromObject(object.resourceIdRange[i], long + 1); } @@ -226412,9 +184431,9 @@ export const ServiceLogger = $root.ServiceLogger = (() => { object.startDateTime = ""; object.endDateTime = ""; } - if (message.all != null && message.hasOwnProperty("all")) + if (message.all != null && Object.hasOwnProperty.call(message, "all")) object.all = message.all; - if (message.serviceLogId != null && message.hasOwnProperty("serviceLogId")) + if (message.serviceLogId != null && Object.hasOwnProperty.call(message, "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") @@ -226431,9 +184450,9 @@ export const ServiceLogger = $root.ServiceLogger = (() => { for (let j = 0; j < message.resourceIdRange.length; ++j) object.resourceIdRange[j] = $root.ServiceLogger.IdRange.toObject(message.resourceIdRange[j], options, q + 1); } - if (message.startDateTime != null && message.hasOwnProperty("startDateTime")) + if (message.startDateTime != null && Object.hasOwnProperty.call(message, "startDateTime")) object.startDateTime = message.startDateTime; - if (message.endDateTime != null && message.hasOwnProperty("endDateTime")) + if (message.endDateTime != null && Object.hasOwnProperty.call(message, "endDateTime")) object.endDateTime = message.endDateTime; return object; }; @@ -226534,19 +184553,6 @@ export const ServiceLogger = $root.ServiceLogger = (() => { return writer; }; - /** - * Encodes the specified ServiceLogGetRequest message, length delimited. Does not implicitly {@link ServiceLogger.ServiceLogGetRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof ServiceLogger.ServiceLogGetRequest - * @static - * @param {ServiceLogger.IServiceLogGetRequest} message ServiceLogGetRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ServiceLogGetRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a ServiceLogGetRequest message from the specified reader or buffer. * @function decode @@ -226585,49 +184591,6 @@ export const ServiceLogger = $root.ServiceLogger = (() => { return message; }; - /** - * Decodes a ServiceLogGetRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof ServiceLogger.ServiceLogGetRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ServiceLogger.ServiceLogGetRequest} ServiceLogGetRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ServiceLogGetRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a ServiceLogGetRequest message. - * @function verify - * @memberof ServiceLogger.ServiceLogGetRequest - * @static - * @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) { - if (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); - if (error) - return "serviceLogSpecifier." + error; - } - } - return null; - }; - /** * Creates a ServiceLogGetRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -226639,6 +184602,8 @@ export const ServiceLogger = $root.ServiceLogger = (() => { ServiceLogGetRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.ServiceLogger.ServiceLogGetRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".ServiceLogger.ServiceLogGetRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -226649,7 +184614,7 @@ export const ServiceLogger = $root.ServiceLogger = (() => { throw TypeError(".ServiceLogger.ServiceLogGetRequest.serviceLogSpecifier: array expected"); message.serviceLogSpecifier = []; for (let i = 0; i < object.serviceLogSpecifier.length; ++i) { - if (typeof object.serviceLogSpecifier[i] !== "object") + if (!$util.isObject(object.serviceLogSpecifier[i])) throw TypeError(".ServiceLogger.ServiceLogGetRequest.serviceLogSpecifier: object expected"); message.serviceLogSpecifier[i] = $root.ServiceLogger.ServiceLogSpecifier.fromObject(object.serviceLogSpecifier[i], long + 1); } @@ -226855,19 +184820,6 @@ export const ServiceLogger = $root.ServiceLogger = (() => { return writer; }; - /** - * Encodes the specified ServiceLogRecord message, length delimited. Does not implicitly {@link ServiceLogger.ServiceLogRecord.verify|verify} messages. - * @function encodeDelimited - * @memberof ServiceLogger.ServiceLogRecord - * @static - * @param {ServiceLogger.IServiceLogRecord} message ServiceLogRecord message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ServiceLogRecord.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a ServiceLogRecord message from the specified reader or buffer. * @function decode @@ -226932,64 +184884,6 @@ export const ServiceLogger = $root.ServiceLogger = (() => { return message; }; - /** - * Decodes a ServiceLogRecord message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof ServiceLogger.ServiceLogRecord - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ServiceLogger.ServiceLogRecord} ServiceLogRecord - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ServiceLogRecord.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a ServiceLogRecord message. - * @function verify - * @memberof ServiceLogger.ServiceLogRecord - * @static - * @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) { - if (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"; - 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"; - if (message.resourceId != null && message.hasOwnProperty("resourceId")) - if (!$util.isInteger(message.resourceId) && !(message.resourceId && $util.isInteger(message.resourceId.low) && $util.isInteger(message.resourceId.high))) - return "resourceId: integer|Long expected"; - if (message.logger != null && message.hasOwnProperty("logger")) - if (!$util.isString(message.logger)) - return "logger: string expected"; - if (message.logLevel != null && message.hasOwnProperty("logLevel")) - if (!$util.isString(message.logLevel)) - return "logLevel: string expected"; - if (message.message != null && message.hasOwnProperty("message")) - if (!$util.isString(message.message)) - return "message: string expected"; - if (message.exception != null && message.hasOwnProperty("exception")) - if (!$util.isString(message.exception)) - return "exception: string expected"; - if (message.dateCreated != null && message.hasOwnProperty("dateCreated")) - if (!$util.isString(message.dateCreated)) - return "dateCreated: string expected"; - return null; - }; - /** * Creates a ServiceLogRecord message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -227001,6 +184895,8 @@ export const ServiceLogger = $root.ServiceLogger = (() => { ServiceLogRecord.fromObject = function fromObject(object, long) { if (object instanceof $root.ServiceLogger.ServiceLogRecord) return object; + if (!$util.isObject(object)) + throw TypeError(".ServiceLogger.ServiceLogRecord: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -227085,36 +184981,36 @@ export const ServiceLogger = $root.ServiceLogger = (() => { object.exception = ""; object.dateCreated = ""; } - if (message.serviceLogId != null && message.hasOwnProperty("serviceLogId")) + if (message.serviceLogId != null && Object.hasOwnProperty.call(message, "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") 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 (message.serviceInfoId != null && Object.hasOwnProperty.call(message, "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") 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 (message.resourceId != null && Object.hasOwnProperty.call(message, "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") 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; - if (message.logger != null && message.hasOwnProperty("logger")) + if (message.logger != null && Object.hasOwnProperty.call(message, "logger")) object.logger = message.logger; - if (message.logLevel != null && message.hasOwnProperty("logLevel")) + if (message.logLevel != null && Object.hasOwnProperty.call(message, "logLevel")) object.logLevel = message.logLevel; - if (message.message != null && message.hasOwnProperty("message")) + if (message.message != null && Object.hasOwnProperty.call(message, "message")) object.message = message.message; - if (message.exception != null && message.hasOwnProperty("exception")) + if (message.exception != null && Object.hasOwnProperty.call(message, "exception")) object.exception = message.exception; - if (message.dateCreated != null && message.hasOwnProperty("dateCreated")) + if (message.dateCreated != null && Object.hasOwnProperty.call(message, "dateCreated")) object.dateCreated = message.dateCreated; return object; }; @@ -227215,19 +185111,6 @@ export const ServiceLogger = $root.ServiceLogger = (() => { return writer; }; - /** - * Encodes the specified ServiceLogAddRequest message, length delimited. Does not implicitly {@link ServiceLogger.ServiceLogAddRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof ServiceLogger.ServiceLogAddRequest - * @static - * @param {ServiceLogger.IServiceLogAddRequest} message ServiceLogAddRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ServiceLogAddRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a ServiceLogAddRequest message from the specified reader or buffer. * @function decode @@ -227266,49 +185149,6 @@ export const ServiceLogger = $root.ServiceLogger = (() => { return message; }; - /** - * Decodes a ServiceLogAddRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof ServiceLogger.ServiceLogAddRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ServiceLogger.ServiceLogAddRequest} ServiceLogAddRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ServiceLogAddRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a ServiceLogAddRequest message. - * @function verify - * @memberof ServiceLogger.ServiceLogAddRequest - * @static - * @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) { - if (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); - if (error) - return "entry." + error; - } - } - return null; - }; - /** * Creates a ServiceLogAddRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -227320,6 +185160,8 @@ export const ServiceLogger = $root.ServiceLogger = (() => { ServiceLogAddRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.ServiceLogger.ServiceLogAddRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".ServiceLogger.ServiceLogAddRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -227330,7 +185172,7 @@ export const ServiceLogger = $root.ServiceLogger = (() => { throw TypeError(".ServiceLogger.ServiceLogAddRequest.entry: array expected"); message.entry = []; for (let i = 0; i < object.entry.length; ++i) { - if (typeof object.entry[i] !== "object") + if (!$util.isObject(object.entry[i])) throw TypeError(".ServiceLogger.ServiceLogAddRequest.entry: object expected"); message.entry[i] = $root.ServiceLogger.ServiceLogRecord.fromObject(object.entry[i], long + 1); } @@ -227461,19 +185303,6 @@ export const ServiceLogger = $root.ServiceLogger = (() => { return writer; }; - /** - * Encodes the specified ServiceLogResponse message, length delimited. Does not implicitly {@link ServiceLogger.ServiceLogResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof ServiceLogger.ServiceLogResponse - * @static - * @param {ServiceLogger.IServiceLogResponse} message ServiceLogResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ServiceLogResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a ServiceLogResponse message from the specified reader or buffer. * @function decode @@ -227512,49 +185341,6 @@ export const ServiceLogger = $root.ServiceLogger = (() => { return message; }; - /** - * Decodes a ServiceLogResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof ServiceLogger.ServiceLogResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ServiceLogger.ServiceLogResponse} ServiceLogResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ServiceLogResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a ServiceLogResponse message. - * @function verify - * @memberof ServiceLogger.ServiceLogResponse - * @static - * @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) { - if (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); - if (error) - return "entry." + error; - } - } - return null; - }; - /** * Creates a ServiceLogResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -227566,6 +185352,8 @@ export const ServiceLogger = $root.ServiceLogger = (() => { ServiceLogResponse.fromObject = function fromObject(object, long) { if (object instanceof $root.ServiceLogger.ServiceLogResponse) return object; + if (!$util.isObject(object)) + throw TypeError(".ServiceLogger.ServiceLogResponse: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -227576,7 +185364,7 @@ export const ServiceLogger = $root.ServiceLogger = (() => { throw TypeError(".ServiceLogger.ServiceLogResponse.entry: array expected"); message.entry = []; for (let i = 0; i < object.entry.length; ++i) { - if (typeof object.entry[i] !== "object") + if (!$util.isObject(object.entry[i])) throw TypeError(".ServiceLogger.ServiceLogResponse.entry: object expected"); message.entry[i] = $root.ServiceLogger.ServiceLogRecord.fromObject(object.entry[i], long + 1); } @@ -227751,19 +185539,6 @@ export const ServiceLogger = $root.ServiceLogger = (() => { return writer; }; - /** - * Encodes the specified ServiceLogClearRequest message, length delimited. Does not implicitly {@link ServiceLogger.ServiceLogClearRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof ServiceLogger.ServiceLogClearRequest - * @static - * @param {ServiceLogger.IServiceLogClearRequest} message ServiceLogClearRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ServiceLogClearRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a ServiceLogClearRequest message from the specified reader or buffer. * @function decode @@ -227818,61 +185593,6 @@ export const ServiceLogger = $root.ServiceLogger = (() => { return message; }; - /** - * Decodes a ServiceLogClearRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof ServiceLogger.ServiceLogClearRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ServiceLogger.ServiceLogClearRequest} ServiceLogClearRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ServiceLogClearRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a ServiceLogClearRequest message. - * @function verify - * @memberof ServiceLogger.ServiceLogClearRequest - * @static - * @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) { - if (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"; - 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"; - if (message.daysOld != null && message.hasOwnProperty("daysOld")) - if (!$util.isInteger(message.daysOld)) - return "daysOld: integer expected"; - if (message.hoursOld != null && message.hasOwnProperty("hoursOld")) - if (!$util.isInteger(message.hoursOld)) - return "hoursOld: integer expected"; - if (message.resourceIdRange != null && message.hasOwnProperty("resourceIdRange")) { - 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); - if (error) - return "resourceIdRange." + error; - } - } - return null; - }; - /** * Creates a ServiceLogClearRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -227884,6 +185604,8 @@ export const ServiceLogger = $root.ServiceLogger = (() => { ServiceLogClearRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.ServiceLogger.ServiceLogClearRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".ServiceLogger.ServiceLogClearRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -227909,7 +185631,7 @@ export const ServiceLogger = $root.ServiceLogger = (() => { throw TypeError(".ServiceLogger.ServiceLogClearRequest.resourceIdRange: array expected"); message.resourceIdRange = []; for (let i = 0; i < object.resourceIdRange.length; ++i) { - if (typeof object.resourceIdRange[i] !== "object") + if (!$util.isObject(object.resourceIdRange[i])) throw TypeError(".ServiceLogger.ServiceLogClearRequest.resourceIdRange: object expected"); message.resourceIdRange[i] = $root.ServiceLogger.IdRange.fromObject(object.resourceIdRange[i], long + 1); } @@ -227946,18 +185668,18 @@ export const ServiceLogger = $root.ServiceLogger = (() => { object.daysOld = 0; object.hoursOld = 0; } - if (message.useDefaults != null && message.hasOwnProperty("useDefaults")) + if (message.useDefaults != null && Object.hasOwnProperty.call(message, "useDefaults")) object.useDefaults = message.useDefaults; - if (message.serviceTypeId != null && message.hasOwnProperty("serviceTypeId")) + if (message.serviceTypeId != null && Object.hasOwnProperty.call(message, "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") 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; - if (message.daysOld != null && message.hasOwnProperty("daysOld")) + if (message.daysOld != null && Object.hasOwnProperty.call(message, "daysOld")) object.daysOld = message.daysOld; - if (message.hoursOld != null && message.hasOwnProperty("hoursOld")) + if (message.hoursOld != null && Object.hasOwnProperty.call(message, "hoursOld")) object.hoursOld = message.hoursOld; if (message.resourceIdRange && message.resourceIdRange.length) { object.resourceIdRange = []; @@ -228107,19 +185829,6 @@ export const ServiceLogger = $root.ServiceLogger = (() => { return writer; }; - /** - * Encodes the specified ServiceLogClearResponse message, length delimited. Does not implicitly {@link ServiceLogger.ServiceLogClearResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof ServiceLogger.ServiceLogClearResponse - * @static - * @param {ServiceLogger.IServiceLogClearResponse} message ServiceLogClearResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ServiceLogClearResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a ServiceLogClearResponse message from the specified reader or buffer. * @function decode @@ -228174,61 +185883,6 @@ export const ServiceLogger = $root.ServiceLogger = (() => { return message; }; - /** - * Decodes a ServiceLogClearResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof ServiceLogger.ServiceLogClearResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ServiceLogger.ServiceLogClearResponse} ServiceLogClearResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ServiceLogClearResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a ServiceLogClearResponse message. - * @function verify - * @memberof ServiceLogger.ServiceLogClearResponse - * @static - * @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) { - if (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"; - if (message.serviceName != null && message.hasOwnProperty("serviceName")) - if (!$util.isString(message.serviceName)) - return "serviceName: string expected"; - if (message.resourceIdRange != null && message.hasOwnProperty("resourceIdRange")) { - 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); - if (error) - return "resourceIdRange." + error; - } - } - if (message.numDeleted != null && message.hasOwnProperty("numDeleted")) - if (!$util.isInteger(message.numDeleted)) - return "numDeleted: integer expected"; - if (message.numRemaining != null && message.hasOwnProperty("numRemaining")) - if (!$util.isInteger(message.numRemaining)) - return "numRemaining: integer expected"; - return null; - }; - /** * Creates a ServiceLogClearResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -228240,6 +185894,8 @@ export const ServiceLogger = $root.ServiceLogger = (() => { ServiceLogClearResponse.fromObject = function fromObject(object, long) { if (object instanceof $root.ServiceLogger.ServiceLogClearResponse) return object; + if (!$util.isObject(object)) + throw TypeError(".ServiceLogger.ServiceLogClearResponse: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -228261,7 +185917,7 @@ export const ServiceLogger = $root.ServiceLogger = (() => { throw TypeError(".ServiceLogger.ServiceLogClearResponse.resourceIdRange: array expected"); message.resourceIdRange = []; for (let i = 0; i < object.resourceIdRange.length; ++i) { - if (typeof object.resourceIdRange[i] !== "object") + if (!$util.isObject(object.resourceIdRange[i])) throw TypeError(".ServiceLogger.ServiceLogClearResponse.resourceIdRange: object expected"); message.resourceIdRange[i] = $root.ServiceLogger.IdRange.fromObject(object.resourceIdRange[i], long + 1); } @@ -228302,23 +185958,23 @@ export const ServiceLogger = $root.ServiceLogger = (() => { object.numDeleted = 0; object.numRemaining = 0; } - if (message.serviceTypeId != null && message.hasOwnProperty("serviceTypeId")) + if (message.serviceTypeId != null && Object.hasOwnProperty.call(message, "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") 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; - if (message.serviceName != null && message.hasOwnProperty("serviceName")) + if (message.serviceName != null && Object.hasOwnProperty.call(message, "serviceName")) object.serviceName = message.serviceName; 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); } - if (message.numDeleted != null && message.hasOwnProperty("numDeleted")) + if (message.numDeleted != null && Object.hasOwnProperty.call(message, "numDeleted")) object.numDeleted = message.numDeleted; - if (message.numRemaining != null && message.hasOwnProperty("numRemaining")) + if (message.numRemaining != null && Object.hasOwnProperty.call(message, "numRemaining")) object.numRemaining = message.numRemaining; return object; }; @@ -228465,19 +186121,6 @@ export const Vault = $root.Vault = (() => { return writer; }; - /** - * Encodes the specified SyncDownRequest message, length delimited. Does not implicitly {@link Vault.SyncDownRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof Vault.SyncDownRequest - * @static - * @param {Vault.ISyncDownRequest} message SyncDownRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SyncDownRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a SyncDownRequest message from the specified reader or buffer. * @function decode @@ -228522,49 +186165,6 @@ export const Vault = $root.Vault = (() => { return message; }; - /** - * Decodes a SyncDownRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Vault.SyncDownRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Vault.SyncDownRequest} SyncDownRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SyncDownRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a SyncDownRequest message. - * @function verify - * @memberof Vault.SyncDownRequest - * @static - * @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) { - if (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"; - if (message.dataVersion != null && message.hasOwnProperty("dataVersion")) - if (!$util.isInteger(message.dataVersion)) - return "dataVersion: integer expected"; - if (message.debug != null && message.hasOwnProperty("debug")) - if (typeof message.debug !== "boolean") - return "debug: boolean expected"; - return null; - }; - /** * Creates a SyncDownRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -228576,6 +186176,8 @@ export const Vault = $root.Vault = (() => { SyncDownRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.Vault.SyncDownRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".Vault.SyncDownRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -228621,11 +186223,11 @@ export const Vault = $root.Vault = (() => { object.dataVersion = 0; object.debug = false; } - if (message.continuationToken != null && message.hasOwnProperty("continuationToken")) + if (message.continuationToken != null && Object.hasOwnProperty.call(message, "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.dataVersion != null && message.hasOwnProperty("dataVersion")) + if (message.dataVersion != null && Object.hasOwnProperty.call(message, "dataVersion")) object.dataVersion = message.dataVersion; - if (message.debug != null && message.hasOwnProperty("debug")) + if (message.debug != null && Object.hasOwnProperty.call(message, "debug")) object.debug = message.debug; return object; }; @@ -229321,19 +186923,6 @@ export const Vault = $root.Vault = (() => { return writer; }; - /** - * Encodes the specified SyncDownResponse message, length delimited. Does not implicitly {@link Vault.SyncDownResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof Vault.SyncDownResponse - * @static - * @param {Vault.ISyncDownResponse} message SyncDownResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SyncDownResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a SyncDownResponse message from the specified reader or buffer. * @function decode @@ -229638,427 +187227,6 @@ export const Vault = $root.Vault = (() => { return message; }; - /** - * Decodes a SyncDownResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Vault.SyncDownResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Vault.SyncDownResponse} SyncDownResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SyncDownResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a SyncDownResponse message. - * @function verify - * @memberof Vault.SyncDownResponse - * @static - * @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) { - if (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"; - if (message.hasMore != null && message.hasOwnProperty("hasMore")) - if (typeof message.hasMore !== "boolean") - return "hasMore: boolean expected"; - if (message.cacheStatus != null && message.hasOwnProperty("cacheStatus")) - switch (message.cacheStatus) { - default: - return "cacheStatus: enum value expected"; - case 0: - case 1: - break; - } - if (message.userFolders != null && message.hasOwnProperty("userFolders")) { - 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); - if (error) - return "userFolders." + error; - } - } - 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.Vault.SharedFolder.verify(message.sharedFolders[i], long + 1); - if (error) - return "sharedFolders." + error; - } - } - if (message.userFolderSharedFolders != null && message.hasOwnProperty("userFolderSharedFolders")) { - 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); - if (error) - return "userFolderSharedFolders." + error; - } - } - if (message.sharedFolderFolders != null && message.hasOwnProperty("sharedFolderFolders")) { - 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); - if (error) - return "sharedFolderFolders." + error; - } - } - 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.Vault.Record.verify(message.records[i], long + 1); - if (error) - return "records." + error; - } - } - if (message.recordMetaData != null && message.hasOwnProperty("recordMetaData")) { - 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); - if (error) - return "recordMetaData." + error; - } - } - if (message.nonSharedData != null && message.hasOwnProperty("nonSharedData")) { - 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); - if (error) - return "nonSharedData." + error; - } - } - 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.Vault.RecordLink.verify(message.recordLinks[i], long + 1); - if (error) - return "recordLinks." + error; - } - } - if (message.userFolderRecords != null && message.hasOwnProperty("userFolderRecords")) { - 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); - if (error) - return "userFolderRecords." + error; - } - } - if (message.sharedFolderRecords != null && message.hasOwnProperty("sharedFolderRecords")) { - 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); - if (error) - return "sharedFolderRecords." + error; - } - } - if (message.sharedFolderFolderRecords != null && message.hasOwnProperty("sharedFolderFolderRecords")) { - 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); - if (error) - return "sharedFolderFolderRecords." + error; - } - } - if (message.sharedFolderUsers != null && message.hasOwnProperty("sharedFolderUsers")) { - 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); - if (error) - return "sharedFolderUsers." + error; - } - } - if (message.sharedFolderTeams != null && message.hasOwnProperty("sharedFolderTeams")) { - 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); - if (error) - return "sharedFolderTeams." + error; - } - } - if (message.recordAddAuditData != null && message.hasOwnProperty("recordAddAuditData")) { - if (!Array.isArray(message.recordAddAuditData)) - return "recordAddAuditData: array expected"; - for (let i = 0; i < message.recordAddAuditData.length; ++i) - if (!(message.recordAddAuditData[i] && typeof message.recordAddAuditData[i].length === "number" || $util.isString(message.recordAddAuditData[i]))) - return "recordAddAuditData: buffer[] expected"; - } - 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.Vault.Team.verify(message.teams[i], long + 1); - if (error) - return "teams." + error; - } - } - if (message.sharingChanges != null && message.hasOwnProperty("sharingChanges")) { - 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); - if (error) - return "sharingChanges." + error; - } - } - if (message.profile != null && message.hasOwnProperty("profile")) { - let error = $root.Vault.Profile.verify(message.profile, long + 1); - if (error) - return "profile." + error; - } - if (message.profilePic != null && message.hasOwnProperty("profilePic")) { - let error = $root.Vault.ProfilePic.verify(message.profilePic, long + 1); - if (error) - return "profilePic." + error; - } - if (message.pendingTeamMembers != null && message.hasOwnProperty("pendingTeamMembers")) { - 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); - if (error) - return "pendingTeamMembers." + error; - } - } - 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); - if (error) - return "breachWatchRecords." + error; - } - } - if (message.userAuths != null && message.hasOwnProperty("userAuths")) { - 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); - if (error) - return "userAuths." + error; - } - } - if (message.breachWatchSecurityData != null && message.hasOwnProperty("breachWatchSecurityData")) { - 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); - if (error) - return "breachWatchSecurityData." + error; - } - } - if (message.reusedPasswords != null && message.hasOwnProperty("reusedPasswords")) { - let error = $root.Vault.ReusedPasswords.verify(message.reusedPasswords, long + 1); - if (error) - return "reusedPasswords." + error; - } - if (message.removedUserFolders != null && message.hasOwnProperty("removedUserFolders")) { - if (!Array.isArray(message.removedUserFolders)) - return "removedUserFolders: array expected"; - for (let i = 0; i < message.removedUserFolders.length; ++i) - if (!(message.removedUserFolders[i] && typeof message.removedUserFolders[i].length === "number" || $util.isString(message.removedUserFolders[i]))) - return "removedUserFolders: buffer[] expected"; - } - if (message.removedSharedFolders != null && message.hasOwnProperty("removedSharedFolders")) { - if (!Array.isArray(message.removedSharedFolders)) - return "removedSharedFolders: array expected"; - for (let i = 0; i < message.removedSharedFolders.length; ++i) - if (!(message.removedSharedFolders[i] && typeof message.removedSharedFolders[i].length === "number" || $util.isString(message.removedSharedFolders[i]))) - return "removedSharedFolders: buffer[] expected"; - } - if (message.removedUserFolderSharedFolders != null && message.hasOwnProperty("removedUserFolderSharedFolders")) { - 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); - if (error) - return "removedUserFolderSharedFolders." + error; - } - } - if (message.removedSharedFolderFolders != null && message.hasOwnProperty("removedSharedFolderFolders")) { - 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); - if (error) - return "removedSharedFolderFolders." + error; - } - } - if (message.removedRecords != null && message.hasOwnProperty("removedRecords")) { - if (!Array.isArray(message.removedRecords)) - return "removedRecords: array expected"; - for (let i = 0; i < message.removedRecords.length; ++i) - if (!(message.removedRecords[i] && typeof message.removedRecords[i].length === "number" || $util.isString(message.removedRecords[i]))) - return "removedRecords: buffer[] expected"; - } - if (message.removedRecordLinks != null && message.hasOwnProperty("removedRecordLinks")) { - 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); - if (error) - return "removedRecordLinks." + error; - } - } - if (message.removedUserFolderRecords != null && message.hasOwnProperty("removedUserFolderRecords")) { - 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); - if (error) - return "removedUserFolderRecords." + error; - } - } - if (message.removedSharedFolderRecords != null && message.hasOwnProperty("removedSharedFolderRecords")) { - 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); - if (error) - return "removedSharedFolderRecords." + error; - } - } - if (message.removedSharedFolderFolderRecords != null && message.hasOwnProperty("removedSharedFolderFolderRecords")) { - 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); - if (error) - return "removedSharedFolderFolderRecords." + error; - } - } - if (message.removedSharedFolderUsers != null && message.hasOwnProperty("removedSharedFolderUsers")) { - 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); - if (error) - return "removedSharedFolderUsers." + error; - } - } - if (message.removedSharedFolderTeams != null && message.hasOwnProperty("removedSharedFolderTeams")) { - 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); - if (error) - return "removedSharedFolderTeams." + error; - } - } - if (message.removedTeams != null && message.hasOwnProperty("removedTeams")) { - if (!Array.isArray(message.removedTeams)) - return "removedTeams: array expected"; - for (let i = 0; i < message.removedTeams.length; ++i) - if (!(message.removedTeams[i] && typeof message.removedTeams[i].length === "number" || $util.isString(message.removedTeams[i]))) - return "removedTeams: buffer[] expected"; - } - if (message.ksmAppShares != null && message.hasOwnProperty("ksmAppShares")) { - 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); - if (error) - return "ksmAppShares." + error; - } - } - if (message.ksmAppClients != null && message.hasOwnProperty("ksmAppClients")) { - 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); - if (error) - return "ksmAppClients." + error; - } - } - if (message.shareInvitations != null && message.hasOwnProperty("shareInvitations")) { - 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); - if (error) - return "shareInvitations." + error; - } - } - if (message.diagnostics != null && message.hasOwnProperty("diagnostics")) { - let error = $root.Vault.SyncDiagnostics.verify(message.diagnostics, long + 1); - if (error) - return "diagnostics." + error; - } - if (message.recordRotations != null && message.hasOwnProperty("recordRotations")) { - 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); - if (error) - return "recordRotations." + error; - } - } - 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); - if (error) - return "users." + error; - } - } - if (message.removedUsers != null && message.hasOwnProperty("removedUsers")) { - if (!Array.isArray(message.removedUsers)) - return "removedUsers: array expected"; - for (let i = 0; i < message.removedUsers.length; ++i) - if (!(message.removedUsers[i] && typeof message.removedUsers[i].length === "number" || $util.isString(message.removedUsers[i]))) - return "removedUsers: buffer[] expected"; - } - if (message.securityScoreData != null && message.hasOwnProperty("securityScoreData")) { - 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); - if (error) - return "securityScoreData." + error; - } - } - if (message.notificationSync != null && message.hasOwnProperty("notificationSync")) { - 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); - if (error) - return "notificationSync." + error; - } - } - if (message.keeperDriveData != null && message.hasOwnProperty("keeperDriveData")) { - let error = $root.Vault.KeeperDriveData.verify(message.keeperDriveData, long + 1); - if (error) - return "keeperDriveData." + error; - } - return null; - }; - /** * Creates a SyncDownResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -230070,6 +187238,8 @@ export const Vault = $root.Vault = (() => { SyncDownResponse.fromObject = function fromObject(object, long) { if (object instanceof $root.Vault.SyncDownResponse) return object; + if (!$util.isObject(object)) + throw TypeError(".Vault.SyncDownResponse: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -230103,7 +187273,7 @@ export const Vault = $root.Vault = (() => { throw TypeError(".Vault.SyncDownResponse.userFolders: array expected"); message.userFolders = []; for (let i = 0; i < object.userFolders.length; ++i) { - if (typeof object.userFolders[i] !== "object") + if (!$util.isObject(object.userFolders[i])) throw TypeError(".Vault.SyncDownResponse.userFolders: object expected"); message.userFolders[i] = $root.Vault.UserFolder.fromObject(object.userFolders[i], long + 1); } @@ -230113,7 +187283,7 @@ export const Vault = $root.Vault = (() => { throw TypeError(".Vault.SyncDownResponse.sharedFolders: array expected"); message.sharedFolders = []; for (let i = 0; i < object.sharedFolders.length; ++i) { - if (typeof object.sharedFolders[i] !== "object") + if (!$util.isObject(object.sharedFolders[i])) throw TypeError(".Vault.SyncDownResponse.sharedFolders: object expected"); message.sharedFolders[i] = $root.Vault.SharedFolder.fromObject(object.sharedFolders[i], long + 1); } @@ -230123,7 +187293,7 @@ export const Vault = $root.Vault = (() => { throw TypeError(".Vault.SyncDownResponse.userFolderSharedFolders: array expected"); message.userFolderSharedFolders = []; for (let i = 0; i < object.userFolderSharedFolders.length; ++i) { - if (typeof object.userFolderSharedFolders[i] !== "object") + if (!$util.isObject(object.userFolderSharedFolders[i])) throw TypeError(".Vault.SyncDownResponse.userFolderSharedFolders: object expected"); message.userFolderSharedFolders[i] = $root.Vault.UserFolderSharedFolder.fromObject(object.userFolderSharedFolders[i], long + 1); } @@ -230133,7 +187303,7 @@ export const Vault = $root.Vault = (() => { throw TypeError(".Vault.SyncDownResponse.sharedFolderFolders: array expected"); message.sharedFolderFolders = []; for (let i = 0; i < object.sharedFolderFolders.length; ++i) { - if (typeof object.sharedFolderFolders[i] !== "object") + if (!$util.isObject(object.sharedFolderFolders[i])) throw TypeError(".Vault.SyncDownResponse.sharedFolderFolders: object expected"); message.sharedFolderFolders[i] = $root.Vault.SharedFolderFolder.fromObject(object.sharedFolderFolders[i], long + 1); } @@ -230143,7 +187313,7 @@ export const Vault = $root.Vault = (() => { throw TypeError(".Vault.SyncDownResponse.records: array expected"); message.records = []; for (let i = 0; i < object.records.length; ++i) { - if (typeof object.records[i] !== "object") + if (!$util.isObject(object.records[i])) throw TypeError(".Vault.SyncDownResponse.records: object expected"); message.records[i] = $root.Vault.Record.fromObject(object.records[i], long + 1); } @@ -230153,7 +187323,7 @@ export const Vault = $root.Vault = (() => { throw TypeError(".Vault.SyncDownResponse.recordMetaData: array expected"); message.recordMetaData = []; for (let i = 0; i < object.recordMetaData.length; ++i) { - if (typeof object.recordMetaData[i] !== "object") + if (!$util.isObject(object.recordMetaData[i])) throw TypeError(".Vault.SyncDownResponse.recordMetaData: object expected"); message.recordMetaData[i] = $root.Vault.RecordMetaData.fromObject(object.recordMetaData[i], long + 1); } @@ -230163,7 +187333,7 @@ export const Vault = $root.Vault = (() => { throw TypeError(".Vault.SyncDownResponse.nonSharedData: array expected"); message.nonSharedData = []; for (let i = 0; i < object.nonSharedData.length; ++i) { - if (typeof object.nonSharedData[i] !== "object") + if (!$util.isObject(object.nonSharedData[i])) throw TypeError(".Vault.SyncDownResponse.nonSharedData: object expected"); message.nonSharedData[i] = $root.Vault.NonSharedData.fromObject(object.nonSharedData[i], long + 1); } @@ -230173,7 +187343,7 @@ export const Vault = $root.Vault = (() => { throw TypeError(".Vault.SyncDownResponse.recordLinks: array expected"); message.recordLinks = []; for (let i = 0; i < object.recordLinks.length; ++i) { - if (typeof object.recordLinks[i] !== "object") + if (!$util.isObject(object.recordLinks[i])) throw TypeError(".Vault.SyncDownResponse.recordLinks: object expected"); message.recordLinks[i] = $root.Vault.RecordLink.fromObject(object.recordLinks[i], long + 1); } @@ -230183,7 +187353,7 @@ export const Vault = $root.Vault = (() => { throw TypeError(".Vault.SyncDownResponse.userFolderRecords: array expected"); message.userFolderRecords = []; for (let i = 0; i < object.userFolderRecords.length; ++i) { - if (typeof object.userFolderRecords[i] !== "object") + if (!$util.isObject(object.userFolderRecords[i])) throw TypeError(".Vault.SyncDownResponse.userFolderRecords: object expected"); message.userFolderRecords[i] = $root.Vault.UserFolderRecord.fromObject(object.userFolderRecords[i], long + 1); } @@ -230193,7 +187363,7 @@ export const Vault = $root.Vault = (() => { throw TypeError(".Vault.SyncDownResponse.sharedFolderRecords: array expected"); message.sharedFolderRecords = []; for (let i = 0; i < object.sharedFolderRecords.length; ++i) { - if (typeof object.sharedFolderRecords[i] !== "object") + if (!$util.isObject(object.sharedFolderRecords[i])) throw TypeError(".Vault.SyncDownResponse.sharedFolderRecords: object expected"); message.sharedFolderRecords[i] = $root.Vault.SharedFolderRecord.fromObject(object.sharedFolderRecords[i], long + 1); } @@ -230203,7 +187373,7 @@ export const Vault = $root.Vault = (() => { throw TypeError(".Vault.SyncDownResponse.sharedFolderFolderRecords: array expected"); message.sharedFolderFolderRecords = []; for (let i = 0; i < object.sharedFolderFolderRecords.length; ++i) { - if (typeof object.sharedFolderFolderRecords[i] !== "object") + if (!$util.isObject(object.sharedFolderFolderRecords[i])) throw TypeError(".Vault.SyncDownResponse.sharedFolderFolderRecords: object expected"); message.sharedFolderFolderRecords[i] = $root.Vault.SharedFolderFolderRecord.fromObject(object.sharedFolderFolderRecords[i], long + 1); } @@ -230213,7 +187383,7 @@ export const Vault = $root.Vault = (() => { throw TypeError(".Vault.SyncDownResponse.sharedFolderUsers: array expected"); message.sharedFolderUsers = []; for (let i = 0; i < object.sharedFolderUsers.length; ++i) { - if (typeof object.sharedFolderUsers[i] !== "object") + if (!$util.isObject(object.sharedFolderUsers[i])) throw TypeError(".Vault.SyncDownResponse.sharedFolderUsers: object expected"); message.sharedFolderUsers[i] = $root.Vault.SharedFolderUser.fromObject(object.sharedFolderUsers[i], long + 1); } @@ -230223,7 +187393,7 @@ export const Vault = $root.Vault = (() => { throw TypeError(".Vault.SyncDownResponse.sharedFolderTeams: array expected"); message.sharedFolderTeams = []; for (let i = 0; i < object.sharedFolderTeams.length; ++i) { - if (typeof object.sharedFolderTeams[i] !== "object") + if (!$util.isObject(object.sharedFolderTeams[i])) throw TypeError(".Vault.SyncDownResponse.sharedFolderTeams: object expected"); message.sharedFolderTeams[i] = $root.Vault.SharedFolderTeam.fromObject(object.sharedFolderTeams[i], long + 1); } @@ -230243,7 +187413,7 @@ export const Vault = $root.Vault = (() => { throw TypeError(".Vault.SyncDownResponse.teams: array expected"); message.teams = []; for (let i = 0; i < object.teams.length; ++i) { - if (typeof object.teams[i] !== "object") + if (!$util.isObject(object.teams[i])) throw TypeError(".Vault.SyncDownResponse.teams: object expected"); message.teams[i] = $root.Vault.Team.fromObject(object.teams[i], long + 1); } @@ -230253,18 +187423,18 @@ export const Vault = $root.Vault = (() => { throw TypeError(".Vault.SyncDownResponse.sharingChanges: array expected"); message.sharingChanges = []; for (let i = 0; i < object.sharingChanges.length; ++i) { - if (typeof object.sharingChanges[i] !== "object") + if (!$util.isObject(object.sharingChanges[i])) throw TypeError(".Vault.SyncDownResponse.sharingChanges: object expected"); message.sharingChanges[i] = $root.Vault.SharingChange.fromObject(object.sharingChanges[i], long + 1); } } if (object.profile != null) { - if (typeof object.profile !== "object") + if (!$util.isObject(object.profile)) throw TypeError(".Vault.SyncDownResponse.profile: object expected"); message.profile = $root.Vault.Profile.fromObject(object.profile, long + 1); } if (object.profilePic != null) { - if (typeof object.profilePic !== "object") + if (!$util.isObject(object.profilePic)) throw TypeError(".Vault.SyncDownResponse.profilePic: object expected"); message.profilePic = $root.Vault.ProfilePic.fromObject(object.profilePic, long + 1); } @@ -230273,7 +187443,7 @@ export const Vault = $root.Vault = (() => { throw TypeError(".Vault.SyncDownResponse.pendingTeamMembers: array expected"); message.pendingTeamMembers = []; for (let i = 0; i < object.pendingTeamMembers.length; ++i) { - if (typeof object.pendingTeamMembers[i] !== "object") + if (!$util.isObject(object.pendingTeamMembers[i])) throw TypeError(".Vault.SyncDownResponse.pendingTeamMembers: object expected"); message.pendingTeamMembers[i] = $root.Vault.PendingTeamMember.fromObject(object.pendingTeamMembers[i], long + 1); } @@ -230283,7 +187453,7 @@ export const Vault = $root.Vault = (() => { throw TypeError(".Vault.SyncDownResponse.breachWatchRecords: array expected"); message.breachWatchRecords = []; for (let i = 0; i < object.breachWatchRecords.length; ++i) { - if (typeof object.breachWatchRecords[i] !== "object") + if (!$util.isObject(object.breachWatchRecords[i])) throw TypeError(".Vault.SyncDownResponse.breachWatchRecords: object expected"); message.breachWatchRecords[i] = $root.Vault.BreachWatchRecord.fromObject(object.breachWatchRecords[i], long + 1); } @@ -230293,7 +187463,7 @@ export const Vault = $root.Vault = (() => { throw TypeError(".Vault.SyncDownResponse.userAuths: array expected"); message.userAuths = []; for (let i = 0; i < object.userAuths.length; ++i) { - if (typeof object.userAuths[i] !== "object") + if (!$util.isObject(object.userAuths[i])) throw TypeError(".Vault.SyncDownResponse.userAuths: object expected"); message.userAuths[i] = $root.Vault.UserAuth.fromObject(object.userAuths[i], long + 1); } @@ -230303,13 +187473,13 @@ export const Vault = $root.Vault = (() => { throw TypeError(".Vault.SyncDownResponse.breachWatchSecurityData: array expected"); message.breachWatchSecurityData = []; for (let i = 0; i < object.breachWatchSecurityData.length; ++i) { - if (typeof object.breachWatchSecurityData[i] !== "object") + if (!$util.isObject(object.breachWatchSecurityData[i])) throw TypeError(".Vault.SyncDownResponse.breachWatchSecurityData: object expected"); message.breachWatchSecurityData[i] = $root.Vault.BreachWatchSecurityData.fromObject(object.breachWatchSecurityData[i], long + 1); } } if (object.reusedPasswords != null) { - if (typeof object.reusedPasswords !== "object") + if (!$util.isObject(object.reusedPasswords)) throw TypeError(".Vault.SyncDownResponse.reusedPasswords: object expected"); message.reusedPasswords = $root.Vault.ReusedPasswords.fromObject(object.reusedPasswords, long + 1); } @@ -230338,7 +187508,7 @@ export const Vault = $root.Vault = (() => { throw TypeError(".Vault.SyncDownResponse.removedUserFolderSharedFolders: array expected"); message.removedUserFolderSharedFolders = []; for (let i = 0; i < object.removedUserFolderSharedFolders.length; ++i) { - if (typeof object.removedUserFolderSharedFolders[i] !== "object") + if (!$util.isObject(object.removedUserFolderSharedFolders[i])) throw TypeError(".Vault.SyncDownResponse.removedUserFolderSharedFolders: object expected"); message.removedUserFolderSharedFolders[i] = $root.Vault.UserFolderSharedFolder.fromObject(object.removedUserFolderSharedFolders[i], long + 1); } @@ -230348,7 +187518,7 @@ export const Vault = $root.Vault = (() => { throw TypeError(".Vault.SyncDownResponse.removedSharedFolderFolders: array expected"); message.removedSharedFolderFolders = []; for (let i = 0; i < object.removedSharedFolderFolders.length; ++i) { - if (typeof object.removedSharedFolderFolders[i] !== "object") + if (!$util.isObject(object.removedSharedFolderFolders[i])) throw TypeError(".Vault.SyncDownResponse.removedSharedFolderFolders: object expected"); message.removedSharedFolderFolders[i] = $root.Vault.SharedFolderFolder.fromObject(object.removedSharedFolderFolders[i], long + 1); } @@ -230368,7 +187538,7 @@ export const Vault = $root.Vault = (() => { throw TypeError(".Vault.SyncDownResponse.removedRecordLinks: array expected"); message.removedRecordLinks = []; for (let i = 0; i < object.removedRecordLinks.length; ++i) { - if (typeof object.removedRecordLinks[i] !== "object") + if (!$util.isObject(object.removedRecordLinks[i])) throw TypeError(".Vault.SyncDownResponse.removedRecordLinks: object expected"); message.removedRecordLinks[i] = $root.Vault.RecordLink.fromObject(object.removedRecordLinks[i], long + 1); } @@ -230378,7 +187548,7 @@ export const Vault = $root.Vault = (() => { throw TypeError(".Vault.SyncDownResponse.removedUserFolderRecords: array expected"); message.removedUserFolderRecords = []; for (let i = 0; i < object.removedUserFolderRecords.length; ++i) { - if (typeof object.removedUserFolderRecords[i] !== "object") + if (!$util.isObject(object.removedUserFolderRecords[i])) throw TypeError(".Vault.SyncDownResponse.removedUserFolderRecords: object expected"); message.removedUserFolderRecords[i] = $root.Vault.UserFolderRecord.fromObject(object.removedUserFolderRecords[i], long + 1); } @@ -230388,7 +187558,7 @@ export const Vault = $root.Vault = (() => { throw TypeError(".Vault.SyncDownResponse.removedSharedFolderRecords: array expected"); message.removedSharedFolderRecords = []; for (let i = 0; i < object.removedSharedFolderRecords.length; ++i) { - if (typeof object.removedSharedFolderRecords[i] !== "object") + if (!$util.isObject(object.removedSharedFolderRecords[i])) throw TypeError(".Vault.SyncDownResponse.removedSharedFolderRecords: object expected"); message.removedSharedFolderRecords[i] = $root.Vault.SharedFolderRecord.fromObject(object.removedSharedFolderRecords[i], long + 1); } @@ -230398,7 +187568,7 @@ export const Vault = $root.Vault = (() => { throw TypeError(".Vault.SyncDownResponse.removedSharedFolderFolderRecords: array expected"); message.removedSharedFolderFolderRecords = []; for (let i = 0; i < object.removedSharedFolderFolderRecords.length; ++i) { - if (typeof object.removedSharedFolderFolderRecords[i] !== "object") + if (!$util.isObject(object.removedSharedFolderFolderRecords[i])) throw TypeError(".Vault.SyncDownResponse.removedSharedFolderFolderRecords: object expected"); message.removedSharedFolderFolderRecords[i] = $root.Vault.SharedFolderFolderRecord.fromObject(object.removedSharedFolderFolderRecords[i], long + 1); } @@ -230408,7 +187578,7 @@ export const Vault = $root.Vault = (() => { throw TypeError(".Vault.SyncDownResponse.removedSharedFolderUsers: array expected"); message.removedSharedFolderUsers = []; for (let i = 0; i < object.removedSharedFolderUsers.length; ++i) { - if (typeof object.removedSharedFolderUsers[i] !== "object") + if (!$util.isObject(object.removedSharedFolderUsers[i])) throw TypeError(".Vault.SyncDownResponse.removedSharedFolderUsers: object expected"); message.removedSharedFolderUsers[i] = $root.Vault.SharedFolderUser.fromObject(object.removedSharedFolderUsers[i], long + 1); } @@ -230418,7 +187588,7 @@ export const Vault = $root.Vault = (() => { throw TypeError(".Vault.SyncDownResponse.removedSharedFolderTeams: array expected"); message.removedSharedFolderTeams = []; for (let i = 0; i < object.removedSharedFolderTeams.length; ++i) { - if (typeof object.removedSharedFolderTeams[i] !== "object") + if (!$util.isObject(object.removedSharedFolderTeams[i])) throw TypeError(".Vault.SyncDownResponse.removedSharedFolderTeams: object expected"); message.removedSharedFolderTeams[i] = $root.Vault.SharedFolderTeam.fromObject(object.removedSharedFolderTeams[i], long + 1); } @@ -230438,7 +187608,7 @@ export const Vault = $root.Vault = (() => { throw TypeError(".Vault.SyncDownResponse.ksmAppShares: array expected"); message.ksmAppShares = []; for (let i = 0; i < object.ksmAppShares.length; ++i) { - if (typeof object.ksmAppShares[i] !== "object") + if (!$util.isObject(object.ksmAppShares[i])) throw TypeError(".Vault.SyncDownResponse.ksmAppShares: object expected"); message.ksmAppShares[i] = $root.Vault.KsmChange.fromObject(object.ksmAppShares[i], long + 1); } @@ -230448,7 +187618,7 @@ export const Vault = $root.Vault = (() => { throw TypeError(".Vault.SyncDownResponse.ksmAppClients: array expected"); message.ksmAppClients = []; for (let i = 0; i < object.ksmAppClients.length; ++i) { - if (typeof object.ksmAppClients[i] !== "object") + if (!$util.isObject(object.ksmAppClients[i])) throw TypeError(".Vault.SyncDownResponse.ksmAppClients: object expected"); message.ksmAppClients[i] = $root.Vault.KsmChange.fromObject(object.ksmAppClients[i], long + 1); } @@ -230458,13 +187628,13 @@ export const Vault = $root.Vault = (() => { throw TypeError(".Vault.SyncDownResponse.shareInvitations: array expected"); message.shareInvitations = []; for (let i = 0; i < object.shareInvitations.length; ++i) { - if (typeof object.shareInvitations[i] !== "object") + if (!$util.isObject(object.shareInvitations[i])) throw TypeError(".Vault.SyncDownResponse.shareInvitations: object expected"); message.shareInvitations[i] = $root.Vault.ShareInvitation.fromObject(object.shareInvitations[i], long + 1); } } if (object.diagnostics != null) { - if (typeof object.diagnostics !== "object") + if (!$util.isObject(object.diagnostics)) throw TypeError(".Vault.SyncDownResponse.diagnostics: object expected"); message.diagnostics = $root.Vault.SyncDiagnostics.fromObject(object.diagnostics, long + 1); } @@ -230473,7 +187643,7 @@ export const Vault = $root.Vault = (() => { throw TypeError(".Vault.SyncDownResponse.recordRotations: array expected"); message.recordRotations = []; for (let i = 0; i < object.recordRotations.length; ++i) { - if (typeof object.recordRotations[i] !== "object") + if (!$util.isObject(object.recordRotations[i])) throw TypeError(".Vault.SyncDownResponse.recordRotations: object expected"); message.recordRotations[i] = $root.Vault.RecordRotation.fromObject(object.recordRotations[i], long + 1); } @@ -230483,7 +187653,7 @@ export const Vault = $root.Vault = (() => { throw TypeError(".Vault.SyncDownResponse.users: array expected"); message.users = []; for (let i = 0; i < object.users.length; ++i) { - if (typeof object.users[i] !== "object") + if (!$util.isObject(object.users[i])) throw TypeError(".Vault.SyncDownResponse.users: object expected"); message.users[i] = $root.Vault.User.fromObject(object.users[i], long + 1); } @@ -230503,7 +187673,7 @@ export const Vault = $root.Vault = (() => { throw TypeError(".Vault.SyncDownResponse.securityScoreData: array expected"); message.securityScoreData = []; for (let i = 0; i < object.securityScoreData.length; ++i) { - if (typeof object.securityScoreData[i] !== "object") + if (!$util.isObject(object.securityScoreData[i])) throw TypeError(".Vault.SyncDownResponse.securityScoreData: object expected"); message.securityScoreData[i] = $root.Vault.SecurityScoreData.fromObject(object.securityScoreData[i], long + 1); } @@ -230513,13 +187683,13 @@ export const Vault = $root.Vault = (() => { throw TypeError(".Vault.SyncDownResponse.notificationSync: array expected"); message.notificationSync = []; for (let i = 0; i < object.notificationSync.length; ++i) { - if (typeof object.notificationSync[i] !== "object") + if (!$util.isObject(object.notificationSync[i])) throw TypeError(".Vault.SyncDownResponse.notificationSync: object expected"); message.notificationSync[i] = $root.NotificationCenter.NotificationWrapper.fromObject(object.notificationSync[i], long + 1); } } if (object.keeperDriveData != null) { - if (typeof object.keeperDriveData !== "object") + if (!$util.isObject(object.keeperDriveData)) throw TypeError(".Vault.SyncDownResponse.keeperDriveData: object expected"); message.keeperDriveData = $root.Vault.KeeperDriveData.fromObject(object.keeperDriveData, long + 1); } @@ -230601,11 +187771,11 @@ export const Vault = $root.Vault = (() => { object.diagnostics = null; object.keeperDriveData = null; } - if (message.continuationToken != null && message.hasOwnProperty("continuationToken")) + if (message.continuationToken != null && Object.hasOwnProperty.call(message, "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.hasMore != null && message.hasOwnProperty("hasMore")) + if (message.hasMore != null && Object.hasOwnProperty.call(message, "hasMore")) object.hasMore = message.hasMore; - if (message.cacheStatus != null && message.hasOwnProperty("cacheStatus")) + if (message.cacheStatus != null && Object.hasOwnProperty.call(message, "cacheStatus")) object.cacheStatus = options.enums === String ? $root.Vault.CacheStatus[message.cacheStatus] === undefined ? message.cacheStatus : $root.Vault.CacheStatus[message.cacheStatus] : message.cacheStatus; if (message.userFolders && message.userFolders.length) { object.userFolders = []; @@ -230687,9 +187857,9 @@ export const Vault = $root.Vault = (() => { for (let j = 0; j < message.sharingChanges.length; ++j) object.sharingChanges[j] = $root.Vault.SharingChange.toObject(message.sharingChanges[j], options, q + 1); } - if (message.profile != null && message.hasOwnProperty("profile")) + if (message.profile != null && Object.hasOwnProperty.call(message, "profile")) object.profile = $root.Vault.Profile.toObject(message.profile, options, q + 1); - if (message.profilePic != null && message.hasOwnProperty("profilePic")) + if (message.profilePic != null && Object.hasOwnProperty.call(message, "profilePic")) object.profilePic = $root.Vault.ProfilePic.toObject(message.profilePic, options, q + 1); if (message.pendingTeamMembers && message.pendingTeamMembers.length) { object.pendingTeamMembers = []; @@ -230711,7 +187881,7 @@ export const Vault = $root.Vault = (() => { for (let j = 0; j < message.breachWatchSecurityData.length; ++j) object.breachWatchSecurityData[j] = $root.Vault.BreachWatchSecurityData.toObject(message.breachWatchSecurityData[j], options, q + 1); } - if (message.reusedPasswords != null && message.hasOwnProperty("reusedPasswords")) + if (message.reusedPasswords != null && Object.hasOwnProperty.call(message, "reusedPasswords")) object.reusedPasswords = $root.Vault.ReusedPasswords.toObject(message.reusedPasswords, options, q + 1); if (message.removedUserFolders && message.removedUserFolders.length) { object.removedUserFolders = []; @@ -230788,7 +187958,7 @@ export const Vault = $root.Vault = (() => { for (let j = 0; j < message.shareInvitations.length; ++j) object.shareInvitations[j] = $root.Vault.ShareInvitation.toObject(message.shareInvitations[j], options, q + 1); } - if (message.diagnostics != null && message.hasOwnProperty("diagnostics")) + if (message.diagnostics != null && Object.hasOwnProperty.call(message, "diagnostics")) object.diagnostics = $root.Vault.SyncDiagnostics.toObject(message.diagnostics, options, q + 1); if (message.recordRotations && message.recordRotations.length) { object.recordRotations = []; @@ -230815,7 +187985,7 @@ export const Vault = $root.Vault = (() => { for (let j = 0; j < message.notificationSync.length; ++j) object.notificationSync[j] = $root.NotificationCenter.NotificationWrapper.toObject(message.notificationSync[j], options, q + 1); } - if (message.keeperDriveData != null && message.hasOwnProperty("keeperDriveData")) + if (message.keeperDriveData != null && Object.hasOwnProperty.call(message, "keeperDriveData")) object.keeperDriveData = $root.Vault.KeeperDriveData.toObject(message.keeperDriveData, options, q + 1); return object; }; @@ -230980,19 +188150,6 @@ export const Vault = $root.Vault = (() => { return writer; }; - /** - * Encodes the specified DriveRecord message, length delimited. Does not implicitly {@link Vault.DriveRecord.verify|verify} messages. - * @function encodeDelimited - * @memberof Vault.DriveRecord - * @static - * @param {Vault.IDriveRecord} message DriveRecord message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - DriveRecord.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a DriveRecord message from the specified reader or buffer. * @function decode @@ -231053,61 +188210,6 @@ export const Vault = $root.Vault = (() => { return message; }; - /** - * Decodes a DriveRecord message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Vault.DriveRecord - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Vault.DriveRecord} DriveRecord - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - DriveRecord.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a DriveRecord message. - * @function verify - * @memberof Vault.DriveRecord - * @static - * @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) { - if (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.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"; - if (message.version != null && message.hasOwnProperty("version")) - if (!$util.isInteger(message.version)) - return "version: integer expected"; - if (message.shared != null && message.hasOwnProperty("shared")) - if (typeof message.shared !== "boolean") - return "shared: boolean expected"; - 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.fileSize != null && message.hasOwnProperty("fileSize")) - if (!$util.isInteger(message.fileSize) && !(message.fileSize && $util.isInteger(message.fileSize.low) && $util.isInteger(message.fileSize.high))) - return "fileSize: integer|Long expected"; - if (message.thumbnailSize != null && message.hasOwnProperty("thumbnailSize")) - if (!$util.isInteger(message.thumbnailSize) && !(message.thumbnailSize && $util.isInteger(message.thumbnailSize.low) && $util.isInteger(message.thumbnailSize.high))) - return "thumbnailSize: integer|Long expected"; - return null; - }; - /** * Creates a DriveRecord message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -231119,6 +188221,8 @@ export const Vault = $root.Vault = (() => { DriveRecord.fromObject = function fromObject(object, long) { if (object instanceof $root.Vault.DriveRecord) return object; + if (!$util.isObject(object)) + throw TypeError(".Vault.DriveRecord: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -231220,34 +188324,34 @@ export const Vault = $root.Vault = (() => { } else object.thumbnailSize = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; } - if (message.recordUid != null && message.hasOwnProperty("recordUid")) + if (message.recordUid != null && Object.hasOwnProperty.call(message, "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 (message.revision != null && Object.hasOwnProperty.call(message, "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") 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.version != null && message.hasOwnProperty("version")) + if (message.version != null && Object.hasOwnProperty.call(message, "version")) object.version = message.version; - if (message.shared != null && message.hasOwnProperty("shared")) + if (message.shared != null && Object.hasOwnProperty.call(message, "shared")) object.shared = message.shared; - if (message.clientModifiedTime != null && message.hasOwnProperty("clientModifiedTime")) + if (message.clientModifiedTime != null && Object.hasOwnProperty.call(message, "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") 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 (message.fileSize != null && Object.hasOwnProperty.call(message, "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") 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 (message.thumbnailSize != null && Object.hasOwnProperty.call(message, "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") @@ -231373,19 +188477,6 @@ export const Vault = $root.Vault = (() => { return writer; }; - /** - * Encodes the specified FolderSharingState message, length delimited. Does not implicitly {@link Vault.FolderSharingState.verify|verify} messages. - * @function encodeDelimited - * @memberof Vault.FolderSharingState - * @static - * @param {Vault.IFolderSharingState} message FolderSharingState message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - FolderSharingState.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a FolderSharingState message from the specified reader or buffer. * @function decode @@ -231430,49 +188521,6 @@ export const Vault = $root.Vault = (() => { return message; }; - /** - * Decodes a FolderSharingState message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Vault.FolderSharingState - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Vault.FolderSharingState} FolderSharingState - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - FolderSharingState.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a FolderSharingState message. - * @function verify - * @memberof Vault.FolderSharingState - * @static - * @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) { - if (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.shared != null && message.hasOwnProperty("shared")) - if (typeof message.shared !== "boolean") - return "shared: boolean expected"; - if (message.count != null && message.hasOwnProperty("count")) - if (!$util.isInteger(message.count)) - return "count: integer expected"; - return null; - }; - /** * Creates a FolderSharingState message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -231484,6 +188532,8 @@ export const Vault = $root.Vault = (() => { FolderSharingState.fromObject = function fromObject(object, long) { if (object instanceof $root.Vault.FolderSharingState) return object; + if (!$util.isObject(object)) + throw TypeError(".Vault.FolderSharingState: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -231529,11 +188579,11 @@ export const Vault = $root.Vault = (() => { object.shared = false; object.count = 0; } - if (message.folderUid != null && message.hasOwnProperty("folderUid")) + if (message.folderUid != null && Object.hasOwnProperty.call(message, "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.shared != null && message.hasOwnProperty("shared")) + if (message.shared != null && Object.hasOwnProperty.call(message, "shared")) object.shared = message.shared; - if (message.count != null && message.hasOwnProperty("count")) + if (message.count != null && Object.hasOwnProperty.call(message, "count")) object.count = message.count; return object; }; @@ -231894,19 +188944,6 @@ export const Vault = $root.Vault = (() => { return writer; }; - /** - * Encodes the specified KeeperDriveData message, length delimited. Does not implicitly {@link Vault.KeeperDriveData.verify|verify} messages. - * @function encodeDelimited - * @memberof Vault.KeeperDriveData - * @static - * @param {Vault.IKeeperDriveData} message KeeperDriveData message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - KeeperDriveData.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a KeeperDriveData message from the specified reader or buffer. * @function decode @@ -232065,229 +189102,6 @@ export const Vault = $root.Vault = (() => { return message; }; - /** - * Decodes a KeeperDriveData message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Vault.KeeperDriveData - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Vault.KeeperDriveData} KeeperDriveData - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - KeeperDriveData.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a KeeperDriveData message. - * @function verify - * @memberof Vault.KeeperDriveData - * @static - * @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) { - if (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); - if (error) - return "folders." + error; - } - } - if (message.folderKeys != null && message.hasOwnProperty("folderKeys")) { - 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); - if (error) - return "folderKeys." + error; - } - } - if (message.folderAccesses != null && message.hasOwnProperty("folderAccesses")) { - 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); - if (error) - return "folderAccesses." + error; - } - } - if (message.revokedFolderAccesses != null && message.hasOwnProperty("revokedFolderAccesses")) { - 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); - if (error) - return "revokedFolderAccesses." + error; - } - } - if (message.recordData != null && message.hasOwnProperty("recordData")) { - 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); - if (error) - return "recordData." + error; - } - } - if (message.nonSharedData != null && message.hasOwnProperty("nonSharedData")) { - 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); - if (error) - return "nonSharedData." + error; - } - } - if (message.recordAccesses != null && message.hasOwnProperty("recordAccesses")) { - 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); - if (error) - return "recordAccesses." + error; - } - } - if (message.revokedRecordAccesses != null && message.hasOwnProperty("revokedRecordAccesses")) { - 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); - if (error) - return "revokedRecordAccesses." + error; - } - } - if (message.recordSharingStates != null && message.hasOwnProperty("recordSharingStates")) { - 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); - if (error) - return "recordSharingStates." + error; - } - } - 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.Vault.RecordLink.verify(message.recordLinks[i], long + 1); - if (error) - return "recordLinks." + error; - } - } - if (message.removedRecordLinks != null && message.hasOwnProperty("removedRecordLinks")) { - 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); - if (error) - return "removedRecordLinks." + error; - } - } - 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); - if (error) - return "breachWatchRecords." + error; - } - } - if (message.securityScoreData != null && message.hasOwnProperty("securityScoreData")) { - 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); - if (error) - return "securityScoreData." + error; - } - } - if (message.breachWatchSecurityData != null && message.hasOwnProperty("breachWatchSecurityData")) { - 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); - if (error) - return "breachWatchSecurityData." + error; - } - } - if (message.removedFolders != null && message.hasOwnProperty("removedFolders")) { - 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); - if (error) - return "removedFolders." + error; - } - } - if (message.removedFolderRecords != null && message.hasOwnProperty("removedFolderRecords")) { - 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); - if (error) - return "removedFolderRecords." + error; - } - } - if (message.folderRecords != null && message.hasOwnProperty("folderRecords")) { - 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); - if (error) - return "folderRecords." + error; - } - } - if (message.recordRotationData != null && message.hasOwnProperty("recordRotationData")) { - 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); - if (error) - return "recordRotationData." + error; - } - } - 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.Vault.DriveRecord.verify(message.records[i], long + 1); - if (error) - return "records." + error; - } - } - if (message.folderSharingState != null && message.hasOwnProperty("folderSharingState")) { - 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); - if (error) - return "folderSharingState." + error; - } - } - if (message.rawDagData != null && message.hasOwnProperty("rawDagData")) { - 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); - if (error) - return "rawDagData." + error; - } - } - return null; - }; - /** * Creates a KeeperDriveData message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -232299,6 +189113,8 @@ export const Vault = $root.Vault = (() => { KeeperDriveData.fromObject = function fromObject(object, long) { if (object instanceof $root.Vault.KeeperDriveData) return object; + if (!$util.isObject(object)) + throw TypeError(".Vault.KeeperDriveData: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -232309,7 +189125,7 @@ export const Vault = $root.Vault = (() => { throw TypeError(".Vault.KeeperDriveData.folders: array expected"); message.folders = []; for (let i = 0; i < object.folders.length; ++i) { - if (typeof object.folders[i] !== "object") + if (!$util.isObject(object.folders[i])) throw TypeError(".Vault.KeeperDriveData.folders: object expected"); message.folders[i] = $root.Folder.FolderData.fromObject(object.folders[i], long + 1); } @@ -232319,7 +189135,7 @@ export const Vault = $root.Vault = (() => { throw TypeError(".Vault.KeeperDriveData.folderKeys: array expected"); message.folderKeys = []; for (let i = 0; i < object.folderKeys.length; ++i) { - if (typeof object.folderKeys[i] !== "object") + if (!$util.isObject(object.folderKeys[i])) throw TypeError(".Vault.KeeperDriveData.folderKeys: object expected"); message.folderKeys[i] = $root.Folder.FolderKey.fromObject(object.folderKeys[i], long + 1); } @@ -232329,7 +189145,7 @@ export const Vault = $root.Vault = (() => { throw TypeError(".Vault.KeeperDriveData.folderAccesses: array expected"); message.folderAccesses = []; for (let i = 0; i < object.folderAccesses.length; ++i) { - if (typeof object.folderAccesses[i] !== "object") + if (!$util.isObject(object.folderAccesses[i])) throw TypeError(".Vault.KeeperDriveData.folderAccesses: object expected"); message.folderAccesses[i] = $root.Folder.FolderAccessData.fromObject(object.folderAccesses[i], long + 1); } @@ -232339,7 +189155,7 @@ export const Vault = $root.Vault = (() => { throw TypeError(".Vault.KeeperDriveData.revokedFolderAccesses: array expected"); message.revokedFolderAccesses = []; for (let i = 0; i < object.revokedFolderAccesses.length; ++i) { - if (typeof object.revokedFolderAccesses[i] !== "object") + if (!$util.isObject(object.revokedFolderAccesses[i])) throw TypeError(".Vault.KeeperDriveData.revokedFolderAccesses: object expected"); message.revokedFolderAccesses[i] = $root.Folder.RevokedAccess.fromObject(object.revokedFolderAccesses[i], long + 1); } @@ -232349,7 +189165,7 @@ export const Vault = $root.Vault = (() => { throw TypeError(".Vault.KeeperDriveData.recordData: array expected"); message.recordData = []; for (let i = 0; i < object.recordData.length; ++i) { - if (typeof object.recordData[i] !== "object") + if (!$util.isObject(object.recordData[i])) throw TypeError(".Vault.KeeperDriveData.recordData: object expected"); message.recordData[i] = $root.Folder.RecordData.fromObject(object.recordData[i], long + 1); } @@ -232359,7 +189175,7 @@ export const Vault = $root.Vault = (() => { throw TypeError(".Vault.KeeperDriveData.nonSharedData: array expected"); message.nonSharedData = []; for (let i = 0; i < object.nonSharedData.length; ++i) { - if (typeof object.nonSharedData[i] !== "object") + if (!$util.isObject(object.nonSharedData[i])) throw TypeError(".Vault.KeeperDriveData.nonSharedData: object expected"); message.nonSharedData[i] = $root.Vault.NonSharedData.fromObject(object.nonSharedData[i], long + 1); } @@ -232369,7 +189185,7 @@ export const Vault = $root.Vault = (() => { throw TypeError(".Vault.KeeperDriveData.recordAccesses: array expected"); message.recordAccesses = []; for (let i = 0; i < object.recordAccesses.length; ++i) { - if (typeof object.recordAccesses[i] !== "object") + if (!$util.isObject(object.recordAccesses[i])) throw TypeError(".Vault.KeeperDriveData.recordAccesses: object expected"); message.recordAccesses[i] = $root.Folder.RecordAccessData.fromObject(object.recordAccesses[i], long + 1); } @@ -232379,7 +189195,7 @@ export const Vault = $root.Vault = (() => { throw TypeError(".Vault.KeeperDriveData.revokedRecordAccesses: array expected"); message.revokedRecordAccesses = []; for (let i = 0; i < object.revokedRecordAccesses.length; ++i) { - if (typeof object.revokedRecordAccesses[i] !== "object") + if (!$util.isObject(object.revokedRecordAccesses[i])) throw TypeError(".Vault.KeeperDriveData.revokedRecordAccesses: object expected"); message.revokedRecordAccesses[i] = $root.record.v3.sharing.RevokedAccess.fromObject(object.revokedRecordAccesses[i], long + 1); } @@ -232389,7 +189205,7 @@ export const Vault = $root.Vault = (() => { throw TypeError(".Vault.KeeperDriveData.recordSharingStates: array expected"); message.recordSharingStates = []; for (let i = 0; i < object.recordSharingStates.length; ++i) { - if (typeof object.recordSharingStates[i] !== "object") + if (!$util.isObject(object.recordSharingStates[i])) throw TypeError(".Vault.KeeperDriveData.recordSharingStates: object expected"); message.recordSharingStates[i] = $root.record.v3.sharing.RecordSharingState.fromObject(object.recordSharingStates[i], long + 1); } @@ -232399,7 +189215,7 @@ export const Vault = $root.Vault = (() => { throw TypeError(".Vault.KeeperDriveData.recordLinks: array expected"); message.recordLinks = []; for (let i = 0; i < object.recordLinks.length; ++i) { - if (typeof object.recordLinks[i] !== "object") + if (!$util.isObject(object.recordLinks[i])) throw TypeError(".Vault.KeeperDriveData.recordLinks: object expected"); message.recordLinks[i] = $root.Vault.RecordLink.fromObject(object.recordLinks[i], long + 1); } @@ -232409,7 +189225,7 @@ export const Vault = $root.Vault = (() => { throw TypeError(".Vault.KeeperDriveData.removedRecordLinks: array expected"); message.removedRecordLinks = []; for (let i = 0; i < object.removedRecordLinks.length; ++i) { - if (typeof object.removedRecordLinks[i] !== "object") + if (!$util.isObject(object.removedRecordLinks[i])) throw TypeError(".Vault.KeeperDriveData.removedRecordLinks: object expected"); message.removedRecordLinks[i] = $root.Vault.RecordLink.fromObject(object.removedRecordLinks[i], long + 1); } @@ -232419,7 +189235,7 @@ export const Vault = $root.Vault = (() => { throw TypeError(".Vault.KeeperDriveData.breachWatchRecords: array expected"); message.breachWatchRecords = []; for (let i = 0; i < object.breachWatchRecords.length; ++i) { - if (typeof object.breachWatchRecords[i] !== "object") + if (!$util.isObject(object.breachWatchRecords[i])) throw TypeError(".Vault.KeeperDriveData.breachWatchRecords: object expected"); message.breachWatchRecords[i] = $root.Vault.BreachWatchRecord.fromObject(object.breachWatchRecords[i], long + 1); } @@ -232429,7 +189245,7 @@ export const Vault = $root.Vault = (() => { throw TypeError(".Vault.KeeperDriveData.securityScoreData: array expected"); message.securityScoreData = []; for (let i = 0; i < object.securityScoreData.length; ++i) { - if (typeof object.securityScoreData[i] !== "object") + if (!$util.isObject(object.securityScoreData[i])) throw TypeError(".Vault.KeeperDriveData.securityScoreData: object expected"); message.securityScoreData[i] = $root.Vault.SecurityScoreData.fromObject(object.securityScoreData[i], long + 1); } @@ -232439,7 +189255,7 @@ export const Vault = $root.Vault = (() => { throw TypeError(".Vault.KeeperDriveData.breachWatchSecurityData: array expected"); message.breachWatchSecurityData = []; for (let i = 0; i < object.breachWatchSecurityData.length; ++i) { - if (typeof object.breachWatchSecurityData[i] !== "object") + if (!$util.isObject(object.breachWatchSecurityData[i])) throw TypeError(".Vault.KeeperDriveData.breachWatchSecurityData: object expected"); message.breachWatchSecurityData[i] = $root.Vault.BreachWatchSecurityData.fromObject(object.breachWatchSecurityData[i], long + 1); } @@ -232449,7 +189265,7 @@ export const Vault = $root.Vault = (() => { throw TypeError(".Vault.KeeperDriveData.removedFolders: array expected"); message.removedFolders = []; for (let i = 0; i < object.removedFolders.length; ++i) { - if (typeof object.removedFolders[i] !== "object") + if (!$util.isObject(object.removedFolders[i])) throw TypeError(".Vault.KeeperDriveData.removedFolders: object expected"); message.removedFolders[i] = $root.Folder.FolderRemoved.fromObject(object.removedFolders[i], long + 1); } @@ -232459,7 +189275,7 @@ export const Vault = $root.Vault = (() => { throw TypeError(".Vault.KeeperDriveData.removedFolderRecords: array expected"); message.removedFolderRecords = []; for (let i = 0; i < object.removedFolderRecords.length; ++i) { - if (typeof object.removedFolderRecords[i] !== "object") + if (!$util.isObject(object.removedFolderRecords[i])) throw TypeError(".Vault.KeeperDriveData.removedFolderRecords: object expected"); message.removedFolderRecords[i] = $root.Records.FolderRecordKey.fromObject(object.removedFolderRecords[i], long + 1); } @@ -232469,7 +189285,7 @@ export const Vault = $root.Vault = (() => { throw TypeError(".Vault.KeeperDriveData.folderRecords: array expected"); message.folderRecords = []; for (let i = 0; i < object.folderRecords.length; ++i) { - if (typeof object.folderRecords[i] !== "object") + if (!$util.isObject(object.folderRecords[i])) throw TypeError(".Vault.KeeperDriveData.folderRecords: object expected"); message.folderRecords[i] = $root.Folder.FolderRecord.fromObject(object.folderRecords[i], long + 1); } @@ -232479,7 +189295,7 @@ export const Vault = $root.Vault = (() => { throw TypeError(".Vault.KeeperDriveData.recordRotationData: array expected"); message.recordRotationData = []; for (let i = 0; i < object.recordRotationData.length; ++i) { - if (typeof object.recordRotationData[i] !== "object") + if (!$util.isObject(object.recordRotationData[i])) throw TypeError(".Vault.KeeperDriveData.recordRotationData: object expected"); message.recordRotationData[i] = $root.Vault.RecordRotation.fromObject(object.recordRotationData[i], long + 1); } @@ -232489,7 +189305,7 @@ export const Vault = $root.Vault = (() => { throw TypeError(".Vault.KeeperDriveData.records: array expected"); message.records = []; for (let i = 0; i < object.records.length; ++i) { - if (typeof object.records[i] !== "object") + if (!$util.isObject(object.records[i])) throw TypeError(".Vault.KeeperDriveData.records: object expected"); message.records[i] = $root.Vault.DriveRecord.fromObject(object.records[i], long + 1); } @@ -232499,7 +189315,7 @@ export const Vault = $root.Vault = (() => { throw TypeError(".Vault.KeeperDriveData.folderSharingState: array expected"); message.folderSharingState = []; for (let i = 0; i < object.folderSharingState.length; ++i) { - if (typeof object.folderSharingState[i] !== "object") + if (!$util.isObject(object.folderSharingState[i])) throw TypeError(".Vault.KeeperDriveData.folderSharingState: object expected"); message.folderSharingState[i] = $root.Vault.FolderSharingState.fromObject(object.folderSharingState[i], long + 1); } @@ -232509,7 +189325,7 @@ export const Vault = $root.Vault = (() => { throw TypeError(".Vault.KeeperDriveData.rawDagData: array expected"); message.rawDagData = []; for (let i = 0; i < object.rawDagData.length; ++i) { - if (typeof object.rawDagData[i] !== "object") + if (!$util.isObject(object.rawDagData[i])) throw TypeError(".Vault.KeeperDriveData.rawDagData: object expected"); message.rawDagData[i] = $root.Dag.DebugData.fromObject(object.rawDagData[i], long + 1); } @@ -232814,19 +189630,6 @@ export const Vault = $root.Vault = (() => { return writer; }; - /** - * Encodes the specified UserFolder message, length delimited. Does not implicitly {@link Vault.UserFolder.verify|verify} messages. - * @function encodeDelimited - * @memberof Vault.UserFolder - * @static - * @param {Vault.IUserFolder} message UserFolder message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - UserFolder.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a UserFolder message from the specified reader or buffer. * @function decode @@ -232883,68 +189686,6 @@ export const Vault = $root.Vault = (() => { return message; }; - /** - * Decodes a UserFolder message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Vault.UserFolder - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Vault.UserFolder} UserFolder - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - UserFolder.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a UserFolder message. - * @function verify - * @memberof Vault.UserFolder - * @static - * @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) { - if (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.parentUid != null && message.hasOwnProperty("parentUid")) - if (!(message.parentUid && typeof message.parentUid.length === "number" || $util.isString(message.parentUid))) - return "parentUid: buffer expected"; - if (message.userFolderKey != null && message.hasOwnProperty("userFolderKey")) - if (!(message.userFolderKey && typeof message.userFolderKey.length === "number" || $util.isString(message.userFolderKey))) - return "userFolderKey: buffer expected"; - if (message.keyType != null && message.hasOwnProperty("keyType")) - switch (message.keyType) { - default: - return "keyType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - break; - } - 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"; - if (message.data != null && message.hasOwnProperty("data")) - if (!(message.data && typeof message.data.length === "number" || $util.isString(message.data))) - return "data: buffer expected"; - return null; - }; - /** * Creates a UserFolder message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -232956,6 +189697,8 @@ export const Vault = $root.Vault = (() => { UserFolder.fromObject = function fromObject(object, long) { if (object instanceof $root.Vault.UserFolder) return object; + if (!$util.isObject(object)) + throw TypeError(".Vault.UserFolder: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -233082,22 +189825,22 @@ export const Vault = $root.Vault = (() => { object.data = $util.newBuffer(object.data); } } - if (message.folderUid != null && message.hasOwnProperty("folderUid")) + if (message.folderUid != null && Object.hasOwnProperty.call(message, "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.parentUid != null && message.hasOwnProperty("parentUid")) + if (message.parentUid != null && Object.hasOwnProperty.call(message, "parentUid")) object.parentUid = options.bytes === String ? $util.base64.encode(message.parentUid, 0, message.parentUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.parentUid) : message.parentUid; - if (message.userFolderKey != null && message.hasOwnProperty("userFolderKey")) + if (message.userFolderKey != null && Object.hasOwnProperty.call(message, "userFolderKey")) object.userFolderKey = options.bytes === String ? $util.base64.encode(message.userFolderKey, 0, message.userFolderKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.userFolderKey) : message.userFolderKey; - if (message.keyType != null && message.hasOwnProperty("keyType")) + if (message.keyType != null && Object.hasOwnProperty.call(message, "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 (message.revision != null && Object.hasOwnProperty.call(message, "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") 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.data != null && message.hasOwnProperty("data")) + if (message.data != null && Object.hasOwnProperty.call(message, "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; return object; }; @@ -233328,19 +190071,6 @@ export const Vault = $root.Vault = (() => { return writer; }; - /** - * Encodes the specified SharedFolder message, length delimited. Does not implicitly {@link Vault.SharedFolder.verify|verify} messages. - * @function encodeDelimited - * @memberof Vault.SharedFolder - * @static - * @param {Vault.ISharedFolder} message SharedFolder message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SharedFolder.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a SharedFolder message from the specified reader or buffer. * @function decode @@ -233425,94 +190155,6 @@ export const Vault = $root.Vault = (() => { return message; }; - /** - * Decodes a SharedFolder message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Vault.SharedFolder - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Vault.SharedFolder} SharedFolder - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SharedFolder.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a SharedFolder message. - * @function verify - * @memberof Vault.SharedFolder - * @static - * @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) { - if (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"; - 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"; - if (message.sharedFolderKey != null && message.hasOwnProperty("sharedFolderKey")) - if (!(message.sharedFolderKey && typeof message.sharedFolderKey.length === "number" || $util.isString(message.sharedFolderKey))) - return "sharedFolderKey: buffer expected"; - if (message.keyType != null && message.hasOwnProperty("keyType")) - switch (message.keyType) { - default: - return "keyType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - break; - } - 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.defaultManageRecords != null && message.hasOwnProperty("defaultManageRecords")) - if (typeof message.defaultManageRecords !== "boolean") - return "defaultManageRecords: boolean expected"; - if (message.defaultManageUsers != null && message.hasOwnProperty("defaultManageUsers")) - if (typeof message.defaultManageUsers !== "boolean") - return "defaultManageUsers: boolean expected"; - if (message.defaultCanEdit != null && message.hasOwnProperty("defaultCanEdit")) - if (typeof message.defaultCanEdit !== "boolean") - return "defaultCanEdit: boolean expected"; - if (message.defaultCanReshare != null && message.hasOwnProperty("defaultCanReshare")) - if (typeof message.defaultCanReshare !== "boolean") - return "defaultCanReshare: boolean expected"; - if (message.cacheStatus != null && message.hasOwnProperty("cacheStatus")) - switch (message.cacheStatus) { - default: - return "cacheStatus: enum value expected"; - case 0: - case 1: - break; - } - if (message.owner != null && message.hasOwnProperty("owner")) - if (!$util.isString(message.owner)) - return "owner: string expected"; - if (message.ownerAccountUid != null && message.hasOwnProperty("ownerAccountUid")) - if (!(message.ownerAccountUid && typeof message.ownerAccountUid.length === "number" || $util.isString(message.ownerAccountUid))) - return "ownerAccountUid: buffer expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!(message.name && typeof message.name.length === "number" || $util.isString(message.name))) - return "name: buffer expected"; - return null; - }; - /** * Creates a SharedFolder message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -233524,6 +190166,8 @@ export const Vault = $root.Vault = (() => { SharedFolder.fromObject = function fromObject(object, long) { if (object instanceof $root.Vault.SharedFolder) return object; + if (!$util.isObject(object)) + throw TypeError(".Vault.SharedFolder: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -233694,36 +190338,36 @@ export const Vault = $root.Vault = (() => { object.name = $util.newBuffer(object.name); } } - if (message.sharedFolderUid != null && message.hasOwnProperty("sharedFolderUid")) + if (message.sharedFolderUid != null && Object.hasOwnProperty.call(message, "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 (message.revision != null && Object.hasOwnProperty.call(message, "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") 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.sharedFolderKey != null && message.hasOwnProperty("sharedFolderKey")) + if (message.sharedFolderKey != null && Object.hasOwnProperty.call(message, "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.keyType != null && message.hasOwnProperty("keyType")) + if (message.keyType != null && Object.hasOwnProperty.call(message, "keyType")) object.keyType = options.enums === String ? $root.Records.RecordKeyType[message.keyType] === undefined ? message.keyType : $root.Records.RecordKeyType[message.keyType] : message.keyType; - if (message.data != null && message.hasOwnProperty("data")) + if (message.data != null && Object.hasOwnProperty.call(message, "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.defaultManageRecords != null && message.hasOwnProperty("defaultManageRecords")) + if (message.defaultManageRecords != null && Object.hasOwnProperty.call(message, "defaultManageRecords")) object.defaultManageRecords = message.defaultManageRecords; - if (message.defaultManageUsers != null && message.hasOwnProperty("defaultManageUsers")) + if (message.defaultManageUsers != null && Object.hasOwnProperty.call(message, "defaultManageUsers")) object.defaultManageUsers = message.defaultManageUsers; - if (message.defaultCanEdit != null && message.hasOwnProperty("defaultCanEdit")) + if (message.defaultCanEdit != null && Object.hasOwnProperty.call(message, "defaultCanEdit")) object.defaultCanEdit = message.defaultCanEdit; - if (message.defaultCanReshare != null && message.hasOwnProperty("defaultCanReshare")) + if (message.defaultCanReshare != null && Object.hasOwnProperty.call(message, "defaultCanReshare")) object.defaultCanReshare = message.defaultCanReshare; - if (message.cacheStatus != null && message.hasOwnProperty("cacheStatus")) + if (message.cacheStatus != null && Object.hasOwnProperty.call(message, "cacheStatus")) object.cacheStatus = options.enums === String ? $root.Vault.CacheStatus[message.cacheStatus] === undefined ? message.cacheStatus : $root.Vault.CacheStatus[message.cacheStatus] : message.cacheStatus; - if (message.owner != null && message.hasOwnProperty("owner")) + if (message.owner != null && Object.hasOwnProperty.call(message, "owner")) object.owner = message.owner; - if (message.ownerAccountUid != null && message.hasOwnProperty("ownerAccountUid")) + if (message.ownerAccountUid != null && Object.hasOwnProperty.call(message, "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.name != null && message.hasOwnProperty("name")) + if (message.name != null && Object.hasOwnProperty.call(message, "name")) object.name = options.bytes === String ? $util.base64.encode(message.name, 0, message.name.length) : options.bytes === Array ? Array.prototype.slice.call(message.name) : message.name; return object; }; @@ -233844,19 +190488,6 @@ export const Vault = $root.Vault = (() => { return writer; }; - /** - * Encodes the specified UserFolderSharedFolder message, length delimited. Does not implicitly {@link Vault.UserFolderSharedFolder.verify|verify} messages. - * @function encodeDelimited - * @memberof Vault.UserFolderSharedFolder - * @static - * @param {Vault.IUserFolderSharedFolder} message UserFolderSharedFolder message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - UserFolderSharedFolder.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a UserFolderSharedFolder message from the specified reader or buffer. * @function decode @@ -233901,49 +190532,6 @@ export const Vault = $root.Vault = (() => { return message; }; - /** - * Decodes a UserFolderSharedFolder message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Vault.UserFolderSharedFolder - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Vault.UserFolderSharedFolder} UserFolderSharedFolder - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - UserFolderSharedFolder.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a UserFolderSharedFolder message. - * @function verify - * @memberof Vault.UserFolderSharedFolder - * @static - * @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) { - if (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.sharedFolderUid != null && message.hasOwnProperty("sharedFolderUid")) - if (!(message.sharedFolderUid && typeof message.sharedFolderUid.length === "number" || $util.isString(message.sharedFolderUid))) - return "sharedFolderUid: buffer expected"; - 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"; - return null; - }; - /** * Creates a UserFolderSharedFolder message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -233955,6 +190543,8 @@ export const Vault = $root.Vault = (() => { UserFolderSharedFolder.fromObject = function fromObject(object, long) { if (object instanceof $root.Vault.UserFolderSharedFolder) return object; + if (!$util.isObject(object)) + throw TypeError(".Vault.UserFolderSharedFolder: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -234020,11 +190610,11 @@ export const Vault = $root.Vault = (() => { } else object.revision = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; } - if (message.folderUid != null && message.hasOwnProperty("folderUid")) + if (message.folderUid != null && Object.hasOwnProperty.call(message, "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")) + if (message.sharedFolderUid != null && Object.hasOwnProperty.call(message, "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 (message.revision != null && Object.hasOwnProperty.call(message, "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") @@ -234194,19 +190784,6 @@ export const Vault = $root.Vault = (() => { return writer; }; - /** - * Encodes the specified SharedFolderFolder message, length delimited. Does not implicitly {@link Vault.SharedFolderFolder.verify|verify} messages. - * @function encodeDelimited - * @memberof Vault.SharedFolderFolder - * @static - * @param {Vault.ISharedFolderFolder} message SharedFolderFolder message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SharedFolderFolder.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a SharedFolderFolder message from the specified reader or buffer. * @function decode @@ -234267,71 +190844,6 @@ export const Vault = $root.Vault = (() => { return message; }; - /** - * Decodes a SharedFolderFolder message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Vault.SharedFolderFolder - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Vault.SharedFolderFolder} SharedFolderFolder - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SharedFolderFolder.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a SharedFolderFolder message. - * @function verify - * @memberof Vault.SharedFolderFolder - * @static - * @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) { - if (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"; - 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.parentUid != null && message.hasOwnProperty("parentUid")) - if (!(message.parentUid && typeof message.parentUid.length === "number" || $util.isString(message.parentUid))) - return "parentUid: buffer expected"; - if (message.sharedFolderFolderKey != null && message.hasOwnProperty("sharedFolderFolderKey")) - if (!(message.sharedFolderFolderKey && typeof message.sharedFolderFolderKey.length === "number" || $util.isString(message.sharedFolderFolderKey))) - return "sharedFolderFolderKey: buffer expected"; - if (message.keyType != null && message.hasOwnProperty("keyType")) - switch (message.keyType) { - default: - return "keyType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - break; - } - 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"; - if (message.data != null && message.hasOwnProperty("data")) - if (!(message.data && typeof message.data.length === "number" || $util.isString(message.data))) - return "data: buffer expected"; - return null; - }; - /** * Creates a SharedFolderFolder message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -234343,6 +190855,8 @@ export const Vault = $root.Vault = (() => { SharedFolderFolder.fromObject = function fromObject(object, long) { if (object instanceof $root.Vault.SharedFolderFolder) return object; + if (!$util.isObject(object)) + throw TypeError(".Vault.SharedFolderFolder: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -234481,24 +190995,24 @@ export const Vault = $root.Vault = (() => { object.data = $util.newBuffer(object.data); } } - if (message.sharedFolderUid != null && message.hasOwnProperty("sharedFolderUid")) + if (message.sharedFolderUid != null && Object.hasOwnProperty.call(message, "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.folderUid != null && message.hasOwnProperty("folderUid")) + if (message.folderUid != null && Object.hasOwnProperty.call(message, "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.parentUid != null && message.hasOwnProperty("parentUid")) + if (message.parentUid != null && Object.hasOwnProperty.call(message, "parentUid")) object.parentUid = options.bytes === String ? $util.base64.encode(message.parentUid, 0, message.parentUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.parentUid) : message.parentUid; - if (message.sharedFolderFolderKey != null && message.hasOwnProperty("sharedFolderFolderKey")) + if (message.sharedFolderFolderKey != null && Object.hasOwnProperty.call(message, "sharedFolderFolderKey")) object.sharedFolderFolderKey = options.bytes === String ? $util.base64.encode(message.sharedFolderFolderKey, 0, message.sharedFolderFolderKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.sharedFolderFolderKey) : message.sharedFolderFolderKey; - if (message.keyType != null && message.hasOwnProperty("keyType")) + if (message.keyType != null && Object.hasOwnProperty.call(message, "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 (message.revision != null && Object.hasOwnProperty.call(message, "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") 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.data != null && message.hasOwnProperty("data")) + if (message.data != null && Object.hasOwnProperty.call(message, "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; return object; }; @@ -234619,19 +191133,6 @@ export const Vault = $root.Vault = (() => { return writer; }; - /** - * Encodes the specified SharedFolderKey message, length delimited. Does not implicitly {@link Vault.SharedFolderKey.verify|verify} messages. - * @function encodeDelimited - * @memberof Vault.SharedFolderKey - * @static - * @param {Vault.ISharedFolderKey} message SharedFolderKey message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SharedFolderKey.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a SharedFolderKey message from the specified reader or buffer. * @function decode @@ -234676,59 +191177,6 @@ export const Vault = $root.Vault = (() => { return message; }; - /** - * Decodes a SharedFolderKey message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Vault.SharedFolderKey - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Vault.SharedFolderKey} SharedFolderKey - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SharedFolderKey.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a SharedFolderKey message. - * @function verify - * @memberof Vault.SharedFolderKey - * @static - * @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) { - if (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"; - if (message.sharedFolderKey != null && message.hasOwnProperty("sharedFolderKey")) - if (!(message.sharedFolderKey && typeof message.sharedFolderKey.length === "number" || $util.isString(message.sharedFolderKey))) - return "sharedFolderKey: buffer expected"; - if (message.keyType != null && message.hasOwnProperty("keyType")) - switch (message.keyType) { - default: - return "keyType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - break; - } - return null; - }; - /** * Creates a SharedFolderKey message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -234740,6 +191188,8 @@ export const Vault = $root.Vault = (() => { SharedFolderKey.fromObject = function fromObject(object, long) { if (object instanceof $root.Vault.SharedFolderKey) return object; + if (!$util.isObject(object)) + throw TypeError(".Vault.SharedFolderKey: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -234828,11 +191278,11 @@ export const Vault = $root.Vault = (() => { } object.keyType = options.enums === String ? "NO_KEY" : 0; } - if (message.sharedFolderUid != null && message.hasOwnProperty("sharedFolderUid")) + if (message.sharedFolderUid != null && Object.hasOwnProperty.call(message, "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.sharedFolderKey != null && message.hasOwnProperty("sharedFolderKey")) + if (message.sharedFolderKey != null && Object.hasOwnProperty.call(message, "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.keyType != null && message.hasOwnProperty("keyType")) + if (message.keyType != null && Object.hasOwnProperty.call(message, "keyType")) object.keyType = options.enums === String ? $root.Records.RecordKeyType[message.keyType] === undefined ? message.keyType : $root.Records.RecordKeyType[message.keyType] : message.keyType; return object; }; @@ -235056,19 +191506,6 @@ export const Vault = $root.Vault = (() => { return writer; }; - /** - * Encodes the specified Team message, length delimited. Does not implicitly {@link Vault.Team.verify|verify} messages. - * @function encodeDelimited - * @memberof Vault.Team - * @static - * @param {Vault.ITeam} message Team message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Team.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a Team message from the specified reader or buffer. * @function decode @@ -235153,96 +191590,6 @@ export const Vault = $root.Vault = (() => { return message; }; - /** - * Decodes a Team message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Vault.Team - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Vault.Team} Team - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Team.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a Team message. - * @function verify - * @memberof Vault.Team - * @static - * @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) { - if (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"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.teamKey != null && message.hasOwnProperty("teamKey")) - if (!(message.teamKey && typeof message.teamKey.length === "number" || $util.isString(message.teamKey))) - return "teamKey: buffer expected"; - if (message.teamKeyType != null && message.hasOwnProperty("teamKeyType")) - switch (message.teamKeyType) { - default: - return "teamKeyType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - break; - } - if (message.teamPrivateKey != null && message.hasOwnProperty("teamPrivateKey")) - if (!(message.teamPrivateKey && typeof message.teamPrivateKey.length === "number" || $util.isString(message.teamPrivateKey))) - return "teamPrivateKey: buffer expected"; - if (message.restrictEdit != null && message.hasOwnProperty("restrictEdit")) - if (typeof message.restrictEdit !== "boolean") - return "restrictEdit: boolean expected"; - if (message.restrictShare != null && message.hasOwnProperty("restrictShare")) - if (typeof message.restrictShare !== "boolean") - return "restrictShare: boolean expected"; - if (message.restrictView != null && message.hasOwnProperty("restrictView")) - if (typeof message.restrictView !== "boolean") - return "restrictView: boolean expected"; - if (message.removedSharedFolders != null && message.hasOwnProperty("removedSharedFolders")) { - if (!Array.isArray(message.removedSharedFolders)) - return "removedSharedFolders: array expected"; - for (let i = 0; i < message.removedSharedFolders.length; ++i) - if (!(message.removedSharedFolders[i] && typeof message.removedSharedFolders[i].length === "number" || $util.isString(message.removedSharedFolders[i]))) - return "removedSharedFolders: buffer[] expected"; - } - if (message.sharedFolderKeys != null && message.hasOwnProperty("sharedFolderKeys")) { - 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); - if (error) - return "sharedFolderKeys." + error; - } - } - if (message.teamEccPrivateKey != null && message.hasOwnProperty("teamEccPrivateKey")) - if (!(message.teamEccPrivateKey && typeof message.teamEccPrivateKey.length === "number" || $util.isString(message.teamEccPrivateKey))) - return "teamEccPrivateKey: buffer expected"; - if (message.teamEccPublicKey != null && message.hasOwnProperty("teamEccPublicKey")) - if (!(message.teamEccPublicKey && typeof message.teamEccPublicKey.length === "number" || $util.isString(message.teamEccPublicKey))) - return "teamEccPublicKey: buffer expected"; - return null; - }; - /** * Creates a Team message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -235254,6 +191601,8 @@ export const Vault = $root.Vault = (() => { Team.fromObject = function fromObject(object, long) { if (object instanceof $root.Vault.Team) return object; + if (!$util.isObject(object)) + throw TypeError(".Vault.Team: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -235333,7 +191682,7 @@ export const Vault = $root.Vault = (() => { throw TypeError(".Vault.Team.sharedFolderKeys: array expected"); message.sharedFolderKeys = []; for (let i = 0; i < object.sharedFolderKeys.length; ++i) { - if (typeof object.sharedFolderKeys[i] !== "object") + if (!$util.isObject(object.sharedFolderKeys[i])) throw TypeError(".Vault.Team.sharedFolderKeys: object expected"); message.sharedFolderKeys[i] = $root.Vault.SharedFolderKey.fromObject(object.sharedFolderKeys[i], long + 1); } @@ -235414,21 +191763,21 @@ export const Vault = $root.Vault = (() => { object.teamEccPublicKey = $util.newBuffer(object.teamEccPublicKey); } } - if (message.teamUid != null && message.hasOwnProperty("teamUid")) + if (message.teamUid != null && Object.hasOwnProperty.call(message, "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.name != null && message.hasOwnProperty("name")) + if (message.name != null && Object.hasOwnProperty.call(message, "name")) object.name = message.name; - if (message.teamKey != null && message.hasOwnProperty("teamKey")) + if (message.teamKey != null && Object.hasOwnProperty.call(message, "teamKey")) object.teamKey = options.bytes === String ? $util.base64.encode(message.teamKey, 0, message.teamKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.teamKey) : message.teamKey; - if (message.teamKeyType != null && message.hasOwnProperty("teamKeyType")) + if (message.teamKeyType != null && Object.hasOwnProperty.call(message, "teamKeyType")) object.teamKeyType = options.enums === String ? $root.Records.RecordKeyType[message.teamKeyType] === undefined ? message.teamKeyType : $root.Records.RecordKeyType[message.teamKeyType] : message.teamKeyType; - if (message.teamPrivateKey != null && message.hasOwnProperty("teamPrivateKey")) + if (message.teamPrivateKey != null && Object.hasOwnProperty.call(message, "teamPrivateKey")) object.teamPrivateKey = options.bytes === String ? $util.base64.encode(message.teamPrivateKey, 0, message.teamPrivateKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.teamPrivateKey) : message.teamPrivateKey; - if (message.restrictEdit != null && message.hasOwnProperty("restrictEdit")) + if (message.restrictEdit != null && Object.hasOwnProperty.call(message, "restrictEdit")) object.restrictEdit = message.restrictEdit; - if (message.restrictShare != null && message.hasOwnProperty("restrictShare")) + if (message.restrictShare != null && Object.hasOwnProperty.call(message, "restrictShare")) object.restrictShare = message.restrictShare; - if (message.restrictView != null && message.hasOwnProperty("restrictView")) + if (message.restrictView != null && Object.hasOwnProperty.call(message, "restrictView")) object.restrictView = message.restrictView; if (message.removedSharedFolders && message.removedSharedFolders.length) { object.removedSharedFolders = []; @@ -235440,9 +191789,9 @@ export const Vault = $root.Vault = (() => { for (let j = 0; j < message.sharedFolderKeys.length; ++j) object.sharedFolderKeys[j] = $root.Vault.SharedFolderKey.toObject(message.sharedFolderKeys[j], options, q + 1); } - if (message.teamEccPrivateKey != null && message.hasOwnProperty("teamEccPrivateKey")) + if (message.teamEccPrivateKey != null && Object.hasOwnProperty.call(message, "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; - if (message.teamEccPublicKey != null && message.hasOwnProperty("teamEccPublicKey")) + if (message.teamEccPublicKey != null && Object.hasOwnProperty.call(message, "teamEccPublicKey")) object.teamEccPublicKey = options.bytes === String ? $util.base64.encode(message.teamEccPublicKey, 0, message.teamEccPublicKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.teamEccPublicKey) : message.teamEccPublicKey; return object; }; @@ -235640,19 +191989,6 @@ export const Vault = $root.Vault = (() => { return writer; }; - /** - * Encodes the specified Record message, length delimited. Does not implicitly {@link Vault.Record.verify|verify} messages. - * @function encodeDelimited - * @memberof Vault.Record - * @static - * @param {Vault.IRecord} message Record message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Record.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a Record message from the specified reader or buffer. * @function decode @@ -235725,70 +192061,6 @@ export const Vault = $root.Vault = (() => { return message; }; - /** - * Decodes a Record message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Vault.Record - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Vault.Record} Record - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Record.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a Record message. - * @function verify - * @memberof Vault.Record - * @static - * @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) { - if (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.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"; - if (message.version != null && message.hasOwnProperty("version")) - if (!$util.isInteger(message.version)) - return "version: integer expected"; - if (message.shared != null && message.hasOwnProperty("shared")) - if (typeof message.shared !== "boolean") - return "shared: boolean expected"; - 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.extra != null && message.hasOwnProperty("extra")) - if (!(message.extra && typeof message.extra.length === "number" || $util.isString(message.extra))) - return "extra: buffer expected"; - if (message.udata != null && message.hasOwnProperty("udata")) - if (!$util.isString(message.udata)) - return "udata: string expected"; - if (message.fileSize != null && message.hasOwnProperty("fileSize")) - if (!$util.isInteger(message.fileSize) && !(message.fileSize && $util.isInteger(message.fileSize.low) && $util.isInteger(message.fileSize.high))) - return "fileSize: integer|Long expected"; - if (message.thumbnailSize != null && message.hasOwnProperty("thumbnailSize")) - if (!$util.isInteger(message.thumbnailSize) && !(message.thumbnailSize && $util.isInteger(message.thumbnailSize.low) && $util.isInteger(message.thumbnailSize.high))) - return "thumbnailSize: integer|Long expected"; - return null; - }; - /** * Creates a Record message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -235800,6 +192072,8 @@ export const Vault = $root.Vault = (() => { Record.fromObject = function fromObject(object, long) { if (object instanceof $root.Vault.Record) return object; + if (!$util.isObject(object)) + throw TypeError(".Vault.Record: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -235928,40 +192202,40 @@ export const Vault = $root.Vault = (() => { } else object.thumbnailSize = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; } - if (message.recordUid != null && message.hasOwnProperty("recordUid")) + if (message.recordUid != null && Object.hasOwnProperty.call(message, "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 (message.revision != null && Object.hasOwnProperty.call(message, "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") 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.version != null && message.hasOwnProperty("version")) + if (message.version != null && Object.hasOwnProperty.call(message, "version")) object.version = message.version; - if (message.shared != null && message.hasOwnProperty("shared")) + if (message.shared != null && Object.hasOwnProperty.call(message, "shared")) object.shared = message.shared; - if (message.clientModifiedTime != null && message.hasOwnProperty("clientModifiedTime")) + if (message.clientModifiedTime != null && Object.hasOwnProperty.call(message, "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") 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")) + if (message.data != null && Object.hasOwnProperty.call(message, "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.extra != null && message.hasOwnProperty("extra")) + if (message.extra != null && Object.hasOwnProperty.call(message, "extra")) object.extra = options.bytes === String ? $util.base64.encode(message.extra, 0, message.extra.length) : options.bytes === Array ? Array.prototype.slice.call(message.extra) : message.extra; - if (message.udata != null && message.hasOwnProperty("udata")) + if (message.udata != null && Object.hasOwnProperty.call(message, "udata")) object.udata = message.udata; - if (message.fileSize != null && message.hasOwnProperty("fileSize")) + if (message.fileSize != null && Object.hasOwnProperty.call(message, "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") 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 (message.thumbnailSize != null && Object.hasOwnProperty.call(message, "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") @@ -236098,19 +192372,6 @@ export const Vault = $root.Vault = (() => { return writer; }; - /** - * Encodes the specified RecordLink message, length delimited. Does not implicitly {@link Vault.RecordLink.verify|verify} messages. - * @function encodeDelimited - * @memberof Vault.RecordLink - * @static - * @param {Vault.IRecordLink} message RecordLink message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RecordLink.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a RecordLink message from the specified reader or buffer. * @function decode @@ -236159,52 +192420,6 @@ export const Vault = $root.Vault = (() => { return message; }; - /** - * Decodes a RecordLink message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Vault.RecordLink - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Vault.RecordLink} RecordLink - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RecordLink.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a RecordLink message. - * @function verify - * @memberof Vault.RecordLink - * @static - * @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) { - if (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"; - if (message.childRecordUid != null && message.hasOwnProperty("childRecordUid")) - if (!(message.childRecordUid && typeof message.childRecordUid.length === "number" || $util.isString(message.childRecordUid))) - return "childRecordUid: 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.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"; - return null; - }; - /** * Creates a RecordLink message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -236216,6 +192431,8 @@ export const Vault = $root.Vault = (() => { RecordLink.fromObject = function fromObject(object, long) { if (object instanceof $root.Vault.RecordLink) return object; + if (!$util.isObject(object)) + throw TypeError(".Vault.RecordLink: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -236293,13 +192510,13 @@ export const Vault = $root.Vault = (() => { } else object.revision = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; } - if (message.parentRecordUid != null && message.hasOwnProperty("parentRecordUid")) + if (message.parentRecordUid != null && Object.hasOwnProperty.call(message, "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")) + if (message.childRecordUid != null && Object.hasOwnProperty.call(message, "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.recordKey != null && message.hasOwnProperty("recordKey")) + if (message.recordKey != null && Object.hasOwnProperty.call(message, "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 (message.revision != null && Object.hasOwnProperty.call(message, "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") @@ -236425,19 +192642,6 @@ export const Vault = $root.Vault = (() => { return writer; }; - /** - * Encodes the specified UserFolderRecord message, length delimited. Does not implicitly {@link Vault.UserFolderRecord.verify|verify} messages. - * @function encodeDelimited - * @memberof Vault.UserFolderRecord - * @static - * @param {Vault.IUserFolderRecord} message UserFolderRecord message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - UserFolderRecord.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a UserFolderRecord message from the specified reader or buffer. * @function decode @@ -236482,49 +192686,6 @@ export const Vault = $root.Vault = (() => { return message; }; - /** - * Decodes a UserFolderRecord message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Vault.UserFolderRecord - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Vault.UserFolderRecord} UserFolderRecord - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - UserFolderRecord.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a UserFolderRecord message. - * @function verify - * @memberof Vault.UserFolderRecord - * @static - * @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) { - if (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.recordUid != null && message.hasOwnProperty("recordUid")) - if (!(message.recordUid && typeof message.recordUid.length === "number" || $util.isString(message.recordUid))) - return "recordUid: buffer expected"; - 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"; - return null; - }; - /** * Creates a UserFolderRecord message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -236536,6 +192697,8 @@ export const Vault = $root.Vault = (() => { UserFolderRecord.fromObject = function fromObject(object, long) { if (object instanceof $root.Vault.UserFolderRecord) return object; + if (!$util.isObject(object)) + throw TypeError(".Vault.UserFolderRecord: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -236601,11 +192764,11 @@ export const Vault = $root.Vault = (() => { } else object.revision = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; } - if (message.folderUid != null && message.hasOwnProperty("folderUid")) + if (message.folderUid != null && Object.hasOwnProperty.call(message, "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")) + if (message.recordUid != null && Object.hasOwnProperty.call(message, "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 (message.revision != null && Object.hasOwnProperty.call(message, "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") @@ -236742,19 +192905,6 @@ export const Vault = $root.Vault = (() => { return writer; }; - /** - * Encodes the specified SharedFolderFolderRecord message, length delimited. Does not implicitly {@link Vault.SharedFolderFolderRecord.verify|verify} messages. - * @function encodeDelimited - * @memberof Vault.SharedFolderFolderRecord - * @static - * @param {Vault.ISharedFolderFolderRecord} message SharedFolderFolderRecord message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SharedFolderFolderRecord.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a SharedFolderFolderRecord message from the specified reader or buffer. * @function decode @@ -236803,52 +192953,6 @@ export const Vault = $root.Vault = (() => { return message; }; - /** - * Decodes a SharedFolderFolderRecord message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Vault.SharedFolderFolderRecord - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Vault.SharedFolderFolderRecord} SharedFolderFolderRecord - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SharedFolderFolderRecord.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a SharedFolderFolderRecord message. - * @function verify - * @memberof Vault.SharedFolderFolderRecord - * @static - * @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) { - if (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"; - 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.recordUid != null && message.hasOwnProperty("recordUid")) - if (!(message.recordUid && typeof message.recordUid.length === "number" || $util.isString(message.recordUid))) - return "recordUid: buffer expected"; - 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"; - return null; - }; - /** * Creates a SharedFolderFolderRecord message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -236860,6 +192964,8 @@ export const Vault = $root.Vault = (() => { SharedFolderFolderRecord.fromObject = function fromObject(object, long) { if (object instanceof $root.Vault.SharedFolderFolderRecord) return object; + if (!$util.isObject(object)) + throw TypeError(".Vault.SharedFolderFolderRecord: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -236937,13 +193043,13 @@ export const Vault = $root.Vault = (() => { } else object.revision = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; } - if (message.sharedFolderUid != null && message.hasOwnProperty("sharedFolderUid")) + if (message.sharedFolderUid != null && Object.hasOwnProperty.call(message, "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.folderUid != null && message.hasOwnProperty("folderUid")) + if (message.folderUid != null && Object.hasOwnProperty.call(message, "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")) + if (message.recordUid != null && Object.hasOwnProperty.call(message, "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 (message.revision != null && Object.hasOwnProperty.call(message, "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") @@ -237058,19 +193164,6 @@ export const Vault = $root.Vault = (() => { return writer; }; - /** - * Encodes the specified NonSharedData message, length delimited. Does not implicitly {@link Vault.NonSharedData.verify|verify} messages. - * @function encodeDelimited - * @memberof Vault.NonSharedData - * @static - * @param {Vault.INonSharedData} message NonSharedData message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - NonSharedData.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a NonSharedData message from the specified reader or buffer. * @function decode @@ -237111,46 +193204,6 @@ export const Vault = $root.Vault = (() => { return message; }; - /** - * Decodes a NonSharedData message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Vault.NonSharedData - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Vault.NonSharedData} NonSharedData - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - NonSharedData.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a NonSharedData message. - * @function verify - * @memberof Vault.NonSharedData - * @static - * @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) { - if (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.data != null && message.hasOwnProperty("data")) - if (!(message.data && typeof message.data.length === "number" || $util.isString(message.data))) - return "data: buffer expected"; - return null; - }; - /** * Creates a NonSharedData message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -237162,6 +193215,8 @@ export const Vault = $root.Vault = (() => { NonSharedData.fromObject = function fromObject(object, long) { if (object instanceof $root.Vault.NonSharedData) return object; + if (!$util.isObject(object)) + throw TypeError(".Vault.NonSharedData: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -237213,9 +193268,9 @@ export const Vault = $root.Vault = (() => { object.data = $util.newBuffer(object.data); } } - if (message.recordUid != null && message.hasOwnProperty("recordUid")) + if (message.recordUid != null && Object.hasOwnProperty.call(message, "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")) + if (message.data != null && Object.hasOwnProperty.call(message, "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; return object; }; @@ -237413,19 +193468,6 @@ export const Vault = $root.Vault = (() => { return writer; }; - /** - * Encodes the specified RecordMetaData message, length delimited. Does not implicitly {@link Vault.RecordMetaData.verify|verify} messages. - * @function encodeDelimited - * @memberof Vault.RecordMetaData - * @static - * @param {Vault.IRecordMetaData} message RecordMetaData message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RecordMetaData.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a RecordMetaData message from the specified reader or buffer. * @function decode @@ -237498,86 +193540,6 @@ export const Vault = $root.Vault = (() => { return message; }; - /** - * Decodes a RecordMetaData message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Vault.RecordMetaData - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Vault.RecordMetaData} RecordMetaData - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RecordMetaData.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a RecordMetaData message. - * @function verify - * @memberof Vault.RecordMetaData - * @static - * @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) { - if (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.owner != null && message.hasOwnProperty("owner")) - if (typeof message.owner !== "boolean") - return "owner: boolean 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: - case 5: - case 6: - break; - } - if (message.canShare != null && message.hasOwnProperty("canShare")) - if (typeof message.canShare !== "boolean") - return "canShare: boolean expected"; - if (message.canEdit != null && message.hasOwnProperty("canEdit")) - if (typeof message.canEdit !== "boolean") - return "canEdit: boolean expected"; - if (message.ownerAccountUid != null && message.hasOwnProperty("ownerAccountUid")) - if (!(message.ownerAccountUid && typeof message.ownerAccountUid.length === "number" || $util.isString(message.ownerAccountUid))) - return "ownerAccountUid: buffer expected"; - 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"; - if (message.expirationNotificationType != null && message.hasOwnProperty("expirationNotificationType")) - switch (message.expirationNotificationType) { - default: - return "expirationNotificationType: enum value expected"; - case 0: - case 1: - case 2: - break; - } - if (message.ownerUsername != null && message.hasOwnProperty("ownerUsername")) - if (!$util.isString(message.ownerUsername)) - return "ownerUsername: string expected"; - return null; - }; - /** * Creates a RecordMetaData message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -237589,6 +193551,8 @@ export const Vault = $root.Vault = (() => { RecordMetaData.fromObject = function fromObject(object, long) { if (object instanceof $root.Vault.RecordMetaData) return object; + if (!$util.isObject(object)) + throw TypeError(".Vault.RecordMetaData: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -237736,30 +193700,30 @@ export const Vault = $root.Vault = (() => { object.expirationNotificationType = options.enums === String ? "NOTIFICATION_OFF" : 0; object.ownerUsername = ""; } - if (message.recordUid != null && message.hasOwnProperty("recordUid")) + if (message.recordUid != null && Object.hasOwnProperty.call(message, "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.owner != null && message.hasOwnProperty("owner")) + if (message.owner != null && Object.hasOwnProperty.call(message, "owner")) object.owner = message.owner; - if (message.recordKey != null && message.hasOwnProperty("recordKey")) + if (message.recordKey != null && Object.hasOwnProperty.call(message, "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")) + if (message.recordKeyType != null && Object.hasOwnProperty.call(message, "recordKeyType")) object.recordKeyType = options.enums === String ? $root.Records.RecordKeyType[message.recordKeyType] === undefined ? message.recordKeyType : $root.Records.RecordKeyType[message.recordKeyType] : message.recordKeyType; - if (message.canShare != null && message.hasOwnProperty("canShare")) + if (message.canShare != null && Object.hasOwnProperty.call(message, "canShare")) object.canShare = message.canShare; - if (message.canEdit != null && message.hasOwnProperty("canEdit")) + if (message.canEdit != null && Object.hasOwnProperty.call(message, "canEdit")) object.canEdit = message.canEdit; - if (message.ownerAccountUid != null && message.hasOwnProperty("ownerAccountUid")) + if (message.ownerAccountUid != null && Object.hasOwnProperty.call(message, "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 (message.expiration != null && Object.hasOwnProperty.call(message, "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") 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.expirationNotificationType != null && message.hasOwnProperty("expirationNotificationType")) + if (message.expirationNotificationType != null && Object.hasOwnProperty.call(message, "expirationNotificationType")) object.expirationNotificationType = options.enums === String ? $root.Records.TimerNotificationType[message.expirationNotificationType] === undefined ? message.expirationNotificationType : $root.Records.TimerNotificationType[message.expirationNotificationType] : message.expirationNotificationType; - if (message.ownerUsername != null && message.hasOwnProperty("ownerUsername")) + if (message.ownerUsername != null && Object.hasOwnProperty.call(message, "ownerUsername")) object.ownerUsername = message.ownerUsername; return object; }; @@ -237869,19 +193833,6 @@ export const Vault = $root.Vault = (() => { return writer; }; - /** - * Encodes the specified SharingChange message, length delimited. Does not implicitly {@link Vault.SharingChange.verify|verify} messages. - * @function encodeDelimited - * @memberof Vault.SharingChange - * @static - * @param {Vault.ISharingChange} message SharingChange message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SharingChange.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a SharingChange message from the specified reader or buffer. * @function decode @@ -237922,46 +193873,6 @@ export const Vault = $root.Vault = (() => { return message; }; - /** - * Decodes a SharingChange message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Vault.SharingChange - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Vault.SharingChange} SharingChange - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SharingChange.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a SharingChange message. - * @function verify - * @memberof Vault.SharingChange - * @static - * @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) { - if (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.shared != null && message.hasOwnProperty("shared")) - if (typeof message.shared !== "boolean") - return "shared: boolean expected"; - return null; - }; - /** * Creates a SharingChange message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -237973,6 +193884,8 @@ export const Vault = $root.Vault = (() => { SharingChange.fromObject = function fromObject(object, long) { if (object instanceof $root.Vault.SharingChange) return object; + if (!$util.isObject(object)) + throw TypeError(".Vault.SharingChange: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -238015,9 +193928,9 @@ export const Vault = $root.Vault = (() => { } object.shared = false; } - if (message.recordUid != null && message.hasOwnProperty("recordUid")) + if (message.recordUid != null && Object.hasOwnProperty.call(message, "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.shared != null && message.hasOwnProperty("shared")) + if (message.shared != null && Object.hasOwnProperty.call(message, "shared")) object.shared = message.shared; return object; }; @@ -238138,19 +194051,6 @@ export const Vault = $root.Vault = (() => { return writer; }; - /** - * Encodes the specified Profile message, length delimited. Does not implicitly {@link Vault.Profile.verify|verify} messages. - * @function encodeDelimited - * @memberof Vault.Profile - * @static - * @param {Vault.IProfile} message Profile message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Profile.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a Profile message from the specified reader or buffer. * @function decode @@ -238195,49 +194095,6 @@ export const Vault = $root.Vault = (() => { return message; }; - /** - * Decodes a Profile message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Vault.Profile - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Vault.Profile} Profile - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Profile.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a Profile message. - * @function verify - * @memberof Vault.Profile - * @static - * @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) { - if (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"; - if (message.profileName != null && message.hasOwnProperty("profileName")) - if (!$util.isString(message.profileName)) - return "profileName: string expected"; - 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"; - return null; - }; - /** * Creates a Profile message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -238249,6 +194106,8 @@ export const Vault = $root.Vault = (() => { Profile.fromObject = function fromObject(object, long) { if (object instanceof $root.Vault.Profile) return object; + if (!$util.isObject(object)) + throw TypeError(".Vault.Profile: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -238305,11 +194164,11 @@ export const Vault = $root.Vault = (() => { } else object.revision = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; } - if (message.data != null && message.hasOwnProperty("data")) + if (message.data != null && Object.hasOwnProperty.call(message, "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")) + if (message.profileName != null && Object.hasOwnProperty.call(message, "profileName")) object.profileName = message.profileName; - if (message.revision != null && message.hasOwnProperty("revision")) + if (message.revision != null && Object.hasOwnProperty.call(message, "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") @@ -238424,19 +194283,6 @@ export const Vault = $root.Vault = (() => { return writer; }; - /** - * Encodes the specified ProfilePic message, length delimited. Does not implicitly {@link Vault.ProfilePic.verify|verify} messages. - * @function encodeDelimited - * @memberof Vault.ProfilePic - * @static - * @param {Vault.IProfilePic} message ProfilePic message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ProfilePic.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a ProfilePic message from the specified reader or buffer. * @function decode @@ -238477,46 +194323,6 @@ export const Vault = $root.Vault = (() => { return message; }; - /** - * Decodes a ProfilePic message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Vault.ProfilePic - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Vault.ProfilePic} ProfilePic - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ProfilePic.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a ProfilePic message. - * @function verify - * @memberof Vault.ProfilePic - * @static - * @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) { - if (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"; - 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"; - return null; - }; - /** * Creates a ProfilePic message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -238528,6 +194334,8 @@ export const Vault = $root.Vault = (() => { ProfilePic.fromObject = function fromObject(object, long) { if (object instanceof $root.Vault.ProfilePic) return object; + if (!$util.isObject(object)) + throw TypeError(".Vault.ProfilePic: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -238572,9 +194380,9 @@ export const Vault = $root.Vault = (() => { } else object.revision = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; } - if (message.url != null && message.hasOwnProperty("url")) + if (message.url != null && Object.hasOwnProperty.call(message, "url")) object.url = message.url; - if (message.revision != null && message.hasOwnProperty("revision")) + if (message.revision != null && Object.hasOwnProperty.call(message, "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") @@ -238713,19 +194521,6 @@ export const Vault = $root.Vault = (() => { return writer; }; - /** - * Encodes the specified PendingTeamMember message, length delimited. Does not implicitly {@link Vault.PendingTeamMember.verify|verify} messages. - * @function encodeDelimited - * @memberof Vault.PendingTeamMember - * @static - * @param {Vault.IPendingTeamMember} message PendingTeamMember message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - PendingTeamMember.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a PendingTeamMember message from the specified reader or buffer. * @function decode @@ -238776,56 +194571,6 @@ export const Vault = $root.Vault = (() => { return message; }; - /** - * Decodes a PendingTeamMember message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Vault.PendingTeamMember - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Vault.PendingTeamMember} PendingTeamMember - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - PendingTeamMember.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a PendingTeamMember message. - * @function verify - * @memberof Vault.PendingTeamMember - * @static - * @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) { - if (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"; - if (message.userPublicKey != null && message.hasOwnProperty("userPublicKey")) - if (!(message.userPublicKey && typeof message.userPublicKey.length === "number" || $util.isString(message.userPublicKey))) - return "userPublicKey: buffer expected"; - if (message.teamUids != null && message.hasOwnProperty("teamUids")) { - if (!Array.isArray(message.teamUids)) - return "teamUids: array expected"; - for (let i = 0; i < message.teamUids.length; ++i) - if (!(message.teamUids[i] && typeof message.teamUids[i].length === "number" || $util.isString(message.teamUids[i]))) - return "teamUids: buffer[] expected"; - } - if (message.userEccPublicKey != null && message.hasOwnProperty("userEccPublicKey")) - if (!(message.userEccPublicKey && typeof message.userEccPublicKey.length === "number" || $util.isString(message.userEccPublicKey))) - return "userEccPublicKey: buffer expected"; - return null; - }; - /** * Creates a PendingTeamMember message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -238837,6 +194582,8 @@ export const Vault = $root.Vault = (() => { PendingTeamMember.fromObject = function fromObject(object, long) { if (object instanceof $root.Vault.PendingTeamMember) return object; + if (!$util.isObject(object)) + throw TypeError(".Vault.PendingTeamMember: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -238914,21 +194661,21 @@ export const Vault = $root.Vault = (() => { object.userEccPublicKey = $util.newBuffer(object.userEccPublicKey); } } - if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) + if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, "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") 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.userPublicKey != null && message.hasOwnProperty("userPublicKey")) + if (message.userPublicKey != null && Object.hasOwnProperty.call(message, "userPublicKey")) object.userPublicKey = options.bytes === String ? $util.base64.encode(message.userPublicKey, 0, message.userPublicKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.userPublicKey) : message.userPublicKey; if (message.teamUids && message.teamUids.length) { object.teamUids = []; for (let j = 0; j < message.teamUids.length; ++j) object.teamUids[j] = options.bytes === String ? $util.base64.encode(message.teamUids[j], 0, message.teamUids[j].length) : options.bytes === Array ? Array.prototype.slice.call(message.teamUids[j]) : message.teamUids[j]; } - if (message.userEccPublicKey != null && message.hasOwnProperty("userEccPublicKey")) + if (message.userEccPublicKey != null && Object.hasOwnProperty.call(message, "userEccPublicKey")) object.userEccPublicKey = options.bytes === String ? $util.base64.encode(message.userEccPublicKey, 0, message.userEccPublicKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.userEccPublicKey) : message.userEccPublicKey; return object; }; @@ -239082,19 +194829,6 @@ export const Vault = $root.Vault = (() => { return writer; }; - /** - * Encodes the specified BreachWatchRecord message, length delimited. Does not implicitly {@link Vault.BreachWatchRecord.verify|verify} messages. - * @function encodeDelimited - * @memberof Vault.BreachWatchRecord - * @static - * @param {Vault.IBreachWatchRecord} message BreachWatchRecord message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - BreachWatchRecord.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a BreachWatchRecord message from the specified reader or buffer. * @function decode @@ -239151,63 +194885,6 @@ export const Vault = $root.Vault = (() => { return message; }; - /** - * Decodes a BreachWatchRecord message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Vault.BreachWatchRecord - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Vault.BreachWatchRecord} BreachWatchRecord - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - BreachWatchRecord.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a BreachWatchRecord message. - * @function verify - * @memberof Vault.BreachWatchRecord - * @static - * @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) { - if (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.data != null && message.hasOwnProperty("data")) - if (!(message.data && typeof message.data.length === "number" || $util.isString(message.data))) - return "data: buffer expected"; - if (message.type != null && message.hasOwnProperty("type")) - switch (message.type) { - default: - return "type: enum value expected"; - case 0: - case 1: - break; - } - if (message.scannedBy != null && message.hasOwnProperty("scannedBy")) - if (!$util.isString(message.scannedBy)) - return "scannedBy: string expected"; - 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"; - if (message.scannedByAccountUid != null && message.hasOwnProperty("scannedByAccountUid")) - if (!(message.scannedByAccountUid && typeof message.scannedByAccountUid.length === "number" || $util.isString(message.scannedByAccountUid))) - return "scannedByAccountUid: buffer expected"; - return null; - }; - /** * Creates a BreachWatchRecord message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -239219,6 +194896,8 @@ export const Vault = $root.Vault = (() => { BreachWatchRecord.fromObject = function fromObject(object, long) { if (object instanceof $root.Vault.BreachWatchRecord) return object; + if (!$util.isObject(object)) + throw TypeError(".Vault.BreachWatchRecord: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -239316,22 +194995,22 @@ export const Vault = $root.Vault = (() => { object.scannedByAccountUid = $util.newBuffer(object.scannedByAccountUid); } } - if (message.recordUid != null && message.hasOwnProperty("recordUid")) + if (message.recordUid != null && Object.hasOwnProperty.call(message, "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")) + if (message.data != null && Object.hasOwnProperty.call(message, "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.type != null && message.hasOwnProperty("type")) + if (message.type != null && Object.hasOwnProperty.call(message, "type")) object.type = options.enums === String ? $root.BreachWatch.BreachWatchInfoType[message.type] === undefined ? message.type : $root.BreachWatch.BreachWatchInfoType[message.type] : message.type; - if (message.scannedBy != null && message.hasOwnProperty("scannedBy")) + if (message.scannedBy != null && Object.hasOwnProperty.call(message, "scannedBy")) object.scannedBy = message.scannedBy; - if (message.revision != null && message.hasOwnProperty("revision")) + if (message.revision != null && Object.hasOwnProperty.call(message, "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") 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.scannedByAccountUid != null && message.hasOwnProperty("scannedByAccountUid")) + if (message.scannedByAccountUid != null && Object.hasOwnProperty.call(message, "scannedByAccountUid")) object.scannedByAccountUid = options.bytes === String ? $util.base64.encode(message.scannedByAccountUid, 0, message.scannedByAccountUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.scannedByAccountUid) : message.scannedByAccountUid; return object; }; @@ -239507,19 +195186,6 @@ export const Vault = $root.Vault = (() => { return writer; }; - /** - * Encodes the specified UserAuth message, length delimited. Does not implicitly {@link Vault.UserAuth.verify|verify} messages. - * @function encodeDelimited - * @memberof Vault.UserAuth - * @static - * @param {Vault.IUserAuth} message UserAuth message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - UserAuth.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a UserAuth message from the specified reader or buffer. * @function decode @@ -239584,74 +195250,6 @@ export const Vault = $root.Vault = (() => { return message; }; - /** - * Decodes a UserAuth message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Vault.UserAuth - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Vault.UserAuth} UserAuth - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - UserAuth.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a UserAuth message. - * @function verify - * @memberof Vault.UserAuth - * @static - * @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) { - if (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.loginType != null && message.hasOwnProperty("loginType")) - switch (message.loginType) { - default: - return "loginType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - break; - } - if (message.deleted != null && message.hasOwnProperty("deleted")) - if (typeof message.deleted !== "boolean") - return "deleted: boolean expected"; - if (message.iterations != null && message.hasOwnProperty("iterations")) - if (!$util.isInteger(message.iterations)) - return "iterations: integer expected"; - if (message.salt != null && message.hasOwnProperty("salt")) - if (!(message.salt && typeof message.salt.length === "number" || $util.isString(message.salt))) - return "salt: buffer expected"; - if (message.encryptedClientKey != null && message.hasOwnProperty("encryptedClientKey")) - if (!(message.encryptedClientKey && typeof message.encryptedClientKey.length === "number" || $util.isString(message.encryptedClientKey))) - return "encryptedClientKey: buffer expected"; - 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"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - return null; - }; - /** * Creates a UserAuth message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -239663,6 +195261,8 @@ export const Vault = $root.Vault = (() => { UserAuth.fromObject = function fromObject(object, long) { if (object instanceof $root.Vault.UserAuth) return object; + if (!$util.isObject(object)) + throw TypeError(".Vault.UserAuth: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -239786,26 +195386,26 @@ export const Vault = $root.Vault = (() => { object.revision = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; object.name = ""; } - if (message.uid != null && message.hasOwnProperty("uid")) + if (message.uid != null && Object.hasOwnProperty.call(message, "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.loginType != null && message.hasOwnProperty("loginType")) + if (message.loginType != null && Object.hasOwnProperty.call(message, "loginType")) object.loginType = options.enums === String ? $root.Authentication.LoginType[message.loginType] === undefined ? message.loginType : $root.Authentication.LoginType[message.loginType] : message.loginType; - if (message.deleted != null && message.hasOwnProperty("deleted")) + if (message.deleted != null && Object.hasOwnProperty.call(message, "deleted")) object.deleted = message.deleted; - if (message.iterations != null && message.hasOwnProperty("iterations")) + if (message.iterations != null && Object.hasOwnProperty.call(message, "iterations")) object.iterations = message.iterations; - if (message.salt != null && message.hasOwnProperty("salt")) + if (message.salt != null && Object.hasOwnProperty.call(message, "salt")) object.salt = options.bytes === String ? $util.base64.encode(message.salt, 0, message.salt.length) : options.bytes === Array ? Array.prototype.slice.call(message.salt) : message.salt; - if (message.encryptedClientKey != null && message.hasOwnProperty("encryptedClientKey")) + if (message.encryptedClientKey != null && Object.hasOwnProperty.call(message, "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 (message.revision != null && Object.hasOwnProperty.call(message, "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") 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.name != null && message.hasOwnProperty("name")) + if (message.name != null && Object.hasOwnProperty.call(message, "name")) object.name = message.name; return object; }; @@ -239926,19 +195526,6 @@ export const Vault = $root.Vault = (() => { return writer; }; - /** - * Encodes the specified BreachWatchSecurityData message, length delimited. Does not implicitly {@link Vault.BreachWatchSecurityData.verify|verify} messages. - * @function encodeDelimited - * @memberof Vault.BreachWatchSecurityData - * @static - * @param {Vault.IBreachWatchSecurityData} message BreachWatchSecurityData message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - BreachWatchSecurityData.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a BreachWatchSecurityData message from the specified reader or buffer. * @function decode @@ -239983,49 +195570,6 @@ export const Vault = $root.Vault = (() => { return message; }; - /** - * Decodes a BreachWatchSecurityData message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Vault.BreachWatchSecurityData - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Vault.BreachWatchSecurityData} BreachWatchSecurityData - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - BreachWatchSecurityData.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a BreachWatchSecurityData message. - * @function verify - * @memberof Vault.BreachWatchSecurityData - * @static - * @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) { - if (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.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"; - if (message.removed != null && message.hasOwnProperty("removed")) - if (typeof message.removed !== "boolean") - return "removed: boolean expected"; - return null; - }; - /** * Creates a BreachWatchSecurityData message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -240037,6 +195581,8 @@ export const Vault = $root.Vault = (() => { BreachWatchSecurityData.fromObject = function fromObject(object, long) { if (object instanceof $root.Vault.BreachWatchSecurityData) return object; + if (!$util.isObject(object)) + throw TypeError(".Vault.BreachWatchSecurityData: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -240093,16 +195639,16 @@ export const Vault = $root.Vault = (() => { object.revision = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; object.removed = false; } - if (message.recordUid != null && message.hasOwnProperty("recordUid")) + if (message.recordUid != null && Object.hasOwnProperty.call(message, "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 (message.revision != null && Object.hasOwnProperty.call(message, "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") 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.removed != null && message.hasOwnProperty("removed")) + if (message.removed != null && Object.hasOwnProperty.call(message, "removed")) object.removed = message.removed; return object; }; @@ -240212,19 +195758,6 @@ export const Vault = $root.Vault = (() => { return writer; }; - /** - * Encodes the specified ReusedPasswords message, length delimited. Does not implicitly {@link Vault.ReusedPasswords.verify|verify} messages. - * @function encodeDelimited - * @memberof Vault.ReusedPasswords - * @static - * @param {Vault.IReusedPasswords} message ReusedPasswords message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ReusedPasswords.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a ReusedPasswords message from the specified reader or buffer. * @function decode @@ -240265,46 +195798,6 @@ export const Vault = $root.Vault = (() => { return message; }; - /** - * Decodes a ReusedPasswords message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Vault.ReusedPasswords - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Vault.ReusedPasswords} ReusedPasswords - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ReusedPasswords.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a ReusedPasswords message. - * @function verify - * @memberof Vault.ReusedPasswords - * @static - * @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) { - if (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"; - 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"; - return null; - }; - /** * Creates a ReusedPasswords message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -240316,6 +195809,8 @@ export const Vault = $root.Vault = (() => { ReusedPasswords.fromObject = function fromObject(object, long) { if (object instanceof $root.Vault.ReusedPasswords) return object; + if (!$util.isObject(object)) + throw TypeError(".Vault.ReusedPasswords: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -240360,9 +195855,9 @@ export const Vault = $root.Vault = (() => { } else object.revision = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; } - if (message.count != null && message.hasOwnProperty("count")) + if (message.count != null && Object.hasOwnProperty.call(message, "count")) object.count = message.count; - if (message.revision != null && message.hasOwnProperty("revision")) + if (message.revision != null && Object.hasOwnProperty.call(message, "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") @@ -240576,19 +196071,6 @@ export const Vault = $root.Vault = (() => { return writer; }; - /** - * Encodes the specified SharedFolderRecord message, length delimited. Does not implicitly {@link Vault.SharedFolderRecord.verify|verify} messages. - * @function encodeDelimited - * @memberof Vault.SharedFolderRecord - * @static - * @param {Vault.ISharedFolderRecord} message SharedFolderRecord message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SharedFolderRecord.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a SharedFolderRecord message from the specified reader or buffer. * @function decode @@ -240665,79 +196147,6 @@ export const Vault = $root.Vault = (() => { return message; }; - /** - * Decodes a SharedFolderRecord message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Vault.SharedFolderRecord - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Vault.SharedFolderRecord} SharedFolderRecord - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SharedFolderRecord.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a SharedFolderRecord message. - * @function verify - * @memberof Vault.SharedFolderRecord - * @static - * @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) { - if (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"; - 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.canShare != null && message.hasOwnProperty("canShare")) - if (typeof message.canShare !== "boolean") - return "canShare: boolean expected"; - if (message.canEdit != null && message.hasOwnProperty("canEdit")) - if (typeof message.canEdit !== "boolean") - return "canEdit: boolean expected"; - if (message.ownerAccountUid != null && message.hasOwnProperty("ownerAccountUid")) - if (!(message.ownerAccountUid && typeof message.ownerAccountUid.length === "number" || $util.isString(message.ownerAccountUid))) - return "ownerAccountUid: buffer expected"; - 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"; - if (message.owner != null && message.hasOwnProperty("owner")) - if (typeof message.owner !== "boolean") - return "owner: boolean expected"; - if (message.expirationNotificationType != null && message.hasOwnProperty("expirationNotificationType")) - switch (message.expirationNotificationType) { - default: - return "expirationNotificationType: enum value expected"; - case 0: - case 1: - case 2: - break; - } - if (message.ownerUsername != null && message.hasOwnProperty("ownerUsername")) - if (!$util.isString(message.ownerUsername)) - return "ownerUsername: string expected"; - if (message.rotateOnExpiration != null && message.hasOwnProperty("rotateOnExpiration")) - if (typeof message.rotateOnExpiration !== "boolean") - return "rotateOnExpiration: boolean expected"; - return null; - }; - /** * Creates a SharedFolderRecord message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -240749,6 +196158,8 @@ export const Vault = $root.Vault = (() => { SharedFolderRecord.fromObject = function fromObject(object, long) { if (object instanceof $root.Vault.SharedFolderRecord) return object; + if (!$util.isObject(object)) + throw TypeError(".Vault.SharedFolderRecord: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -240874,32 +196285,32 @@ export const Vault = $root.Vault = (() => { object.ownerUsername = ""; object.rotateOnExpiration = false; } - if (message.sharedFolderUid != null && message.hasOwnProperty("sharedFolderUid")) + if (message.sharedFolderUid != null && Object.hasOwnProperty.call(message, "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")) + if (message.recordUid != null && Object.hasOwnProperty.call(message, "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")) + if (message.recordKey != null && Object.hasOwnProperty.call(message, "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.canShare != null && message.hasOwnProperty("canShare")) + if (message.canShare != null && Object.hasOwnProperty.call(message, "canShare")) object.canShare = message.canShare; - if (message.canEdit != null && message.hasOwnProperty("canEdit")) + if (message.canEdit != null && Object.hasOwnProperty.call(message, "canEdit")) object.canEdit = message.canEdit; - if (message.ownerAccountUid != null && message.hasOwnProperty("ownerAccountUid")) + if (message.ownerAccountUid != null && Object.hasOwnProperty.call(message, "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 (message.expiration != null && Object.hasOwnProperty.call(message, "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") 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.owner != null && message.hasOwnProperty("owner")) + if (message.owner != null && Object.hasOwnProperty.call(message, "owner")) object.owner = message.owner; - if (message.expirationNotificationType != null && message.hasOwnProperty("expirationNotificationType")) + if (message.expirationNotificationType != null && Object.hasOwnProperty.call(message, "expirationNotificationType")) object.expirationNotificationType = options.enums === String ? $root.Records.TimerNotificationType[message.expirationNotificationType] === undefined ? message.expirationNotificationType : $root.Records.TimerNotificationType[message.expirationNotificationType] : message.expirationNotificationType; - if (message.ownerUsername != null && message.hasOwnProperty("ownerUsername")) + if (message.ownerUsername != null && Object.hasOwnProperty.call(message, "ownerUsername")) object.ownerUsername = message.ownerUsername; - if (message.rotateOnExpiration != null && message.hasOwnProperty("rotateOnExpiration")) + if (message.rotateOnExpiration != null && Object.hasOwnProperty.call(message, "rotateOnExpiration")) object.rotateOnExpiration = message.rotateOnExpiration; return object; }; @@ -241075,19 +196486,6 @@ export const Vault = $root.Vault = (() => { return writer; }; - /** - * Encodes the specified SharedFolderUser message, length delimited. Does not implicitly {@link Vault.SharedFolderUser.verify|verify} messages. - * @function encodeDelimited - * @memberof Vault.SharedFolderUser - * @static - * @param {Vault.ISharedFolderUser} message SharedFolderUser message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SharedFolderUser.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a SharedFolderUser message from the specified reader or buffer. * @function decode @@ -241152,70 +196550,6 @@ export const Vault = $root.Vault = (() => { return message; }; - /** - * Decodes a SharedFolderUser message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Vault.SharedFolderUser - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Vault.SharedFolderUser} SharedFolderUser - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SharedFolderUser.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a SharedFolderUser message. - * @function verify - * @memberof Vault.SharedFolderUser - * @static - * @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) { - if (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"; - if (message.username != null && message.hasOwnProperty("username")) - if (!$util.isString(message.username)) - return "username: string expected"; - if (message.manageRecords != null && message.hasOwnProperty("manageRecords")) - if (typeof message.manageRecords !== "boolean") - return "manageRecords: boolean expected"; - if (message.manageUsers != null && message.hasOwnProperty("manageUsers")) - if (typeof message.manageUsers !== "boolean") - return "manageUsers: boolean expected"; - if (message.accountUid != null && message.hasOwnProperty("accountUid")) - if (!(message.accountUid && typeof message.accountUid.length === "number" || $util.isString(message.accountUid))) - return "accountUid: buffer expected"; - 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"; - if (message.expirationNotificationType != null && message.hasOwnProperty("expirationNotificationType")) - switch (message.expirationNotificationType) { - default: - return "expirationNotificationType: enum value expected"; - case 0: - case 1: - case 2: - break; - } - if (message.rotateOnExpiration != null && message.hasOwnProperty("rotateOnExpiration")) - if (typeof message.rotateOnExpiration !== "boolean") - return "rotateOnExpiration: boolean expected"; - return null; - }; - /** * Creates a SharedFolderUser message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -241227,6 +196561,8 @@ export const Vault = $root.Vault = (() => { SharedFolderUser.fromObject = function fromObject(object, long) { if (object instanceof $root.Vault.SharedFolderUser) return object; + if (!$util.isObject(object)) + throw TypeError(".Vault.SharedFolderUser: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -241325,26 +196661,26 @@ export const Vault = $root.Vault = (() => { object.expirationNotificationType = options.enums === String ? "NOTIFICATION_OFF" : 0; object.rotateOnExpiration = false; } - if (message.sharedFolderUid != null && message.hasOwnProperty("sharedFolderUid")) + if (message.sharedFolderUid != null && Object.hasOwnProperty.call(message, "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.username != null && message.hasOwnProperty("username")) + if (message.username != null && Object.hasOwnProperty.call(message, "username")) object.username = message.username; - if (message.manageRecords != null && message.hasOwnProperty("manageRecords")) + if (message.manageRecords != null && Object.hasOwnProperty.call(message, "manageRecords")) object.manageRecords = message.manageRecords; - if (message.manageUsers != null && message.hasOwnProperty("manageUsers")) + if (message.manageUsers != null && Object.hasOwnProperty.call(message, "manageUsers")) object.manageUsers = message.manageUsers; - if (message.accountUid != null && message.hasOwnProperty("accountUid")) + if (message.accountUid != null && Object.hasOwnProperty.call(message, "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 (message.expiration != null && Object.hasOwnProperty.call(message, "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") 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.expirationNotificationType != null && message.hasOwnProperty("expirationNotificationType")) + if (message.expirationNotificationType != null && Object.hasOwnProperty.call(message, "expirationNotificationType")) object.expirationNotificationType = options.enums === String ? $root.Records.TimerNotificationType[message.expirationNotificationType] === undefined ? message.expirationNotificationType : $root.Records.TimerNotificationType[message.expirationNotificationType] : message.expirationNotificationType; - if (message.rotateOnExpiration != null && message.hasOwnProperty("rotateOnExpiration")) + if (message.rotateOnExpiration != null && Object.hasOwnProperty.call(message, "rotateOnExpiration")) object.rotateOnExpiration = message.rotateOnExpiration; return object; }; @@ -241520,19 +196856,6 @@ export const Vault = $root.Vault = (() => { return writer; }; - /** - * Encodes the specified SharedFolderTeam message, length delimited. Does not implicitly {@link Vault.SharedFolderTeam.verify|verify} messages. - * @function encodeDelimited - * @memberof Vault.SharedFolderTeam - * @static - * @param {Vault.ISharedFolderTeam} message SharedFolderTeam message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SharedFolderTeam.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a SharedFolderTeam message from the specified reader or buffer. * @function decode @@ -241597,70 +196920,6 @@ export const Vault = $root.Vault = (() => { return message; }; - /** - * Decodes a SharedFolderTeam message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Vault.SharedFolderTeam - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Vault.SharedFolderTeam} SharedFolderTeam - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SharedFolderTeam.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a SharedFolderTeam message. - * @function verify - * @memberof Vault.SharedFolderTeam - * @static - * @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) { - if (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"; - if (message.teamUid != null && message.hasOwnProperty("teamUid")) - if (!(message.teamUid && typeof message.teamUid.length === "number" || $util.isString(message.teamUid))) - return "teamUid: buffer expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.manageRecords != null && message.hasOwnProperty("manageRecords")) - if (typeof message.manageRecords !== "boolean") - return "manageRecords: boolean expected"; - if (message.manageUsers != null && message.hasOwnProperty("manageUsers")) - if (typeof message.manageUsers !== "boolean") - return "manageUsers: boolean expected"; - 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"; - if (message.expirationNotificationType != null && message.hasOwnProperty("expirationNotificationType")) - switch (message.expirationNotificationType) { - default: - return "expirationNotificationType: enum value expected"; - case 0: - case 1: - case 2: - break; - } - if (message.rotateOnExpiration != null && message.hasOwnProperty("rotateOnExpiration")) - if (typeof message.rotateOnExpiration !== "boolean") - return "rotateOnExpiration: boolean expected"; - return null; - }; - /** * Creates a SharedFolderTeam message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -241672,6 +196931,8 @@ export const Vault = $root.Vault = (() => { SharedFolderTeam.fromObject = function fromObject(object, long) { if (object instanceof $root.Vault.SharedFolderTeam) return object; + if (!$util.isObject(object)) + throw TypeError(".Vault.SharedFolderTeam: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -241770,26 +197031,26 @@ export const Vault = $root.Vault = (() => { object.expirationNotificationType = options.enums === String ? "NOTIFICATION_OFF" : 0; object.rotateOnExpiration = false; } - if (message.sharedFolderUid != null && message.hasOwnProperty("sharedFolderUid")) + if (message.sharedFolderUid != null && Object.hasOwnProperty.call(message, "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")) + if (message.teamUid != null && Object.hasOwnProperty.call(message, "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.name != null && message.hasOwnProperty("name")) + if (message.name != null && Object.hasOwnProperty.call(message, "name")) object.name = message.name; - if (message.manageRecords != null && message.hasOwnProperty("manageRecords")) + if (message.manageRecords != null && Object.hasOwnProperty.call(message, "manageRecords")) object.manageRecords = message.manageRecords; - if (message.manageUsers != null && message.hasOwnProperty("manageUsers")) + if (message.manageUsers != null && Object.hasOwnProperty.call(message, "manageUsers")) object.manageUsers = message.manageUsers; - if (message.expiration != null && message.hasOwnProperty("expiration")) + if (message.expiration != null && Object.hasOwnProperty.call(message, "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") 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.expirationNotificationType != null && message.hasOwnProperty("expirationNotificationType")) + if (message.expirationNotificationType != null && Object.hasOwnProperty.call(message, "expirationNotificationType")) object.expirationNotificationType = options.enums === String ? $root.Records.TimerNotificationType[message.expirationNotificationType] === undefined ? message.expirationNotificationType : $root.Records.TimerNotificationType[message.expirationNotificationType] : message.expirationNotificationType; - if (message.rotateOnExpiration != null && message.hasOwnProperty("rotateOnExpiration")) + if (message.rotateOnExpiration != null && Object.hasOwnProperty.call(message, "rotateOnExpiration")) object.rotateOnExpiration = message.rotateOnExpiration; return object; }; @@ -241932,19 +197193,6 @@ export const Vault = $root.Vault = (() => { return writer; }; - /** - * Encodes the specified KsmChange message, length delimited. Does not implicitly {@link Vault.KsmChange.verify|verify} messages. - * @function encodeDelimited - * @memberof Vault.KsmChange - * @static - * @param {Vault.IKsmChange} message KsmChange message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - KsmChange.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a KsmChange message from the specified reader or buffer. * @function decode @@ -241997,63 +197245,6 @@ export const Vault = $root.Vault = (() => { return message; }; - /** - * Decodes a KsmChange message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Vault.KsmChange - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Vault.KsmChange} KsmChange - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - KsmChange.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a KsmChange message. - * @function verify - * @memberof Vault.KsmChange - * @static - * @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) { - if (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"; - if (message.detailId != null && message.hasOwnProperty("detailId")) - if (!(message.detailId && typeof message.detailId.length === "number" || $util.isString(message.detailId))) - return "detailId: buffer expected"; - if (message.removed != null && message.hasOwnProperty("removed")) - if (typeof message.removed !== "boolean") - return "removed: boolean expected"; - if (message.appClientType != null && message.hasOwnProperty("appClientType")) - switch (message.appClientType) { - default: - return "appClientType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - break; - } - 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"; - return null; - }; - /** * Creates a KsmChange message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -242065,6 +197256,8 @@ export const Vault = $root.Vault = (() => { KsmChange.fromObject = function fromObject(object, long) { if (object instanceof $root.Vault.KsmChange) return object; + if (!$util.isObject(object)) + throw TypeError(".Vault.KsmChange: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -242162,15 +197355,15 @@ export const Vault = $root.Vault = (() => { } else object.expiration = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; } - if (message.appRecordUid != null && message.hasOwnProperty("appRecordUid")) + if (message.appRecordUid != null && Object.hasOwnProperty.call(message, "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.detailId != null && message.hasOwnProperty("detailId")) + if (message.detailId != null && Object.hasOwnProperty.call(message, "detailId")) object.detailId = options.bytes === String ? $util.base64.encode(message.detailId, 0, message.detailId.length) : options.bytes === Array ? Array.prototype.slice.call(message.detailId) : message.detailId; - if (message.removed != null && message.hasOwnProperty("removed")) + if (message.removed != null && Object.hasOwnProperty.call(message, "removed")) object.removed = message.removed; - if (message.appClientType != null && message.hasOwnProperty("appClientType")) + if (message.appClientType != null && Object.hasOwnProperty.call(message, "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 (message.expiration != null && Object.hasOwnProperty.call(message, "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") @@ -242274,19 +197467,6 @@ export const Vault = $root.Vault = (() => { return writer; }; - /** - * Encodes the specified ShareInvitation message, length delimited. Does not implicitly {@link Vault.ShareInvitation.verify|verify} messages. - * @function encodeDelimited - * @memberof Vault.ShareInvitation - * @static - * @param {Vault.IShareInvitation} message ShareInvitation message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ShareInvitation.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a ShareInvitation message from the specified reader or buffer. * @function decode @@ -242323,43 +197503,6 @@ export const Vault = $root.Vault = (() => { return message; }; - /** - * Decodes a ShareInvitation message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Vault.ShareInvitation - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Vault.ShareInvitation} ShareInvitation - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ShareInvitation.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a ShareInvitation message. - * @function verify - * @memberof Vault.ShareInvitation - * @static - * @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) { - if (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"; - return null; - }; - /** * Creates a ShareInvitation message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -242371,6 +197514,8 @@ export const Vault = $root.Vault = (() => { ShareInvitation.fromObject = function fromObject(object, long) { if (object instanceof $root.Vault.ShareInvitation) return object; + if (!$util.isObject(object)) + throw TypeError(".Vault.ShareInvitation: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -242400,7 +197545,7 @@ export const Vault = $root.Vault = (() => { let object = {}; if (options.defaults) object.username = ""; - if (message.username != null && message.hasOwnProperty("username")) + if (message.username != null && Object.hasOwnProperty.call(message, "username")) object.username = message.username; return object; }; @@ -242510,19 +197655,6 @@ export const Vault = $root.Vault = (() => { return writer; }; - /** - * Encodes the specified User message, length delimited. Does not implicitly {@link Vault.User.verify|verify} messages. - * @function encodeDelimited - * @memberof Vault.User - * @static - * @param {Vault.IUser} message User message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - User.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a User message from the specified reader or buffer. * @function decode @@ -242563,46 +197695,6 @@ export const Vault = $root.Vault = (() => { return message; }; - /** - * Decodes a User message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Vault.User - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Vault.User} User - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - User.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a User message. - * @function verify - * @memberof Vault.User - * @static - * @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) { - if (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"; - if (message.username != null && message.hasOwnProperty("username")) - if (!$util.isString(message.username)) - return "username: string expected"; - return null; - }; - /** * Creates a User message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -242614,6 +197706,8 @@ export const Vault = $root.Vault = (() => { User.fromObject = function fromObject(object, long) { if (object instanceof $root.Vault.User) return object; + if (!$util.isObject(object)) + throw TypeError(".Vault.User: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -242656,9 +197750,9 @@ export const Vault = $root.Vault = (() => { } object.username = ""; } - if (message.accountUid != null && message.hasOwnProperty("accountUid")) + if (message.accountUid != null && Object.hasOwnProperty.call(message, "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.username != null && message.hasOwnProperty("username")) + if (message.username != null && Object.hasOwnProperty.call(message, "username")) object.username = message.username; return object; }; @@ -242801,19 +197895,6 @@ export const Vault = $root.Vault = (() => { return writer; }; - /** - * Encodes the specified SyncDiagnostics message, length delimited. Does not implicitly {@link Vault.SyncDiagnostics.verify|verify} messages. - * @function encodeDelimited - * @memberof Vault.SyncDiagnostics - * @static - * @param {Vault.ISyncDiagnostics} message SyncDiagnostics message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SyncDiagnostics.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a SyncDiagnostics message from the specified reader or buffer. * @function decode @@ -242866,55 +197947,6 @@ export const Vault = $root.Vault = (() => { return message; }; - /** - * Decodes a SyncDiagnostics message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Vault.SyncDiagnostics - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Vault.SyncDiagnostics} SyncDiagnostics - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SyncDiagnostics.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a SyncDiagnostics message. - * @function verify - * @memberof Vault.SyncDiagnostics - * @static - * @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) { - if (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"; - if (message.userId != null && message.hasOwnProperty("userId")) - if (!$util.isInteger(message.userId)) - return "userId: integer expected"; - 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"; - if (message.syncedTo != null && message.hasOwnProperty("syncedTo")) - if (!$util.isInteger(message.syncedTo) && !(message.syncedTo && $util.isInteger(message.syncedTo.low) && $util.isInteger(message.syncedTo.high))) - return "syncedTo: integer|Long expected"; - if (message.syncingTo != null && message.hasOwnProperty("syncingTo")) - if (!$util.isInteger(message.syncingTo) && !(message.syncingTo && $util.isInteger(message.syncingTo.low) && $util.isInteger(message.syncingTo.high))) - return "syncingTo: integer|Long expected"; - return null; - }; - /** * Creates a SyncDiagnostics message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -242926,6 +197958,8 @@ export const Vault = $root.Vault = (() => { SyncDiagnostics.fromObject = function fromObject(object, long) { if (object instanceof $root.Vault.SyncDiagnostics) return object; + if (!$util.isObject(object)) + throw TypeError(".Vault.SyncDiagnostics: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -243010,25 +198044,25 @@ export const Vault = $root.Vault = (() => { } else object.syncingTo = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; } - if (message.continuationToken != null && message.hasOwnProperty("continuationToken")) + if (message.continuationToken != null && Object.hasOwnProperty.call(message, "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")) + if (message.userId != null && Object.hasOwnProperty.call(message, "userId")) object.userId = message.userId; - if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) + if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, "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") 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 (message.syncedTo != null && Object.hasOwnProperty.call(message, "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") 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 (message.syncingTo != null && Object.hasOwnProperty.call(message, "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") @@ -243238,19 +198272,6 @@ export const Vault = $root.Vault = (() => { return writer; }; - /** - * Encodes the specified RecordRotation message, length delimited. Does not implicitly {@link Vault.RecordRotation.verify|verify} messages. - * @function encodeDelimited - * @memberof Vault.RecordRotation - * @static - * @param {Vault.IRecordRotation} message RecordRotation message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RecordRotation.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a RecordRotation message from the specified reader or buffer. * @function decode @@ -243319,74 +198340,6 @@ export const Vault = $root.Vault = (() => { return message; }; - /** - * Decodes a RecordRotation message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Vault.RecordRotation - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Vault.RecordRotation} RecordRotation - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RecordRotation.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a RecordRotation message. - * @function verify - * @memberof Vault.RecordRotation - * @static - * @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) { - if (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.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"; - if (message.configurationUid != null && message.hasOwnProperty("configurationUid")) - if (!(message.configurationUid && typeof message.configurationUid.length === "number" || $util.isString(message.configurationUid))) - return "configurationUid: buffer expected"; - if (message.schedule != null && message.hasOwnProperty("schedule")) - if (!$util.isString(message.schedule)) - return "schedule: string expected"; - if (message.pwdComplexity != null && message.hasOwnProperty("pwdComplexity")) - if (!(message.pwdComplexity && typeof message.pwdComplexity.length === "number" || $util.isString(message.pwdComplexity))) - return "pwdComplexity: buffer expected"; - if (message.disabled != null && message.hasOwnProperty("disabled")) - if (typeof message.disabled !== "boolean") - return "disabled: boolean expected"; - if (message.resourceUid != null && message.hasOwnProperty("resourceUid")) - if (!(message.resourceUid && typeof message.resourceUid.length === "number" || $util.isString(message.resourceUid))) - return "resourceUid: buffer expected"; - if (message.lastRotation != null && message.hasOwnProperty("lastRotation")) - if (!$util.isInteger(message.lastRotation) && !(message.lastRotation && $util.isInteger(message.lastRotation.low) && $util.isInteger(message.lastRotation.high))) - return "lastRotation: integer|Long expected"; - if (message.lastRotationStatus != null && message.hasOwnProperty("lastRotationStatus")) - switch (message.lastRotationStatus) { - default: - return "lastRotationStatus: enum value expected"; - case 0: - case 1: - case 2: - case 3: - break; - } - return null; - }; - /** * Creates a RecordRotation message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -243398,6 +198351,8 @@ export const Vault = $root.Vault = (() => { RecordRotation.fromObject = function fromObject(object, long) { if (object instanceof $root.Vault.RecordRotation) return object; + if (!$util.isObject(object)) + throw TypeError(".Vault.RecordRotation: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -243532,33 +198487,33 @@ export const Vault = $root.Vault = (() => { object.lastRotation = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; object.lastRotationStatus = options.enums === String ? "RRST_NOT_ROTATED" : 0; } - if (message.recordUid != null && message.hasOwnProperty("recordUid")) + if (message.recordUid != null && Object.hasOwnProperty.call(message, "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 (message.revision != null && Object.hasOwnProperty.call(message, "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") 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.configurationUid != null && message.hasOwnProperty("configurationUid")) + if (message.configurationUid != null && Object.hasOwnProperty.call(message, "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.schedule != null && message.hasOwnProperty("schedule")) + if (message.schedule != null && Object.hasOwnProperty.call(message, "schedule")) object.schedule = message.schedule; - if (message.pwdComplexity != null && message.hasOwnProperty("pwdComplexity")) + if (message.pwdComplexity != null && Object.hasOwnProperty.call(message, "pwdComplexity")) object.pwdComplexity = options.bytes === String ? $util.base64.encode(message.pwdComplexity, 0, message.pwdComplexity.length) : options.bytes === Array ? Array.prototype.slice.call(message.pwdComplexity) : message.pwdComplexity; - if (message.disabled != null && message.hasOwnProperty("disabled")) + if (message.disabled != null && Object.hasOwnProperty.call(message, "disabled")) object.disabled = message.disabled; - if (message.resourceUid != null && message.hasOwnProperty("resourceUid")) + if (message.resourceUid != null && Object.hasOwnProperty.call(message, "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 (message.lastRotation != null && Object.hasOwnProperty.call(message, "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") 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; - if (message.lastRotationStatus != null && message.hasOwnProperty("lastRotationStatus")) + if (message.lastRotationStatus != null && Object.hasOwnProperty.call(message, "lastRotationStatus")) object.lastRotationStatus = options.enums === String ? $root.Vault.RecordRotationStatus[message.lastRotationStatus] === undefined ? message.lastRotationStatus : $root.Vault.RecordRotationStatus[message.lastRotationStatus] : message.lastRotationStatus; return object; }; @@ -243679,19 +198634,6 @@ export const Vault = $root.Vault = (() => { return writer; }; - /** - * Encodes the specified SecurityScoreData message, length delimited. Does not implicitly {@link Vault.SecurityScoreData.verify|verify} messages. - * @function encodeDelimited - * @memberof Vault.SecurityScoreData - * @static - * @param {Vault.ISecurityScoreData} message SecurityScoreData message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SecurityScoreData.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a SecurityScoreData message from the specified reader or buffer. * @function decode @@ -243736,49 +198678,6 @@ export const Vault = $root.Vault = (() => { return message; }; - /** - * Decodes a SecurityScoreData message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Vault.SecurityScoreData - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Vault.SecurityScoreData} SecurityScoreData - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SecurityScoreData.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a SecurityScoreData message. - * @function verify - * @memberof Vault.SecurityScoreData - * @static - * @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) { - if (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.data != null && message.hasOwnProperty("data")) - if (!(message.data && typeof message.data.length === "number" || $util.isString(message.data))) - return "data: buffer expected"; - 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"; - return null; - }; - /** * Creates a SecurityScoreData message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -243790,6 +198689,8 @@ export const Vault = $root.Vault = (() => { SecurityScoreData.fromObject = function fromObject(object, long) { if (object instanceof $root.Vault.SecurityScoreData) return object; + if (!$util.isObject(object)) + throw TypeError(".Vault.SecurityScoreData: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -243855,11 +198756,11 @@ export const Vault = $root.Vault = (() => { } else object.revision = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; } - if (message.recordUid != null && message.hasOwnProperty("recordUid")) + if (message.recordUid != null && Object.hasOwnProperty.call(message, "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")) + if (message.data != null && Object.hasOwnProperty.call(message, "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 (message.revision != null && Object.hasOwnProperty.call(message, "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") @@ -243965,19 +198866,6 @@ export const Vault = $root.Vault = (() => { return writer; }; - /** - * Encodes the specified BreachWatchGetSyncDataRequest message, length delimited. Does not implicitly {@link Vault.BreachWatchGetSyncDataRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof Vault.BreachWatchGetSyncDataRequest - * @static - * @param {Vault.IBreachWatchGetSyncDataRequest} message BreachWatchGetSyncDataRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - BreachWatchGetSyncDataRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a BreachWatchGetSyncDataRequest message from the specified reader or buffer. * @function decode @@ -244016,47 +198904,6 @@ export const Vault = $root.Vault = (() => { return message; }; - /** - * Decodes a BreachWatchGetSyncDataRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Vault.BreachWatchGetSyncDataRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Vault.BreachWatchGetSyncDataRequest} BreachWatchGetSyncDataRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - BreachWatchGetSyncDataRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a BreachWatchGetSyncDataRequest message. - * @function verify - * @memberof Vault.BreachWatchGetSyncDataRequest - * @static - * @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) { - if (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"; - for (let i = 0; i < message.recordUids.length; ++i) - if (!(message.recordUids[i] && typeof message.recordUids[i].length === "number" || $util.isString(message.recordUids[i]))) - return "recordUids: buffer[] expected"; - } - return null; - }; - /** * Creates a BreachWatchGetSyncDataRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -244068,6 +198915,8 @@ export const Vault = $root.Vault = (() => { BreachWatchGetSyncDataRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.Vault.BreachWatchGetSyncDataRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".Vault.BreachWatchGetSyncDataRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -244235,19 +199084,6 @@ export const Vault = $root.Vault = (() => { return writer; }; - /** - * Encodes the specified BreachWatchGetSyncDataResponse message, length delimited. Does not implicitly {@link Vault.BreachWatchGetSyncDataResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof Vault.BreachWatchGetSyncDataResponse - * @static - * @param {Vault.IBreachWatchGetSyncDataResponse} message BreachWatchGetSyncDataResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - BreachWatchGetSyncDataResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a BreachWatchGetSyncDataResponse message from the specified reader or buffer. * @function decode @@ -244298,67 +199134,6 @@ export const Vault = $root.Vault = (() => { return message; }; - /** - * Decodes a BreachWatchGetSyncDataResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Vault.BreachWatchGetSyncDataResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Vault.BreachWatchGetSyncDataResponse} BreachWatchGetSyncDataResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - BreachWatchGetSyncDataResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a BreachWatchGetSyncDataResponse message. - * @function verify - * @memberof Vault.BreachWatchGetSyncDataResponse - * @static - * @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) { - if (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); - if (error) - return "breachWatchRecords." + error; - } - } - if (message.breachWatchSecurityData != null && message.hasOwnProperty("breachWatchSecurityData")) { - 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); - if (error) - return "breachWatchSecurityData." + error; - } - } - 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); - if (error) - return "users." + error; - } - } - return null; - }; - /** * Creates a BreachWatchGetSyncDataResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -244370,6 +199145,8 @@ export const Vault = $root.Vault = (() => { BreachWatchGetSyncDataResponse.fromObject = function fromObject(object, long) { if (object instanceof $root.Vault.BreachWatchGetSyncDataResponse) return object; + if (!$util.isObject(object)) + throw TypeError(".Vault.BreachWatchGetSyncDataResponse: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -244380,7 +199157,7 @@ export const Vault = $root.Vault = (() => { throw TypeError(".Vault.BreachWatchGetSyncDataResponse.breachWatchRecords: array expected"); message.breachWatchRecords = []; for (let i = 0; i < object.breachWatchRecords.length; ++i) { - if (typeof object.breachWatchRecords[i] !== "object") + if (!$util.isObject(object.breachWatchRecords[i])) throw TypeError(".Vault.BreachWatchGetSyncDataResponse.breachWatchRecords: object expected"); message.breachWatchRecords[i] = $root.Vault.BreachWatchRecord.fromObject(object.breachWatchRecords[i], long + 1); } @@ -244390,7 +199167,7 @@ export const Vault = $root.Vault = (() => { throw TypeError(".Vault.BreachWatchGetSyncDataResponse.breachWatchSecurityData: array expected"); message.breachWatchSecurityData = []; for (let i = 0; i < object.breachWatchSecurityData.length; ++i) { - if (typeof object.breachWatchSecurityData[i] !== "object") + if (!$util.isObject(object.breachWatchSecurityData[i])) throw TypeError(".Vault.BreachWatchGetSyncDataResponse.breachWatchSecurityData: object expected"); message.breachWatchSecurityData[i] = $root.Vault.BreachWatchSecurityData.fromObject(object.breachWatchSecurityData[i], long + 1); } @@ -244400,7 +199177,7 @@ export const Vault = $root.Vault = (() => { throw TypeError(".Vault.BreachWatchGetSyncDataResponse.users: array expected"); message.users = []; for (let i = 0; i < object.users.length; ++i) { - if (typeof object.users[i] !== "object") + if (!$util.isObject(object.users[i])) throw TypeError(".Vault.BreachWatchGetSyncDataResponse.users: object expected"); message.users[i] = $root.Vault.User.fromObject(object.users[i], long + 1); } @@ -244544,19 +199321,6 @@ export const Vault = $root.Vault = (() => { return writer; }; - /** - * Encodes the specified GetAccountUidMapResponse message, length delimited. Does not implicitly {@link Vault.GetAccountUidMapResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof Vault.GetAccountUidMapResponse - * @static - * @param {Vault.IGetAccountUidMapResponse} message GetAccountUidMapResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetAccountUidMapResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a GetAccountUidMapResponse message from the specified reader or buffer. * @function decode @@ -244595,49 +199359,6 @@ export const Vault = $root.Vault = (() => { return message; }; - /** - * Decodes a GetAccountUidMapResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Vault.GetAccountUidMapResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Vault.GetAccountUidMapResponse} GetAccountUidMapResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetAccountUidMapResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a GetAccountUidMapResponse message. - * @function verify - * @memberof Vault.GetAccountUidMapResponse - * @static - * @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) { - if (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); - if (error) - return "users." + error; - } - } - return null; - }; - /** * Creates a GetAccountUidMapResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -244649,6 +199370,8 @@ export const Vault = $root.Vault = (() => { GetAccountUidMapResponse.fromObject = function fromObject(object, long) { if (object instanceof $root.Vault.GetAccountUidMapResponse) return object; + if (!$util.isObject(object)) + throw TypeError(".Vault.GetAccountUidMapResponse: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -244659,7 +199382,7 @@ export const Vault = $root.Vault = (() => { throw TypeError(".Vault.GetAccountUidMapResponse.users: array expected"); message.users = []; for (let i = 0; i < object.users.length; ++i) { - if (typeof object.users[i] !== "object") + if (!$util.isObject(object.users[i])) throw TypeError(".Vault.GetAccountUidMapResponse.users: object expected"); message.users[i] = $root.Vault.User.fromObject(object.users[i], long + 1); } @@ -244931,19 +199654,6 @@ export const NotificationCenter = $root.NotificationCenter = (() => { return writer; }; - /** - * Encodes the specified EncryptedData message, length delimited. Does not implicitly {@link NotificationCenter.EncryptedData.verify|verify} messages. - * @function encodeDelimited - * @memberof NotificationCenter.EncryptedData - * @static - * @param {NotificationCenter.IEncryptedData} message EncryptedData message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - EncryptedData.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes an EncryptedData message from the specified reader or buffer. * @function decode @@ -244984,46 +199694,6 @@ export const NotificationCenter = $root.NotificationCenter = (() => { return message; }; - /** - * Decodes an EncryptedData message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof NotificationCenter.EncryptedData - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {NotificationCenter.EncryptedData} EncryptedData - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - EncryptedData.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an EncryptedData message. - * @function verify - * @memberof NotificationCenter.EncryptedData - * @static - * @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) { - if (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"; - if (message.data != null && message.hasOwnProperty("data")) - if (!(message.data && typeof message.data.length === "number" || $util.isString(message.data))) - return "data: buffer expected"; - return null; - }; - /** * Creates an EncryptedData message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -245035,6 +199705,8 @@ export const NotificationCenter = $root.NotificationCenter = (() => { EncryptedData.fromObject = function fromObject(object, long) { if (object instanceof $root.NotificationCenter.EncryptedData) return object; + if (!$util.isObject(object)) + throw TypeError(".NotificationCenter.EncryptedData: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -245077,9 +199749,9 @@ export const NotificationCenter = $root.NotificationCenter = (() => { object.data = $util.newBuffer(object.data); } } - if (message.version != null && message.hasOwnProperty("version")) + if (message.version != null && Object.hasOwnProperty.call(message, "version")) object.version = message.version; - if (message.data != null && message.hasOwnProperty("data")) + if (message.data != null && Object.hasOwnProperty.call(message, "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; return object; }; @@ -245189,19 +199861,6 @@ export const NotificationCenter = $root.NotificationCenter = (() => { return writer; }; - /** - * Encodes the specified NotificationParameter message, length delimited. Does not implicitly {@link NotificationCenter.NotificationParameter.verify|verify} messages. - * @function encodeDelimited - * @memberof NotificationCenter.NotificationParameter - * @static - * @param {NotificationCenter.INotificationParameter} message NotificationParameter message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - NotificationParameter.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a NotificationParameter message from the specified reader or buffer. * @function decode @@ -245242,46 +199901,6 @@ export const NotificationCenter = $root.NotificationCenter = (() => { return message; }; - /** - * Decodes a NotificationParameter message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof NotificationCenter.NotificationParameter - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {NotificationCenter.NotificationParameter} NotificationParameter - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - NotificationParameter.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a NotificationParameter message. - * @function verify - * @memberof NotificationCenter.NotificationParameter - * @static - * @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) { - if (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"; - if (message.data != null && message.hasOwnProperty("data")) - if (!(message.data && typeof message.data.length === "number" || $util.isString(message.data))) - return "data: buffer expected"; - return null; - }; - /** * Creates a NotificationParameter message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -245293,6 +199912,8 @@ export const NotificationCenter = $root.NotificationCenter = (() => { NotificationParameter.fromObject = function fromObject(object, long) { if (object instanceof $root.NotificationCenter.NotificationParameter) return object; + if (!$util.isObject(object)) + throw TypeError(".NotificationCenter.NotificationParameter: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -245335,9 +199956,9 @@ export const NotificationCenter = $root.NotificationCenter = (() => { object.data = $util.newBuffer(object.data); } } - if (message.key != null && message.hasOwnProperty("key")) + if (message.key != null && Object.hasOwnProperty.call(message, "key")) object.key = message.key; - if (message.data != null && message.hasOwnProperty("data")) + if (message.data != null && Object.hasOwnProperty.call(message, "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; return object; }; @@ -245522,19 +200143,6 @@ export const NotificationCenter = $root.NotificationCenter = (() => { return writer; }; - /** - * Encodes the specified Notification message, length delimited. Does not implicitly {@link NotificationCenter.Notification.verify|verify} messages. - * @function encodeDelimited - * @memberof NotificationCenter.Notification - * @static - * @param {NotificationCenter.INotification} message Notification message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Notification.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a Notification message from the specified reader or buffer. * @function decode @@ -245610,132 +200218,6 @@ export const NotificationCenter = $root.NotificationCenter = (() => { return message; }; - /** - * Decodes a Notification message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof NotificationCenter.Notification - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {NotificationCenter.Notification} Notification - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Notification.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a Notification message. - * @function verify - * @memberof NotificationCenter.Notification - * @static - * @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) { - if (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: - return "type: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: - case 9: - case 10: - case 11: - case 12: - case 13: - case 14: - case 15: - case 16: - case 17: - case 18: - case 19: - case 20: - case 21: - case 22: - break; - } - if (message.category != null && message.hasOwnProperty("category")) - switch (message.category) { - default: - return "category: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - break; - } - if (message.sender != null && message.hasOwnProperty("sender")) { - let error = $root.GraphSync.GraphSyncRef.verify(message.sender, long + 1); - if (error) - return "sender." + error; - } - if (message.senderFullName != null && message.hasOwnProperty("senderFullName")) - 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); - if (error) - return "encryptedData." + error; - } - 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); - if (error) - return "refs." + error; - } - } - if (message.categories != null && message.hasOwnProperty("categories")) { - if (!Array.isArray(message.categories)) - return "categories: array expected"; - for (let i = 0; i < message.categories.length; ++i) - switch (message.categories[i]) { - default: - return "categories: enum value[] expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - break; - } - } - if (message.parameters != null && message.hasOwnProperty("parameters")) { - 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); - if (error) - return "parameters." + error; - } - } - return null; - }; - /** * Creates a Notification message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -245747,6 +200229,8 @@ export const NotificationCenter = $root.NotificationCenter = (() => { Notification.fromObject = function fromObject(object, long) { if (object instanceof $root.NotificationCenter.Notification) return object; + if (!$util.isObject(object)) + throw TypeError(".NotificationCenter.Notification: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -245893,14 +200377,14 @@ export const NotificationCenter = $root.NotificationCenter = (() => { break; } if (object.sender != null) { - if (typeof object.sender !== "object") + if (!$util.isObject(object.sender)) throw TypeError(".NotificationCenter.Notification.sender: object expected"); message.sender = $root.GraphSync.GraphSyncRef.fromObject(object.sender, long + 1); } if (object.senderFullName != null) message.senderFullName = String(object.senderFullName); if (object.encryptedData != null) { - if (typeof object.encryptedData !== "object") + if (!$util.isObject(object.encryptedData)) throw TypeError(".NotificationCenter.Notification.encryptedData: object expected"); message.encryptedData = $root.NotificationCenter.EncryptedData.fromObject(object.encryptedData, long + 1); } @@ -245909,7 +200393,7 @@ export const NotificationCenter = $root.NotificationCenter = (() => { throw TypeError(".NotificationCenter.Notification.refs: array expected"); message.refs = []; for (let i = 0; i < object.refs.length; ++i) { - if (typeof object.refs[i] !== "object") + if (!$util.isObject(object.refs[i])) throw TypeError(".NotificationCenter.Notification.refs: object expected"); message.refs[i] = $root.GraphSync.GraphSyncRef.fromObject(object.refs[i], long + 1); } @@ -245964,7 +200448,7 @@ export const NotificationCenter = $root.NotificationCenter = (() => { throw TypeError(".NotificationCenter.Notification.parameters: array expected"); message.parameters = []; for (let i = 0; i < object.parameters.length; ++i) { - if (typeof object.parameters[i] !== "object") + if (!$util.isObject(object.parameters[i])) throw TypeError(".NotificationCenter.Notification.parameters: object expected"); message.parameters[i] = $root.NotificationCenter.NotificationParameter.fromObject(object.parameters[i], long + 1); } @@ -246001,15 +200485,15 @@ export const NotificationCenter = $root.NotificationCenter = (() => { object.senderFullName = ""; object.encryptedData = null; } - if (message.type != null && message.hasOwnProperty("type")) + if (message.type != null && Object.hasOwnProperty.call(message, "type")) object.type = options.enums === String ? $root.NotificationCenter.NotificationType[message.type] === undefined ? message.type : $root.NotificationCenter.NotificationType[message.type] : message.type; - if (message.category != null && message.hasOwnProperty("category")) + if (message.category != null && Object.hasOwnProperty.call(message, "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")) + if (message.sender != null && Object.hasOwnProperty.call(message, "sender")) object.sender = $root.GraphSync.GraphSyncRef.toObject(message.sender, options, q + 1); - if (message.senderFullName != null && message.hasOwnProperty("senderFullName")) + if (message.senderFullName != null && Object.hasOwnProperty.call(message, "senderFullName")) object.senderFullName = message.senderFullName; - if (message.encryptedData != null && message.hasOwnProperty("encryptedData")) + if (message.encryptedData != null && Object.hasOwnProperty.call(message, "encryptedData")) object.encryptedData = $root.NotificationCenter.EncryptedData.toObject(message.encryptedData, options, q + 1); if (message.refs && message.refs.length) { object.refs = []; @@ -246156,19 +200640,6 @@ export const NotificationCenter = $root.NotificationCenter = (() => { return writer; }; - /** - * Encodes the specified NotificationReadMark message, length delimited. Does not implicitly {@link NotificationCenter.NotificationReadMark.verify|verify} messages. - * @function encodeDelimited - * @memberof NotificationCenter.NotificationReadMark - * @static - * @param {NotificationCenter.INotificationReadMark} message NotificationReadMark message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - NotificationReadMark.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a NotificationReadMark message from the specified reader or buffer. * @function decode @@ -246217,59 +200688,6 @@ export const NotificationCenter = $root.NotificationCenter = (() => { return message; }; - /** - * Decodes a NotificationReadMark message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof NotificationCenter.NotificationReadMark - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {NotificationCenter.NotificationReadMark} NotificationReadMark - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - NotificationReadMark.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a NotificationReadMark message. - * @function verify - * @memberof NotificationCenter.NotificationReadMark - * @static - * @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) { - if (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.notificationEdgeId != null && message.hasOwnProperty("notificationEdgeId")) - if (!$util.isInteger(message.notificationEdgeId) && !(message.notificationEdgeId && $util.isInteger(message.notificationEdgeId.low) && $util.isInteger(message.notificationEdgeId.high))) - return "notificationEdgeId: integer|Long expected"; - if (message.markEdgeId != null && message.hasOwnProperty("markEdgeId")) - if (!$util.isInteger(message.markEdgeId) && !(message.markEdgeId && $util.isInteger(message.markEdgeId.low) && $util.isInteger(message.markEdgeId.high))) - return "markEdgeId: integer|Long expected"; - if (message.readStatus != null && message.hasOwnProperty("readStatus")) - switch (message.readStatus) { - default: - return "readStatus: enum value expected"; - case 0: - case 1: - case 2: - case 3: - break; - } - return null; - }; - /** * Creates a NotificationReadMark message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -246281,6 +200699,8 @@ export const NotificationCenter = $root.NotificationCenter = (() => { NotificationReadMark.fromObject = function fromObject(object, long) { if (object instanceof $root.NotificationCenter.NotificationReadMark) return object; + if (!$util.isObject(object)) + throw TypeError(".NotificationCenter.NotificationReadMark: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -246373,23 +200793,23 @@ export const NotificationCenter = $root.NotificationCenter = (() => { object.markEdgeId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; object.readStatus = options.enums === String ? "NRS_UNSPECIFIED" : 0; } - if (message.uid != null && message.hasOwnProperty("uid")) + if (message.uid != null && Object.hasOwnProperty.call(message, "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 (message.notificationEdgeId != null && Object.hasOwnProperty.call(message, "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") 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 (message.markEdgeId != null && Object.hasOwnProperty.call(message, "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") 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; - if (message.readStatus != null && message.hasOwnProperty("readStatus")) + if (message.readStatus != null && Object.hasOwnProperty.call(message, "readStatus")) object.readStatus = options.enums === String ? $root.NotificationCenter.NotificationReadStatus[message.readStatus] === undefined ? message.readStatus : $root.NotificationCenter.NotificationReadStatus[message.readStatus] : message.readStatus; return object; }; @@ -246567,19 +200987,6 @@ export const NotificationCenter = $root.NotificationCenter = (() => { return writer; }; - /** - * Encodes the specified NotificationContent message, length delimited. Does not implicitly {@link NotificationCenter.NotificationContent.verify|verify} messages. - * @function encodeDelimited - * @memberof NotificationCenter.NotificationContent - * @static - * @param {NotificationCenter.INotificationContent} message NotificationContent message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - NotificationContent.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a NotificationContent message from the specified reader or buffer. * @function decode @@ -246650,99 +201057,6 @@ export const NotificationCenter = $root.NotificationCenter = (() => { return message; }; - /** - * Decodes a NotificationContent message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof NotificationCenter.NotificationContent - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {NotificationCenter.NotificationContent} NotificationContent - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - NotificationContent.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a NotificationContent message. - * @function verify - * @memberof NotificationCenter.NotificationContent - * @static - * @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) { - 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); - if (error) - return "notification." + error; - } - } - if (message.readStatus != null && message.hasOwnProperty("readStatus")) { - if (properties.type === 1) - return "type: multiple values"; - properties.type = 1; - switch (message.readStatus) { - default: - return "readStatus: enum value expected"; - case 0: - case 1: - case 2: - case 3: - break; - } - } - if (message.approvalStatus != null && message.hasOwnProperty("approvalStatus")) { - if (properties.type === 1) - return "type: multiple values"; - properties.type = 1; - switch (message.approvalStatus) { - default: - return "approvalStatus: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - break; - } - } - if (message.trimmingPoint != null && message.hasOwnProperty("trimmingPoint")) { - if (properties.type === 1) - return "type: multiple values"; - properties.type = 1; - if (typeof message.trimmingPoint !== "boolean") - return "trimmingPoint: boolean expected"; - } - if (message.clientTypeIDs != null && message.hasOwnProperty("clientTypeIDs")) { - if (!Array.isArray(message.clientTypeIDs)) - return "clientTypeIDs: array expected"; - for (let i = 0; i < message.clientTypeIDs.length; ++i) - if (!$util.isInteger(message.clientTypeIDs[i])) - return "clientTypeIDs: integer[] expected"; - } - if (message.deviceIDs != null && message.hasOwnProperty("deviceIDs")) { - if (!Array.isArray(message.deviceIDs)) - return "deviceIDs: array expected"; - for (let i = 0; i < message.deviceIDs.length; ++i) - if (!$util.isInteger(message.deviceIDs[i]) && !(message.deviceIDs[i] && $util.isInteger(message.deviceIDs[i].low) && $util.isInteger(message.deviceIDs[i].high))) - return "deviceIDs: integer|Long[] expected"; - } - return null; - }; - /** * Creates a NotificationContent message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -246754,13 +201068,15 @@ export const NotificationCenter = $root.NotificationCenter = (() => { NotificationContent.fromObject = function fromObject(object, long) { if (object instanceof $root.NotificationCenter.NotificationContent) return object; + if (!$util.isObject(object)) + throw TypeError(".NotificationCenter.NotificationContent: object expected"); 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") + if (!$util.isObject(object.notification)) throw TypeError(".NotificationCenter.NotificationContent.notification: object expected"); message.notification = $root.NotificationCenter.Notification.fromObject(object.notification, long + 1); } @@ -246863,22 +201179,22 @@ export const NotificationCenter = $root.NotificationCenter = (() => { object.clientTypeIDs = []; object.deviceIDs = []; } - if (message.notification != null && message.hasOwnProperty("notification")) { + if (message.notification != null && Object.hasOwnProperty.call(message, "notification")) { object.notification = $root.NotificationCenter.Notification.toObject(message.notification, options, q + 1); if (options.oneofs) object.type = "notification"; } - if (message.readStatus != null && message.hasOwnProperty("readStatus")) { + if (message.readStatus != null && Object.hasOwnProperty.call(message, "readStatus")) { object.readStatus = options.enums === String ? $root.NotificationCenter.NotificationReadStatus[message.readStatus] === undefined ? message.readStatus : $root.NotificationCenter.NotificationReadStatus[message.readStatus] : message.readStatus; if (options.oneofs) object.type = "readStatus"; } - if (message.approvalStatus != null && message.hasOwnProperty("approvalStatus")) { + if (message.approvalStatus != null && Object.hasOwnProperty.call(message, "approvalStatus")) { object.approvalStatus = options.enums === String ? $root.NotificationCenter.NotificationApprovalStatus[message.approvalStatus] === undefined ? message.approvalStatus : $root.NotificationCenter.NotificationApprovalStatus[message.approvalStatus] : message.approvalStatus; if (options.oneofs) object.type = "approvalStatus"; } - if (message.trimmingPoint != null && message.hasOwnProperty("trimmingPoint")) { + if (message.trimmingPoint != null && Object.hasOwnProperty.call(message, "trimmingPoint")) { object.trimmingPoint = message.trimmingPoint; if (options.oneofs) object.type = "trimmingPoint"; @@ -247017,19 +201333,6 @@ export const NotificationCenter = $root.NotificationCenter = (() => { return writer; }; - /** - * Encodes the specified NotificationWrapper message, length delimited. Does not implicitly {@link NotificationCenter.NotificationWrapper.verify|verify} messages. - * @function encodeDelimited - * @memberof NotificationCenter.NotificationWrapper - * @static - * @param {NotificationCenter.INotificationWrapper} message NotificationWrapper message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - NotificationWrapper.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a NotificationWrapper message from the specified reader or buffer. * @function decode @@ -247074,51 +201377,6 @@ export const NotificationCenter = $root.NotificationCenter = (() => { return message; }; - /** - * Decodes a NotificationWrapper message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof NotificationCenter.NotificationWrapper - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {NotificationCenter.NotificationWrapper} NotificationWrapper - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - NotificationWrapper.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a NotificationWrapper message. - * @function verify - * @memberof NotificationCenter.NotificationWrapper - * @static - * @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) { - if (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); - if (error) - return "content." + error; - } - if (message.timestamp != null && message.hasOwnProperty("timestamp")) - if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high))) - return "timestamp: integer|Long expected"; - return null; - }; - /** * Creates a NotificationWrapper message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -247130,6 +201388,8 @@ export const NotificationCenter = $root.NotificationCenter = (() => { NotificationWrapper.fromObject = function fromObject(object, long) { if (object instanceof $root.NotificationCenter.NotificationWrapper) return object; + if (!$util.isObject(object)) + throw TypeError(".NotificationCenter.NotificationWrapper: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -247141,7 +201401,7 @@ export const NotificationCenter = $root.NotificationCenter = (() => { else if (object.uid.length >= 0) message.uid = object.uid; if (object.content != null) { - if (typeof object.content !== "object") + if (!$util.isObject(object.content)) throw TypeError(".NotificationCenter.NotificationWrapper.content: object expected"); message.content = $root.NotificationCenter.NotificationContent.fromObject(object.content, long + 1); } @@ -247189,11 +201449,11 @@ export const NotificationCenter = $root.NotificationCenter = (() => { } else object.timestamp = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; } - if (message.uid != null && message.hasOwnProperty("uid")) + if (message.uid != null && Object.hasOwnProperty.call(message, "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")) + if (message.content != null && Object.hasOwnProperty.call(message, "content")) object.content = $root.NotificationCenter.NotificationContent.toObject(message.content, options, q + 1); - if (message.timestamp != null && message.hasOwnProperty("timestamp")) + if (message.timestamp != null && Object.hasOwnProperty.call(message, "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") @@ -247321,19 +201581,6 @@ export const NotificationCenter = $root.NotificationCenter = (() => { return writer; }; - /** - * Encodes the specified NotificationSync message, length delimited. Does not implicitly {@link NotificationCenter.NotificationSync.verify|verify} messages. - * @function encodeDelimited - * @memberof NotificationCenter.NotificationSync - * @static - * @param {NotificationCenter.INotificationSync} message NotificationSync message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - NotificationSync.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a NotificationSync message from the specified reader or buffer. * @function decode @@ -247380,55 +201627,6 @@ export const NotificationCenter = $root.NotificationCenter = (() => { return message; }; - /** - * Decodes a NotificationSync message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof NotificationCenter.NotificationSync - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {NotificationCenter.NotificationSync} NotificationSync - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - NotificationSync.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a NotificationSync message. - * @function verify - * @memberof NotificationCenter.NotificationSync - * @static - * @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) { - if (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); - if (error) - return "data." + error; - } - } - 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"; - if (message.hasMore != null && message.hasOwnProperty("hasMore")) - if (typeof message.hasMore !== "boolean") - return "hasMore: boolean expected"; - return null; - }; - /** * Creates a NotificationSync message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -247440,6 +201638,8 @@ export const NotificationCenter = $root.NotificationCenter = (() => { NotificationSync.fromObject = function fromObject(object, long) { if (object instanceof $root.NotificationCenter.NotificationSync) return object; + if (!$util.isObject(object)) + throw TypeError(".NotificationCenter.NotificationSync: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -247450,7 +201650,7 @@ export const NotificationCenter = $root.NotificationCenter = (() => { throw TypeError(".NotificationCenter.NotificationSync.data: array expected"); message.data = []; for (let i = 0; i < object.data.length; ++i) { - if (typeof object.data[i] !== "object") + if (!$util.isObject(object.data[i])) throw TypeError(".NotificationCenter.NotificationSync.data: object expected"); message.data[i] = $root.NotificationCenter.NotificationWrapper.fromObject(object.data[i], long + 1); } @@ -247501,14 +201701,14 @@ export const NotificationCenter = $root.NotificationCenter = (() => { for (let j = 0; j < message.data.length; ++j) object.data[j] = $root.NotificationCenter.NotificationWrapper.toObject(message.data[j], options, q + 1); } - if (message.syncPoint != null && message.hasOwnProperty("syncPoint")) + if (message.syncPoint != null && Object.hasOwnProperty.call(message, "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") 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.hasMore != null && message.hasOwnProperty("hasMore")) + if (message.hasMore != null && Object.hasOwnProperty.call(message, "hasMore")) object.hasMore = message.hasMore; return object; }; @@ -247618,19 +201818,6 @@ export const NotificationCenter = $root.NotificationCenter = (() => { return writer; }; - /** - * Encodes the specified ReadStatusUpdate message, length delimited. Does not implicitly {@link NotificationCenter.ReadStatusUpdate.verify|verify} messages. - * @function encodeDelimited - * @memberof NotificationCenter.ReadStatusUpdate - * @static - * @param {NotificationCenter.IReadStatusUpdate} message ReadStatusUpdate message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ReadStatusUpdate.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a ReadStatusUpdate message from the specified reader or buffer. * @function decode @@ -247671,53 +201858,6 @@ export const NotificationCenter = $root.NotificationCenter = (() => { return message; }; - /** - * Decodes a ReadStatusUpdate message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof NotificationCenter.ReadStatusUpdate - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {NotificationCenter.ReadStatusUpdate} ReadStatusUpdate - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ReadStatusUpdate.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a ReadStatusUpdate message. - * @function verify - * @memberof NotificationCenter.ReadStatusUpdate - * @static - * @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) { - if (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"; - if (message.status != null && message.hasOwnProperty("status")) - switch (message.status) { - default: - return "status: enum value expected"; - case 0: - case 1: - case 2: - case 3: - break; - } - return null; - }; - /** * Creates a ReadStatusUpdate message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -247729,6 +201869,8 @@ export const NotificationCenter = $root.NotificationCenter = (() => { ReadStatusUpdate.fromObject = function fromObject(object, long) { if (object instanceof $root.NotificationCenter.ReadStatusUpdate) return object; + if (!$util.isObject(object)) + throw TypeError(".NotificationCenter.ReadStatusUpdate: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -247793,9 +201935,9 @@ export const NotificationCenter = $root.NotificationCenter = (() => { } object.status = options.enums === String ? "NRS_UNSPECIFIED" : 0; } - if (message.notificationUid != null && message.hasOwnProperty("notificationUid")) + if (message.notificationUid != null && Object.hasOwnProperty.call(message, "notificationUid")) object.notificationUid = options.bytes === String ? $util.base64.encode(message.notificationUid, 0, message.notificationUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.notificationUid) : message.notificationUid; - if (message.status != null && message.hasOwnProperty("status")) + if (message.status != null && Object.hasOwnProperty.call(message, "status")) object.status = options.enums === String ? $root.NotificationCenter.NotificationReadStatus[message.status] === undefined ? message.status : $root.NotificationCenter.NotificationReadStatus[message.status] : message.status; return object; }; @@ -247905,19 +202047,6 @@ export const NotificationCenter = $root.NotificationCenter = (() => { return writer; }; - /** - * Encodes the specified ApprovalStatusUpdate message, length delimited. Does not implicitly {@link NotificationCenter.ApprovalStatusUpdate.verify|verify} messages. - * @function encodeDelimited - * @memberof NotificationCenter.ApprovalStatusUpdate - * @static - * @param {NotificationCenter.IApprovalStatusUpdate} message ApprovalStatusUpdate message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ApprovalStatusUpdate.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes an ApprovalStatusUpdate message from the specified reader or buffer. * @function decode @@ -247958,54 +202087,6 @@ export const NotificationCenter = $root.NotificationCenter = (() => { return message; }; - /** - * Decodes an ApprovalStatusUpdate message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof NotificationCenter.ApprovalStatusUpdate - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {NotificationCenter.ApprovalStatusUpdate} ApprovalStatusUpdate - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ApprovalStatusUpdate.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an ApprovalStatusUpdate message. - * @function verify - * @memberof NotificationCenter.ApprovalStatusUpdate - * @static - * @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) { - if (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"; - if (message.status != null && message.hasOwnProperty("status")) - switch (message.status) { - default: - return "status: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - break; - } - return null; - }; - /** * Creates an ApprovalStatusUpdate message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -248017,6 +202098,8 @@ export const NotificationCenter = $root.NotificationCenter = (() => { ApprovalStatusUpdate.fromObject = function fromObject(object, long) { if (object instanceof $root.NotificationCenter.ApprovalStatusUpdate) return object; + if (!$util.isObject(object)) + throw TypeError(".NotificationCenter.ApprovalStatusUpdate: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -248085,9 +202168,9 @@ export const NotificationCenter = $root.NotificationCenter = (() => { } object.status = options.enums === String ? "NAS_UNSPECIFIED" : 0; } - if (message.notificationUid != null && message.hasOwnProperty("notificationUid")) + if (message.notificationUid != null && Object.hasOwnProperty.call(message, "notificationUid")) object.notificationUid = options.bytes === String ? $util.base64.encode(message.notificationUid, 0, message.notificationUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.notificationUid) : message.notificationUid; - if (message.status != null && message.hasOwnProperty("status")) + if (message.status != null && Object.hasOwnProperty.call(message, "status")) object.status = options.enums === String ? $root.NotificationCenter.NotificationApprovalStatus[message.status] === undefined ? message.status : $root.NotificationCenter.NotificationApprovalStatus[message.status] : message.status; return object; }; @@ -248188,19 +202271,6 @@ export const NotificationCenter = $root.NotificationCenter = (() => { return writer; }; - /** - * Encodes the specified ProcessMarkReadEventsRequest message, length delimited. Does not implicitly {@link NotificationCenter.ProcessMarkReadEventsRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof NotificationCenter.ProcessMarkReadEventsRequest - * @static - * @param {NotificationCenter.IProcessMarkReadEventsRequest} message ProcessMarkReadEventsRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ProcessMarkReadEventsRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a ProcessMarkReadEventsRequest message from the specified reader or buffer. * @function decode @@ -248239,49 +202309,6 @@ export const NotificationCenter = $root.NotificationCenter = (() => { return message; }; - /** - * Decodes a ProcessMarkReadEventsRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof NotificationCenter.ProcessMarkReadEventsRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {NotificationCenter.ProcessMarkReadEventsRequest} ProcessMarkReadEventsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ProcessMarkReadEventsRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a ProcessMarkReadEventsRequest message. - * @function verify - * @memberof NotificationCenter.ProcessMarkReadEventsRequest - * @static - * @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) { - if (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); - if (error) - return "readStatusUpdate." + error; - } - } - return null; - }; - /** * Creates a ProcessMarkReadEventsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -248293,6 +202320,8 @@ export const NotificationCenter = $root.NotificationCenter = (() => { ProcessMarkReadEventsRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.NotificationCenter.ProcessMarkReadEventsRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".NotificationCenter.ProcessMarkReadEventsRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -248303,7 +202332,7 @@ export const NotificationCenter = $root.NotificationCenter = (() => { throw TypeError(".NotificationCenter.ProcessMarkReadEventsRequest.readStatusUpdate: array expected"); message.readStatusUpdate = []; for (let i = 0; i < object.readStatusUpdate.length; ++i) { - if (typeof object.readStatusUpdate[i] !== "object") + if (!$util.isObject(object.readStatusUpdate[i])) throw TypeError(".NotificationCenter.ProcessMarkReadEventsRequest.readStatusUpdate: object expected"); message.readStatusUpdate[i] = $root.NotificationCenter.ReadStatusUpdate.fromObject(object.readStatusUpdate[i], long + 1); } @@ -248497,19 +202526,6 @@ export const NotificationCenter = $root.NotificationCenter = (() => { return writer; }; - /** - * Encodes the specified NotificationSendRequest message, length delimited. Does not implicitly {@link NotificationCenter.NotificationSendRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof NotificationCenter.NotificationSendRequest - * @static - * @param {NotificationCenter.INotificationSendRequest} message NotificationSendRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - NotificationSendRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a NotificationSendRequest message from the specified reader or buffer. * @function decode @@ -248578,74 +202594,6 @@ export const NotificationCenter = $root.NotificationCenter = (() => { return message; }; - /** - * Decodes a NotificationSendRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof NotificationCenter.NotificationSendRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {NotificationCenter.NotificationSendRequest} NotificationSendRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - NotificationSendRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a NotificationSendRequest message. - * @function verify - * @memberof NotificationCenter.NotificationSendRequest - * @static - * @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) { - 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); - if (error) - return "recipients." + error; - } - } - if (message.notification != null && message.hasOwnProperty("notification")) { - let error = $root.NotificationCenter.Notification.verify(message.notification, long + 1); - if (error) - return "notification." + error; - } - if (message.clientTypeIDs != null && message.hasOwnProperty("clientTypeIDs")) { - if (!Array.isArray(message.clientTypeIDs)) - return "clientTypeIDs: array expected"; - for (let i = 0; i < message.clientTypeIDs.length; ++i) - if (!$util.isInteger(message.clientTypeIDs[i])) - return "clientTypeIDs: integer[] expected"; - } - if (message.deviceIDs != null && message.hasOwnProperty("deviceIDs")) { - if (!Array.isArray(message.deviceIDs)) - return "deviceIDs: array expected"; - for (let i = 0; i < message.deviceIDs.length; ++i) - if (!$util.isInteger(message.deviceIDs[i]) && !(message.deviceIDs[i] && $util.isInteger(message.deviceIDs[i].low) && $util.isInteger(message.deviceIDs[i].high))) - return "deviceIDs: integer|Long[] expected"; - } - if (message.predefinedUid != null && message.hasOwnProperty("predefinedUid")) { - properties._predefinedUid = 1; - if (!(message.predefinedUid && typeof message.predefinedUid.length === "number" || $util.isString(message.predefinedUid))) - return "predefinedUid: buffer expected"; - } - return null; - }; - /** * Creates a NotificationSendRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -248657,6 +202605,8 @@ export const NotificationCenter = $root.NotificationCenter = (() => { NotificationSendRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.NotificationCenter.NotificationSendRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".NotificationCenter.NotificationSendRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -248667,13 +202617,13 @@ export const NotificationCenter = $root.NotificationCenter = (() => { throw TypeError(".NotificationCenter.NotificationSendRequest.recipients: array expected"); message.recipients = []; for (let i = 0; i < object.recipients.length; ++i) { - if (typeof object.recipients[i] !== "object") + if (!$util.isObject(object.recipients[i])) throw TypeError(".NotificationCenter.NotificationSendRequest.recipients: object expected"); message.recipients[i] = $root.GraphSync.GraphSyncRef.fromObject(object.recipients[i], long + 1); } } if (object.notification != null) { - if (typeof object.notification !== "object") + if (!$util.isObject(object.notification)) throw TypeError(".NotificationCenter.NotificationSendRequest.notification: object expected"); message.notification = $root.NotificationCenter.Notification.fromObject(object.notification, long + 1); } @@ -248735,7 +202685,7 @@ export const NotificationCenter = $root.NotificationCenter = (() => { for (let j = 0; j < message.recipients.length; ++j) object.recipients[j] = $root.GraphSync.GraphSyncRef.toObject(message.recipients[j], options, q + 1); } - if (message.notification != null && message.hasOwnProperty("notification")) + if (message.notification != null && Object.hasOwnProperty.call(message, "notification")) object.notification = $root.NotificationCenter.Notification.toObject(message.notification, options, q + 1); if (message.clientTypeIDs && message.clientTypeIDs.length) { object.clientTypeIDs = []; @@ -248752,7 +202702,7 @@ export const NotificationCenter = $root.NotificationCenter = (() => { 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]; } - if (message.predefinedUid != null && message.hasOwnProperty("predefinedUid")) { + if (message.predefinedUid != null && Object.hasOwnProperty.call(message, "predefinedUid")) { object.predefinedUid = options.bytes === String ? $util.base64.encode(message.predefinedUid, 0, message.predefinedUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.predefinedUid) : message.predefinedUid; if (options.oneofs) object._predefinedUid = "predefinedUid"; @@ -248856,19 +202806,6 @@ export const NotificationCenter = $root.NotificationCenter = (() => { return writer; }; - /** - * Encodes the specified NotificationsSendRequest message, length delimited. Does not implicitly {@link NotificationCenter.NotificationsSendRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof NotificationCenter.NotificationsSendRequest - * @static - * @param {NotificationCenter.INotificationsSendRequest} message NotificationsSendRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - NotificationsSendRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a NotificationsSendRequest message from the specified reader or buffer. * @function decode @@ -248907,49 +202844,6 @@ export const NotificationCenter = $root.NotificationCenter = (() => { return message; }; - /** - * Decodes a NotificationsSendRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof NotificationCenter.NotificationsSendRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {NotificationCenter.NotificationsSendRequest} NotificationsSendRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - NotificationsSendRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a NotificationsSendRequest message. - * @function verify - * @memberof NotificationCenter.NotificationsSendRequest - * @static - * @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) { - if (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); - if (error) - return "notifications." + error; - } - } - return null; - }; - /** * Creates a NotificationsSendRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -248961,6 +202855,8 @@ export const NotificationCenter = $root.NotificationCenter = (() => { NotificationsSendRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.NotificationCenter.NotificationsSendRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".NotificationCenter.NotificationsSendRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -248971,7 +202867,7 @@ export const NotificationCenter = $root.NotificationCenter = (() => { throw TypeError(".NotificationCenter.NotificationsSendRequest.notifications: array expected"); message.notifications = []; for (let i = 0; i < object.notifications.length; ++i) { - if (typeof object.notifications[i] !== "object") + if (!$util.isObject(object.notifications[i])) throw TypeError(".NotificationCenter.NotificationsSendRequest.notifications: object expected"); message.notifications[i] = $root.NotificationCenter.NotificationSendRequest.fromObject(object.notifications[i], long + 1); } @@ -249100,19 +202996,6 @@ export const NotificationCenter = $root.NotificationCenter = (() => { return writer; }; - /** - * Encodes the specified NotificationSyncRequest message, length delimited. Does not implicitly {@link NotificationCenter.NotificationSyncRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof NotificationCenter.NotificationSyncRequest - * @static - * @param {NotificationCenter.INotificationSyncRequest} message NotificationSyncRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - NotificationSyncRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a NotificationSyncRequest message from the specified reader or buffer. * @function decode @@ -249149,43 +203032,6 @@ export const NotificationCenter = $root.NotificationCenter = (() => { return message; }; - /** - * Decodes a NotificationSyncRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof NotificationCenter.NotificationSyncRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {NotificationCenter.NotificationSyncRequest} NotificationSyncRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - NotificationSyncRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a NotificationSyncRequest message. - * @function verify - * @memberof NotificationCenter.NotificationSyncRequest - * @static - * @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) { - if (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"; - return null; - }; - /** * Creates a NotificationSyncRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -249197,6 +203043,8 @@ export const NotificationCenter = $root.NotificationCenter = (() => { NotificationSyncRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.NotificationCenter.NotificationSyncRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".NotificationCenter.NotificationSyncRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -249237,7 +203085,7 @@ export const NotificationCenter = $root.NotificationCenter = (() => { object.syncPoint = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; } else object.syncPoint = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; - if (message.syncPoint != null && message.hasOwnProperty("syncPoint")) + if (message.syncPoint != null && Object.hasOwnProperty.call(message, "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") @@ -249352,19 +203200,6 @@ export const NotificationCenter = $root.NotificationCenter = (() => { return writer; }; - /** - * Encodes the specified SentNotification message, length delimited. Does not implicitly {@link NotificationCenter.SentNotification.verify|verify} messages. - * @function encodeDelimited - * @memberof NotificationCenter.SentNotification - * @static - * @param {NotificationCenter.ISentNotification} message SentNotification message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SentNotification.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a SentNotification message from the specified reader or buffer. * @function decode @@ -249405,46 +203240,6 @@ export const NotificationCenter = $root.NotificationCenter = (() => { return message; }; - /** - * Decodes a SentNotification message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof NotificationCenter.SentNotification - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {NotificationCenter.SentNotification} SentNotification - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SentNotification.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a SentNotification message. - * @function verify - * @memberof NotificationCenter.SentNotification - * @static - * @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) { - if (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"; - if (message.notificationUid != null && message.hasOwnProperty("notificationUid")) - if (!(message.notificationUid && typeof message.notificationUid.length === "number" || $util.isString(message.notificationUid))) - return "notificationUid: buffer expected"; - return null; - }; - /** * Creates a SentNotification message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -249456,6 +203251,8 @@ export const NotificationCenter = $root.NotificationCenter = (() => { SentNotification.fromObject = function fromObject(object, long) { if (object instanceof $root.NotificationCenter.SentNotification) return object; + if (!$util.isObject(object)) + throw TypeError(".NotificationCenter.SentNotification: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -249498,9 +203295,9 @@ export const NotificationCenter = $root.NotificationCenter = (() => { object.notificationUid = $util.newBuffer(object.notificationUid); } } - if (message.user != null && message.hasOwnProperty("user")) + if (message.user != null && Object.hasOwnProperty.call(message, "user")) object.user = message.user; - if (message.notificationUid != null && message.hasOwnProperty("notificationUid")) + if (message.notificationUid != null && Object.hasOwnProperty.call(message, "notificationUid")) object.notificationUid = options.bytes === String ? $util.base64.encode(message.notificationUid, 0, message.notificationUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.notificationUid) : message.notificationUid; return object; }; @@ -249612,19 +203409,6 @@ export const NotificationCenter = $root.NotificationCenter = (() => { return writer; }; - /** - * Encodes the specified NotificationsApprovalStatusUpdateRequest message, length delimited. Does not implicitly {@link NotificationCenter.NotificationsApprovalStatusUpdateRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof NotificationCenter.NotificationsApprovalStatusUpdateRequest - * @static - * @param {NotificationCenter.INotificationsApprovalStatusUpdateRequest} message NotificationsApprovalStatusUpdateRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - NotificationsApprovalStatusUpdateRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a NotificationsApprovalStatusUpdateRequest message from the specified reader or buffer. * @function decode @@ -249667,60 +203451,6 @@ export const NotificationCenter = $root.NotificationCenter = (() => { return message; }; - /** - * Decodes a NotificationsApprovalStatusUpdateRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof NotificationCenter.NotificationsApprovalStatusUpdateRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {NotificationCenter.NotificationsApprovalStatusUpdateRequest} NotificationsApprovalStatusUpdateRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - NotificationsApprovalStatusUpdateRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a NotificationsApprovalStatusUpdateRequest message. - * @function verify - * @memberof NotificationCenter.NotificationsApprovalStatusUpdateRequest - * @static - * @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) { - if (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: - return "status: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - break; - } - 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.SentNotification.verify(message.notifications[i], long + 1); - if (error) - return "notifications." + error; - } - } - return null; - }; - /** * Creates a NotificationsApprovalStatusUpdateRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -249732,6 +203462,8 @@ export const NotificationCenter = $root.NotificationCenter = (() => { NotificationsApprovalStatusUpdateRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.NotificationCenter.NotificationsApprovalStatusUpdateRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".NotificationCenter.NotificationsApprovalStatusUpdateRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -249770,7 +203502,7 @@ export const NotificationCenter = $root.NotificationCenter = (() => { throw TypeError(".NotificationCenter.NotificationsApprovalStatusUpdateRequest.notifications: array expected"); message.notifications = []; for (let i = 0; i < object.notifications.length; ++i) { - if (typeof object.notifications[i] !== "object") + if (!$util.isObject(object.notifications[i])) throw TypeError(".NotificationCenter.NotificationsApprovalStatusUpdateRequest.notifications: object expected"); message.notifications[i] = $root.NotificationCenter.SentNotification.fromObject(object.notifications[i], long + 1); } @@ -249799,7 +203531,7 @@ export const NotificationCenter = $root.NotificationCenter = (() => { object.notifications = []; if (options.defaults) object.status = options.enums === String ? "NAS_UNSPECIFIED" : 0; - if (message.status != null && message.hasOwnProperty("status")) + if (message.status != null && Object.hasOwnProperty.call(message, "status")) object.status = options.enums === String ? $root.NotificationCenter.NotificationApprovalStatus[message.status] === undefined ? message.status : $root.NotificationCenter.NotificationApprovalStatus[message.status] : message.status; if (message.notifications && message.notifications.length) { object.notifications = []; @@ -249985,19 +203717,6 @@ export const GraphSync = $root.GraphSync = (() => { return writer; }; - /** - * Encodes the specified GraphSyncRef message, length delimited. Does not implicitly {@link GraphSync.GraphSyncRef.verify|verify} messages. - * @function encodeDelimited - * @memberof GraphSync.GraphSyncRef - * @static - * @param {GraphSync.IGraphSyncRef} message GraphSyncRef message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GraphSyncRef.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a GraphSyncRef message from the specified reader or buffer. * @function decode @@ -250042,71 +203761,6 @@ export const GraphSync = $root.GraphSync = (() => { return message; }; - /** - * Decodes a GraphSyncRef message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof GraphSync.GraphSyncRef - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {GraphSync.GraphSyncRef} GraphSyncRef - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GraphSyncRef.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a GraphSyncRef message. - * @function verify - * @memberof GraphSync.GraphSyncRef - * @static - * @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) { - if (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: - return "type: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: - case 9: - case 10: - case 11: - case 12: - case 13: - case 14: - case 15: - case 16: - case 17: - case 18: - break; - } - if (message.value != null && message.hasOwnProperty("value")) - if (!(message.value && typeof message.value.length === "number" || $util.isString(message.value))) - return "value: buffer expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - return null; - }; - /** * Creates a GraphSyncRef message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -250118,6 +203772,8 @@ export const GraphSync = $root.GraphSync = (() => { GraphSyncRef.fromObject = function fromObject(object, long) { if (object instanceof $root.GraphSync.GraphSyncRef) return object; + if (!$util.isObject(object)) + throw TypeError(".GraphSync.GraphSyncRef: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -250245,11 +203901,11 @@ export const GraphSync = $root.GraphSync = (() => { } object.name = ""; } - if (message.type != null && message.hasOwnProperty("type")) + if (message.type != null && Object.hasOwnProperty.call(message, "type")) object.type = options.enums === String ? $root.GraphSync.RefType[message.type] === undefined ? message.type : $root.GraphSync.RefType[message.type] : message.type; - if (message.value != null && message.hasOwnProperty("value")) + if (message.value != null && Object.hasOwnProperty.call(message, "value")) object.value = options.bytes === String ? $util.base64.encode(message.value, 0, message.value.length) : options.bytes === Array ? Array.prototype.slice.call(message.value) : message.value; - if (message.name != null && message.hasOwnProperty("name")) + if (message.name != null && Object.hasOwnProperty.call(message, "name")) object.name = message.name; return object; }; @@ -250417,19 +204073,6 @@ export const GraphSync = $root.GraphSync = (() => { return writer; }; - /** - * Encodes the specified GraphSyncActor message, length delimited. Does not implicitly {@link GraphSync.GraphSyncActor.verify|verify} messages. - * @function encodeDelimited - * @memberof GraphSync.GraphSyncActor - * @static - * @param {GraphSync.IGraphSyncActor} message GraphSyncActor message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GraphSyncActor.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a GraphSyncActor message from the specified reader or buffer. * @function decode @@ -250478,58 +204121,6 @@ export const GraphSync = $root.GraphSync = (() => { return message; }; - /** - * Decodes a GraphSyncActor message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof GraphSync.GraphSyncActor - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {GraphSync.GraphSyncActor} GraphSyncActor - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GraphSyncActor.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a GraphSyncActor message. - * @function verify - * @memberof GraphSync.GraphSyncActor - * @static - * @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) { - if (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: - return "type: enum value expected"; - case 0: - case 1: - case 2: - break; - } - if (message.id != null && message.hasOwnProperty("id")) - if (!(message.id && typeof message.id.length === "number" || $util.isString(message.id))) - return "id: buffer expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.effectiveUserId != null && message.hasOwnProperty("effectiveUserId")) - if (!(message.effectiveUserId && typeof message.effectiveUserId.length === "number" || $util.isString(message.effectiveUserId))) - return "effectiveUserId: buffer expected"; - return null; - }; - /** * Creates a GraphSyncActor message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -250541,6 +204132,8 @@ export const GraphSync = $root.GraphSync = (() => { GraphSyncActor.fromObject = function fromObject(object, long) { if (object instanceof $root.GraphSync.GraphSyncActor) return object; + if (!$util.isObject(object)) + throw TypeError(".GraphSync.GraphSyncActor: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -250616,13 +204209,13 @@ export const GraphSync = $root.GraphSync = (() => { object.effectiveUserId = $util.newBuffer(object.effectiveUserId); } } - if (message.type != null && message.hasOwnProperty("type")) + if (message.type != null && Object.hasOwnProperty.call(message, "type")) object.type = options.enums === String ? $root.GraphSync.GraphSyncActorType[message.type] === undefined ? message.type : $root.GraphSync.GraphSyncActorType[message.type] : message.type; - if (message.id != null && message.hasOwnProperty("id")) + if (message.id != null && Object.hasOwnProperty.call(message, "id")) object.id = options.bytes === String ? $util.base64.encode(message.id, 0, message.id.length) : options.bytes === Array ? Array.prototype.slice.call(message.id) : message.id; - if (message.name != null && message.hasOwnProperty("name")) + if (message.name != null && Object.hasOwnProperty.call(message, "name")) object.name = message.name; - if (message.effectiveUserId != null && message.hasOwnProperty("effectiveUserId")) + if (message.effectiveUserId != null && Object.hasOwnProperty.call(message, "effectiveUserId")) object.effectiveUserId = options.bytes === String ? $util.base64.encode(message.effectiveUserId, 0, message.effectiveUserId.length) : options.bytes === Array ? Array.prototype.slice.call(message.effectiveUserId) : message.effectiveUserId; return object; }; @@ -250765,19 +204358,6 @@ export const GraphSync = $root.GraphSync = (() => { return writer; }; - /** - * Encodes the specified GraphSyncData message, length delimited. Does not implicitly {@link GraphSync.GraphSyncData.verify|verify} messages. - * @function encodeDelimited - * @memberof GraphSync.GraphSyncData - * @static - * @param {GraphSync.IGraphSyncData} message GraphSyncData message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GraphSyncData.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a GraphSyncData message from the specified reader or buffer. * @function decode @@ -250830,67 +204410,6 @@ export const GraphSync = $root.GraphSync = (() => { return message; }; - /** - * Decodes a GraphSyncData message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof GraphSync.GraphSyncData - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {GraphSync.GraphSyncData} GraphSyncData - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GraphSyncData.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a GraphSyncData message. - * @function verify - * @memberof GraphSync.GraphSyncData - * @static - * @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) { - if (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: - return "type: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - break; - } - if (message.ref != null && message.hasOwnProperty("ref")) { - let error = $root.GraphSync.GraphSyncRef.verify(message.ref, long + 1); - if (error) - return "ref." + error; - } - if (message.parentRef != null && message.hasOwnProperty("parentRef")) { - let error = $root.GraphSync.GraphSyncRef.verify(message.parentRef, long + 1); - if (error) - return "parentRef." + error; - } - if (message.content != null && message.hasOwnProperty("content")) - if (!(message.content && typeof message.content.length === "number" || $util.isString(message.content))) - return "content: buffer expected"; - if (message.path != null && message.hasOwnProperty("path")) - if (!$util.isString(message.path)) - return "path: string expected"; - return null; - }; - /** * Creates a GraphSyncData message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -250902,6 +204421,8 @@ export const GraphSync = $root.GraphSync = (() => { GraphSyncData.fromObject = function fromObject(object, long) { if (object instanceof $root.GraphSync.GraphSyncData) return object; + if (!$util.isObject(object)) + throw TypeError(".GraphSync.GraphSyncData: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -250936,12 +204457,12 @@ export const GraphSync = $root.GraphSync = (() => { break; } if (object.ref != null) { - if (typeof object.ref !== "object") + if (!$util.isObject(object.ref)) throw TypeError(".GraphSync.GraphSyncData.ref: object expected"); message.ref = $root.GraphSync.GraphSyncRef.fromObject(object.ref, long + 1); } if (object.parentRef != null) { - if (typeof object.parentRef !== "object") + if (!$util.isObject(object.parentRef)) throw TypeError(".GraphSync.GraphSyncData.parentRef: object expected"); message.parentRef = $root.GraphSync.GraphSyncRef.fromObject(object.parentRef, long + 1); } @@ -250985,15 +204506,15 @@ export const GraphSync = $root.GraphSync = (() => { } object.path = ""; } - if (message.type != null && message.hasOwnProperty("type")) + if (message.type != null && Object.hasOwnProperty.call(message, "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")) + if (message.ref != null && Object.hasOwnProperty.call(message, "ref")) object.ref = $root.GraphSync.GraphSyncRef.toObject(message.ref, options, q + 1); - if (message.parentRef != null && message.hasOwnProperty("parentRef")) + if (message.parentRef != null && Object.hasOwnProperty.call(message, "parentRef")) object.parentRef = $root.GraphSync.GraphSyncRef.toObject(message.parentRef, options, q + 1); - if (message.content != null && message.hasOwnProperty("content")) + if (message.content != null && Object.hasOwnProperty.call(message, "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")) + if (message.path != null && Object.hasOwnProperty.call(message, "path")) object.path = message.path; return object; }; @@ -251114,19 +204635,6 @@ export const GraphSync = $root.GraphSync = (() => { return writer; }; - /** - * Encodes the specified GraphSyncDataPlus message, length delimited. Does not implicitly {@link GraphSync.GraphSyncDataPlus.verify|verify} messages. - * @function encodeDelimited - * @memberof GraphSync.GraphSyncDataPlus - * @static - * @param {GraphSync.IGraphSyncDataPlus} message GraphSyncDataPlus message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GraphSyncDataPlus.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a GraphSyncDataPlus message from the specified reader or buffer. * @function decode @@ -251171,53 +204679,6 @@ export const GraphSync = $root.GraphSync = (() => { return message; }; - /** - * Decodes a GraphSyncDataPlus message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof GraphSync.GraphSyncDataPlus - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {GraphSync.GraphSyncDataPlus} GraphSyncDataPlus - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GraphSyncDataPlus.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a GraphSyncDataPlus message. - * @function verify - * @memberof GraphSync.GraphSyncDataPlus - * @static - * @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) { - if (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); - if (error) - return "data." + error; - } - if (message.timestamp != null && message.hasOwnProperty("timestamp")) - 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); - if (error) - return "actor." + error; - } - return null; - }; - /** * Creates a GraphSyncDataPlus message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -251229,13 +204690,15 @@ export const GraphSync = $root.GraphSync = (() => { GraphSyncDataPlus.fromObject = function fromObject(object, long) { if (object instanceof $root.GraphSync.GraphSyncDataPlus) return object; + if (!$util.isObject(object)) + throw TypeError(".GraphSync.GraphSyncDataPlus: object expected"); 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") + if (!$util.isObject(object.data)) throw TypeError(".GraphSync.GraphSyncDataPlus.data: object expected"); message.data = $root.GraphSync.GraphSyncData.fromObject(object.data, long + 1); } @@ -251249,7 +204712,7 @@ export const GraphSync = $root.GraphSync = (() => { else if (typeof object.timestamp === "object") message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(); if (object.actor != null) { - if (typeof object.actor !== "object") + if (!$util.isObject(object.actor)) throw TypeError(".GraphSync.GraphSyncDataPlus.actor: object expected"); message.actor = $root.GraphSync.GraphSyncActor.fromObject(object.actor, long + 1); } @@ -251282,16 +204745,16 @@ export const GraphSync = $root.GraphSync = (() => { object.timestamp = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; object.actor = null; } - if (message.data != null && message.hasOwnProperty("data")) + if (message.data != null && Object.hasOwnProperty.call(message, "data")) object.data = $root.GraphSync.GraphSyncData.toObject(message.data, options, q + 1); - if (message.timestamp != null && message.hasOwnProperty("timestamp")) + if (message.timestamp != null && Object.hasOwnProperty.call(message, "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") 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")) + if (message.actor != null && Object.hasOwnProperty.call(message, "actor")) object.actor = $root.GraphSync.GraphSyncActor.toObject(message.actor, options, q + 1); return object; }; @@ -251423,19 +204886,6 @@ export const GraphSync = $root.GraphSync = (() => { return writer; }; - /** - * Encodes the specified GraphSyncQuery message, length delimited. Does not implicitly {@link GraphSync.GraphSyncQuery.verify|verify} messages. - * @function encodeDelimited - * @memberof GraphSync.GraphSyncQuery - * @static - * @param {GraphSync.IGraphSyncQuery} message GraphSyncQuery message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GraphSyncQuery.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a GraphSyncQuery message from the specified reader or buffer. * @function decode @@ -251484,52 +204934,6 @@ export const GraphSync = $root.GraphSync = (() => { return message; }; - /** - * Decodes a GraphSyncQuery message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof GraphSync.GraphSyncQuery - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {GraphSync.GraphSyncQuery} GraphSyncQuery - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GraphSyncQuery.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a GraphSyncQuery message. - * @function verify - * @memberof GraphSync.GraphSyncQuery - * @static - * @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) { - if (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"; - if (message.origin != null && message.hasOwnProperty("origin")) - if (!(message.origin && typeof message.origin.length === "number" || $util.isString(message.origin))) - return "origin: buffer expected"; - 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"; - if (message.maxCount != null && message.hasOwnProperty("maxCount")) - if (!$util.isInteger(message.maxCount)) - return "maxCount: integer expected"; - return null; - }; - /** * Creates a GraphSyncQuery message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -251541,6 +204945,8 @@ export const GraphSync = $root.GraphSync = (() => { GraphSyncQuery.fromObject = function fromObject(object, long) { if (object instanceof $root.GraphSync.GraphSyncQuery) return object; + if (!$util.isObject(object)) + throw TypeError(".GraphSync.GraphSyncQuery: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -251609,18 +205015,18 @@ export const GraphSync = $root.GraphSync = (() => { object.syncPoint = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; object.maxCount = 0; } - if (message.streamId != null && message.hasOwnProperty("streamId")) + if (message.streamId != null && Object.hasOwnProperty.call(message, "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.origin != null && message.hasOwnProperty("origin")) + if (message.origin != null && Object.hasOwnProperty.call(message, "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 (message.syncPoint != null && Object.hasOwnProperty.call(message, "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") 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.maxCount != null && message.hasOwnProperty("maxCount")) + if (message.maxCount != null && Object.hasOwnProperty.call(message, "maxCount")) object.maxCount = message.maxCount; return object; }; @@ -251754,19 +205160,6 @@ export const GraphSync = $root.GraphSync = (() => { return writer; }; - /** - * Encodes the specified GraphSyncResult message, length delimited. Does not implicitly {@link GraphSync.GraphSyncResult.verify|verify} messages. - * @function encodeDelimited - * @memberof GraphSync.GraphSyncResult - * @static - * @param {GraphSync.IGraphSyncResult} message GraphSyncResult message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GraphSyncResult.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a GraphSyncResult message from the specified reader or buffer. * @function decode @@ -251817,58 +205210,6 @@ export const GraphSync = $root.GraphSync = (() => { return message; }; - /** - * Decodes a GraphSyncResult message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof GraphSync.GraphSyncResult - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {GraphSync.GraphSyncResult} GraphSyncResult - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GraphSyncResult.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a GraphSyncResult message. - * @function verify - * @memberof GraphSync.GraphSyncResult - * @static - * @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) { - if (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"; - 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"; - 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.GraphSync.GraphSyncDataPlus.verify(message.data[i], long + 1); - if (error) - return "data." + error; - } - } - if (message.hasMore != null && message.hasOwnProperty("hasMore")) - if (typeof message.hasMore !== "boolean") - return "hasMore: boolean expected"; - return null; - }; - /** * Creates a GraphSyncResult message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -251880,6 +205221,8 @@ export const GraphSync = $root.GraphSync = (() => { GraphSyncResult.fromObject = function fromObject(object, long) { if (object instanceof $root.GraphSync.GraphSyncResult) return object; + if (!$util.isObject(object)) + throw TypeError(".GraphSync.GraphSyncResult: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -251904,7 +205247,7 @@ export const GraphSync = $root.GraphSync = (() => { throw TypeError(".GraphSync.GraphSyncResult.data: array expected"); message.data = []; for (let i = 0; i < object.data.length; ++i) { - if (typeof object.data[i] !== "object") + if (!$util.isObject(object.data[i])) throw TypeError(".GraphSync.GraphSyncResult.data: object expected"); message.data[i] = $root.GraphSync.GraphSyncDataPlus.fromObject(object.data[i], long + 1); } @@ -251948,9 +205291,9 @@ export const GraphSync = $root.GraphSync = (() => { object.syncPoint = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; object.hasMore = false; } - if (message.streamId != null && message.hasOwnProperty("streamId")) + if (message.streamId != null && Object.hasOwnProperty.call(message, "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 (message.syncPoint != null && Object.hasOwnProperty.call(message, "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") @@ -251962,7 +205305,7 @@ export const GraphSync = $root.GraphSync = (() => { for (let j = 0; j < message.data.length; ++j) object.data[j] = $root.GraphSync.GraphSyncDataPlus.toObject(message.data[j], options, q + 1); } - if (message.hasMore != null && message.hasOwnProperty("hasMore")) + if (message.hasMore != null && Object.hasOwnProperty.call(message, "hasMore")) object.hasMore = message.hasMore; return object; }; @@ -252063,19 +205406,6 @@ export const GraphSync = $root.GraphSync = (() => { return writer; }; - /** - * Encodes the specified GraphSyncMultiQuery message, length delimited. Does not implicitly {@link GraphSync.GraphSyncMultiQuery.verify|verify} messages. - * @function encodeDelimited - * @memberof GraphSync.GraphSyncMultiQuery - * @static - * @param {GraphSync.IGraphSyncMultiQuery} message GraphSyncMultiQuery message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GraphSyncMultiQuery.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a GraphSyncMultiQuery message from the specified reader or buffer. * @function decode @@ -252114,49 +205444,6 @@ export const GraphSync = $root.GraphSync = (() => { return message; }; - /** - * Decodes a GraphSyncMultiQuery message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof GraphSync.GraphSyncMultiQuery - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {GraphSync.GraphSyncMultiQuery} GraphSyncMultiQuery - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GraphSyncMultiQuery.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a GraphSyncMultiQuery message. - * @function verify - * @memberof GraphSync.GraphSyncMultiQuery - * @static - * @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) { - if (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); - if (error) - return "queries." + error; - } - } - return null; - }; - /** * Creates a GraphSyncMultiQuery message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -252168,6 +205455,8 @@ export const GraphSync = $root.GraphSync = (() => { GraphSyncMultiQuery.fromObject = function fromObject(object, long) { if (object instanceof $root.GraphSync.GraphSyncMultiQuery) return object; + if (!$util.isObject(object)) + throw TypeError(".GraphSync.GraphSyncMultiQuery: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -252178,7 +205467,7 @@ export const GraphSync = $root.GraphSync = (() => { throw TypeError(".GraphSync.GraphSyncMultiQuery.queries: array expected"); message.queries = []; for (let i = 0; i < object.queries.length; ++i) { - if (typeof object.queries[i] !== "object") + if (!$util.isObject(object.queries[i])) throw TypeError(".GraphSync.GraphSyncMultiQuery.queries: object expected"); message.queries[i] = $root.GraphSync.GraphSyncQuery.fromObject(object.queries[i], long + 1); } @@ -252309,19 +205598,6 @@ export const GraphSync = $root.GraphSync = (() => { return writer; }; - /** - * Encodes the specified GraphSyncMultiResult message, length delimited. Does not implicitly {@link GraphSync.GraphSyncMultiResult.verify|verify} messages. - * @function encodeDelimited - * @memberof GraphSync.GraphSyncMultiResult - * @static - * @param {GraphSync.IGraphSyncMultiResult} message GraphSyncMultiResult message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GraphSyncMultiResult.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a GraphSyncMultiResult message from the specified reader or buffer. * @function decode @@ -252360,49 +205636,6 @@ export const GraphSync = $root.GraphSync = (() => { return message; }; - /** - * Decodes a GraphSyncMultiResult message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof GraphSync.GraphSyncMultiResult - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {GraphSync.GraphSyncMultiResult} GraphSyncMultiResult - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GraphSyncMultiResult.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a GraphSyncMultiResult message. - * @function verify - * @memberof GraphSync.GraphSyncMultiResult - * @static - * @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) { - if (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); - if (error) - return "results." + error; - } - } - return null; - }; - /** * Creates a GraphSyncMultiResult message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -252414,6 +205647,8 @@ export const GraphSync = $root.GraphSync = (() => { GraphSyncMultiResult.fromObject = function fromObject(object, long) { if (object instanceof $root.GraphSync.GraphSyncMultiResult) return object; + if (!$util.isObject(object)) + throw TypeError(".GraphSync.GraphSyncMultiResult: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -252424,7 +205659,7 @@ export const GraphSync = $root.GraphSync = (() => { throw TypeError(".GraphSync.GraphSyncMultiResult.results: array expected"); message.results = []; for (let i = 0; i < object.results.length; ++i) { - if (typeof object.results[i] !== "object") + if (!$util.isObject(object.results[i])) throw TypeError(".GraphSync.GraphSyncMultiResult.results: object expected"); message.results[i] = $root.GraphSync.GraphSyncResult.fromObject(object.results[i], long + 1); } @@ -252566,19 +205801,6 @@ export const GraphSync = $root.GraphSync = (() => { return writer; }; - /** - * Encodes the specified GraphSyncAddDataRequest message, length delimited. Does not implicitly {@link GraphSync.GraphSyncAddDataRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof GraphSync.GraphSyncAddDataRequest - * @static - * @param {GraphSync.IGraphSyncAddDataRequest} message GraphSyncAddDataRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GraphSyncAddDataRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a GraphSyncAddDataRequest message from the specified reader or buffer. * @function decode @@ -252621,54 +205843,6 @@ export const GraphSync = $root.GraphSync = (() => { return message; }; - /** - * Decodes a GraphSyncAddDataRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof GraphSync.GraphSyncAddDataRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {GraphSync.GraphSyncAddDataRequest} GraphSyncAddDataRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GraphSyncAddDataRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a GraphSyncAddDataRequest message. - * @function verify - * @memberof GraphSync.GraphSyncAddDataRequest - * @static - * @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) { - if (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); - if (error) - return "origin." + error; - } - 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.GraphSync.GraphSyncData.verify(message.data[i], long + 1); - if (error) - return "data." + error; - } - } - return null; - }; - /** * Creates a GraphSyncAddDataRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -252680,13 +205854,15 @@ export const GraphSync = $root.GraphSync = (() => { GraphSyncAddDataRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.GraphSync.GraphSyncAddDataRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".GraphSync.GraphSyncAddDataRequest: object expected"); 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") + if (!$util.isObject(object.origin)) throw TypeError(".GraphSync.GraphSyncAddDataRequest.origin: object expected"); message.origin = $root.GraphSync.GraphSyncRef.fromObject(object.origin, long + 1); } @@ -252695,7 +205871,7 @@ export const GraphSync = $root.GraphSync = (() => { throw TypeError(".GraphSync.GraphSyncAddDataRequest.data: array expected"); message.data = []; for (let i = 0; i < object.data.length; ++i) { - if (typeof object.data[i] !== "object") + if (!$util.isObject(object.data[i])) throw TypeError(".GraphSync.GraphSyncAddDataRequest.data: object expected"); message.data[i] = $root.GraphSync.GraphSyncData.fromObject(object.data[i], long + 1); } @@ -252724,7 +205900,7 @@ export const GraphSync = $root.GraphSync = (() => { object.data = []; if (options.defaults) object.origin = null; - if (message.origin != null && message.hasOwnProperty("origin")) + if (message.origin != null && Object.hasOwnProperty.call(message, "origin")) object.origin = $root.GraphSync.GraphSyncRef.toObject(message.origin, options, q + 1); if (message.data && message.data.length) { object.data = []; @@ -252830,19 +206006,6 @@ export const GraphSync = $root.GraphSync = (() => { return writer; }; - /** - * Encodes the specified GraphSyncLeafsQuery message, length delimited. Does not implicitly {@link GraphSync.GraphSyncLeafsQuery.verify|verify} messages. - * @function encodeDelimited - * @memberof GraphSync.GraphSyncLeafsQuery - * @static - * @param {GraphSync.IGraphSyncLeafsQuery} message GraphSyncLeafsQuery message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GraphSyncLeafsQuery.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a GraphSyncLeafsQuery message from the specified reader or buffer. * @function decode @@ -252881,47 +206044,6 @@ export const GraphSync = $root.GraphSync = (() => { return message; }; - /** - * Decodes a GraphSyncLeafsQuery message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof GraphSync.GraphSyncLeafsQuery - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {GraphSync.GraphSyncLeafsQuery} GraphSyncLeafsQuery - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GraphSyncLeafsQuery.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a GraphSyncLeafsQuery message. - * @function verify - * @memberof GraphSync.GraphSyncLeafsQuery - * @static - * @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) { - if (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"; - for (let i = 0; i < message.vertices.length; ++i) - if (!(message.vertices[i] && typeof message.vertices[i].length === "number" || $util.isString(message.vertices[i]))) - return "vertices: buffer[] expected"; - } - return null; - }; - /** * Creates a GraphSyncLeafsQuery message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -252933,6 +206055,8 @@ export const GraphSync = $root.GraphSync = (() => { GraphSyncLeafsQuery.fromObject = function fromObject(object, long) { if (object instanceof $root.GraphSync.GraphSyncLeafsQuery) return object; + if (!$util.isObject(object)) + throw TypeError(".GraphSync.GraphSyncLeafsQuery: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -253074,19 +206198,6 @@ export const GraphSync = $root.GraphSync = (() => { return writer; }; - /** - * Encodes the specified GraphSyncRefsResult message, length delimited. Does not implicitly {@link GraphSync.GraphSyncRefsResult.verify|verify} messages. - * @function encodeDelimited - * @memberof GraphSync.GraphSyncRefsResult - * @static - * @param {GraphSync.IGraphSyncRefsResult} message GraphSyncRefsResult message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GraphSyncRefsResult.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a GraphSyncRefsResult message from the specified reader or buffer. * @function decode @@ -253125,49 +206236,6 @@ export const GraphSync = $root.GraphSync = (() => { return message; }; - /** - * Decodes a GraphSyncRefsResult message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof GraphSync.GraphSyncRefsResult - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {GraphSync.GraphSyncRefsResult} GraphSyncRefsResult - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GraphSyncRefsResult.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a GraphSyncRefsResult message. - * @function verify - * @memberof GraphSync.GraphSyncRefsResult - * @static - * @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) { - if (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); - if (error) - return "refs." + error; - } - } - return null; - }; - /** * Creates a GraphSyncRefsResult message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -253179,6 +206247,8 @@ export const GraphSync = $root.GraphSync = (() => { GraphSyncRefsResult.fromObject = function fromObject(object, long) { if (object instanceof $root.GraphSync.GraphSyncRefsResult) return object; + if (!$util.isObject(object)) + throw TypeError(".GraphSync.GraphSyncRefsResult: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -253189,7 +206259,7 @@ export const GraphSync = $root.GraphSync = (() => { throw TypeError(".GraphSync.GraphSyncRefsResult.refs: array expected"); message.refs = []; for (let i = 0; i < object.refs.length; ++i) { - if (typeof object.refs[i] !== "object") + if (!$util.isObject(object.refs[i])) throw TypeError(".GraphSync.GraphSyncRefsResult.refs: object expected"); message.refs[i] = $root.GraphSync.GraphSyncRef.fromObject(object.refs[i], long + 1); } @@ -253406,19 +206476,6 @@ export const Dag = $root.Dag = (() => { return writer; }; - /** - * Encodes the specified Ref message, length delimited. Does not implicitly {@link Dag.Ref.verify|verify} messages. - * @function encodeDelimited - * @memberof Dag.Ref - * @static - * @param {Dag.IRef} message Ref message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Ref.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a Ref message from the specified reader or buffer. * @function decode @@ -253463,62 +206520,6 @@ export const Dag = $root.Dag = (() => { return message; }; - /** - * Decodes a Ref message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Dag.Ref - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Dag.Ref} Ref - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Ref.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a Ref message. - * @function verify - * @memberof Dag.Ref - * @static - * @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) { - if (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: - return "type: 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.value != null && message.hasOwnProperty("value")) - if (!(message.value && typeof message.value.length === "number" || $util.isString(message.value))) - return "value: buffer expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - return null; - }; - /** * Creates a Ref message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -253530,6 +206531,8 @@ export const Dag = $root.Dag = (() => { Ref.fromObject = function fromObject(object, long) { if (object instanceof $root.Dag.Ref) return object; + if (!$util.isObject(object)) + throw TypeError(".Dag.Ref: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -253621,11 +206624,11 @@ export const Dag = $root.Dag = (() => { } object.name = ""; } - if (message.type != null && message.hasOwnProperty("type")) + if (message.type != null && Object.hasOwnProperty.call(message, "type")) object.type = options.enums === String ? $root.Dag.RefType[message.type] === undefined ? message.type : $root.Dag.RefType[message.type] : message.type; - if (message.value != null && message.hasOwnProperty("value")) + if (message.value != null && Object.hasOwnProperty.call(message, "value")) object.value = options.bytes === String ? $util.base64.encode(message.value, 0, message.value.length) : options.bytes === Array ? Array.prototype.slice.call(message.value) : message.value; - if (message.name != null && message.hasOwnProperty("name")) + if (message.name != null && Object.hasOwnProperty.call(message, "name")) object.name = message.name; return object; }; @@ -253768,19 +206771,6 @@ export const Dag = $root.Dag = (() => { return writer; }; - /** - * Encodes the specified Data message, length delimited. Does not implicitly {@link Dag.Data.verify|verify} messages. - * @function encodeDelimited - * @memberof Dag.Data - * @static - * @param {Dag.IData} message Data message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Data.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a Data message from the specified reader or buffer. * @function decode @@ -253833,69 +206823,6 @@ export const Dag = $root.Dag = (() => { return message; }; - /** - * Decodes a Data message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Dag.Data - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Dag.Data} Data - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Data.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a Data message. - * @function verify - * @memberof Dag.Data - * @static - * @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) { - if (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: - return "dataType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - break; - } - if (message.ref != null && message.hasOwnProperty("ref")) { - let error = $root.Dag.Ref.verify(message.ref, long + 1); - if (error) - return "ref." + error; - } - if (message.parentRef != null && message.hasOwnProperty("parentRef")) { - let error = $root.Dag.Ref.verify(message.parentRef, long + 1); - if (error) - return "parentRef." + error; - } - if (message.content != null && message.hasOwnProperty("content")) - if (!(message.content && typeof message.content.length === "number" || $util.isString(message.content))) - return "content: buffer expected"; - if (message.path != null && message.hasOwnProperty("path")) - if (!$util.isString(message.path)) - return "path: string expected"; - return null; - }; - /** * Creates a Data message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -253907,6 +206834,8 @@ export const Dag = $root.Dag = (() => { Data.fromObject = function fromObject(object, long) { if (object instanceof $root.Dag.Data) return object; + if (!$util.isObject(object)) + throw TypeError(".Dag.Data: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -253949,12 +206878,12 @@ export const Dag = $root.Dag = (() => { break; } if (object.ref != null) { - if (typeof object.ref !== "object") + if (!$util.isObject(object.ref)) throw TypeError(".Dag.Data.ref: object expected"); message.ref = $root.Dag.Ref.fromObject(object.ref, long + 1); } if (object.parentRef != null) { - if (typeof object.parentRef !== "object") + if (!$util.isObject(object.parentRef)) throw TypeError(".Dag.Data.parentRef: object expected"); message.parentRef = $root.Dag.Ref.fromObject(object.parentRef, long + 1); } @@ -253998,15 +206927,15 @@ export const Dag = $root.Dag = (() => { } object.path = ""; } - if (message.dataType != null && message.hasOwnProperty("dataType")) + if (message.dataType != null && Object.hasOwnProperty.call(message, "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")) + if (message.ref != null && Object.hasOwnProperty.call(message, "ref")) object.ref = $root.Dag.Ref.toObject(message.ref, options, q + 1); - if (message.parentRef != null && message.hasOwnProperty("parentRef")) + if (message.parentRef != null && Object.hasOwnProperty.call(message, "parentRef")) object.parentRef = $root.Dag.Ref.toObject(message.parentRef, options, q + 1); - if (message.content != null && message.hasOwnProperty("content")) + if (message.content != null && Object.hasOwnProperty.call(message, "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")) + if (message.path != null && Object.hasOwnProperty.call(message, "path")) object.path = message.path; return object; }; @@ -254129,19 +207058,6 @@ export const Dag = $root.Dag = (() => { return writer; }; - /** - * Encodes the specified SyncData message, length delimited. Does not implicitly {@link Dag.SyncData.verify|verify} messages. - * @function encodeDelimited - * @memberof Dag.SyncData - * @static - * @param {Dag.ISyncData} message SyncData message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SyncData.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a SyncData message from the specified reader or buffer. * @function decode @@ -254188,55 +207104,6 @@ export const Dag = $root.Dag = (() => { return message; }; - /** - * Decodes a SyncData message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Dag.SyncData - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Dag.SyncData} SyncData - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SyncData.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a SyncData message. - * @function verify - * @memberof Dag.SyncData - * @static - * @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) { - if (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); - if (error) - return "data." + error; - } - } - 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"; - if (message.hasMore != null && message.hasOwnProperty("hasMore")) - if (typeof message.hasMore !== "boolean") - return "hasMore: boolean expected"; - return null; - }; - /** * Creates a SyncData message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -254248,6 +207115,8 @@ export const Dag = $root.Dag = (() => { SyncData.fromObject = function fromObject(object, long) { if (object instanceof $root.Dag.SyncData) return object; + if (!$util.isObject(object)) + throw TypeError(".Dag.SyncData: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -254258,7 +207127,7 @@ export const Dag = $root.Dag = (() => { throw TypeError(".Dag.SyncData.data: array expected"); message.data = []; for (let i = 0; i < object.data.length; ++i) { - if (typeof object.data[i] !== "object") + if (!$util.isObject(object.data[i])) throw TypeError(".Dag.SyncData.data: object expected"); message.data[i] = $root.Dag.Data.fromObject(object.data[i], long + 1); } @@ -254309,14 +207178,14 @@ export const Dag = $root.Dag = (() => { for (let j = 0; j < message.data.length; ++j) object.data[j] = $root.Dag.Data.toObject(message.data[j], options, q + 1); } - if (message.syncPoint != null && message.hasOwnProperty("syncPoint")) + if (message.syncPoint != null && Object.hasOwnProperty.call(message, "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") 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.hasMore != null && message.hasOwnProperty("hasMore")) + if (message.hasMore != null && Object.hasOwnProperty.call(message, "hasMore")) object.hasMore = message.hasMore; return object; }; @@ -254448,19 +207317,6 @@ export const Dag = $root.Dag = (() => { return writer; }; - /** - * Encodes the specified DebugData message, length delimited. Does not implicitly {@link Dag.DebugData.verify|verify} messages. - * @function encodeDelimited - * @memberof Dag.DebugData - * @static - * @param {Dag.IDebugData} message DebugData message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - DebugData.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a DebugData message from the specified reader or buffer. * @function decode @@ -254509,56 +207365,6 @@ export const Dag = $root.Dag = (() => { return message; }; - /** - * Decodes a DebugData message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Dag.DebugData - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Dag.DebugData} DebugData - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - DebugData.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a DebugData message. - * @function verify - * @memberof Dag.DebugData - * @static - * @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) { - if (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"; - if (message.path != null && message.hasOwnProperty("path")) - 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); - if (error) - return "ref." + error; - } - if (message.parentRef != null && message.hasOwnProperty("parentRef")) { - let error = $root.Dag.DebugRefInfo.verify(message.parentRef, long + 1); - if (error) - return "parentRef." + error; - } - return null; - }; - /** * Creates a DebugData message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -254570,6 +207376,8 @@ export const Dag = $root.Dag = (() => { DebugData.fromObject = function fromObject(object, long) { if (object instanceof $root.Dag.DebugData) return object; + if (!$util.isObject(object)) + throw TypeError(".Dag.DebugData: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -254580,12 +207388,12 @@ export const Dag = $root.Dag = (() => { if (object.path != null) message.path = String(object.path); if (object.ref != null) { - if (typeof object.ref !== "object") + if (!$util.isObject(object.ref)) throw TypeError(".Dag.DebugData.ref: object expected"); message.ref = $root.Dag.DebugRefInfo.fromObject(object.ref, long + 1); } if (object.parentRef != null) { - if (typeof object.parentRef !== "object") + if (!$util.isObject(object.parentRef)) throw TypeError(".Dag.DebugData.parentRef: object expected"); message.parentRef = $root.Dag.DebugRefInfo.fromObject(object.parentRef, long + 1); } @@ -254615,13 +207423,13 @@ export const Dag = $root.Dag = (() => { object.parentRef = null; object.path = ""; } - if (message.dataType != null && message.hasOwnProperty("dataType")) + if (message.dataType != null && Object.hasOwnProperty.call(message, "dataType")) object.dataType = message.dataType; - if (message.ref != null && message.hasOwnProperty("ref")) + if (message.ref != null && Object.hasOwnProperty.call(message, "ref")) object.ref = $root.Dag.DebugRefInfo.toObject(message.ref, options, q + 1); - if (message.parentRef != null && message.hasOwnProperty("parentRef")) + if (message.parentRef != null && Object.hasOwnProperty.call(message, "parentRef")) object.parentRef = $root.Dag.DebugRefInfo.toObject(message.parentRef, options, q + 1); - if (message.path != null && message.hasOwnProperty("path")) + if (message.path != null && Object.hasOwnProperty.call(message, "path")) object.path = message.path; return object; }; @@ -254731,19 +207539,6 @@ export const Dag = $root.Dag = (() => { return writer; }; - /** - * Encodes the specified DebugRefInfo message, length delimited. Does not implicitly {@link Dag.DebugRefInfo.verify|verify} messages. - * @function encodeDelimited - * @memberof Dag.DebugRefInfo - * @static - * @param {Dag.IDebugRefInfo} message DebugRefInfo message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - DebugRefInfo.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a DebugRefInfo message from the specified reader or buffer. * @function decode @@ -254784,46 +207579,6 @@ export const Dag = $root.Dag = (() => { return message; }; - /** - * Decodes a DebugRefInfo message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Dag.DebugRefInfo - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Dag.DebugRefInfo} DebugRefInfo - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - DebugRefInfo.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a DebugRefInfo message. - * @function verify - * @memberof Dag.DebugRefInfo - * @static - * @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) { - if (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"; - if (message.value != null && message.hasOwnProperty("value")) - if (!(message.value && typeof message.value.length === "number" || $util.isString(message.value))) - return "value: buffer expected"; - return null; - }; - /** * Creates a DebugRefInfo message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -254835,6 +207590,8 @@ export const Dag = $root.Dag = (() => { DebugRefInfo.fromObject = function fromObject(object, long) { if (object instanceof $root.Dag.DebugRefInfo) return object; + if (!$util.isObject(object)) + throw TypeError(".Dag.DebugRefInfo: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -254877,9 +207634,9 @@ export const Dag = $root.Dag = (() => { object.value = $util.newBuffer(object.value); } } - if (message.refType != null && message.hasOwnProperty("refType")) + if (message.refType != null && Object.hasOwnProperty.call(message, "refType")) object.refType = message.refType; - if (message.value != null && message.hasOwnProperty("value")) + if (message.value != null && Object.hasOwnProperty.call(message, "value")) object.value = options.bytes === String ? $util.base64.encode(message.value, 0, message.value.length) : options.bytes === Array ? Array.prototype.slice.call(message.value) : message.value; return object; }; @@ -254996,7 +207753,7 @@ export const record = $root.record = (() => { * @variation 1 */ Object.defineProperty(RecordSharingService.prototype.shareRecord = function shareRecord(request, callback) { - return this.rpcCall(shareRecord, $root.record.v3.sharing.Request, $root.record.v3.sharing.Response, request, callback); + return $protobuf.rpc.Service.prototype.rpcCall.call(this, shareRecord, $root.record.v3.sharing.Request, $root.record.v3.sharing.Response, request, callback); }, "name", { value: "ShareRecord" }); /** @@ -255124,19 +207881,6 @@ export const record = $root.record = (() => { return writer; }; - /** - * Encodes the specified Request message, length delimited. Does not implicitly {@link record.v3.sharing.Request.verify|verify} messages. - * @function encodeDelimited - * @memberof record.v3.sharing.Request - * @static - * @param {record.v3.sharing.IRequest} message Request message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Request.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a Request message from the specified reader or buffer. * @function decode @@ -255191,70 +207935,6 @@ export const record = $root.record = (() => { return message; }; - /** - * Decodes a Request message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof record.v3.sharing.Request - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {record.v3.sharing.Request} Request - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Request.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a Request message. - * @function verify - * @memberof record.v3.sharing.Request - * @static - * @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) { - if (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); - if (error) - return "createSharingPermissions." + error; - } - } - if (message.updateSharingPermissions != null && message.hasOwnProperty("updateSharingPermissions")) { - 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); - if (error) - return "updateSharingPermissions." + error; - } - } - if (message.revokeSharingPermissions != null && message.hasOwnProperty("revokeSharingPermissions")) { - 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); - if (error) - return "revokeSharingPermissions." + error; - } - } - if (message.echo != null && message.hasOwnProperty("echo")) - if (!$util.isString(message.echo)) - return "echo: string expected"; - return null; - }; - /** * Creates a Request message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -255266,6 +207946,8 @@ export const record = $root.record = (() => { Request.fromObject = function fromObject(object, long) { if (object instanceof $root.record.v3.sharing.Request) return object; + if (!$util.isObject(object)) + throw TypeError(".record.v3.sharing.Request: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -255276,7 +207958,7 @@ export const record = $root.record = (() => { throw TypeError(".record.v3.sharing.Request.createSharingPermissions: array expected"); message.createSharingPermissions = []; for (let i = 0; i < object.createSharingPermissions.length; ++i) { - if (typeof object.createSharingPermissions[i] !== "object") + if (!$util.isObject(object.createSharingPermissions[i])) throw TypeError(".record.v3.sharing.Request.createSharingPermissions: object expected"); message.createSharingPermissions[i] = $root.record.v3.sharing.Permissions.fromObject(object.createSharingPermissions[i], long + 1); } @@ -255286,7 +207968,7 @@ export const record = $root.record = (() => { throw TypeError(".record.v3.sharing.Request.updateSharingPermissions: array expected"); message.updateSharingPermissions = []; for (let i = 0; i < object.updateSharingPermissions.length; ++i) { - if (typeof object.updateSharingPermissions[i] !== "object") + if (!$util.isObject(object.updateSharingPermissions[i])) throw TypeError(".record.v3.sharing.Request.updateSharingPermissions: object expected"); message.updateSharingPermissions[i] = $root.record.v3.sharing.Permissions.fromObject(object.updateSharingPermissions[i], long + 1); } @@ -255296,7 +207978,7 @@ export const record = $root.record = (() => { throw TypeError(".record.v3.sharing.Request.revokeSharingPermissions: array expected"); message.revokeSharingPermissions = []; for (let i = 0; i < object.revokeSharingPermissions.length; ++i) { - if (typeof object.revokeSharingPermissions[i] !== "object") + if (!$util.isObject(object.revokeSharingPermissions[i])) throw TypeError(".record.v3.sharing.Request.revokeSharingPermissions: object expected"); message.revokeSharingPermissions[i] = $root.record.v3.sharing.Permissions.fromObject(object.revokeSharingPermissions[i], long + 1); } @@ -255345,7 +208027,7 @@ export const record = $root.record = (() => { for (let j = 0; j < message.revokeSharingPermissions.length; ++j) object.revokeSharingPermissions[j] = $root.record.v3.sharing.Permissions.toObject(message.revokeSharingPermissions[j], options, q + 1); } - if (message.echo != null && message.hasOwnProperty("echo")) + if (message.echo != null && Object.hasOwnProperty.call(message, "echo")) object.echo = message.echo; return object; }; @@ -255490,19 +208172,6 @@ export const record = $root.record = (() => { return writer; }; - /** - * Encodes the specified Permissions message, length delimited. Does not implicitly {@link record.v3.sharing.Permissions.verify|verify} messages. - * @function encodeDelimited - * @memberof record.v3.sharing.Permissions - * @static - * @param {record.v3.sharing.IPermissions} message Permissions message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Permissions.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a Permissions message from the specified reader or buffer. * @function decode @@ -255555,57 +208224,6 @@ export const record = $root.record = (() => { return message; }; - /** - * Decodes a Permissions message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof record.v3.sharing.Permissions - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {record.v3.sharing.Permissions} Permissions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Permissions.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a Permissions message. - * @function verify - * @memberof record.v3.sharing.Permissions - * @static - * @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) { - if (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"; - 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.useEccKey != null && message.hasOwnProperty("useEccKey")) - 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); - if (error) - return "rules." + error; - } - return null; - }; - /** * Creates a Permissions message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -255617,6 +208235,8 @@ export const record = $root.record = (() => { Permissions.fromObject = function fromObject(object, long) { if (object instanceof $root.record.v3.sharing.Permissions) return object; + if (!$util.isObject(object)) + throw TypeError(".record.v3.sharing.Permissions: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -255640,7 +208260,7 @@ export const record = $root.record = (() => { if (object.useEccKey != null) message.useEccKey = Boolean(object.useEccKey); if (object.rules != null) { - if (typeof object.rules !== "object") + if (!$util.isObject(object.rules)) throw TypeError(".record.v3.sharing.Permissions.rules: object expected"); message.rules = $root.Folder.RecordAccessData.fromObject(object.rules, long + 1); } @@ -255689,15 +208309,15 @@ export const record = $root.record = (() => { object.useEccKey = false; object.rules = null; } - if (message.recipientUid != null && message.hasOwnProperty("recipientUid")) + if (message.recipientUid != null && Object.hasOwnProperty.call(message, "recipientUid")) object.recipientUid = options.bytes === String ? $util.base64.encode(message.recipientUid, 0, message.recipientUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.recipientUid) : message.recipientUid; - if (message.recordUid != null && message.hasOwnProperty("recordUid")) + if (message.recordUid != null && Object.hasOwnProperty.call(message, "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")) + if (message.recordKey != null && Object.hasOwnProperty.call(message, "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.useEccKey != null && message.hasOwnProperty("useEccKey")) + if (message.useEccKey != null && Object.hasOwnProperty.call(message, "useEccKey")) object.useEccKey = message.useEccKey; - if (message.rules != null && message.hasOwnProperty("rules")) + if (message.rules != null && Object.hasOwnProperty.call(message, "rules")) object.rules = $root.Folder.RecordAccessData.toObject(message.rules, options, q + 1); return object; }; @@ -255824,19 +208444,6 @@ export const record = $root.record = (() => { return writer; }; - /** - * Encodes the specified Response message, length delimited. Does not implicitly {@link record.v3.sharing.Response.verify|verify} messages. - * @function encodeDelimited - * @memberof record.v3.sharing.Response - * @static - * @param {record.v3.sharing.IResponse} message Response message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Response.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a Response message from the specified reader or buffer. * @function decode @@ -255887,67 +208494,6 @@ export const record = $root.record = (() => { return message; }; - /** - * Decodes a Response message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof record.v3.sharing.Response - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {record.v3.sharing.Response} Response - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Response.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a Response message. - * @function verify - * @memberof record.v3.sharing.Response - * @static - * @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) { - if (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); - if (error) - return "createdSharingStatus." + error; - } - } - if (message.updatedSharingStatus != null && message.hasOwnProperty("updatedSharingStatus")) { - 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); - if (error) - return "updatedSharingStatus." + error; - } - } - if (message.revokedSharingStatus != null && message.hasOwnProperty("revokedSharingStatus")) { - 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); - if (error) - return "revokedSharingStatus." + error; - } - } - return null; - }; - /** * Creates a Response message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -255959,6 +208505,8 @@ export const record = $root.record = (() => { Response.fromObject = function fromObject(object, long) { if (object instanceof $root.record.v3.sharing.Response) return object; + if (!$util.isObject(object)) + throw TypeError(".record.v3.sharing.Response: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -255969,7 +208517,7 @@ export const record = $root.record = (() => { throw TypeError(".record.v3.sharing.Response.createdSharingStatus: array expected"); message.createdSharingStatus = []; for (let i = 0; i < object.createdSharingStatus.length; ++i) { - if (typeof object.createdSharingStatus[i] !== "object") + if (!$util.isObject(object.createdSharingStatus[i])) throw TypeError(".record.v3.sharing.Response.createdSharingStatus: object expected"); message.createdSharingStatus[i] = $root.record.v3.sharing.Status.fromObject(object.createdSharingStatus[i], long + 1); } @@ -255979,7 +208527,7 @@ export const record = $root.record = (() => { throw TypeError(".record.v3.sharing.Response.updatedSharingStatus: array expected"); message.updatedSharingStatus = []; for (let i = 0; i < object.updatedSharingStatus.length; ++i) { - if (typeof object.updatedSharingStatus[i] !== "object") + if (!$util.isObject(object.updatedSharingStatus[i])) throw TypeError(".record.v3.sharing.Response.updatedSharingStatus: object expected"); message.updatedSharingStatus[i] = $root.record.v3.sharing.Status.fromObject(object.updatedSharingStatus[i], long + 1); } @@ -255989,7 +208537,7 @@ export const record = $root.record = (() => { throw TypeError(".record.v3.sharing.Response.revokedSharingStatus: array expected"); message.revokedSharingStatus = []; for (let i = 0; i < object.revokedSharingStatus.length; ++i) { - if (typeof object.revokedSharingStatus[i] !== "object") + if (!$util.isObject(object.revokedSharingStatus[i])) throw TypeError(".record.v3.sharing.Response.revokedSharingStatus: object expected"); message.revokedSharingStatus[i] = $root.record.v3.sharing.Status.fromObject(object.revokedSharingStatus[i], long + 1); } @@ -256164,19 +208712,6 @@ export const record = $root.record = (() => { return writer; }; - /** - * Encodes the specified Status message, length delimited. Does not implicitly {@link record.v3.sharing.Status.verify|verify} messages. - * @function encodeDelimited - * @memberof record.v3.sharing.Status - * @static - * @param {record.v3.sharing.IStatus} message Status message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Status.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a Status message from the specified reader or buffer. * @function decode @@ -256225,62 +208760,6 @@ export const record = $root.record = (() => { return message; }; - /** - * Decodes a Status message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof record.v3.sharing.Status - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {record.v3.sharing.Status} Status - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Status.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a Status message. - * @function verify - * @memberof record.v3.sharing.Status - * @static - * @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) { - if (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.status != null && message.hasOwnProperty("status")) - switch (message.status) { - default: - return "status: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - break; - } - if (message.message != null && message.hasOwnProperty("message")) - if (!$util.isString(message.message)) - return "message: string expected"; - if (message.recipientUid != null && message.hasOwnProperty("recipientUid")) - if (!(message.recipientUid && typeof message.recipientUid.length === "number" || $util.isString(message.recipientUid))) - return "recipientUid: buffer expected"; - return null; - }; - /** * Creates a Status message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -256292,6 +208771,8 @@ export const record = $root.record = (() => { Status.fromObject = function fromObject(object, long) { if (object instanceof $root.record.v3.sharing.Status) return object; + if (!$util.isObject(object)) + throw TypeError(".record.v3.sharing.Status: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -256383,13 +208864,13 @@ export const record = $root.record = (() => { object.recipientUid = $util.newBuffer(object.recipientUid); } } - if (message.recordUid != null && message.hasOwnProperty("recordUid")) + if (message.recordUid != null && Object.hasOwnProperty.call(message, "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.status != null && message.hasOwnProperty("status")) + if (message.status != null && Object.hasOwnProperty.call(message, "status")) object.status = options.enums === String ? $root.record.v3.sharing.SharingStatus[message.status] === undefined ? message.status : $root.record.v3.sharing.SharingStatus[message.status] : message.status; - if (message.message != null && message.hasOwnProperty("message")) + if (message.message != null && Object.hasOwnProperty.call(message, "message")) object.message = message.message; - if (message.recipientUid != null && message.hasOwnProperty("recipientUid")) + if (message.recipientUid != null && Object.hasOwnProperty.call(message, "recipientUid")) object.recipientUid = options.bytes === String ? $util.base64.encode(message.recipientUid, 0, message.recipientUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.recipientUid) : message.recipientUid; return object; }; @@ -256523,19 +209004,6 @@ export const record = $root.record = (() => { return writer; }; - /** - * Encodes the specified RevokedAccess message, length delimited. Does not implicitly {@link record.v3.sharing.RevokedAccess.verify|verify} messages. - * @function encodeDelimited - * @memberof record.v3.sharing.RevokedAccess - * @static - * @param {record.v3.sharing.IRevokedAccess} message RevokedAccess message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RevokedAccess.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a RevokedAccess message from the specified reader or buffer. * @function decode @@ -256576,46 +209044,6 @@ export const record = $root.record = (() => { return message; }; - /** - * Decodes a RevokedAccess message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof record.v3.sharing.RevokedAccess - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {record.v3.sharing.RevokedAccess} RevokedAccess - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RevokedAccess.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a RevokedAccess message. - * @function verify - * @memberof record.v3.sharing.RevokedAccess - * @static - * @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) { - if (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.actorUid != null && message.hasOwnProperty("actorUid")) - if (!(message.actorUid && typeof message.actorUid.length === "number" || $util.isString(message.actorUid))) - return "actorUid: buffer expected"; - return null; - }; - /** * Creates a RevokedAccess message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -256627,6 +209055,8 @@ export const record = $root.record = (() => { RevokedAccess.fromObject = function fromObject(object, long) { if (object instanceof $root.record.v3.sharing.RevokedAccess) return object; + if (!$util.isObject(object)) + throw TypeError(".record.v3.sharing.RevokedAccess: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -256678,9 +209108,9 @@ export const record = $root.record = (() => { object.actorUid = $util.newBuffer(object.actorUid); } } - if (message.recordUid != null && message.hasOwnProperty("recordUid")) + if (message.recordUid != null && Object.hasOwnProperty.call(message, "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.actorUid != null && message.hasOwnProperty("actorUid")) + if (message.actorUid != null && Object.hasOwnProperty.call(message, "actorUid")) object.actorUid = options.bytes === String ? $util.base64.encode(message.actorUid, 0, message.actorUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.actorUid) : message.actorUid; return object; }; @@ -256818,19 +209248,6 @@ export const record = $root.record = (() => { return writer; }; - /** - * Encodes the specified RecordSharingState message, length delimited. Does not implicitly {@link record.v3.sharing.RecordSharingState.verify|verify} messages. - * @function encodeDelimited - * @memberof record.v3.sharing.RecordSharingState - * @static - * @param {record.v3.sharing.IRecordSharingState} message RecordSharingState message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RecordSharingState.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a RecordSharingState message from the specified reader or buffer. * @function decode @@ -256879,52 +209296,6 @@ export const record = $root.record = (() => { return message; }; - /** - * Decodes a RecordSharingState message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof record.v3.sharing.RecordSharingState - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {record.v3.sharing.RecordSharingState} RecordSharingState - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RecordSharingState.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a RecordSharingState message. - * @function verify - * @memberof record.v3.sharing.RecordSharingState - * @static - * @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) { - if (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.isDirectlyShared != null && message.hasOwnProperty("isDirectlyShared")) - if (typeof message.isDirectlyShared !== "boolean") - return "isDirectlyShared: boolean expected"; - if (message.isIndirectlyShared != null && message.hasOwnProperty("isIndirectlyShared")) - if (typeof message.isIndirectlyShared !== "boolean") - return "isIndirectlyShared: boolean expected"; - if (message.isShared != null && message.hasOwnProperty("isShared")) - if (typeof message.isShared !== "boolean") - return "isShared: boolean expected"; - return null; - }; - /** * Creates a RecordSharingState message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -256936,6 +209307,8 @@ export const record = $root.record = (() => { RecordSharingState.fromObject = function fromObject(object, long) { if (object instanceof $root.record.v3.sharing.RecordSharingState) return object; + if (!$util.isObject(object)) + throw TypeError(".record.v3.sharing.RecordSharingState: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -256984,13 +209357,13 @@ export const record = $root.record = (() => { object.isIndirectlyShared = false; object.isShared = false; } - if (message.recordUid != null && message.hasOwnProperty("recordUid")) + if (message.recordUid != null && Object.hasOwnProperty.call(message, "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.isDirectlyShared != null && message.hasOwnProperty("isDirectlyShared")) + if (message.isDirectlyShared != null && Object.hasOwnProperty.call(message, "isDirectlyShared")) object.isDirectlyShared = message.isDirectlyShared; - if (message.isIndirectlyShared != null && message.hasOwnProperty("isIndirectlyShared")) + if (message.isIndirectlyShared != null && Object.hasOwnProperty.call(message, "isIndirectlyShared")) object.isIndirectlyShared = message.isIndirectlyShared; - if (message.isShared != null && message.hasOwnProperty("isShared")) + if (message.isShared != null && Object.hasOwnProperty.call(message, "isShared")) object.isShared = message.isShared; return object; }; @@ -257116,19 +209489,6 @@ export const record = $root.record = (() => { 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 @@ -257175,65 +209535,6 @@ export const record = $root.record = (() => { 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, 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.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], long + 1); - 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 @@ -257245,6 +209546,8 @@ export const record = $root.record = (() => { RecordsAddRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.record.v3.RecordsAddRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".record.v3.RecordsAddRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -257255,7 +209558,7 @@ export const record = $root.record = (() => { 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") + if (!$util.isObject(object.records[i])) throw TypeError(".record.v3.RecordsAddRequest.records: object expected"); message.records[i] = $root.record.v3.RecordAdd.fromObject(object.records[i], long + 1); } @@ -257340,14 +209643,14 @@ export const record = $root.record = (() => { for (let j = 0; j < message.records.length; ++j) object.records[j] = $root.record.v3.RecordAdd.toObject(message.records[j], options, q + 1); } - if (message.clientTime != null && message.hasOwnProperty("clientTime")) + if (message.clientTime != null && Object.hasOwnProperty.call(message, "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") 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")) + if (message.securityDataKeyType != null && Object.hasOwnProperty.call(message, "securityDataKeyType")) object.securityDataKeyType = options.enums === String ? $root.Records.RecordKeyType[message.securityDataKeyType] === undefined ? message.securityDataKeyType : $root.Records.RecordKeyType[message.securityDataKeyType] : message.securityDataKeyType; return object; }; @@ -257571,19 +209874,6 @@ export const record = $root.record = (() => { 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 @@ -257666,102 +209956,6 @@ export const record = $root.record = (() => { 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, 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.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], long + 1); - if (error) - return "recordLinks." + error; - } - } - if (message.audit != null && message.hasOwnProperty("audit")) { - let error = $root.Records.RecordAudit.verify(message.audit, long + 1); - if (error) - return "audit." + error; - } - if (message.securityData != null && message.hasOwnProperty("securityData")) { - let error = $root.Records.SecurityData.verify(message.securityData, long + 1); - if (error) - return "securityData." + error; - } - if (message.securityScoreData != null && message.hasOwnProperty("securityScoreData")) { - let error = $root.Records.SecurityScoreData.verify(message.securityScoreData, long + 1); - 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 @@ -257773,6 +209967,8 @@ export const record = $root.record = (() => { RecordAdd.fromObject = function fromObject(object, long) { if (object instanceof $root.record.v3.RecordAdd) return object; + if (!$util.isObject(object)) + throw TypeError(".record.v3.RecordAdd: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -257865,23 +210061,23 @@ export const record = $root.record = (() => { 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") + if (!$util.isObject(object.recordLinks[i])) throw TypeError(".record.v3.RecordAdd.recordLinks: object expected"); message.recordLinks[i] = $root.Records.RecordLink.fromObject(object.recordLinks[i], long + 1); } } if (object.audit != null) { - if (typeof object.audit !== "object") + if (!$util.isObject(object.audit)) throw TypeError(".record.v3.RecordAdd.audit: object expected"); message.audit = $root.Records.RecordAudit.fromObject(object.audit, long + 1); } if (object.securityData != null) { - if (typeof object.securityData !== "object") + if (!$util.isObject(object.securityData)) throw TypeError(".record.v3.RecordAdd.securityData: object expected"); message.securityData = $root.Records.SecurityData.fromObject(object.securityData, long + 1); } if (object.securityScoreData != null) { - if (typeof object.securityScoreData !== "object") + if (!$util.isObject(object.securityScoreData)) throw TypeError(".record.v3.RecordAdd.securityScoreData: object expected"); message.securityScoreData = $root.Records.SecurityScoreData.fromObject(object.securityScoreData, long + 1); } @@ -257954,37 +210150,37 @@ export const record = $root.record = (() => { object.securityData = null; object.securityScoreData = null; } - if (message.recordUid != null && message.hasOwnProperty("recordUid")) + if (message.recordUid != null && Object.hasOwnProperty.call(message, "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")) + if (message.recordKey != null && Object.hasOwnProperty.call(message, "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")) + if (message.recordKeyType != null && Object.hasOwnProperty.call(message, "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")) + if (message.recordKeyEncryptedBy != null && Object.hasOwnProperty.call(message, "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 (message.clientModifiedTime != null && Object.hasOwnProperty.call(message, "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") 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")) + if (message.data != null && Object.hasOwnProperty.call(message, "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")) + if (message.nonSharedData != null && Object.hasOwnProperty.call(message, "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")) + if (message.folderUid != null && Object.hasOwnProperty.call(message, "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, q + 1); } - if (message.audit != null && message.hasOwnProperty("audit")) + if (message.audit != null && Object.hasOwnProperty.call(message, "audit")) object.audit = $root.Records.RecordAudit.toObject(message.audit, options, q + 1); - if (message.securityData != null && message.hasOwnProperty("securityData")) + if (message.securityData != null && Object.hasOwnProperty.call(message, "securityData")) object.securityData = $root.Records.SecurityData.toObject(message.securityData, options, q + 1); - if (message.securityScoreData != null && message.hasOwnProperty("securityScoreData")) + if (message.securityScoreData != null && Object.hasOwnProperty.call(message, "securityScoreData")) object.securityScoreData = $root.Records.SecurityScoreData.toObject(message.securityScoreData, options, q + 1); return object; }; @@ -258131,19 +210327,6 @@ export const Upsell = $root.Upsell = (() => { return writer; }; - /** - * Encodes the specified UpsellRequest message, length delimited. Does not implicitly {@link Upsell.UpsellRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof Upsell.UpsellRequest - * @static - * @param {Upsell.IUpsellRequest} message UpsellRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - UpsellRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes an UpsellRequest message from the specified reader or buffer. * @function decode @@ -258192,52 +210375,6 @@ export const Upsell = $root.Upsell = (() => { return message; }; - /** - * Decodes an UpsellRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Upsell.UpsellRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Upsell.UpsellRequest} UpsellRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - UpsellRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an UpsellRequest message. - * @function verify - * @memberof Upsell.UpsellRequest - * @static - * @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) { - if (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"; - if (message.locale != null && message.hasOwnProperty("locale")) - if (!$util.isString(message.locale)) - return "locale: string expected"; - if (message.clientVersion != null && message.hasOwnProperty("clientVersion")) - if (!$util.isString(message.clientVersion)) - return "clientVersion: string expected"; - if (message.sessionToken != null && message.hasOwnProperty("sessionToken")) - if (!$util.isString(message.sessionToken)) - return "sessionToken: string expected"; - return null; - }; - /** * Creates an UpsellRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -258249,6 +210386,8 @@ export const Upsell = $root.Upsell = (() => { UpsellRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.Upsell.UpsellRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".Upsell.UpsellRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -258288,13 +210427,13 @@ export const Upsell = $root.Upsell = (() => { object.clientVersion = ""; object.sessionToken = ""; } - if (message.email != null && message.hasOwnProperty("email")) + if (message.email != null && Object.hasOwnProperty.call(message, "email")) object.email = message.email; - if (message.locale != null && message.hasOwnProperty("locale")) + if (message.locale != null && Object.hasOwnProperty.call(message, "locale")) object.locale = message.locale; - if (message.clientVersion != null && message.hasOwnProperty("clientVersion")) + if (message.clientVersion != null && Object.hasOwnProperty.call(message, "clientVersion")) object.clientVersion = message.clientVersion; - if (message.sessionToken != null && message.hasOwnProperty("sessionToken")) + if (message.sessionToken != null && Object.hasOwnProperty.call(message, "sessionToken")) object.sessionToken = message.sessionToken; return object; }; @@ -258395,19 +210534,6 @@ export const Upsell = $root.Upsell = (() => { return writer; }; - /** - * Encodes the specified UpsellResponse message, length delimited. Does not implicitly {@link Upsell.UpsellResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof Upsell.UpsellResponse - * @static - * @param {Upsell.IUpsellResponse} message UpsellResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - UpsellResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes an UpsellResponse message from the specified reader or buffer. * @function decode @@ -258446,49 +210572,6 @@ export const Upsell = $root.Upsell = (() => { return message; }; - /** - * Decodes an UpsellResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Upsell.UpsellResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Upsell.UpsellResponse} UpsellResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - UpsellResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an UpsellResponse message. - * @function verify - * @memberof Upsell.UpsellResponse - * @static - * @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) { - if (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); - if (error) - return "UpsellBanner." + error; - } - } - return null; - }; - /** * Creates an UpsellResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -258500,6 +210583,8 @@ export const Upsell = $root.Upsell = (() => { UpsellResponse.fromObject = function fromObject(object, long) { if (object instanceof $root.Upsell.UpsellResponse) return object; + if (!$util.isObject(object)) + throw TypeError(".Upsell.UpsellResponse: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -258510,7 +210595,7 @@ export const Upsell = $root.Upsell = (() => { throw TypeError(".Upsell.UpsellResponse.UpsellBanner: array expected"); message.UpsellBanner = []; for (let i = 0; i < object.UpsellBanner.length; ++i) { - if (typeof object.UpsellBanner[i] !== "object") + if (!$util.isObject(object.UpsellBanner[i])) throw TypeError(".Upsell.UpsellResponse.UpsellBanner: object expected"); message.UpsellBanner[i] = $root.Upsell.UpsellBanner.fromObject(object.UpsellBanner[i], long + 1); } @@ -258705,19 +210790,6 @@ export const Upsell = $root.Upsell = (() => { return writer; }; - /** - * Encodes the specified UpsellBanner message, length delimited. Does not implicitly {@link Upsell.UpsellBanner.verify|verify} messages. - * @function encodeDelimited - * @memberof Upsell.UpsellBanner - * @static - * @param {Upsell.IUpsellBanner} message UpsellBanner message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - UpsellBanner.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes an UpsellBanner message from the specified reader or buffer. * @function decode @@ -258778,61 +210850,6 @@ export const Upsell = $root.Upsell = (() => { return message; }; - /** - * Decodes an UpsellBanner message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Upsell.UpsellBanner - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Upsell.UpsellBanner} UpsellBanner - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - UpsellBanner.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an UpsellBanner message. - * @function verify - * @memberof Upsell.UpsellBanner - * @static - * @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) { - if (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"; - if (message.bannerOkAction != null && message.hasOwnProperty("bannerOkAction")) - if (!$util.isString(message.bannerOkAction)) - return "bannerOkAction: string expected"; - if (message.bannerOkButton != null && message.hasOwnProperty("bannerOkButton")) - if (!$util.isString(message.bannerOkButton)) - return "bannerOkButton: string expected"; - if (message.bannerCancelAction != null && message.hasOwnProperty("bannerCancelAction")) - if (!$util.isString(message.bannerCancelAction)) - return "bannerCancelAction: string expected"; - if (message.bannerCancelButton != null && message.hasOwnProperty("bannerCancelButton")) - if (!$util.isString(message.bannerCancelButton)) - return "bannerCancelButton: string expected"; - if (message.bannerMessage != null && message.hasOwnProperty("bannerMessage")) - if (!$util.isString(message.bannerMessage)) - return "bannerMessage: string expected"; - if (message.locale != null && message.hasOwnProperty("locale")) - if (!$util.isString(message.locale)) - return "locale: string expected"; - return null; - }; - /** * Creates an UpsellBanner message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -258844,6 +210861,8 @@ export const Upsell = $root.Upsell = (() => { UpsellBanner.fromObject = function fromObject(object, long) { if (object instanceof $root.Upsell.UpsellBanner) return object; + if (!$util.isObject(object)) + throw TypeError(".Upsell.UpsellBanner: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -258892,19 +210911,19 @@ export const Upsell = $root.Upsell = (() => { object.bannerMessage = ""; object.locale = ""; } - if (message.bannerId != null && message.hasOwnProperty("bannerId")) + if (message.bannerId != null && Object.hasOwnProperty.call(message, "bannerId")) object.bannerId = message.bannerId; - if (message.bannerOkAction != null && message.hasOwnProperty("bannerOkAction")) + if (message.bannerOkAction != null && Object.hasOwnProperty.call(message, "bannerOkAction")) object.bannerOkAction = message.bannerOkAction; - if (message.bannerOkButton != null && message.hasOwnProperty("bannerOkButton")) + if (message.bannerOkButton != null && Object.hasOwnProperty.call(message, "bannerOkButton")) object.bannerOkButton = message.bannerOkButton; - if (message.bannerCancelAction != null && message.hasOwnProperty("bannerCancelAction")) + if (message.bannerCancelAction != null && Object.hasOwnProperty.call(message, "bannerCancelAction")) object.bannerCancelAction = message.bannerCancelAction; - if (message.bannerCancelButton != null && message.hasOwnProperty("bannerCancelButton")) + if (message.bannerCancelButton != null && Object.hasOwnProperty.call(message, "bannerCancelButton")) object.bannerCancelButton = message.bannerCancelButton; - if (message.bannerMessage != null && message.hasOwnProperty("bannerMessage")) + if (message.bannerMessage != null && Object.hasOwnProperty.call(message, "bannerMessage")) object.bannerMessage = message.bannerMessage; - if (message.locale != null && message.hasOwnProperty("locale")) + if (message.locale != null && Object.hasOwnProperty.call(message, "locale")) object.locale = message.locale; return object; }; @@ -259101,19 +211120,6 @@ export const BI = $root.BI = (() => { return writer; }; - /** - * Encodes the specified ValidateSessionTokenRequest message, length delimited. Does not implicitly {@link BI.ValidateSessionTokenRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof BI.ValidateSessionTokenRequest - * @static - * @param {BI.IValidateSessionTokenRequest} message ValidateSessionTokenRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ValidateSessionTokenRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a ValidateSessionTokenRequest message from the specified reader or buffer. * @function decode @@ -259158,49 +211164,6 @@ export const BI = $root.BI = (() => { return message; }; - /** - * Decodes a ValidateSessionTokenRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof BI.ValidateSessionTokenRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {BI.ValidateSessionTokenRequest} ValidateSessionTokenRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ValidateSessionTokenRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a ValidateSessionTokenRequest message. - * @function verify - * @memberof BI.ValidateSessionTokenRequest - * @static - * @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) { - if (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"; - if (message.returnMcEnterpiseIds != null && message.hasOwnProperty("returnMcEnterpiseIds")) - if (typeof message.returnMcEnterpiseIds !== "boolean") - return "returnMcEnterpiseIds: boolean expected"; - if (message.ip != null && message.hasOwnProperty("ip")) - if (!$util.isString(message.ip)) - return "ip: string expected"; - return null; - }; - /** * Creates a ValidateSessionTokenRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -259212,6 +211175,8 @@ export const BI = $root.BI = (() => { ValidateSessionTokenRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.BI.ValidateSessionTokenRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".BI.ValidateSessionTokenRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -259257,11 +211222,11 @@ export const BI = $root.BI = (() => { object.returnMcEnterpiseIds = false; object.ip = ""; } - if (message.encryptedSessionToken != null && message.hasOwnProperty("encryptedSessionToken")) + if (message.encryptedSessionToken != null && Object.hasOwnProperty.call(message, "encryptedSessionToken")) object.encryptedSessionToken = options.bytes === String ? $util.base64.encode(message.encryptedSessionToken, 0, message.encryptedSessionToken.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedSessionToken) : message.encryptedSessionToken; - if (message.returnMcEnterpiseIds != null && message.hasOwnProperty("returnMcEnterpiseIds")) + if (message.returnMcEnterpiseIds != null && Object.hasOwnProperty.call(message, "returnMcEnterpiseIds")) object.returnMcEnterpiseIds = message.returnMcEnterpiseIds; - if (message.ip != null && message.hasOwnProperty("ip")) + if (message.ip != null && Object.hasOwnProperty.call(message, "ip")) object.ip = message.ip; return object; }; @@ -259447,19 +211412,6 @@ export const BI = $root.BI = (() => { return writer; }; - /** - * Encodes the specified ValidateSessionTokenResponse message, length delimited. Does not implicitly {@link BI.ValidateSessionTokenResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof BI.ValidateSessionTokenResponse - * @static - * @param {BI.IValidateSessionTokenResponse} message ValidateSessionTokenResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ValidateSessionTokenResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a ValidateSessionTokenResponse message from the specified reader or buffer. * @function decode @@ -259538,80 +211490,6 @@ export const BI = $root.BI = (() => { return message; }; - /** - * Decodes a ValidateSessionTokenResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof BI.ValidateSessionTokenResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {BI.ValidateSessionTokenResponse} ValidateSessionTokenResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ValidateSessionTokenResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a ValidateSessionTokenResponse message. - * @function verify - * @memberof BI.ValidateSessionTokenResponse - * @static - * @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) { - if (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"; - if (message.userId != null && message.hasOwnProperty("userId")) - if (!$util.isInteger(message.userId)) - return "userId: integer expected"; - 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"; - if (message.status != null && message.hasOwnProperty("status")) - switch (message.status) { - default: - return "status: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - break; - } - if (message.statusMessage != null && message.hasOwnProperty("statusMessage")) - if (!$util.isString(message.statusMessage)) - return "statusMessage: string expected"; - if (message.mcEnterpriseIds != null && message.hasOwnProperty("mcEnterpriseIds")) { - if (!Array.isArray(message.mcEnterpriseIds)) - return "mcEnterpriseIds: array expected"; - for (let i = 0; i < message.mcEnterpriseIds.length; ++i) - if (!$util.isInteger(message.mcEnterpriseIds[i])) - return "mcEnterpriseIds: integer[] expected"; - } - if (message.hasMSPPermission != null && message.hasOwnProperty("hasMSPPermission")) - if (typeof message.hasMSPPermission !== "boolean") - return "hasMSPPermission: boolean expected"; - if (message.deletedMcEnterpriseIds != null && message.hasOwnProperty("deletedMcEnterpriseIds")) { - if (!Array.isArray(message.deletedMcEnterpriseIds)) - return "deletedMcEnterpriseIds: array expected"; - for (let i = 0; i < message.deletedMcEnterpriseIds.length; ++i) - if (!$util.isInteger(message.deletedMcEnterpriseIds[i])) - return "deletedMcEnterpriseIds: integer[] expected"; - } - return null; - }; - /** * Creates a ValidateSessionTokenResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -259623,6 +211501,8 @@ export const BI = $root.BI = (() => { ValidateSessionTokenResponse.fromObject = function fromObject(object, long) { if (object instanceof $root.BI.ValidateSessionTokenResponse) return object; + if (!$util.isObject(object)) + throw TypeError(".BI.ValidateSessionTokenResponse: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -259723,27 +211603,27 @@ export const BI = $root.BI = (() => { object.statusMessage = ""; object.hasMSPPermission = false; } - if (message.username != null && message.hasOwnProperty("username")) + if (message.username != null && Object.hasOwnProperty.call(message, "username")) object.username = message.username; - if (message.userId != null && message.hasOwnProperty("userId")) + if (message.userId != null && Object.hasOwnProperty.call(message, "userId")) object.userId = message.userId; - if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) + if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, "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") 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.status != null && message.hasOwnProperty("status")) + if (message.status != null && Object.hasOwnProperty.call(message, "status")) object.status = options.enums === String ? $root.BI.ValidateSessionTokenResponse.Status[message.status] === undefined ? message.status : $root.BI.ValidateSessionTokenResponse.Status[message.status] : message.status; - if (message.statusMessage != null && message.hasOwnProperty("statusMessage")) + if (message.statusMessage != null && Object.hasOwnProperty.call(message, "statusMessage")) object.statusMessage = message.statusMessage; if (message.mcEnterpriseIds && message.mcEnterpriseIds.length) { object.mcEnterpriseIds = []; for (let j = 0; j < message.mcEnterpriseIds.length; ++j) object.mcEnterpriseIds[j] = message.mcEnterpriseIds[j]; } - if (message.hasMSPPermission != null && message.hasOwnProperty("hasMSPPermission")) + if (message.hasMSPPermission != null && Object.hasOwnProperty.call(message, "hasMSPPermission")) object.hasMSPPermission = message.hasMSPPermission; if (message.deletedMcEnterpriseIds && message.deletedMcEnterpriseIds.length) { object.deletedMcEnterpriseIds = []; @@ -259856,19 +211736,6 @@ export const BI = $root.BI = (() => { return writer; }; - /** - * Encodes the specified SubscriptionStatusRequest message, length delimited. Does not implicitly {@link BI.SubscriptionStatusRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof BI.SubscriptionStatusRequest - * @static - * @param {BI.ISubscriptionStatusRequest} message SubscriptionStatusRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SubscriptionStatusRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a SubscriptionStatusRequest message from the specified reader or buffer. * @function decode @@ -259901,40 +211768,6 @@ export const BI = $root.BI = (() => { return message; }; - /** - * Decodes a SubscriptionStatusRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof BI.SubscriptionStatusRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {BI.SubscriptionStatusRequest} SubscriptionStatusRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SubscriptionStatusRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a SubscriptionStatusRequest message. - * @function verify - * @memberof BI.SubscriptionStatusRequest - * @static - * @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) { - 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 SubscriptionStatusRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -259946,10 +211779,6 @@ export const BI = $root.BI = (() => { SubscriptionStatusRequest.fromObject = function fromObject(object, long) { 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(); }; @@ -260216,19 +212045,6 @@ export const BI = $root.BI = (() => { return writer; }; - /** - * Encodes the specified SubscriptionStatusResponse message, length delimited. Does not implicitly {@link BI.SubscriptionStatusResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof BI.SubscriptionStatusResponse - * @static - * @param {BI.ISubscriptionStatusResponse} message SubscriptionStatusResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SubscriptionStatusResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a SubscriptionStatusResponse message from the specified reader or buffer. * @function decode @@ -260323,106 +212139,6 @@ export const BI = $root.BI = (() => { return message; }; - /** - * Decodes a SubscriptionStatusResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof BI.SubscriptionStatusResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {BI.SubscriptionStatusResponse} SubscriptionStatusResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SubscriptionStatusResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a SubscriptionStatusResponse message. - * @function verify - * @memberof BI.SubscriptionStatusResponse - * @static - * @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) { - if (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); - if (error) - return "autoRenewal." + error; - } - if (message.currentPaymentMethod != null && message.hasOwnProperty("currentPaymentMethod")) { - let error = $root.BI.PaymentMethod.verify(message.currentPaymentMethod, long + 1); - if (error) - return "currentPaymentMethod." + error; - } - if (message.checkoutLink != null && message.hasOwnProperty("checkoutLink")) - if (!$util.isString(message.checkoutLink)) - return "checkoutLink: string expected"; - if (message.licenseCreateDate != null && message.hasOwnProperty("licenseCreateDate")) - if (!$util.isInteger(message.licenseCreateDate) && !(message.licenseCreateDate && $util.isInteger(message.licenseCreateDate.low) && $util.isInteger(message.licenseCreateDate.high))) - return "licenseCreateDate: integer|Long expected"; - if (message.isDistributor != null && message.hasOwnProperty("isDistributor")) - if (typeof message.isDistributor !== "boolean") - return "isDistributor: boolean expected"; - if (message.isLegacyMsp != null && message.hasOwnProperty("isLegacyMsp")) - if (typeof message.isLegacyMsp !== "boolean") - return "isLegacyMsp: boolean expected"; - if (message.licenseStats != null && message.hasOwnProperty("licenseStats")) { - 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); - if (error) - return "licenseStats." + error; - } - } - if (message.gradientStatus != null && message.hasOwnProperty("gradientStatus")) - switch (message.gradientStatus) { - default: - return "gradientStatus: enum value expected"; - case 0: - case 1: - case 2: - case 3: - break; - } - if (message.hideTrialBanner != null && message.hasOwnProperty("hideTrialBanner")) - if (typeof message.hideTrialBanner !== "boolean") - return "hideTrialBanner: boolean expected"; - if (message.gradientLastSyncDate != null && message.hasOwnProperty("gradientLastSyncDate")) - if (!$util.isString(message.gradientLastSyncDate)) - return "gradientLastSyncDate: string expected"; - if (message.gradientNextSyncDate != null && message.hasOwnProperty("gradientNextSyncDate")) - if (!$util.isString(message.gradientNextSyncDate)) - return "gradientNextSyncDate: string expected"; - if (message.isGradientMappingPending != null && message.hasOwnProperty("isGradientMappingPending")) - 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); - if (error) - return "nhi." + error; - } - if (message.freeKsmApiCallsCount != null && message.hasOwnProperty("freeKsmApiCallsCount")) - 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); - if (error) - return "ksm." + error; - } - return null; - }; - /** * Creates a SubscriptionStatusResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -260434,18 +212150,20 @@ export const BI = $root.BI = (() => { SubscriptionStatusResponse.fromObject = function fromObject(object, long) { if (object instanceof $root.BI.SubscriptionStatusResponse) return object; + if (!$util.isObject(object)) + throw TypeError(".BI.SubscriptionStatusResponse: object expected"); 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") + if (!$util.isObject(object.autoRenewal)) throw TypeError(".BI.SubscriptionStatusResponse.autoRenewal: object expected"); message.autoRenewal = $root.BI.AutoRenewal.fromObject(object.autoRenewal, long + 1); } if (object.currentPaymentMethod != null) { - if (typeof object.currentPaymentMethod !== "object") + if (!$util.isObject(object.currentPaymentMethod)) throw TypeError(".BI.SubscriptionStatusResponse.currentPaymentMethod: object expected"); message.currentPaymentMethod = $root.BI.PaymentMethod.fromObject(object.currentPaymentMethod, long + 1); } @@ -260469,7 +212187,7 @@ export const BI = $root.BI = (() => { throw TypeError(".BI.SubscriptionStatusResponse.licenseStats: array expected"); message.licenseStats = []; for (let i = 0; i < object.licenseStats.length; ++i) { - if (typeof object.licenseStats[i] !== "object") + if (!$util.isObject(object.licenseStats[i])) throw TypeError(".BI.SubscriptionStatusResponse.licenseStats: object expected"); message.licenseStats[i] = $root.BI.LicenseStats.fromObject(object.licenseStats[i], long + 1); } @@ -260507,14 +212225,14 @@ export const BI = $root.BI = (() => { if (object.isGradientMappingPending != null) message.isGradientMappingPending = Boolean(object.isGradientMappingPending); if (object.nhi != null) { - if (typeof object.nhi !== "object") + if (!$util.isObject(object.nhi)) throw TypeError(".BI.SubscriptionStatusResponse.nhi: object expected"); message.nhi = $root.BI.NhiBilling.fromObject(object.nhi, long + 1); } if (object.freeKsmApiCallsCount != null) message.freeKsmApiCallsCount = object.freeKsmApiCallsCount | 0; if (object.ksm != null) { - if (typeof object.ksm !== "object") + if (!$util.isObject(object.ksm)) throw TypeError(".BI.SubscriptionStatusResponse.ksm: object expected"); message.ksm = $root.BI.KsmBilling.fromObject(object.ksm, long + 1); } @@ -260560,43 +212278,43 @@ export const BI = $root.BI = (() => { object.freeKsmApiCallsCount = 0; object.ksm = null; } - if (message.autoRenewal != null && message.hasOwnProperty("autoRenewal")) + if (message.autoRenewal != null && Object.hasOwnProperty.call(message, "autoRenewal")) object.autoRenewal = $root.BI.AutoRenewal.toObject(message.autoRenewal, options, q + 1); - if (message.currentPaymentMethod != null && message.hasOwnProperty("currentPaymentMethod")) + if (message.currentPaymentMethod != null && Object.hasOwnProperty.call(message, "currentPaymentMethod")) object.currentPaymentMethod = $root.BI.PaymentMethod.toObject(message.currentPaymentMethod, options, q + 1); - if (message.checkoutLink != null && message.hasOwnProperty("checkoutLink")) + if (message.checkoutLink != null && Object.hasOwnProperty.call(message, "checkoutLink")) object.checkoutLink = message.checkoutLink; - if (message.licenseCreateDate != null && message.hasOwnProperty("licenseCreateDate")) + if (message.licenseCreateDate != null && Object.hasOwnProperty.call(message, "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") 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; - if (message.isDistributor != null && message.hasOwnProperty("isDistributor")) + if (message.isDistributor != null && Object.hasOwnProperty.call(message, "isDistributor")) object.isDistributor = message.isDistributor; - if (message.isLegacyMsp != null && message.hasOwnProperty("isLegacyMsp")) + if (message.isLegacyMsp != null && Object.hasOwnProperty.call(message, "isLegacyMsp")) object.isLegacyMsp = message.isLegacyMsp; 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); } - if (message.gradientStatus != null && message.hasOwnProperty("gradientStatus")) + if (message.gradientStatus != null && Object.hasOwnProperty.call(message, "gradientStatus")) object.gradientStatus = options.enums === String ? $root.BI.GradientIntegrationStatus[message.gradientStatus] === undefined ? message.gradientStatus : $root.BI.GradientIntegrationStatus[message.gradientStatus] : message.gradientStatus; - if (message.hideTrialBanner != null && message.hasOwnProperty("hideTrialBanner")) + if (message.hideTrialBanner != null && Object.hasOwnProperty.call(message, "hideTrialBanner")) object.hideTrialBanner = message.hideTrialBanner; - if (message.gradientLastSyncDate != null && message.hasOwnProperty("gradientLastSyncDate")) + if (message.gradientLastSyncDate != null && Object.hasOwnProperty.call(message, "gradientLastSyncDate")) object.gradientLastSyncDate = message.gradientLastSyncDate; - if (message.gradientNextSyncDate != null && message.hasOwnProperty("gradientNextSyncDate")) + if (message.gradientNextSyncDate != null && Object.hasOwnProperty.call(message, "gradientNextSyncDate")) object.gradientNextSyncDate = message.gradientNextSyncDate; - if (message.isGradientMappingPending != null && message.hasOwnProperty("isGradientMappingPending")) + if (message.isGradientMappingPending != null && Object.hasOwnProperty.call(message, "isGradientMappingPending")) object.isGradientMappingPending = message.isGradientMappingPending; - if (message.nhi != null && message.hasOwnProperty("nhi")) + if (message.nhi != null && Object.hasOwnProperty.call(message, "nhi")) object.nhi = $root.BI.NhiBilling.toObject(message.nhi, options, q + 1); - if (message.freeKsmApiCallsCount != null && message.hasOwnProperty("freeKsmApiCallsCount")) + if (message.freeKsmApiCallsCount != null && Object.hasOwnProperty.call(message, "freeKsmApiCallsCount")) object.freeKsmApiCallsCount = message.freeKsmApiCallsCount; - if (message.ksm != null && message.hasOwnProperty("ksm")) + if (message.ksm != null && Object.hasOwnProperty.call(message, "ksm")) object.ksm = $root.BI.KsmBilling.toObject(message.ksm, options, q + 1); return object; }; @@ -260739,19 +212457,6 @@ export const BI = $root.BI = (() => { return writer; }; - /** - * Encodes the specified KsmBilling message, length delimited. Does not implicitly {@link BI.KsmBilling.verify|verify} messages. - * @function encodeDelimited - * @memberof BI.KsmBilling - * @static - * @param {BI.IKsmBilling} message KsmBilling message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - KsmBilling.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a KsmBilling message from the specified reader or buffer. * @function decode @@ -260804,55 +212509,6 @@ export const BI = $root.BI = (() => { 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 @@ -260864,6 +212520,8 @@ export const BI = $root.BI = (() => { KsmBilling.fromObject = function fromObject(object, long) { if (object instanceof $root.BI.KsmBilling) return object; + if (!$util.isObject(object)) + throw TypeError(".BI.KsmBilling: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -260928,25 +212586,25 @@ export const BI = $root.BI = (() => { object.enterpriseBlocks = 0; object.currentTierCeiling = 0; } - if (message.billingStartTimestamp != null && message.hasOwnProperty("billingStartTimestamp")) + if (message.billingStartTimestamp != null && Object.hasOwnProperty.call(message, "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 (message.billingEndTimestamp != null && Object.hasOwnProperty.call(message, "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")) + if (message.currentTierId != null && Object.hasOwnProperty.call(message, "currentTierId")) object.currentTierId = message.currentTierId; - if (message.enterpriseBlocks != null && message.hasOwnProperty("enterpriseBlocks")) + if (message.enterpriseBlocks != null && Object.hasOwnProperty.call(message, "enterpriseBlocks")) object.enterpriseBlocks = message.enterpriseBlocks; - if (message.currentTierCeiling != null && message.hasOwnProperty("currentTierCeiling")) + if (message.currentTierCeiling != null && Object.hasOwnProperty.call(message, "currentTierCeiling")) object.currentTierCeiling = message.currentTierCeiling; return object; }; @@ -261102,19 +212760,6 @@ export const BI = $root.BI = (() => { 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 @@ -261173,64 +212818,6 @@ export const BI = $root.BI = (() => { return message; }; - /** - * Decodes a NhiBilling message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof BI.NhiBilling - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @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.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a NhiBilling message. - * @function verify - * @memberof BI.NhiBilling - * @static - * @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) { - if (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"; - if (message.billingPeriods != null && message.hasOwnProperty("billingPeriods")) { - 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); - if (error) - return "billingPeriods." + error; - } - } - return null; - }; - /** * Creates a NhiBilling message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -261242,6 +212829,8 @@ export const BI = $root.BI = (() => { NhiBilling.fromObject = function fromObject(object, long) { if (object instanceof $root.BI.NhiBilling) return object; + if (!$util.isObject(object)) + throw TypeError(".BI.NhiBilling: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -261276,7 +212865,7 @@ export const BI = $root.BI = (() => { throw TypeError(".BI.NhiBilling.billingPeriods: array expected"); message.billingPeriods = []; for (let i = 0; i < object.billingPeriods.length; ++i) { - if (typeof object.billingPeriods[i] !== "object") + if (!$util.isObject(object.billingPeriods[i])) throw TypeError(".BI.NhiBilling.billingPeriods: object expected"); message.billingPeriods[i] = $root.BI.NhiBillingPeriod.fromObject(object.billingPeriods[i], long + 1); } @@ -261318,25 +212907,25 @@ export const BI = $root.BI = (() => { object.enterpriseBlocks = 0; object.currentTierCeiling = 0; } - if (message.billingStartTimestamp != null && message.hasOwnProperty("billingStartTimestamp")) + if (message.billingStartTimestamp != null && Object.hasOwnProperty.call(message, "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 (message.billingEndTimestamp != null && Object.hasOwnProperty.call(message, "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")) + if (message.currentTierId != null && Object.hasOwnProperty.call(message, "currentTierId")) object.currentTierId = message.currentTierId; - if (message.enterpriseBlocks != null && message.hasOwnProperty("enterpriseBlocks")) + if (message.enterpriseBlocks != null && Object.hasOwnProperty.call(message, "enterpriseBlocks")) object.enterpriseBlocks = message.enterpriseBlocks; - if (message.currentTierCeiling != null && message.hasOwnProperty("currentTierCeiling")) + if (message.currentTierCeiling != null && Object.hasOwnProperty.call(message, "currentTierCeiling")) object.currentTierCeiling = message.currentTierCeiling; if (message.billingPeriods && message.billingPeriods.length) { object.billingPeriods = []; @@ -261451,19 +213040,6 @@ export const BI = $root.BI = (() => { return writer; }; - /** - * Encodes the specified NhiBillingPeriod message, length delimited. Does not implicitly {@link BI.NhiBillingPeriod.verify|verify} messages. - * @function encodeDelimited - * @memberof BI.NhiBillingPeriod - * @static - * @param {BI.INhiBillingPeriod} message NhiBillingPeriod message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - NhiBillingPeriod.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a NhiBillingPeriod message from the specified reader or buffer. * @function decode @@ -261504,46 +213080,6 @@ export const BI = $root.BI = (() => { return message; }; - /** - * Decodes a NhiBillingPeriod message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof BI.NhiBillingPeriod - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {BI.NhiBillingPeriod} NhiBillingPeriod - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - NhiBillingPeriod.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a NhiBillingPeriod message. - * @function verify - * @memberof BI.NhiBillingPeriod - * @static - * @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) { - if (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"; - if (message.endTimestamp != null && message.hasOwnProperty("endTimestamp")) - if (!$util.isInteger(message.endTimestamp) && !(message.endTimestamp && $util.isInteger(message.endTimestamp.low) && $util.isInteger(message.endTimestamp.high))) - return "endTimestamp: integer|Long expected"; - return null; - }; - /** * Creates a NhiBillingPeriod message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -261555,6 +213091,8 @@ export const BI = $root.BI = (() => { NhiBillingPeriod.fromObject = function fromObject(object, long) { if (object instanceof $root.BI.NhiBillingPeriod) return object; + if (!$util.isObject(object)) + throw TypeError(".BI.NhiBillingPeriod: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -261610,14 +213148,14 @@ export const BI = $root.BI = (() => { } else object.endTimestamp = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; } - if (message.startTimestamp != null && message.hasOwnProperty("startTimestamp")) + if (message.startTimestamp != null && Object.hasOwnProperty.call(message, "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") 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 (message.endTimestamp != null && Object.hasOwnProperty.call(message, "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") @@ -261743,19 +213281,6 @@ export const BI = $root.BI = (() => { return writer; }; - /** - * Encodes the specified LicenseStats message, length delimited. Does not implicitly {@link BI.LicenseStats.verify|verify} messages. - * @function encodeDelimited - * @memberof BI.LicenseStats - * @static - * @param {BI.ILicenseStats} message LicenseStats message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - LicenseStats.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a LicenseStats message from the specified reader or buffer. * @function decode @@ -261800,61 +213325,6 @@ export const BI = $root.BI = (() => { return message; }; - /** - * Decodes a LicenseStats message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof BI.LicenseStats - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {BI.LicenseStats} LicenseStats - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - LicenseStats.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a LicenseStats message. - * @function verify - * @memberof BI.LicenseStats - * @static - * @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) { - if (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: - return "type: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: - break; - } - if (message.available != null && message.hasOwnProperty("available")) - if (!$util.isInteger(message.available)) - return "available: integer expected"; - if (message.used != null && message.hasOwnProperty("used")) - if (!$util.isInteger(message.used)) - return "used: integer expected"; - return null; - }; - /** * Creates a LicenseStats message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -261866,6 +213336,8 @@ export const BI = $root.BI = (() => { LicenseStats.fromObject = function fromObject(object, long) { if (object instanceof $root.BI.LicenseStats) return object; + if (!$util.isObject(object)) + throw TypeError(".BI.LicenseStats: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -261944,11 +213416,11 @@ export const BI = $root.BI = (() => { object.available = 0; object.used = 0; } - if (message.type != null && message.hasOwnProperty("type")) + if (message.type != null && Object.hasOwnProperty.call(message, "type")) object.type = options.enums === String ? $root.BI.LicenseStats.Type[message.type] === undefined ? message.type : $root.BI.LicenseStats.Type[message.type] : message.type; - if (message.available != null && message.hasOwnProperty("available")) + if (message.available != null && Object.hasOwnProperty.call(message, "available")) object.available = message.available; - if (message.used != null && message.hasOwnProperty("used")) + if (message.used != null && Object.hasOwnProperty.call(message, "used")) object.used = message.used; return object; }; @@ -262097,19 +213569,6 @@ export const BI = $root.BI = (() => { return writer; }; - /** - * Encodes the specified AutoRenewal message, length delimited. Does not implicitly {@link BI.AutoRenewal.verify|verify} messages. - * @function encodeDelimited - * @memberof BI.AutoRenewal - * @static - * @param {BI.IAutoRenewal} message AutoRenewal message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - AutoRenewal.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes an AutoRenewal message from the specified reader or buffer. * @function decode @@ -262154,49 +213613,6 @@ export const BI = $root.BI = (() => { return message; }; - /** - * Decodes an AutoRenewal message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof BI.AutoRenewal - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {BI.AutoRenewal} AutoRenewal - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - AutoRenewal.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an AutoRenewal message. - * @function verify - * @memberof BI.AutoRenewal - * @static - * @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) { - if (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"; - if (message.daysLeft != null && message.hasOwnProperty("daysLeft")) - if (!$util.isInteger(message.daysLeft)) - return "daysLeft: integer expected"; - if (message.isTrial != null && message.hasOwnProperty("isTrial")) - if (typeof message.isTrial !== "boolean") - return "isTrial: boolean expected"; - return null; - }; - /** * Creates an AutoRenewal message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -262208,6 +213624,8 @@ export const BI = $root.BI = (() => { AutoRenewal.fromObject = function fromObject(object, long) { if (object instanceof $root.BI.AutoRenewal) return object; + if (!$util.isObject(object)) + throw TypeError(".BI.AutoRenewal: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -262255,16 +213673,16 @@ export const BI = $root.BI = (() => { object.daysLeft = 0; object.isTrial = false; } - if (message.nextOn != null && message.hasOwnProperty("nextOn")) + if (message.nextOn != null && Object.hasOwnProperty.call(message, "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") 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; - if (message.daysLeft != null && message.hasOwnProperty("daysLeft")) + if (message.daysLeft != null && Object.hasOwnProperty.call(message, "daysLeft")) object.daysLeft = message.daysLeft; - if (message.isTrial != null && message.hasOwnProperty("isTrial")) + if (message.isTrial != null && Object.hasOwnProperty.call(message, "isTrial")) object.isTrial = message.isTrial; return object; }; @@ -262429,19 +213847,6 @@ export const BI = $root.BI = (() => { return writer; }; - /** - * Encodes the specified PaymentMethod message, length delimited. Does not implicitly {@link BI.PaymentMethod.verify|verify} messages. - * @function encodeDelimited - * @memberof BI.PaymentMethod - * @static - * @param {BI.IPaymentMethod} message PaymentMethod message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - PaymentMethod.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a PaymentMethod message from the specified reader or buffer. * @function decode @@ -262502,80 +213907,6 @@ export const BI = $root.BI = (() => { return message; }; - /** - * Decodes a PaymentMethod message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof BI.PaymentMethod - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {BI.PaymentMethod} PaymentMethod - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - PaymentMethod.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a PaymentMethod message. - * @function verify - * @memberof BI.PaymentMethod - * @static - * @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) { - if (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: - return "type: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - break; - } - if (message.card != null && message.hasOwnProperty("card")) { - let error = $root.BI.PaymentMethod.Card.verify(message.card, long + 1); - if (error) - return "card." + error; - } - if (message.sepa != null && message.hasOwnProperty("sepa")) { - let error = $root.BI.PaymentMethod.Sepa.verify(message.sepa, long + 1); - if (error) - return "sepa." + error; - } - if (message.paypal != null && message.hasOwnProperty("paypal")) { - let error = $root.BI.PaymentMethod.Paypal.verify(message.paypal, long + 1); - if (error) - return "paypal." + error; - } - if (message.failedBilling != null && message.hasOwnProperty("failedBilling")) - 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); - if (error) - return "vendor." + error; - } - if (message.purchaseOrder != null && message.hasOwnProperty("purchaseOrder")) { - let error = $root.BI.PaymentMethod.PurchaseOrder.verify(message.purchaseOrder, long + 1); - if (error) - return "purchaseOrder." + error; - } - return null; - }; - /** * Creates a PaymentMethod message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -262587,6 +213918,8 @@ export const BI = $root.BI = (() => { PaymentMethod.fromObject = function fromObject(object, long) { if (object instanceof $root.BI.PaymentMethod) return object; + if (!$util.isObject(object)) + throw TypeError(".BI.PaymentMethod: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -262625,29 +213958,29 @@ export const BI = $root.BI = (() => { break; } if (object.card != null) { - if (typeof object.card !== "object") + if (!$util.isObject(object.card)) throw TypeError(".BI.PaymentMethod.card: object expected"); message.card = $root.BI.PaymentMethod.Card.fromObject(object.card, long + 1); } if (object.sepa != null) { - if (typeof object.sepa !== "object") + if (!$util.isObject(object.sepa)) throw TypeError(".BI.PaymentMethod.sepa: object expected"); message.sepa = $root.BI.PaymentMethod.Sepa.fromObject(object.sepa, long + 1); } if (object.paypal != null) { - if (typeof object.paypal !== "object") + if (!$util.isObject(object.paypal)) throw TypeError(".BI.PaymentMethod.paypal: object expected"); message.paypal = $root.BI.PaymentMethod.Paypal.fromObject(object.paypal, long + 1); } if (object.failedBilling != null) message.failedBilling = Boolean(object.failedBilling); if (object.vendor != null) { - if (typeof object.vendor !== "object") + if (!$util.isObject(object.vendor)) throw TypeError(".BI.PaymentMethod.vendor: object expected"); message.vendor = $root.BI.PaymentMethod.Vendor.fromObject(object.vendor, long + 1); } if (object.purchaseOrder != null) { - if (typeof object.purchaseOrder !== "object") + if (!$util.isObject(object.purchaseOrder)) throw TypeError(".BI.PaymentMethod.purchaseOrder: object expected"); message.purchaseOrder = $root.BI.PaymentMethod.PurchaseOrder.fromObject(object.purchaseOrder, long + 1); } @@ -262680,19 +214013,19 @@ export const BI = $root.BI = (() => { object.vendor = null; object.purchaseOrder = null; } - if (message.type != null && message.hasOwnProperty("type")) + if (message.type != null && Object.hasOwnProperty.call(message, "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")) + if (message.card != null && Object.hasOwnProperty.call(message, "card")) object.card = $root.BI.PaymentMethod.Card.toObject(message.card, options, q + 1); - if (message.sepa != null && message.hasOwnProperty("sepa")) + if (message.sepa != null && Object.hasOwnProperty.call(message, "sepa")) object.sepa = $root.BI.PaymentMethod.Sepa.toObject(message.sepa, options, q + 1); - if (message.paypal != null && message.hasOwnProperty("paypal")) + if (message.paypal != null && Object.hasOwnProperty.call(message, "paypal")) object.paypal = $root.BI.PaymentMethod.Paypal.toObject(message.paypal, options, q + 1); - if (message.failedBilling != null && message.hasOwnProperty("failedBilling")) + if (message.failedBilling != null && Object.hasOwnProperty.call(message, "failedBilling")) object.failedBilling = message.failedBilling; - if (message.vendor != null && message.hasOwnProperty("vendor")) + if (message.vendor != null && Object.hasOwnProperty.call(message, "vendor")) object.vendor = $root.BI.PaymentMethod.Vendor.toObject(message.vendor, options, q + 1); - if (message.purchaseOrder != null && message.hasOwnProperty("purchaseOrder")) + if (message.purchaseOrder != null && Object.hasOwnProperty.call(message, "purchaseOrder")) object.purchaseOrder = $root.BI.PaymentMethod.PurchaseOrder.toObject(message.purchaseOrder, options, q + 1); return object; }; @@ -262821,19 +214154,6 @@ export const BI = $root.BI = (() => { return writer; }; - /** - * Encodes the specified Card message, length delimited. Does not implicitly {@link BI.PaymentMethod.Card.verify|verify} messages. - * @function encodeDelimited - * @memberof BI.PaymentMethod.Card - * @static - * @param {BI.PaymentMethod.ICard} message Card message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Card.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a Card message from the specified reader or buffer. * @function decode @@ -262874,46 +214194,6 @@ export const BI = $root.BI = (() => { return message; }; - /** - * Decodes a Card message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof BI.PaymentMethod.Card - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {BI.PaymentMethod.Card} Card - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Card.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a Card message. - * @function verify - * @memberof BI.PaymentMethod.Card - * @static - * @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) { - if (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"; - if (message.brand != null && message.hasOwnProperty("brand")) - if (!$util.isString(message.brand)) - return "brand: string expected"; - return null; - }; - /** * Creates a Card message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -262925,6 +214205,8 @@ export const BI = $root.BI = (() => { Card.fromObject = function fromObject(object, long) { if (object instanceof $root.BI.PaymentMethod.Card) return object; + if (!$util.isObject(object)) + throw TypeError(".BI.PaymentMethod.Card: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -262958,9 +214240,9 @@ export const BI = $root.BI = (() => { object.last4 = ""; object.brand = ""; } - if (message.last4 != null && message.hasOwnProperty("last4")) + if (message.last4 != null && Object.hasOwnProperty.call(message, "last4")) object.last4 = message.last4; - if (message.brand != null && message.hasOwnProperty("brand")) + if (message.brand != null && Object.hasOwnProperty.call(message, "brand")) object.brand = message.brand; return object; }; @@ -263070,19 +214352,6 @@ export const BI = $root.BI = (() => { return writer; }; - /** - * Encodes the specified Sepa message, length delimited. Does not implicitly {@link BI.PaymentMethod.Sepa.verify|verify} messages. - * @function encodeDelimited - * @memberof BI.PaymentMethod.Sepa - * @static - * @param {BI.PaymentMethod.ISepa} message Sepa message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Sepa.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a Sepa message from the specified reader or buffer. * @function decode @@ -263123,46 +214392,6 @@ export const BI = $root.BI = (() => { return message; }; - /** - * Decodes a Sepa message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof BI.PaymentMethod.Sepa - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {BI.PaymentMethod.Sepa} Sepa - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Sepa.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a Sepa message. - * @function verify - * @memberof BI.PaymentMethod.Sepa - * @static - * @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) { - if (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"; - if (message.country != null && message.hasOwnProperty("country")) - if (!$util.isString(message.country)) - return "country: string expected"; - return null; - }; - /** * Creates a Sepa message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -263174,6 +214403,8 @@ export const BI = $root.BI = (() => { Sepa.fromObject = function fromObject(object, long) { if (object instanceof $root.BI.PaymentMethod.Sepa) return object; + if (!$util.isObject(object)) + throw TypeError(".BI.PaymentMethod.Sepa: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -263207,9 +214438,9 @@ export const BI = $root.BI = (() => { object.last4 = ""; object.country = ""; } - if (message.last4 != null && message.hasOwnProperty("last4")) + if (message.last4 != null && Object.hasOwnProperty.call(message, "last4")) object.last4 = message.last4; - if (message.country != null && message.hasOwnProperty("country")) + if (message.country != null && Object.hasOwnProperty.call(message, "country")) object.country = message.country; return object; }; @@ -263297,19 +214528,6 @@ export const BI = $root.BI = (() => { return writer; }; - /** - * Encodes the specified Paypal message, length delimited. Does not implicitly {@link BI.PaymentMethod.Paypal.verify|verify} messages. - * @function encodeDelimited - * @memberof BI.PaymentMethod.Paypal - * @static - * @param {BI.PaymentMethod.IPaypal} message Paypal message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Paypal.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a Paypal message from the specified reader or buffer. * @function decode @@ -263342,40 +214560,6 @@ export const BI = $root.BI = (() => { return message; }; - /** - * Decodes a Paypal message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof BI.PaymentMethod.Paypal - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {BI.PaymentMethod.Paypal} Paypal - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Paypal.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a Paypal message. - * @function verify - * @memberof BI.PaymentMethod.Paypal - * @static - * @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) { - 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 Paypal message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -263387,10 +214571,6 @@ export const BI = $root.BI = (() => { Paypal.fromObject = function fromObject(object, long) { 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(); }; @@ -263501,19 +214681,6 @@ export const BI = $root.BI = (() => { return writer; }; - /** - * Encodes the specified Vendor message, length delimited. Does not implicitly {@link BI.PaymentMethod.Vendor.verify|verify} messages. - * @function encodeDelimited - * @memberof BI.PaymentMethod.Vendor - * @static - * @param {BI.PaymentMethod.IVendor} message Vendor message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Vendor.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a Vendor message from the specified reader or buffer. * @function decode @@ -263550,43 +214717,6 @@ export const BI = $root.BI = (() => { return message; }; - /** - * Decodes a Vendor message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof BI.PaymentMethod.Vendor - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {BI.PaymentMethod.Vendor} Vendor - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Vendor.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a Vendor message. - * @function verify - * @memberof BI.PaymentMethod.Vendor - * @static - * @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) { - if (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"; - return null; - }; - /** * Creates a Vendor message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -263598,6 +214728,8 @@ export const BI = $root.BI = (() => { Vendor.fromObject = function fromObject(object, long) { if (object instanceof $root.BI.PaymentMethod.Vendor) return object; + if (!$util.isObject(object)) + throw TypeError(".BI.PaymentMethod.Vendor: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -263627,7 +214759,7 @@ export const BI = $root.BI = (() => { let object = {}; if (options.defaults) object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) + if (message.name != null && Object.hasOwnProperty.call(message, "name")) object.name = message.name; return object; }; @@ -263726,19 +214858,6 @@ export const BI = $root.BI = (() => { return writer; }; - /** - * Encodes the specified PurchaseOrder message, length delimited. Does not implicitly {@link BI.PaymentMethod.PurchaseOrder.verify|verify} messages. - * @function encodeDelimited - * @memberof BI.PaymentMethod.PurchaseOrder - * @static - * @param {BI.PaymentMethod.IPurchaseOrder} message PurchaseOrder message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - PurchaseOrder.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a PurchaseOrder message from the specified reader or buffer. * @function decode @@ -263775,43 +214894,6 @@ export const BI = $root.BI = (() => { return message; }; - /** - * Decodes a PurchaseOrder message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof BI.PaymentMethod.PurchaseOrder - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {BI.PaymentMethod.PurchaseOrder} PurchaseOrder - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - PurchaseOrder.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a PurchaseOrder message. - * @function verify - * @memberof BI.PaymentMethod.PurchaseOrder - * @static - * @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) { - if (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"; - return null; - }; - /** * Creates a PurchaseOrder message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -263823,6 +214905,8 @@ export const BI = $root.BI = (() => { PurchaseOrder.fromObject = function fromObject(object, long) { if (object instanceof $root.BI.PaymentMethod.PurchaseOrder) return object; + if (!$util.isObject(object)) + throw TypeError(".BI.PaymentMethod.PurchaseOrder: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -263852,7 +214936,7 @@ export const BI = $root.BI = (() => { let object = {}; if (options.defaults) object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) + if (message.name != null && Object.hasOwnProperty.call(message, "name")) object.name = message.name; return object; }; @@ -263943,19 +215027,6 @@ export const BI = $root.BI = (() => { return writer; }; - /** - * Encodes the specified SubscriptionMspPricingRequest message, length delimited. Does not implicitly {@link BI.SubscriptionMspPricingRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof BI.SubscriptionMspPricingRequest - * @static - * @param {BI.ISubscriptionMspPricingRequest} message SubscriptionMspPricingRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SubscriptionMspPricingRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a SubscriptionMspPricingRequest message from the specified reader or buffer. * @function decode @@ -263988,40 +215059,6 @@ export const BI = $root.BI = (() => { return message; }; - /** - * Decodes a SubscriptionMspPricingRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof BI.SubscriptionMspPricingRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {BI.SubscriptionMspPricingRequest} SubscriptionMspPricingRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SubscriptionMspPricingRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a SubscriptionMspPricingRequest message. - * @function verify - * @memberof BI.SubscriptionMspPricingRequest - * @static - * @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) { - 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 SubscriptionMspPricingRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -264033,10 +215070,6 @@ export const BI = $root.BI = (() => { SubscriptionMspPricingRequest.fromObject = function fromObject(object, long) { 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(); }; @@ -264162,19 +215195,6 @@ export const BI = $root.BI = (() => { return writer; }; - /** - * Encodes the specified SubscriptionMspPricingResponse message, length delimited. Does not implicitly {@link BI.SubscriptionMspPricingResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof BI.SubscriptionMspPricingResponse - * @static - * @param {BI.ISubscriptionMspPricingResponse} message SubscriptionMspPricingResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SubscriptionMspPricingResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a SubscriptionMspPricingResponse message from the specified reader or buffer. * @function decode @@ -264219,58 +215239,6 @@ export const BI = $root.BI = (() => { return message; }; - /** - * Decodes a SubscriptionMspPricingResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof BI.SubscriptionMspPricingResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {BI.SubscriptionMspPricingResponse} SubscriptionMspPricingResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SubscriptionMspPricingResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a SubscriptionMspPricingResponse message. - * @function verify - * @memberof BI.SubscriptionMspPricingResponse - * @static - * @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) { - if (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); - if (error) - return "addons." + error; - } - } - if (message.filePlans != null && message.hasOwnProperty("filePlans")) { - 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); - if (error) - return "filePlans." + error; - } - } - return null; - }; - /** * Creates a SubscriptionMspPricingResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -264282,6 +215250,8 @@ export const BI = $root.BI = (() => { SubscriptionMspPricingResponse.fromObject = function fromObject(object, long) { if (object instanceof $root.BI.SubscriptionMspPricingResponse) return object; + if (!$util.isObject(object)) + throw TypeError(".BI.SubscriptionMspPricingResponse: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -264292,7 +215262,7 @@ export const BI = $root.BI = (() => { throw TypeError(".BI.SubscriptionMspPricingResponse.addons: array expected"); message.addons = []; for (let i = 0; i < object.addons.length; ++i) { - if (typeof object.addons[i] !== "object") + if (!$util.isObject(object.addons[i])) throw TypeError(".BI.SubscriptionMspPricingResponse.addons: object expected"); message.addons[i] = $root.BI.Addon.fromObject(object.addons[i], long + 1); } @@ -264302,7 +215272,7 @@ export const BI = $root.BI = (() => { throw TypeError(".BI.SubscriptionMspPricingResponse.filePlans: array expected"); message.filePlans = []; for (let i = 0; i < object.filePlans.length; ++i) { - if (typeof object.filePlans[i] !== "object") + if (!$util.isObject(object.filePlans[i])) throw TypeError(".BI.SubscriptionMspPricingResponse.filePlans: object expected"); message.filePlans[i] = $root.BI.FilePlan.fromObject(object.filePlans[i], long + 1); } @@ -264427,19 +215397,6 @@ export const BI = $root.BI = (() => { return writer; }; - /** - * Encodes the specified SubscriptionMcPricingRequest message, length delimited. Does not implicitly {@link BI.SubscriptionMcPricingRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof BI.SubscriptionMcPricingRequest - * @static - * @param {BI.ISubscriptionMcPricingRequest} message SubscriptionMcPricingRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SubscriptionMcPricingRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a SubscriptionMcPricingRequest message from the specified reader or buffer. * @function decode @@ -264472,40 +215429,6 @@ export const BI = $root.BI = (() => { return message; }; - /** - * Decodes a SubscriptionMcPricingRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof BI.SubscriptionMcPricingRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {BI.SubscriptionMcPricingRequest} SubscriptionMcPricingRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SubscriptionMcPricingRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a SubscriptionMcPricingRequest message. - * @function verify - * @memberof BI.SubscriptionMcPricingRequest - * @static - * @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) { - 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 SubscriptionMcPricingRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -264517,10 +215440,6 @@ export const BI = $root.BI = (() => { SubscriptionMcPricingRequest.fromObject = function fromObject(object, long) { 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(); }; @@ -264659,19 +215578,6 @@ export const BI = $root.BI = (() => { return writer; }; - /** - * Encodes the specified SubscriptionMcPricingResponse message, length delimited. Does not implicitly {@link BI.SubscriptionMcPricingResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof BI.SubscriptionMcPricingResponse - * @static - * @param {BI.ISubscriptionMcPricingResponse} message SubscriptionMcPricingResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SubscriptionMcPricingResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a SubscriptionMcPricingResponse message from the specified reader or buffer. * @function decode @@ -264722,67 +215628,6 @@ export const BI = $root.BI = (() => { return message; }; - /** - * Decodes a SubscriptionMcPricingResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof BI.SubscriptionMcPricingResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {BI.SubscriptionMcPricingResponse} SubscriptionMcPricingResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SubscriptionMcPricingResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a SubscriptionMcPricingResponse message. - * @function verify - * @memberof BI.SubscriptionMcPricingResponse - * @static - * @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) { - if (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); - if (error) - return "basePlans." + error; - } - } - 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); - if (error) - return "addons." + error; - } - } - if (message.filePlans != null && message.hasOwnProperty("filePlans")) { - 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); - if (error) - return "filePlans." + error; - } - } - return null; - }; - /** * Creates a SubscriptionMcPricingResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -264794,6 +215639,8 @@ export const BI = $root.BI = (() => { SubscriptionMcPricingResponse.fromObject = function fromObject(object, long) { if (object instanceof $root.BI.SubscriptionMcPricingResponse) return object; + if (!$util.isObject(object)) + throw TypeError(".BI.SubscriptionMcPricingResponse: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -264804,7 +215651,7 @@ export const BI = $root.BI = (() => { throw TypeError(".BI.SubscriptionMcPricingResponse.basePlans: array expected"); message.basePlans = []; for (let i = 0; i < object.basePlans.length; ++i) { - if (typeof object.basePlans[i] !== "object") + if (!$util.isObject(object.basePlans[i])) throw TypeError(".BI.SubscriptionMcPricingResponse.basePlans: object expected"); message.basePlans[i] = $root.BI.BasePlan.fromObject(object.basePlans[i], long + 1); } @@ -264814,7 +215661,7 @@ export const BI = $root.BI = (() => { throw TypeError(".BI.SubscriptionMcPricingResponse.addons: array expected"); message.addons = []; for (let i = 0; i < object.addons.length; ++i) { - if (typeof object.addons[i] !== "object") + if (!$util.isObject(object.addons[i])) throw TypeError(".BI.SubscriptionMcPricingResponse.addons: object expected"); message.addons[i] = $root.BI.Addon.fromObject(object.addons[i], long + 1); } @@ -264824,7 +215671,7 @@ export const BI = $root.BI = (() => { throw TypeError(".BI.SubscriptionMcPricingResponse.filePlans: array expected"); message.filePlans = []; for (let i = 0; i < object.filePlans.length; ++i) { - if (typeof object.filePlans[i] !== "object") + if (!$util.isObject(object.filePlans[i])) throw TypeError(".BI.SubscriptionMcPricingResponse.filePlans: object expected"); message.filePlans[i] = $root.BI.FilePlan.fromObject(object.filePlans[i], long + 1); } @@ -264977,19 +215824,6 @@ export const BI = $root.BI = (() => { return writer; }; - /** - * Encodes the specified BasePlan message, length delimited. Does not implicitly {@link BI.BasePlan.verify|verify} messages. - * @function encodeDelimited - * @memberof BI.BasePlan - * @static - * @param {BI.IBasePlan} message BasePlan message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - BasePlan.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a BasePlan message from the specified reader or buffer. * @function decode @@ -265030,48 +215864,6 @@ export const BI = $root.BI = (() => { return message; }; - /** - * Decodes a BasePlan message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof BI.BasePlan - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {BI.BasePlan} BasePlan - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - BasePlan.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a BasePlan message. - * @function verify - * @memberof BI.BasePlan - * @static - * @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) { - if (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); - if (error) - return "cost." + error; - } - return null; - }; - /** * Creates a BasePlan message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -265083,6 +215875,8 @@ export const BI = $root.BI = (() => { BasePlan.fromObject = function fromObject(object, long) { if (object instanceof $root.BI.BasePlan) return object; + if (!$util.isObject(object)) + throw TypeError(".BI.BasePlan: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -265091,7 +215885,7 @@ export const BI = $root.BI = (() => { if (object.id != null) message.id = object.id | 0; if (object.cost != null) { - if (typeof object.cost !== "object") + if (!$util.isObject(object.cost)) throw TypeError(".BI.BasePlan.cost: object expected"); message.cost = $root.BI.Cost.fromObject(object.cost, long + 1); } @@ -265119,9 +215913,9 @@ export const BI = $root.BI = (() => { object.id = 0; object.cost = null; } - if (message.id != null && message.hasOwnProperty("id")) + if (message.id != null && Object.hasOwnProperty.call(message, "id")) object.id = message.id; - if (message.cost != null && message.hasOwnProperty("cost")) + if (message.cost != null && Object.hasOwnProperty.call(message, "cost")) object.cost = $root.BI.Cost.toObject(message.cost, options, q + 1); return object; }; @@ -265242,19 +216036,6 @@ export const BI = $root.BI = (() => { return writer; }; - /** - * Encodes the specified Addon message, length delimited. Does not implicitly {@link BI.Addon.verify|verify} messages. - * @function encodeDelimited - * @memberof BI.Addon - * @static - * @param {BI.IAddon} message Addon message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Addon.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes an Addon message from the specified reader or buffer. * @function decode @@ -265299,51 +216080,6 @@ export const BI = $root.BI = (() => { return message; }; - /** - * Decodes an Addon message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof BI.Addon - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {BI.Addon} Addon - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Addon.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an Addon message. - * @function verify - * @memberof BI.Addon - * @static - * @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) { - if (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); - if (error) - return "cost." + error; - } - if (message.amountConsumed != null && message.hasOwnProperty("amountConsumed")) - if (!$util.isInteger(message.amountConsumed) && !(message.amountConsumed && $util.isInteger(message.amountConsumed.low) && $util.isInteger(message.amountConsumed.high))) - return "amountConsumed: integer|Long expected"; - return null; - }; - /** * Creates an Addon message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -265355,6 +216091,8 @@ export const BI = $root.BI = (() => { Addon.fromObject = function fromObject(object, long) { if (object instanceof $root.BI.Addon) return object; + if (!$util.isObject(object)) + throw TypeError(".BI.Addon: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -265363,7 +216101,7 @@ export const BI = $root.BI = (() => { if (object.id != null) message.id = object.id | 0; if (object.cost != null) { - if (typeof object.cost !== "object") + if (!$util.isObject(object.cost)) throw TypeError(".BI.Addon.cost: object expected"); message.cost = $root.BI.Cost.fromObject(object.cost, long + 1); } @@ -265405,11 +216143,11 @@ export const BI = $root.BI = (() => { } else object.amountConsumed = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; } - if (message.id != null && message.hasOwnProperty("id")) + if (message.id != null && Object.hasOwnProperty.call(message, "id")) object.id = message.id; - if (message.cost != null && message.hasOwnProperty("cost")) + if (message.cost != null && Object.hasOwnProperty.call(message, "cost")) object.cost = $root.BI.Cost.toObject(message.cost, options, q + 1); - if (message.amountConsumed != null && message.hasOwnProperty("amountConsumed")) + if (message.amountConsumed != null && Object.hasOwnProperty.call(message, "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") @@ -265524,19 +216262,6 @@ export const BI = $root.BI = (() => { return writer; }; - /** - * Encodes the specified FilePlan message, length delimited. Does not implicitly {@link BI.FilePlan.verify|verify} messages. - * @function encodeDelimited - * @memberof BI.FilePlan - * @static - * @param {BI.IFilePlan} message FilePlan message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - FilePlan.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a FilePlan message from the specified reader or buffer. * @function decode @@ -265577,48 +216302,6 @@ export const BI = $root.BI = (() => { return message; }; - /** - * Decodes a FilePlan message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof BI.FilePlan - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {BI.FilePlan} FilePlan - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - FilePlan.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a FilePlan message. - * @function verify - * @memberof BI.FilePlan - * @static - * @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) { - if (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); - if (error) - return "cost." + error; - } - return null; - }; - /** * Creates a FilePlan message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -265630,6 +216313,8 @@ export const BI = $root.BI = (() => { FilePlan.fromObject = function fromObject(object, long) { if (object instanceof $root.BI.FilePlan) return object; + if (!$util.isObject(object)) + throw TypeError(".BI.FilePlan: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -265638,7 +216323,7 @@ export const BI = $root.BI = (() => { if (object.id != null) message.id = object.id | 0; if (object.cost != null) { - if (typeof object.cost !== "object") + if (!$util.isObject(object.cost)) throw TypeError(".BI.FilePlan.cost: object expected"); message.cost = $root.BI.Cost.fromObject(object.cost, long + 1); } @@ -265666,9 +216351,9 @@ export const BI = $root.BI = (() => { object.id = 0; object.cost = null; } - if (message.id != null && message.hasOwnProperty("id")) + if (message.id != null && Object.hasOwnProperty.call(message, "id")) object.id = message.id; - if (message.cost != null && message.hasOwnProperty("cost")) + if (message.cost != null && Object.hasOwnProperty.call(message, "cost")) object.cost = $root.BI.Cost.toObject(message.cost, options, q + 1); return object; }; @@ -265800,19 +216485,6 @@ export const BI = $root.BI = (() => { return writer; }; - /** - * Encodes the specified Cost message, length delimited. Does not implicitly {@link BI.Cost.verify|verify} messages. - * @function encodeDelimited - * @memberof BI.Cost - * @static - * @param {BI.ICost} message Cost message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Cost.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a Cost message from the specified reader or buffer. * @function decode @@ -265861,74 +216533,6 @@ export const BI = $root.BI = (() => { return message; }; - /** - * Decodes a Cost message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof BI.Cost - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {BI.Cost} Cost - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Cost.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a Cost message. - * @function verify - * @memberof BI.Cost - * @static - * @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) { - if (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"; - if (message.amountPer != null && message.hasOwnProperty("amountPer")) - switch (message.amountPer) { - default: - return "amountPer: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: - break; - } - if (message.currency != null && message.hasOwnProperty("currency")) - switch (message.currency) { - default: - return "currency: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - break; - } - if (message.contactSales != null && message.hasOwnProperty("contactSales")) - if (typeof message.contactSales !== "boolean") - return "contactSales: boolean expected"; - return null; - }; - /** * Creates a Cost message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -265940,6 +216544,8 @@ export const BI = $root.BI = (() => { Cost.fromObject = function fromObject(object, long) { if (object instanceof $root.BI.Cost) return object; + if (!$util.isObject(object)) + throw TypeError(".BI.Cost: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -266055,13 +216661,13 @@ export const BI = $root.BI = (() => { object.currency = options.enums === String ? "UNKNOWN" : 0; object.contactSales = false; } - if (message.amount != null && message.hasOwnProperty("amount")) + if (message.amount != null && Object.hasOwnProperty.call(message, "amount")) object.amount = options.json && !isFinite(message.amount) ? String(message.amount) : message.amount; - if (message.amountPer != null && message.hasOwnProperty("amountPer")) + if (message.amountPer != null && Object.hasOwnProperty.call(message, "amountPer")) object.amountPer = options.enums === String ? $root.BI.Cost.AmountPer[message.amountPer] === undefined ? message.amountPer : $root.BI.Cost.AmountPer[message.amountPer] : message.amountPer; - if (message.currency != null && message.hasOwnProperty("currency")) + if (message.currency != null && Object.hasOwnProperty.call(message, "currency")) object.currency = options.enums === String ? $root.BI.Currency[message.currency] === undefined ? message.currency : $root.BI.Currency[message.currency] : message.currency; - if (message.contactSales != null && message.hasOwnProperty("contactSales")) + if (message.contactSales != null && Object.hasOwnProperty.call(message, "contactSales")) object.contactSales = message.contactSales; return object; }; @@ -266210,19 +216816,6 @@ export const BI = $root.BI = (() => { return writer; }; - /** - * Encodes the specified InvoiceSearchRequest message, length delimited. Does not implicitly {@link BI.InvoiceSearchRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof BI.InvoiceSearchRequest - * @static - * @param {BI.IInvoiceSearchRequest} message InvoiceSearchRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - InvoiceSearchRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes an InvoiceSearchRequest message from the specified reader or buffer. * @function decode @@ -266267,49 +216860,6 @@ export const BI = $root.BI = (() => { return message; }; - /** - * Decodes an InvoiceSearchRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof BI.InvoiceSearchRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {BI.InvoiceSearchRequest} InvoiceSearchRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - InvoiceSearchRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an InvoiceSearchRequest message. - * @function verify - * @memberof BI.InvoiceSearchRequest - * @static - * @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) { - if (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"; - if (message.startingAfterId != null && message.hasOwnProperty("startingAfterId")) - if (!$util.isInteger(message.startingAfterId)) - return "startingAfterId: integer expected"; - if (message.allInvoicesUnfiltered != null && message.hasOwnProperty("allInvoicesUnfiltered")) - if (typeof message.allInvoicesUnfiltered !== "boolean") - return "allInvoicesUnfiltered: boolean expected"; - return null; - }; - /** * Creates an InvoiceSearchRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -266321,6 +216871,8 @@ export const BI = $root.BI = (() => { InvoiceSearchRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.BI.InvoiceSearchRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".BI.InvoiceSearchRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -266357,11 +216909,11 @@ export const BI = $root.BI = (() => { object.startingAfterId = 0; object.allInvoicesUnfiltered = false; } - if (message.size != null && message.hasOwnProperty("size")) + if (message.size != null && Object.hasOwnProperty.call(message, "size")) object.size = message.size; - if (message.startingAfterId != null && message.hasOwnProperty("startingAfterId")) + if (message.startingAfterId != null && Object.hasOwnProperty.call(message, "startingAfterId")) object.startingAfterId = message.startingAfterId; - if (message.allInvoicesUnfiltered != null && message.hasOwnProperty("allInvoicesUnfiltered")) + if (message.allInvoicesUnfiltered != null && Object.hasOwnProperty.call(message, "allInvoicesUnfiltered")) object.allInvoicesUnfiltered = message.allInvoicesUnfiltered; return object; }; @@ -266462,19 +217014,6 @@ export const BI = $root.BI = (() => { return writer; }; - /** - * Encodes the specified InvoiceSearchResponse message, length delimited. Does not implicitly {@link BI.InvoiceSearchResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof BI.InvoiceSearchResponse - * @static - * @param {BI.IInvoiceSearchResponse} message InvoiceSearchResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - InvoiceSearchResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes an InvoiceSearchResponse message from the specified reader or buffer. * @function decode @@ -266513,49 +217052,6 @@ export const BI = $root.BI = (() => { return message; }; - /** - * Decodes an InvoiceSearchResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof BI.InvoiceSearchResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {BI.InvoiceSearchResponse} InvoiceSearchResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - InvoiceSearchResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an InvoiceSearchResponse message. - * @function verify - * @memberof BI.InvoiceSearchResponse - * @static - * @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) { - if (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); - if (error) - return "invoices." + error; - } - } - return null; - }; - /** * Creates an InvoiceSearchResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -266567,6 +217063,8 @@ export const BI = $root.BI = (() => { InvoiceSearchResponse.fromObject = function fromObject(object, long) { if (object instanceof $root.BI.InvoiceSearchResponse) return object; + if (!$util.isObject(object)) + throw TypeError(".BI.InvoiceSearchResponse: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -266577,7 +217075,7 @@ export const BI = $root.BI = (() => { throw TypeError(".BI.InvoiceSearchResponse.invoices: array expected"); message.invoices = []; for (let i = 0; i < object.invoices.length; ++i) { - if (typeof object.invoices[i] !== "object") + if (!$util.isObject(object.invoices[i])) throw TypeError(".BI.InvoiceSearchResponse.invoices: object expected"); message.invoices[i] = $root.BI.Invoice.fromObject(object.invoices[i], long + 1); } @@ -266761,19 +217259,6 @@ export const BI = $root.BI = (() => { return writer; }; - /** - * Encodes the specified Invoice message, length delimited. Does not implicitly {@link BI.Invoice.verify|verify} messages. - * @function encodeDelimited - * @memberof BI.Invoice - * @static - * @param {BI.IInvoice} message Invoice message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Invoice.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes an Invoice message from the specified reader or buffer. * @function decode @@ -266830,70 +217315,6 @@ export const BI = $root.BI = (() => { return message; }; - /** - * Decodes an Invoice message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof BI.Invoice - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {BI.Invoice} Invoice - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Invoice.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an Invoice message. - * @function verify - * @memberof BI.Invoice - * @static - * @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) { - if (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.invoiceNumber != null && message.hasOwnProperty("invoiceNumber")) - if (!$util.isString(message.invoiceNumber)) - return "invoiceNumber: string expected"; - if (message.invoiceDate != null && message.hasOwnProperty("invoiceDate")) - if (!$util.isInteger(message.invoiceDate) && !(message.invoiceDate && $util.isInteger(message.invoiceDate.low) && $util.isInteger(message.invoiceDate.high))) - return "invoiceDate: integer|Long expected"; - if (message.licenseCount != null && message.hasOwnProperty("licenseCount")) - 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); - if (error) - return "totalCost." + error; - } - if (message.invoiceType != null && message.hasOwnProperty("invoiceType")) - switch (message.invoiceType) { - default: - return "invoiceType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - break; - } - return null; - }; - /** * Creates an Invoice message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -266905,6 +217326,8 @@ export const BI = $root.BI = (() => { Invoice.fromObject = function fromObject(object, long) { if (object instanceof $root.BI.Invoice) return object; + if (!$util.isObject(object)) + throw TypeError(".BI.Invoice: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -266926,7 +217349,7 @@ export const BI = $root.BI = (() => { if (object.licenseCount != null) message.licenseCount = object.licenseCount | 0; if (object.totalCost != null) { - if (typeof object.totalCost !== "object") + if (!$util.isObject(object.totalCost)) throw TypeError(".BI.Invoice.totalCost: object expected"); message.totalCost = $root.BI.Invoice.Cost.fromObject(object.totalCost, long + 1); } @@ -266998,22 +217421,22 @@ export const BI = $root.BI = (() => { object.totalCost = null; object.invoiceType = options.enums === String ? "UNKNOWN" : 0; } - if (message.id != null && message.hasOwnProperty("id")) + if (message.id != null && Object.hasOwnProperty.call(message, "id")) object.id = message.id; - if (message.invoiceNumber != null && message.hasOwnProperty("invoiceNumber")) + if (message.invoiceNumber != null && Object.hasOwnProperty.call(message, "invoiceNumber")) object.invoiceNumber = message.invoiceNumber; - if (message.invoiceDate != null && message.hasOwnProperty("invoiceDate")) + if (message.invoiceDate != null && Object.hasOwnProperty.call(message, "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") 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")) + if (message.licenseCount != null && Object.hasOwnProperty.call(message, "licenseCount")) object.licenseCount = message.licenseCount; - if (message.totalCost != null && message.hasOwnProperty("totalCost")) + if (message.totalCost != null && Object.hasOwnProperty.call(message, "totalCost")) object.totalCost = $root.BI.Invoice.Cost.toObject(message.totalCost, options, q + 1); - if (message.invoiceType != null && message.hasOwnProperty("invoiceType")) + if (message.invoiceType != null && Object.hasOwnProperty.call(message, "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; }; @@ -267120,19 +217543,6 @@ export const BI = $root.BI = (() => { return writer; }; - /** - * Encodes the specified Cost message, length delimited. Does not implicitly {@link BI.Invoice.Cost.verify|verify} messages. - * @function encodeDelimited - * @memberof BI.Invoice.Cost - * @static - * @param {BI.Invoice.ICost} message Cost message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Cost.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a Cost message from the specified reader or buffer. * @function decode @@ -267173,56 +217583,6 @@ export const BI = $root.BI = (() => { return message; }; - /** - * Decodes a Cost message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof BI.Invoice.Cost - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {BI.Invoice.Cost} Cost - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Cost.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a Cost message. - * @function verify - * @memberof BI.Invoice.Cost - * @static - * @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) { - if (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"; - if (message.currency != null && message.hasOwnProperty("currency")) - switch (message.currency) { - default: - return "currency: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - break; - } - return null; - }; - /** * Creates a Cost message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -267234,6 +217594,8 @@ export const BI = $root.BI = (() => { Cost.fromObject = function fromObject(object, long) { if (object instanceof $root.BI.Invoice.Cost) return object; + if (!$util.isObject(object)) + throw TypeError(".BI.Invoice.Cost: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -267301,9 +217663,9 @@ export const BI = $root.BI = (() => { object.amount = 0; object.currency = options.enums === String ? "UNKNOWN" : 0; } - if (message.amount != null && message.hasOwnProperty("amount")) + if (message.amount != null && Object.hasOwnProperty.call(message, "amount")) object.amount = options.json && !isFinite(message.amount) ? String(message.amount) : message.amount; - if (message.currency != null && message.hasOwnProperty("currency")) + if (message.currency != null && Object.hasOwnProperty.call(message, "currency")) object.currency = options.enums === String ? $root.BI.Currency[message.currency] === undefined ? message.currency : $root.BI.Currency[message.currency] : message.currency; return object; }; @@ -267418,19 +217780,6 @@ export const BI = $root.BI = (() => { return writer; }; - /** - * Encodes the specified VaultInvoicesListRequest message, length delimited. Does not implicitly {@link BI.VaultInvoicesListRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof BI.VaultInvoicesListRequest - * @static - * @param {BI.IVaultInvoicesListRequest} message VaultInvoicesListRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - VaultInvoicesListRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a VaultInvoicesListRequest message from the specified reader or buffer. * @function decode @@ -267463,40 +217812,6 @@ export const BI = $root.BI = (() => { return message; }; - /** - * Decodes a VaultInvoicesListRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof BI.VaultInvoicesListRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {BI.VaultInvoicesListRequest} VaultInvoicesListRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - VaultInvoicesListRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a VaultInvoicesListRequest message. - * @function verify - * @memberof BI.VaultInvoicesListRequest - * @static - * @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) { - 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 VaultInvoicesListRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -267508,10 +217823,6 @@ export const BI = $root.BI = (() => { VaultInvoicesListRequest.fromObject = function fromObject(object, long) { 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(); }; @@ -267624,19 +217935,6 @@ export const BI = $root.BI = (() => { return writer; }; - /** - * Encodes the specified VaultInvoicesListResponse message, length delimited. Does not implicitly {@link BI.VaultInvoicesListResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof BI.VaultInvoicesListResponse - * @static - * @param {BI.IVaultInvoicesListResponse} message VaultInvoicesListResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - VaultInvoicesListResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a VaultInvoicesListResponse message from the specified reader or buffer. * @function decode @@ -267675,49 +217973,6 @@ export const BI = $root.BI = (() => { return message; }; - /** - * Decodes a VaultInvoicesListResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof BI.VaultInvoicesListResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {BI.VaultInvoicesListResponse} VaultInvoicesListResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - VaultInvoicesListResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a VaultInvoicesListResponse message. - * @function verify - * @memberof BI.VaultInvoicesListResponse - * @static - * @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) { - if (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); - if (error) - return "invoices." + error; - } - } - return null; - }; - /** * Creates a VaultInvoicesListResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -267729,6 +217984,8 @@ export const BI = $root.BI = (() => { VaultInvoicesListResponse.fromObject = function fromObject(object, long) { if (object instanceof $root.BI.VaultInvoicesListResponse) return object; + if (!$util.isObject(object)) + throw TypeError(".BI.VaultInvoicesListResponse: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -267739,7 +217996,7 @@ export const BI = $root.BI = (() => { throw TypeError(".BI.VaultInvoicesListResponse.invoices: array expected"); message.invoices = []; for (let i = 0; i < object.invoices.length; ++i) { - if (typeof object.invoices[i] !== "object") + if (!$util.isObject(object.invoices[i])) throw TypeError(".BI.VaultInvoicesListResponse.invoices: object expected"); message.invoices[i] = $root.BI.VaultInvoice.fromObject(object.invoices[i], long + 1); } @@ -267912,19 +218169,6 @@ export const BI = $root.BI = (() => { return writer; }; - /** - * Encodes the specified VaultInvoice message, length delimited. Does not implicitly {@link BI.VaultInvoice.verify|verify} messages. - * @function encodeDelimited - * @memberof BI.VaultInvoice - * @static - * @param {BI.IVaultInvoice} message VaultInvoice message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - VaultInvoice.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a VaultInvoice message from the specified reader or buffer. * @function decode @@ -267977,67 +218221,6 @@ export const BI = $root.BI = (() => { return message; }; - /** - * Decodes a VaultInvoice message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof BI.VaultInvoice - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {BI.VaultInvoice} VaultInvoice - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - VaultInvoice.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a VaultInvoice message. - * @function verify - * @memberof BI.VaultInvoice - * @static - * @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) { - if (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.invoiceNumber != null && message.hasOwnProperty("invoiceNumber")) - if (!$util.isString(message.invoiceNumber)) - return "invoiceNumber: string expected"; - if (message.dateCreated != null && message.hasOwnProperty("dateCreated")) - 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); - if (error) - return "total." + error; - } - if (message.purchaseType != null && message.hasOwnProperty("purchaseType")) - switch (message.purchaseType) { - default: - return "purchaseType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - break; - } - return null; - }; - /** * Creates a VaultInvoice message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -268049,6 +218232,8 @@ export const BI = $root.BI = (() => { VaultInvoice.fromObject = function fromObject(object, long) { if (object instanceof $root.BI.VaultInvoice) return object; + if (!$util.isObject(object)) + throw TypeError(".BI.VaultInvoice: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -268068,7 +218253,7 @@ export const BI = $root.BI = (() => { else if (typeof object.dateCreated === "object") message.dateCreated = new $util.LongBits(object.dateCreated.low >>> 0, object.dateCreated.high >>> 0).toNumber(); if (object.total != null) { - if (typeof object.total !== "object") + if (!$util.isObject(object.total)) throw TypeError(".BI.VaultInvoice.total: object expected"); message.total = $root.BI.Invoice.Cost.fromObject(object.total, long + 1); } @@ -268139,20 +218324,20 @@ export const BI = $root.BI = (() => { object.total = null; object.purchaseType = options.enums === String ? "UNKNOWN" : 0; } - if (message.id != null && message.hasOwnProperty("id")) + if (message.id != null && Object.hasOwnProperty.call(message, "id")) object.id = message.id; - if (message.invoiceNumber != null && message.hasOwnProperty("invoiceNumber")) + if (message.invoiceNumber != null && Object.hasOwnProperty.call(message, "invoiceNumber")) object.invoiceNumber = message.invoiceNumber; - if (message.dateCreated != null && message.hasOwnProperty("dateCreated")) + if (message.dateCreated != null && Object.hasOwnProperty.call(message, "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") 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")) + if (message.total != null && Object.hasOwnProperty.call(message, "total")) object.total = $root.BI.Invoice.Cost.toObject(message.total, options, q + 1); - if (message.purchaseType != null && message.hasOwnProperty("purchaseType")) + if (message.purchaseType != null && Object.hasOwnProperty.call(message, "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; }; @@ -268251,19 +218436,6 @@ export const BI = $root.BI = (() => { return writer; }; - /** - * Encodes the specified InvoiceDownloadRequest message, length delimited. Does not implicitly {@link BI.InvoiceDownloadRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof BI.InvoiceDownloadRequest - * @static - * @param {BI.IInvoiceDownloadRequest} message InvoiceDownloadRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - InvoiceDownloadRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes an InvoiceDownloadRequest message from the specified reader or buffer. * @function decode @@ -268300,43 +218472,6 @@ export const BI = $root.BI = (() => { return message; }; - /** - * Decodes an InvoiceDownloadRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof BI.InvoiceDownloadRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {BI.InvoiceDownloadRequest} InvoiceDownloadRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - InvoiceDownloadRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an InvoiceDownloadRequest message. - * @function verify - * @memberof BI.InvoiceDownloadRequest - * @static - * @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) { - if (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"; - return null; - }; - /** * Creates an InvoiceDownloadRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -268348,6 +218483,8 @@ export const BI = $root.BI = (() => { InvoiceDownloadRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.BI.InvoiceDownloadRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".BI.InvoiceDownloadRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -268377,7 +218514,7 @@ export const BI = $root.BI = (() => { let object = {}; if (options.defaults) object.invoiceNumber = ""; - if (message.invoiceNumber != null && message.hasOwnProperty("invoiceNumber")) + if (message.invoiceNumber != null && Object.hasOwnProperty.call(message, "invoiceNumber")) object.invoiceNumber = message.invoiceNumber; return object; }; @@ -268487,19 +218624,6 @@ export const BI = $root.BI = (() => { return writer; }; - /** - * Encodes the specified InvoiceDownloadResponse message, length delimited. Does not implicitly {@link BI.InvoiceDownloadResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof BI.InvoiceDownloadResponse - * @static - * @param {BI.IInvoiceDownloadResponse} message InvoiceDownloadResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - InvoiceDownloadResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes an InvoiceDownloadResponse message from the specified reader or buffer. * @function decode @@ -268540,46 +218664,6 @@ export const BI = $root.BI = (() => { return message; }; - /** - * Decodes an InvoiceDownloadResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof BI.InvoiceDownloadResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {BI.InvoiceDownloadResponse} InvoiceDownloadResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - InvoiceDownloadResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an InvoiceDownloadResponse message. - * @function verify - * @memberof BI.InvoiceDownloadResponse - * @static - * @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) { - if (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"; - if (message.fileName != null && message.hasOwnProperty("fileName")) - if (!$util.isString(message.fileName)) - return "fileName: string expected"; - return null; - }; - /** * Creates an InvoiceDownloadResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -268591,6 +218675,8 @@ export const BI = $root.BI = (() => { InvoiceDownloadResponse.fromObject = function fromObject(object, long) { if (object instanceof $root.BI.InvoiceDownloadResponse) return object; + if (!$util.isObject(object)) + throw TypeError(".BI.InvoiceDownloadResponse: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -268624,9 +218710,9 @@ export const BI = $root.BI = (() => { object.link = ""; object.fileName = ""; } - if (message.link != null && message.hasOwnProperty("link")) + if (message.link != null && Object.hasOwnProperty.call(message, "link")) object.link = message.link; - if (message.fileName != null && message.hasOwnProperty("fileName")) + if (message.fileName != null && Object.hasOwnProperty.call(message, "fileName")) object.fileName = message.fileName; return object; }; @@ -268725,19 +218811,6 @@ export const BI = $root.BI = (() => { return writer; }; - /** - * Encodes the specified VaultInvoiceDownloadLinkRequest message, length delimited. Does not implicitly {@link BI.VaultInvoiceDownloadLinkRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof BI.VaultInvoiceDownloadLinkRequest - * @static - * @param {BI.IVaultInvoiceDownloadLinkRequest} message VaultInvoiceDownloadLinkRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - VaultInvoiceDownloadLinkRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a VaultInvoiceDownloadLinkRequest message from the specified reader or buffer. * @function decode @@ -268774,43 +218847,6 @@ export const BI = $root.BI = (() => { return message; }; - /** - * Decodes a VaultInvoiceDownloadLinkRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof BI.VaultInvoiceDownloadLinkRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {BI.VaultInvoiceDownloadLinkRequest} VaultInvoiceDownloadLinkRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - VaultInvoiceDownloadLinkRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a VaultInvoiceDownloadLinkRequest message. - * @function verify - * @memberof BI.VaultInvoiceDownloadLinkRequest - * @static - * @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) { - if (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"; - return null; - }; - /** * Creates a VaultInvoiceDownloadLinkRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -268822,6 +218858,8 @@ export const BI = $root.BI = (() => { VaultInvoiceDownloadLinkRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.BI.VaultInvoiceDownloadLinkRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".BI.VaultInvoiceDownloadLinkRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -268851,7 +218889,7 @@ export const BI = $root.BI = (() => { let object = {}; if (options.defaults) object.invoiceNumber = ""; - if (message.invoiceNumber != null && message.hasOwnProperty("invoiceNumber")) + if (message.invoiceNumber != null && Object.hasOwnProperty.call(message, "invoiceNumber")) object.invoiceNumber = message.invoiceNumber; return object; }; @@ -268961,19 +218999,6 @@ export const BI = $root.BI = (() => { return writer; }; - /** - * Encodes the specified VaultInvoiceDownloadLinkResponse message, length delimited. Does not implicitly {@link BI.VaultInvoiceDownloadLinkResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof BI.VaultInvoiceDownloadLinkResponse - * @static - * @param {BI.IVaultInvoiceDownloadLinkResponse} message VaultInvoiceDownloadLinkResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - VaultInvoiceDownloadLinkResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a VaultInvoiceDownloadLinkResponse message from the specified reader or buffer. * @function decode @@ -269014,46 +219039,6 @@ export const BI = $root.BI = (() => { return message; }; - /** - * Decodes a VaultInvoiceDownloadLinkResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof BI.VaultInvoiceDownloadLinkResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {BI.VaultInvoiceDownloadLinkResponse} VaultInvoiceDownloadLinkResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - VaultInvoiceDownloadLinkResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a VaultInvoiceDownloadLinkResponse message. - * @function verify - * @memberof BI.VaultInvoiceDownloadLinkResponse - * @static - * @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) { - if (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"; - if (message.fileName != null && message.hasOwnProperty("fileName")) - if (!$util.isString(message.fileName)) - return "fileName: string expected"; - return null; - }; - /** * Creates a VaultInvoiceDownloadLinkResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -269065,6 +219050,8 @@ export const BI = $root.BI = (() => { VaultInvoiceDownloadLinkResponse.fromObject = function fromObject(object, long) { if (object instanceof $root.BI.VaultInvoiceDownloadLinkResponse) return object; + if (!$util.isObject(object)) + throw TypeError(".BI.VaultInvoiceDownloadLinkResponse: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -269098,9 +219085,9 @@ export const BI = $root.BI = (() => { object.link = ""; object.fileName = ""; } - if (message.link != null && message.hasOwnProperty("link")) + if (message.link != null && Object.hasOwnProperty.call(message, "link")) object.link = message.link; - if (message.fileName != null && message.hasOwnProperty("fileName")) + if (message.fileName != null && Object.hasOwnProperty.call(message, "fileName")) object.fileName = message.fileName; return object; }; @@ -269210,19 +219197,6 @@ export const BI = $root.BI = (() => { return writer; }; - /** - * Encodes the specified ReportingDailySnapshotRequest message, length delimited. Does not implicitly {@link BI.ReportingDailySnapshotRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof BI.ReportingDailySnapshotRequest - * @static - * @param {BI.IReportingDailySnapshotRequest} message ReportingDailySnapshotRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ReportingDailySnapshotRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a ReportingDailySnapshotRequest message from the specified reader or buffer. * @function decode @@ -269263,46 +219237,6 @@ export const BI = $root.BI = (() => { return message; }; - /** - * Decodes a ReportingDailySnapshotRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof BI.ReportingDailySnapshotRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {BI.ReportingDailySnapshotRequest} ReportingDailySnapshotRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ReportingDailySnapshotRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a ReportingDailySnapshotRequest message. - * @function verify - * @memberof BI.ReportingDailySnapshotRequest - * @static - * @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) { - if (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"; - if (message.year != null && message.hasOwnProperty("year")) - if (!$util.isInteger(message.year)) - return "year: integer expected"; - return null; - }; - /** * Creates a ReportingDailySnapshotRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -269314,6 +219248,8 @@ export const BI = $root.BI = (() => { ReportingDailySnapshotRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.BI.ReportingDailySnapshotRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".BI.ReportingDailySnapshotRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -269347,9 +219283,9 @@ export const BI = $root.BI = (() => { object.month = 0; object.year = 0; } - if (message.month != null && message.hasOwnProperty("month")) + if (message.month != null && Object.hasOwnProperty.call(message, "month")) object.month = message.month; - if (message.year != null && message.hasOwnProperty("year")) + if (message.year != null && Object.hasOwnProperty.call(message, "year")) object.year = message.year; return object; }; @@ -269463,19 +219399,6 @@ export const BI = $root.BI = (() => { return writer; }; - /** - * Encodes the specified ReportingDailySnapshotResponse message, length delimited. Does not implicitly {@link BI.ReportingDailySnapshotResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof BI.ReportingDailySnapshotResponse - * @static - * @param {BI.IReportingDailySnapshotResponse} message ReportingDailySnapshotResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ReportingDailySnapshotResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a ReportingDailySnapshotResponse message from the specified reader or buffer. * @function decode @@ -269520,58 +219443,6 @@ export const BI = $root.BI = (() => { return message; }; - /** - * Decodes a ReportingDailySnapshotResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof BI.ReportingDailySnapshotResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {BI.ReportingDailySnapshotResponse} ReportingDailySnapshotResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ReportingDailySnapshotResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a ReportingDailySnapshotResponse message. - * @function verify - * @memberof BI.ReportingDailySnapshotResponse - * @static - * @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) { - if (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); - if (error) - return "records." + error; - } - } - if (message.mcEnterprises != null && message.hasOwnProperty("mcEnterprises")) { - 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); - if (error) - return "mcEnterprises." + error; - } - } - return null; - }; - /** * Creates a ReportingDailySnapshotResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -269583,6 +219454,8 @@ export const BI = $root.BI = (() => { ReportingDailySnapshotResponse.fromObject = function fromObject(object, long) { if (object instanceof $root.BI.ReportingDailySnapshotResponse) return object; + if (!$util.isObject(object)) + throw TypeError(".BI.ReportingDailySnapshotResponse: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -269593,7 +219466,7 @@ export const BI = $root.BI = (() => { throw TypeError(".BI.ReportingDailySnapshotResponse.records: array expected"); message.records = []; for (let i = 0; i < object.records.length; ++i) { - if (typeof object.records[i] !== "object") + if (!$util.isObject(object.records[i])) throw TypeError(".BI.ReportingDailySnapshotResponse.records: object expected"); message.records[i] = $root.BI.SnapshotRecord.fromObject(object.records[i], long + 1); } @@ -269603,7 +219476,7 @@ export const BI = $root.BI = (() => { throw TypeError(".BI.ReportingDailySnapshotResponse.mcEnterprises: array expected"); message.mcEnterprises = []; for (let i = 0; i < object.mcEnterprises.length; ++i) { - if (typeof object.mcEnterprises[i] !== "object") + if (!$util.isObject(object.mcEnterprises[i])) throw TypeError(".BI.ReportingDailySnapshotResponse.mcEnterprises: object expected"); message.mcEnterprises[i] = $root.BI.SnapshotMcEnterprise.fromObject(object.mcEnterprises[i], long + 1); } @@ -269796,19 +219669,6 @@ export const BI = $root.BI = (() => { return writer; }; - /** - * Encodes the specified SnapshotRecord message, length delimited. Does not implicitly {@link BI.SnapshotRecord.verify|verify} messages. - * @function encodeDelimited - * @memberof BI.SnapshotRecord - * @static - * @param {BI.ISnapshotRecord} message SnapshotRecord message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SnapshotRecord.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a SnapshotRecord message from the specified reader or buffer. * @function decode @@ -269867,64 +219727,6 @@ export const BI = $root.BI = (() => { return message; }; - /** - * Decodes a SnapshotRecord message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof BI.SnapshotRecord - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {BI.SnapshotRecord} SnapshotRecord - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SnapshotRecord.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a SnapshotRecord message. - * @function verify - * @memberof BI.SnapshotRecord - * @static - * @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) { - if (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"; - if (message.mcEnterpriseId != null && message.hasOwnProperty("mcEnterpriseId")) - if (!$util.isInteger(message.mcEnterpriseId)) - return "mcEnterpriseId: integer expected"; - if (message.maxLicenseCount != null && message.hasOwnProperty("maxLicenseCount")) - if (!$util.isInteger(message.maxLicenseCount)) - return "maxLicenseCount: integer expected"; - if (message.maxFilePlanTypeId != null && message.hasOwnProperty("maxFilePlanTypeId")) - if (!$util.isInteger(message.maxFilePlanTypeId)) - return "maxFilePlanTypeId: integer expected"; - if (message.maxBasePlanId != null && message.hasOwnProperty("maxBasePlanId")) - if (!$util.isInteger(message.maxBasePlanId)) - return "maxBasePlanId: integer expected"; - 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.SnapshotRecord.Addon.verify(message.addons[i], long + 1); - if (error) - return "addons." + error; - } - } - return null; - }; - /** * Creates a SnapshotRecord message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -269936,6 +219738,8 @@ export const BI = $root.BI = (() => { SnapshotRecord.fromObject = function fromObject(object, long) { if (object instanceof $root.BI.SnapshotRecord) return object; + if (!$util.isObject(object)) + throw TypeError(".BI.SnapshotRecord: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -269963,7 +219767,7 @@ export const BI = $root.BI = (() => { throw TypeError(".BI.SnapshotRecord.addons: array expected"); message.addons = []; for (let i = 0; i < object.addons.length; ++i) { - if (typeof object.addons[i] !== "object") + if (!$util.isObject(object.addons[i])) throw TypeError(".BI.SnapshotRecord.addons: object expected"); message.addons[i] = $root.BI.SnapshotRecord.Addon.fromObject(object.addons[i], long + 1); } @@ -270001,20 +219805,20 @@ export const BI = $root.BI = (() => { object.maxFilePlanTypeId = 0; object.maxBasePlanId = 0; } - if (message.date != null && message.hasOwnProperty("date")) + if (message.date != null && Object.hasOwnProperty.call(message, "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") 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; - if (message.mcEnterpriseId != null && message.hasOwnProperty("mcEnterpriseId")) + if (message.mcEnterpriseId != null && Object.hasOwnProperty.call(message, "mcEnterpriseId")) object.mcEnterpriseId = message.mcEnterpriseId; - if (message.maxLicenseCount != null && message.hasOwnProperty("maxLicenseCount")) + if (message.maxLicenseCount != null && Object.hasOwnProperty.call(message, "maxLicenseCount")) object.maxLicenseCount = message.maxLicenseCount; - if (message.maxFilePlanTypeId != null && message.hasOwnProperty("maxFilePlanTypeId")) + if (message.maxFilePlanTypeId != null && Object.hasOwnProperty.call(message, "maxFilePlanTypeId")) object.maxFilePlanTypeId = message.maxFilePlanTypeId; - if (message.maxBasePlanId != null && message.hasOwnProperty("maxBasePlanId")) + if (message.maxBasePlanId != null && Object.hasOwnProperty.call(message, "maxBasePlanId")) object.maxBasePlanId = message.maxBasePlanId; if (message.addons && message.addons.length) { object.addons = []; @@ -270126,19 +219930,6 @@ export const BI = $root.BI = (() => { return writer; }; - /** - * Encodes the specified Addon message, length delimited. Does not implicitly {@link BI.SnapshotRecord.Addon.verify|verify} messages. - * @function encodeDelimited - * @memberof BI.SnapshotRecord.Addon - * @static - * @param {BI.SnapshotRecord.IAddon} message Addon message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Addon.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes an Addon message from the specified reader or buffer. * @function decode @@ -270179,46 +219970,6 @@ export const BI = $root.BI = (() => { return message; }; - /** - * Decodes an Addon message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof BI.SnapshotRecord.Addon - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {BI.SnapshotRecord.Addon} Addon - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Addon.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an Addon message. - * @function verify - * @memberof BI.SnapshotRecord.Addon - * @static - * @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) { - if (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"; - if (message.units != null && message.hasOwnProperty("units")) - if (!$util.isInteger(message.units) && !(message.units && $util.isInteger(message.units.low) && $util.isInteger(message.units.high))) - return "units: integer|Long expected"; - return null; - }; - /** * Creates an Addon message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -270230,6 +219981,8 @@ export const BI = $root.BI = (() => { Addon.fromObject = function fromObject(object, long) { if (object instanceof $root.BI.SnapshotRecord.Addon) return object; + if (!$util.isObject(object)) + throw TypeError(".BI.SnapshotRecord.Addon: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -270274,9 +220027,9 @@ export const BI = $root.BI = (() => { } else object.units = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; } - if (message.maxAddonId != null && message.hasOwnProperty("maxAddonId")) + if (message.maxAddonId != null && Object.hasOwnProperty.call(message, "maxAddonId")) object.maxAddonId = message.maxAddonId; - if (message.units != null && message.hasOwnProperty("units")) + if (message.units != null && Object.hasOwnProperty.call(message, "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") @@ -270394,19 +220147,6 @@ export const BI = $root.BI = (() => { return writer; }; - /** - * Encodes the specified SnapshotMcEnterprise message, length delimited. Does not implicitly {@link BI.SnapshotMcEnterprise.verify|verify} messages. - * @function encodeDelimited - * @memberof BI.SnapshotMcEnterprise - * @static - * @param {BI.ISnapshotMcEnterprise} message SnapshotMcEnterprise message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SnapshotMcEnterprise.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a SnapshotMcEnterprise message from the specified reader or buffer. * @function decode @@ -270447,46 +220187,6 @@ export const BI = $root.BI = (() => { return message; }; - /** - * Decodes a SnapshotMcEnterprise message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof BI.SnapshotMcEnterprise - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {BI.SnapshotMcEnterprise} SnapshotMcEnterprise - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SnapshotMcEnterprise.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a SnapshotMcEnterprise message. - * @function verify - * @memberof BI.SnapshotMcEnterprise - * @static - * @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) { - if (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.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - return null; - }; - /** * Creates a SnapshotMcEnterprise message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -270498,6 +220198,8 @@ export const BI = $root.BI = (() => { SnapshotMcEnterprise.fromObject = function fromObject(object, long) { if (object instanceof $root.BI.SnapshotMcEnterprise) return object; + if (!$util.isObject(object)) + throw TypeError(".BI.SnapshotMcEnterprise: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -270531,9 +220233,9 @@ export const BI = $root.BI = (() => { object.id = 0; object.name = ""; } - if (message.id != null && message.hasOwnProperty("id")) + if (message.id != null && Object.hasOwnProperty.call(message, "id")) object.id = message.id; - if (message.name != null && message.hasOwnProperty("name")) + if (message.name != null && Object.hasOwnProperty.call(message, "name")) object.name = message.name; return object; }; @@ -270621,19 +220323,6 @@ export const BI = $root.BI = (() => { return writer; }; - /** - * Encodes the specified MappingAddonsRequest message, length delimited. Does not implicitly {@link BI.MappingAddonsRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof BI.MappingAddonsRequest - * @static - * @param {BI.IMappingAddonsRequest} message MappingAddonsRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MappingAddonsRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a MappingAddonsRequest message from the specified reader or buffer. * @function decode @@ -270666,40 +220355,6 @@ export const BI = $root.BI = (() => { return message; }; - /** - * Decodes a MappingAddonsRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof BI.MappingAddonsRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {BI.MappingAddonsRequest} MappingAddonsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MappingAddonsRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a MappingAddonsRequest message. - * @function verify - * @memberof BI.MappingAddonsRequest - * @static - * @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) { - 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 MappingAddonsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -270711,10 +220366,6 @@ export const BI = $root.BI = (() => { MappingAddonsRequest.fromObject = function fromObject(object, long) { 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(); }; @@ -270840,19 +220491,6 @@ export const BI = $root.BI = (() => { return writer; }; - /** - * Encodes the specified MappingAddonsResponse message, length delimited. Does not implicitly {@link BI.MappingAddonsResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof BI.MappingAddonsResponse - * @static - * @param {BI.IMappingAddonsResponse} message MappingAddonsResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MappingAddonsResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a MappingAddonsResponse message from the specified reader or buffer. * @function decode @@ -270897,58 +220535,6 @@ export const BI = $root.BI = (() => { return message; }; - /** - * Decodes a MappingAddonsResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof BI.MappingAddonsResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {BI.MappingAddonsResponse} MappingAddonsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MappingAddonsResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a MappingAddonsResponse message. - * @function verify - * @memberof BI.MappingAddonsResponse - * @static - * @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) { - if (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); - if (error) - return "addons." + error; - } - } - if (message.filePlans != null && message.hasOwnProperty("filePlans")) { - 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); - if (error) - return "filePlans." + error; - } - } - return null; - }; - /** * Creates a MappingAddonsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -270960,6 +220546,8 @@ export const BI = $root.BI = (() => { MappingAddonsResponse.fromObject = function fromObject(object, long) { if (object instanceof $root.BI.MappingAddonsResponse) return object; + if (!$util.isObject(object)) + throw TypeError(".BI.MappingAddonsResponse: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -270970,7 +220558,7 @@ export const BI = $root.BI = (() => { throw TypeError(".BI.MappingAddonsResponse.addons: array expected"); message.addons = []; for (let i = 0; i < object.addons.length; ++i) { - if (typeof object.addons[i] !== "object") + if (!$util.isObject(object.addons[i])) throw TypeError(".BI.MappingAddonsResponse.addons: object expected"); message.addons[i] = $root.BI.MappingItem.fromObject(object.addons[i], long + 1); } @@ -270980,7 +220568,7 @@ export const BI = $root.BI = (() => { throw TypeError(".BI.MappingAddonsResponse.filePlans: array expected"); message.filePlans = []; for (let i = 0; i < object.filePlans.length; ++i) { - if (typeof object.filePlans[i] !== "object") + if (!$util.isObject(object.filePlans[i])) throw TypeError(".BI.MappingAddonsResponse.filePlans: object expected"); message.filePlans[i] = $root.BI.MappingItem.fromObject(object.filePlans[i], long + 1); } @@ -271127,19 +220715,6 @@ export const BI = $root.BI = (() => { return writer; }; - /** - * Encodes the specified MappingItem message, length delimited. Does not implicitly {@link BI.MappingItem.verify|verify} messages. - * @function encodeDelimited - * @memberof BI.MappingItem - * @static - * @param {BI.IMappingItem} message MappingItem message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MappingItem.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a MappingItem message from the specified reader or buffer. * @function decode @@ -271180,46 +220755,6 @@ export const BI = $root.BI = (() => { return message; }; - /** - * Decodes a MappingItem message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof BI.MappingItem - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {BI.MappingItem} MappingItem - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MappingItem.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a MappingItem message. - * @function verify - * @memberof BI.MappingItem - * @static - * @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) { - if (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.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - return null; - }; - /** * Creates a MappingItem message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -271231,6 +220766,8 @@ export const BI = $root.BI = (() => { MappingItem.fromObject = function fromObject(object, long) { if (object instanceof $root.BI.MappingItem) return object; + if (!$util.isObject(object)) + throw TypeError(".BI.MappingItem: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -271264,9 +220801,9 @@ export const BI = $root.BI = (() => { object.id = 0; object.name = ""; } - if (message.id != null && message.hasOwnProperty("id")) + if (message.id != null && Object.hasOwnProperty.call(message, "id")) object.id = message.id; - if (message.name != null && message.hasOwnProperty("name")) + if (message.name != null && Object.hasOwnProperty.call(message, "name")) object.name = message.name; return object; }; @@ -271365,19 +220902,6 @@ export const BI = $root.BI = (() => { return writer; }; - /** - * Encodes the specified GradientValidateKeyRequest message, length delimited. Does not implicitly {@link BI.GradientValidateKeyRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof BI.GradientValidateKeyRequest - * @static - * @param {BI.IGradientValidateKeyRequest} message GradientValidateKeyRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GradientValidateKeyRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a GradientValidateKeyRequest message from the specified reader or buffer. * @function decode @@ -271414,43 +220938,6 @@ export const BI = $root.BI = (() => { return message; }; - /** - * Decodes a GradientValidateKeyRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof BI.GradientValidateKeyRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {BI.GradientValidateKeyRequest} GradientValidateKeyRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GradientValidateKeyRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a GradientValidateKeyRequest message. - * @function verify - * @memberof BI.GradientValidateKeyRequest - * @static - * @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) { - if (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"; - return null; - }; - /** * Creates a GradientValidateKeyRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -271462,6 +220949,8 @@ export const BI = $root.BI = (() => { GradientValidateKeyRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.BI.GradientValidateKeyRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".BI.GradientValidateKeyRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -271491,7 +220980,7 @@ export const BI = $root.BI = (() => { let object = {}; if (options.defaults) object.gradientKey = ""; - if (message.gradientKey != null && message.hasOwnProperty("gradientKey")) + if (message.gradientKey != null && Object.hasOwnProperty.call(message, "gradientKey")) object.gradientKey = message.gradientKey; return object; }; @@ -271601,19 +221090,6 @@ export const BI = $root.BI = (() => { return writer; }; - /** - * Encodes the specified GradientValidateKeyResponse message, length delimited. Does not implicitly {@link BI.GradientValidateKeyResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof BI.GradientValidateKeyResponse - * @static - * @param {BI.IGradientValidateKeyResponse} message GradientValidateKeyResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GradientValidateKeyResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a GradientValidateKeyResponse message from the specified reader or buffer. * @function decode @@ -271654,46 +221130,6 @@ export const BI = $root.BI = (() => { return message; }; - /** - * Decodes a GradientValidateKeyResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof BI.GradientValidateKeyResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {BI.GradientValidateKeyResponse} GradientValidateKeyResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GradientValidateKeyResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a GradientValidateKeyResponse message. - * @function verify - * @memberof BI.GradientValidateKeyResponse - * @static - * @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) { - if (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.message != null && message.hasOwnProperty("message")) - if (!$util.isString(message.message)) - return "message: string expected"; - return null; - }; - /** * Creates a GradientValidateKeyResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -271705,6 +221141,8 @@ export const BI = $root.BI = (() => { GradientValidateKeyResponse.fromObject = function fromObject(object, long) { if (object instanceof $root.BI.GradientValidateKeyResponse) return object; + if (!$util.isObject(object)) + throw TypeError(".BI.GradientValidateKeyResponse: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -271738,9 +221176,9 @@ export const BI = $root.BI = (() => { object.success = false; object.message = ""; } - if (message.success != null && message.hasOwnProperty("success")) + if (message.success != null && Object.hasOwnProperty.call(message, "success")) object.success = message.success; - if (message.message != null && message.hasOwnProperty("message")) + if (message.message != null && Object.hasOwnProperty.call(message, "message")) object.message = message.message; return object; }; @@ -271850,19 +221288,6 @@ export const BI = $root.BI = (() => { return writer; }; - /** - * Encodes the specified GradientSaveRequest message, length delimited. Does not implicitly {@link BI.GradientSaveRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof BI.GradientSaveRequest - * @static - * @param {BI.IGradientSaveRequest} message GradientSaveRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GradientSaveRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a GradientSaveRequest message from the specified reader or buffer. * @function decode @@ -271903,46 +221328,6 @@ export const BI = $root.BI = (() => { return message; }; - /** - * Decodes a GradientSaveRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof BI.GradientSaveRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {BI.GradientSaveRequest} GradientSaveRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GradientSaveRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a GradientSaveRequest message. - * @function verify - * @memberof BI.GradientSaveRequest - * @static - * @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) { - if (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"; - 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"; - return null; - }; - /** * Creates a GradientSaveRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -271954,6 +221339,8 @@ export const BI = $root.BI = (() => { GradientSaveRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.BI.GradientSaveRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".BI.GradientSaveRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -271998,9 +221385,9 @@ export const BI = $root.BI = (() => { } else object.enterpriseUserId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; } - if (message.gradientKey != null && message.hasOwnProperty("gradientKey")) + if (message.gradientKey != null && Object.hasOwnProperty.call(message, "gradientKey")) object.gradientKey = message.gradientKey; - if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) + if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, "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") @@ -272126,19 +221513,6 @@ export const BI = $root.BI = (() => { return writer; }; - /** - * Encodes the specified GradientSaveResponse message, length delimited. Does not implicitly {@link BI.GradientSaveResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof BI.GradientSaveResponse - * @static - * @param {BI.IGradientSaveResponse} message GradientSaveResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GradientSaveResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a GradientSaveResponse message from the specified reader or buffer. * @function decode @@ -272183,56 +221557,6 @@ export const BI = $root.BI = (() => { return message; }; - /** - * Decodes a GradientSaveResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof BI.GradientSaveResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {BI.GradientSaveResponse} GradientSaveResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GradientSaveResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a GradientSaveResponse message. - * @function verify - * @memberof BI.GradientSaveResponse - * @static - * @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) { - if (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.status != null && message.hasOwnProperty("status")) - switch (message.status) { - default: - return "status: enum value expected"; - case 0: - case 1: - case 2: - case 3: - break; - } - if (message.message != null && message.hasOwnProperty("message")) - if (!$util.isString(message.message)) - return "message: string expected"; - return null; - }; - /** * Creates a GradientSaveResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -272244,6 +221568,8 @@ export const BI = $root.BI = (() => { GradientSaveResponse.fromObject = function fromObject(object, long) { if (object instanceof $root.BI.GradientSaveResponse) return object; + if (!$util.isObject(object)) + throw TypeError(".BI.GradientSaveResponse: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -272302,11 +221628,11 @@ export const BI = $root.BI = (() => { object.status = options.enums === String ? "NOTCONNECTED" : 0; object.message = ""; } - if (message.success != null && message.hasOwnProperty("success")) + if (message.success != null && Object.hasOwnProperty.call(message, "success")) object.success = message.success; - if (message.status != null && message.hasOwnProperty("status")) + if (message.status != null && Object.hasOwnProperty.call(message, "status")) object.status = options.enums === String ? $root.BI.GradientIntegrationStatus[message.status] === undefined ? message.status : $root.BI.GradientIntegrationStatus[message.status] : message.status; - if (message.message != null && message.hasOwnProperty("message")) + if (message.message != null && Object.hasOwnProperty.call(message, "message")) object.message = message.message; return object; }; @@ -272405,19 +221731,6 @@ export const BI = $root.BI = (() => { return writer; }; - /** - * Encodes the specified GradientRemoveRequest message, length delimited. Does not implicitly {@link BI.GradientRemoveRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof BI.GradientRemoveRequest - * @static - * @param {BI.IGradientRemoveRequest} message GradientRemoveRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GradientRemoveRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a GradientRemoveRequest message from the specified reader or buffer. * @function decode @@ -272454,43 +221767,6 @@ export const BI = $root.BI = (() => { return message; }; - /** - * Decodes a GradientRemoveRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof BI.GradientRemoveRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {BI.GradientRemoveRequest} GradientRemoveRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GradientRemoveRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a GradientRemoveRequest message. - * @function verify - * @memberof BI.GradientRemoveRequest - * @static - * @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) { - if (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"; - return null; - }; - /** * Creates a GradientRemoveRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -272502,6 +221778,8 @@ export const BI = $root.BI = (() => { GradientRemoveRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.BI.GradientRemoveRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".BI.GradientRemoveRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -272542,7 +221820,7 @@ export const BI = $root.BI = (() => { object.enterpriseUserId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; } else object.enterpriseUserId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; - if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) + if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, "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") @@ -272657,19 +221935,6 @@ export const BI = $root.BI = (() => { return writer; }; - /** - * Encodes the specified GradientRemoveResponse message, length delimited. Does not implicitly {@link BI.GradientRemoveResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof BI.GradientRemoveResponse - * @static - * @param {BI.IGradientRemoveResponse} message GradientRemoveResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GradientRemoveResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a GradientRemoveResponse message from the specified reader or buffer. * @function decode @@ -272710,46 +221975,6 @@ export const BI = $root.BI = (() => { return message; }; - /** - * Decodes a GradientRemoveResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof BI.GradientRemoveResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {BI.GradientRemoveResponse} GradientRemoveResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GradientRemoveResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a GradientRemoveResponse message. - * @function verify - * @memberof BI.GradientRemoveResponse - * @static - * @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) { - if (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.message != null && message.hasOwnProperty("message")) - if (!$util.isString(message.message)) - return "message: string expected"; - return null; - }; - /** * Creates a GradientRemoveResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -272761,6 +221986,8 @@ export const BI = $root.BI = (() => { GradientRemoveResponse.fromObject = function fromObject(object, long) { if (object instanceof $root.BI.GradientRemoveResponse) return object; + if (!$util.isObject(object)) + throw TypeError(".BI.GradientRemoveResponse: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -272794,9 +222021,9 @@ export const BI = $root.BI = (() => { object.success = false; object.message = ""; } - if (message.success != null && message.hasOwnProperty("success")) + if (message.success != null && Object.hasOwnProperty.call(message, "success")) object.success = message.success; - if (message.message != null && message.hasOwnProperty("message")) + if (message.message != null && Object.hasOwnProperty.call(message, "message")) object.message = message.message; return object; }; @@ -272895,19 +222122,6 @@ export const BI = $root.BI = (() => { return writer; }; - /** - * Encodes the specified GradientSyncRequest message, length delimited. Does not implicitly {@link BI.GradientSyncRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof BI.GradientSyncRequest - * @static - * @param {BI.IGradientSyncRequest} message GradientSyncRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GradientSyncRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a GradientSyncRequest message from the specified reader or buffer. * @function decode @@ -272944,43 +222158,6 @@ export const BI = $root.BI = (() => { return message; }; - /** - * Decodes a GradientSyncRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof BI.GradientSyncRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {BI.GradientSyncRequest} GradientSyncRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GradientSyncRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a GradientSyncRequest message. - * @function verify - * @memberof BI.GradientSyncRequest - * @static - * @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) { - if (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"; - return null; - }; - /** * Creates a GradientSyncRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -272992,6 +222169,8 @@ export const BI = $root.BI = (() => { GradientSyncRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.BI.GradientSyncRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".BI.GradientSyncRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -273032,7 +222211,7 @@ export const BI = $root.BI = (() => { object.enterpriseUserId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; } else object.enterpriseUserId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; - if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) + if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, "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") @@ -273158,19 +222337,6 @@ export const BI = $root.BI = (() => { return writer; }; - /** - * Encodes the specified GradientSyncResponse message, length delimited. Does not implicitly {@link BI.GradientSyncResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof BI.GradientSyncResponse - * @static - * @param {BI.IGradientSyncResponse} message GradientSyncResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GradientSyncResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a GradientSyncResponse message from the specified reader or buffer. * @function decode @@ -273215,56 +222381,6 @@ export const BI = $root.BI = (() => { return message; }; - /** - * Decodes a GradientSyncResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof BI.GradientSyncResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {BI.GradientSyncResponse} GradientSyncResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GradientSyncResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a GradientSyncResponse message. - * @function verify - * @memberof BI.GradientSyncResponse - * @static - * @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) { - if (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.status != null && message.hasOwnProperty("status")) - switch (message.status) { - default: - return "status: enum value expected"; - case 0: - case 1: - case 2: - case 3: - break; - } - if (message.message != null && message.hasOwnProperty("message")) - if (!$util.isString(message.message)) - return "message: string expected"; - return null; - }; - /** * Creates a GradientSyncResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -273276,6 +222392,8 @@ export const BI = $root.BI = (() => { GradientSyncResponse.fromObject = function fromObject(object, long) { if (object instanceof $root.BI.GradientSyncResponse) return object; + if (!$util.isObject(object)) + throw TypeError(".BI.GradientSyncResponse: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -273334,11 +222452,11 @@ export const BI = $root.BI = (() => { object.status = options.enums === String ? "NOTCONNECTED" : 0; object.message = ""; } - if (message.success != null && message.hasOwnProperty("success")) + if (message.success != null && Object.hasOwnProperty.call(message, "success")) object.success = message.success; - if (message.status != null && message.hasOwnProperty("status")) + if (message.status != null && Object.hasOwnProperty.call(message, "status")) object.status = options.enums === String ? $root.BI.GradientIntegrationStatus[message.status] === undefined ? message.status : $root.BI.GradientIntegrationStatus[message.status] : message.status; - if (message.message != null && message.hasOwnProperty("message")) + if (message.message != null && Object.hasOwnProperty.call(message, "message")) object.message = message.message; return object; }; @@ -273466,19 +222584,6 @@ export const BI = $root.BI = (() => { return writer; }; - /** - * Encodes the specified NetPromoterScoreSurveySubmissionRequest message, length delimited. Does not implicitly {@link BI.NetPromoterScoreSurveySubmissionRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof BI.NetPromoterScoreSurveySubmissionRequest - * @static - * @param {BI.INetPromoterScoreSurveySubmissionRequest} message NetPromoterScoreSurveySubmissionRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - NetPromoterScoreSurveySubmissionRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a NetPromoterScoreSurveySubmissionRequest message from the specified reader or buffer. * @function decode @@ -273519,46 +222624,6 @@ export const BI = $root.BI = (() => { return message; }; - /** - * Decodes a NetPromoterScoreSurveySubmissionRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof BI.NetPromoterScoreSurveySubmissionRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {BI.NetPromoterScoreSurveySubmissionRequest} NetPromoterScoreSurveySubmissionRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - NetPromoterScoreSurveySubmissionRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a NetPromoterScoreSurveySubmissionRequest message. - * @function verify - * @memberof BI.NetPromoterScoreSurveySubmissionRequest - * @static - * @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) { - if (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"; - if (message.notes != null && message.hasOwnProperty("notes")) - if (!$util.isString(message.notes)) - return "notes: string expected"; - return null; - }; - /** * Creates a NetPromoterScoreSurveySubmissionRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -273570,6 +222635,8 @@ export const BI = $root.BI = (() => { NetPromoterScoreSurveySubmissionRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.BI.NetPromoterScoreSurveySubmissionRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".BI.NetPromoterScoreSurveySubmissionRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -273603,9 +222670,9 @@ export const BI = $root.BI = (() => { object.surveyScore = 0; object.notes = ""; } - if (message.surveyScore != null && message.hasOwnProperty("surveyScore")) + if (message.surveyScore != null && Object.hasOwnProperty.call(message, "surveyScore")) object.surveyScore = message.surveyScore; - if (message.notes != null && message.hasOwnProperty("notes")) + if (message.notes != null && Object.hasOwnProperty.call(message, "notes")) object.notes = message.notes; return object; }; @@ -273693,19 +222760,6 @@ export const BI = $root.BI = (() => { return writer; }; - /** - * Encodes the specified NetPromoterScoreSurveySubmissionResponse message, length delimited. Does not implicitly {@link BI.NetPromoterScoreSurveySubmissionResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof BI.NetPromoterScoreSurveySubmissionResponse - * @static - * @param {BI.INetPromoterScoreSurveySubmissionResponse} message NetPromoterScoreSurveySubmissionResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - NetPromoterScoreSurveySubmissionResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a NetPromoterScoreSurveySubmissionResponse message from the specified reader or buffer. * @function decode @@ -273738,40 +222792,6 @@ export const BI = $root.BI = (() => { return message; }; - /** - * Decodes a NetPromoterScoreSurveySubmissionResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof BI.NetPromoterScoreSurveySubmissionResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {BI.NetPromoterScoreSurveySubmissionResponse} NetPromoterScoreSurveySubmissionResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - NetPromoterScoreSurveySubmissionResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a NetPromoterScoreSurveySubmissionResponse message. - * @function verify - * @memberof BI.NetPromoterScoreSurveySubmissionResponse - * @static - * @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) { - 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 NetPromoterScoreSurveySubmissionResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -273783,10 +222803,6 @@ export const BI = $root.BI = (() => { NetPromoterScoreSurveySubmissionResponse.fromObject = function fromObject(object, long) { 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(); }; @@ -273886,19 +222902,6 @@ export const BI = $root.BI = (() => { return writer; }; - /** - * Encodes the specified NetPromoterScorePopupScheduleRequest message, length delimited. Does not implicitly {@link BI.NetPromoterScorePopupScheduleRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof BI.NetPromoterScorePopupScheduleRequest - * @static - * @param {BI.INetPromoterScorePopupScheduleRequest} message NetPromoterScorePopupScheduleRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - NetPromoterScorePopupScheduleRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a NetPromoterScorePopupScheduleRequest message from the specified reader or buffer. * @function decode @@ -273931,40 +222934,6 @@ export const BI = $root.BI = (() => { return message; }; - /** - * Decodes a NetPromoterScorePopupScheduleRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof BI.NetPromoterScorePopupScheduleRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {BI.NetPromoterScorePopupScheduleRequest} NetPromoterScorePopupScheduleRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - NetPromoterScorePopupScheduleRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a NetPromoterScorePopupScheduleRequest message. - * @function verify - * @memberof BI.NetPromoterScorePopupScheduleRequest - * @static - * @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) { - 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 NetPromoterScorePopupScheduleRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -273976,10 +222945,6 @@ export const BI = $root.BI = (() => { NetPromoterScorePopupScheduleRequest.fromObject = function fromObject(object, long) { 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(); }; @@ -274090,19 +223055,6 @@ export const BI = $root.BI = (() => { return writer; }; - /** - * Encodes the specified NetPromoterScorePopupScheduleResponse message, length delimited. Does not implicitly {@link BI.NetPromoterScorePopupScheduleResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof BI.NetPromoterScorePopupScheduleResponse - * @static - * @param {BI.INetPromoterScorePopupScheduleResponse} message NetPromoterScorePopupScheduleResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - NetPromoterScorePopupScheduleResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a NetPromoterScorePopupScheduleResponse message from the specified reader or buffer. * @function decode @@ -274139,43 +223091,6 @@ export const BI = $root.BI = (() => { return message; }; - /** - * Decodes a NetPromoterScorePopupScheduleResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof BI.NetPromoterScorePopupScheduleResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {BI.NetPromoterScorePopupScheduleResponse} NetPromoterScorePopupScheduleResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - NetPromoterScorePopupScheduleResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a NetPromoterScorePopupScheduleResponse message. - * @function verify - * @memberof BI.NetPromoterScorePopupScheduleResponse - * @static - * @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) { - if (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"; - return null; - }; - /** * Creates a NetPromoterScorePopupScheduleResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -274187,6 +223102,8 @@ export const BI = $root.BI = (() => { NetPromoterScorePopupScheduleResponse.fromObject = function fromObject(object, long) { if (object instanceof $root.BI.NetPromoterScorePopupScheduleResponse) return object; + if (!$util.isObject(object)) + throw TypeError(".BI.NetPromoterScorePopupScheduleResponse: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -274216,7 +223133,7 @@ export const BI = $root.BI = (() => { let object = {}; if (options.defaults) object.showPopup = false; - if (message.showPopup != null && message.hasOwnProperty("showPopup")) + if (message.showPopup != null && Object.hasOwnProperty.call(message, "showPopup")) object.showPopup = message.showPopup; return object; }; @@ -274304,19 +223221,6 @@ export const BI = $root.BI = (() => { return writer; }; - /** - * Encodes the specified NetPromoterScorePopupDismissalRequest message, length delimited. Does not implicitly {@link BI.NetPromoterScorePopupDismissalRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof BI.NetPromoterScorePopupDismissalRequest - * @static - * @param {BI.INetPromoterScorePopupDismissalRequest} message NetPromoterScorePopupDismissalRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - NetPromoterScorePopupDismissalRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a NetPromoterScorePopupDismissalRequest message from the specified reader or buffer. * @function decode @@ -274349,40 +223253,6 @@ export const BI = $root.BI = (() => { return message; }; - /** - * Decodes a NetPromoterScorePopupDismissalRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof BI.NetPromoterScorePopupDismissalRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {BI.NetPromoterScorePopupDismissalRequest} NetPromoterScorePopupDismissalRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - NetPromoterScorePopupDismissalRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a NetPromoterScorePopupDismissalRequest message. - * @function verify - * @memberof BI.NetPromoterScorePopupDismissalRequest - * @static - * @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) { - 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 NetPromoterScorePopupDismissalRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -274394,10 +223264,6 @@ export const BI = $root.BI = (() => { NetPromoterScorePopupDismissalRequest.fromObject = function fromObject(object, long) { 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(); }; @@ -274497,19 +223363,6 @@ export const BI = $root.BI = (() => { return writer; }; - /** - * Encodes the specified NetPromoterScorePopupDismissalResponse message, length delimited. Does not implicitly {@link BI.NetPromoterScorePopupDismissalResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof BI.NetPromoterScorePopupDismissalResponse - * @static - * @param {BI.INetPromoterScorePopupDismissalResponse} message NetPromoterScorePopupDismissalResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - NetPromoterScorePopupDismissalResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a NetPromoterScorePopupDismissalResponse message from the specified reader or buffer. * @function decode @@ -274542,40 +223395,6 @@ export const BI = $root.BI = (() => { return message; }; - /** - * Decodes a NetPromoterScorePopupDismissalResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof BI.NetPromoterScorePopupDismissalResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {BI.NetPromoterScorePopupDismissalResponse} NetPromoterScorePopupDismissalResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - NetPromoterScorePopupDismissalResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a NetPromoterScorePopupDismissalResponse message. - * @function verify - * @memberof BI.NetPromoterScorePopupDismissalResponse - * @static - * @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) { - 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 NetPromoterScorePopupDismissalResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -274587,10 +223406,6 @@ export const BI = $root.BI = (() => { NetPromoterScorePopupDismissalResponse.fromObject = function fromObject(object, long) { 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(); }; @@ -274701,19 +223516,6 @@ export const BI = $root.BI = (() => { return writer; }; - /** - * Encodes the specified KCMLicenseRequest message, length delimited. Does not implicitly {@link BI.KCMLicenseRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof BI.KCMLicenseRequest - * @static - * @param {BI.IKCMLicenseRequest} message KCMLicenseRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - KCMLicenseRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a KCMLicenseRequest message from the specified reader or buffer. * @function decode @@ -274750,43 +223552,6 @@ export const BI = $root.BI = (() => { return message; }; - /** - * Decodes a KCMLicenseRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof BI.KCMLicenseRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {BI.KCMLicenseRequest} KCMLicenseRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - KCMLicenseRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a KCMLicenseRequest message. - * @function verify - * @memberof BI.KCMLicenseRequest - * @static - * @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) { - if (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"; - return null; - }; - /** * Creates a KCMLicenseRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -274798,6 +223563,8 @@ export const BI = $root.BI = (() => { KCMLicenseRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.BI.KCMLicenseRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".BI.KCMLicenseRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -274838,7 +223605,7 @@ export const BI = $root.BI = (() => { object.enterpriseUserId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; } else object.enterpriseUserId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; - if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) + if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, "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") @@ -274942,19 +223709,6 @@ export const BI = $root.BI = (() => { return writer; }; - /** - * Encodes the specified KCMLicenseResponse message, length delimited. Does not implicitly {@link BI.KCMLicenseResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof BI.KCMLicenseResponse - * @static - * @param {BI.IKCMLicenseResponse} message KCMLicenseResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - KCMLicenseResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a KCMLicenseResponse message from the specified reader or buffer. * @function decode @@ -274991,43 +223745,6 @@ export const BI = $root.BI = (() => { return message; }; - /** - * Decodes a KCMLicenseResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof BI.KCMLicenseResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {BI.KCMLicenseResponse} KCMLicenseResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - KCMLicenseResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a KCMLicenseResponse message. - * @function verify - * @memberof BI.KCMLicenseResponse - * @static - * @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) { - if (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"; - return null; - }; - /** * Creates a KCMLicenseResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -275039,6 +223756,8 @@ export const BI = $root.BI = (() => { KCMLicenseResponse.fromObject = function fromObject(object, long) { if (object instanceof $root.BI.KCMLicenseResponse) return object; + if (!$util.isObject(object)) + throw TypeError(".BI.KCMLicenseResponse: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -275068,7 +223787,7 @@ export const BI = $root.BI = (() => { let object = {}; if (options.defaults) object.message = ""; - if (message.message != null && message.hasOwnProperty("message")) + if (message.message != null && Object.hasOwnProperty.call(message, "message")) object.message = message.message; return object; }; @@ -275226,19 +223945,6 @@ export const BI = $root.BI = (() => { return writer; }; - /** - * Encodes the specified EventRequest message, length delimited. Does not implicitly {@link BI.EventRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof BI.EventRequest - * @static - * @param {BI.IEventRequest} message EventRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - EventRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes an EventRequest message from the specified reader or buffer. * @function decode @@ -275287,65 +223993,6 @@ export const BI = $root.BI = (() => { return message; }; - /** - * Decodes an EventRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof BI.EventRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {BI.EventRequest} EventRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - EventRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an EventRequest message. - * @function verify - * @memberof BI.EventRequest - * @static - * @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) { - if (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: - return "eventType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - break; - } - if (message.eventValue != null && message.hasOwnProperty("eventValue")) - if (!$util.isString(message.eventValue)) - return "eventValue: string expected"; - if (message.eventTime != null && message.hasOwnProperty("eventTime")) - 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); - if (error) - return "attributes." + error; - } - return null; - }; - /** * Creates an EventRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -275357,6 +224004,8 @@ export const BI = $root.BI = (() => { EventRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.BI.EventRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".BI.EventRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -275414,7 +224063,7 @@ export const BI = $root.BI = (() => { else if (typeof object.eventTime === "object") message.eventTime = new $util.LongBits(object.eventTime.low >>> 0, object.eventTime.high >>> 0).toNumber(); if (object.attributes != null) { - if (typeof object.attributes !== "object") + if (!$util.isObject(object.attributes)) throw TypeError(".BI.EventRequest.attributes: object expected"); message.attributes = $root.google.protobuf.Struct.fromObject(object.attributes, long + 1); } @@ -275448,18 +224097,18 @@ export const BI = $root.BI = (() => { object.eventTime = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; object.attributes = null; } - if (message.eventType != null && message.hasOwnProperty("eventType")) + if (message.eventType != null && Object.hasOwnProperty.call(message, "eventType")) object.eventType = options.enums === String ? $root.BI.EventType[message.eventType] === undefined ? message.eventType : $root.BI.EventType[message.eventType] : message.eventType; - if (message.eventValue != null && message.hasOwnProperty("eventValue")) + if (message.eventValue != null && Object.hasOwnProperty.call(message, "eventValue")) object.eventValue = message.eventValue; - if (message.eventTime != null && message.hasOwnProperty("eventTime")) + if (message.eventTime != null && Object.hasOwnProperty.call(message, "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") 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")) + if (message.attributes != null && Object.hasOwnProperty.call(message, "attributes")) object.attributes = $root.google.protobuf.Struct.toObject(message.attributes, options, q + 1); return object; }; @@ -275560,19 +224209,6 @@ export const BI = $root.BI = (() => { return writer; }; - /** - * Encodes the specified EventsRequest message, length delimited. Does not implicitly {@link BI.EventsRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof BI.EventsRequest - * @static - * @param {BI.IEventsRequest} message EventsRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - EventsRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes an EventsRequest message from the specified reader or buffer. * @function decode @@ -275611,49 +224247,6 @@ export const BI = $root.BI = (() => { return message; }; - /** - * Decodes an EventsRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof BI.EventsRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {BI.EventsRequest} EventsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - EventsRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an EventsRequest message. - * @function verify - * @memberof BI.EventsRequest - * @static - * @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) { - if (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); - if (error) - return "event." + error; - } - } - return null; - }; - /** * Creates an EventsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -275665,6 +224258,8 @@ export const BI = $root.BI = (() => { EventsRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.BI.EventsRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".BI.EventsRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -275675,7 +224270,7 @@ export const BI = $root.BI = (() => { throw TypeError(".BI.EventsRequest.event: array expected"); message.event = []; for (let i = 0; i < object.event.length; ++i) { - if (typeof object.event[i] !== "object") + if (!$util.isObject(object.event[i])) throw TypeError(".BI.EventsRequest.event: object expected"); message.event[i] = $root.BI.EventRequest.fromObject(object.event[i], long + 1); } @@ -275815,19 +224410,6 @@ export const BI = $root.BI = (() => { return writer; }; - /** - * Encodes the specified EventResponse message, length delimited. Does not implicitly {@link BI.EventResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof BI.EventResponse - * @static - * @param {BI.IEventResponse} message EventResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - EventResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes an EventResponse message from the specified reader or buffer. * @function decode @@ -275868,46 +224450,6 @@ export const BI = $root.BI = (() => { return message; }; - /** - * Decodes an EventResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof BI.EventResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {BI.EventResponse} EventResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - EventResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an EventResponse message. - * @function verify - * @memberof BI.EventResponse - * @static - * @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) { - if (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"; - if (message.status != null && message.hasOwnProperty("status")) - if (typeof message.status !== "boolean") - return "status: boolean expected"; - return null; - }; - /** * Creates an EventResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -275919,6 +224461,8 @@ export const BI = $root.BI = (() => { EventResponse.fromObject = function fromObject(object, long) { if (object instanceof $root.BI.EventResponse) return object; + if (!$util.isObject(object)) + throw TypeError(".BI.EventResponse: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -275952,9 +224496,9 @@ export const BI = $root.BI = (() => { object.index = 0; object.status = false; } - if (message.index != null && message.hasOwnProperty("index")) + if (message.index != null && Object.hasOwnProperty.call(message, "index")) object.index = message.index; - if (message.status != null && message.hasOwnProperty("status")) + if (message.status != null && Object.hasOwnProperty.call(message, "status")) object.status = message.status; return object; }; @@ -276055,19 +224599,6 @@ export const BI = $root.BI = (() => { return writer; }; - /** - * Encodes the specified EventsResponse message, length delimited. Does not implicitly {@link BI.EventsResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof BI.EventsResponse - * @static - * @param {BI.IEventsResponse} message EventsResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - EventsResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes an EventsResponse message from the specified reader or buffer. * @function decode @@ -276106,49 +224637,6 @@ export const BI = $root.BI = (() => { return message; }; - /** - * Decodes an EventsResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof BI.EventsResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {BI.EventsResponse} EventsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - EventsResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an EventsResponse message. - * @function verify - * @memberof BI.EventsResponse - * @static - * @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) { - if (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); - if (error) - return "response." + error; - } - } - return null; - }; - /** * Creates an EventsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -276160,6 +224648,8 @@ export const BI = $root.BI = (() => { EventsResponse.fromObject = function fromObject(object, long) { if (object instanceof $root.BI.EventsResponse) return object; + if (!$util.isObject(object)) + throw TypeError(".BI.EventsResponse: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -276170,7 +224660,7 @@ export const BI = $root.BI = (() => { throw TypeError(".BI.EventsResponse.response: array expected"); message.response = []; for (let i = 0; i < object.response.length; ++i) { - if (typeof object.response[i] !== "object") + if (!$util.isObject(object.response[i])) throw TypeError(".BI.EventsResponse.response: object expected"); message.response[i] = $root.BI.EventResponse.fromObject(object.response[i], long + 1); } @@ -276387,19 +224877,6 @@ export const BI = $root.BI = (() => { return writer; }; - /** - * Encodes the specified CustomerCaptureRequest message, length delimited. Does not implicitly {@link BI.CustomerCaptureRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof BI.CustomerCaptureRequest - * @static - * @param {BI.ICustomerCaptureRequest} message CustomerCaptureRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CustomerCaptureRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a CustomerCaptureRequest message from the specified reader or buffer. * @function decode @@ -276468,67 +224945,6 @@ export const BI = $root.BI = (() => { return message; }; - /** - * Decodes a CustomerCaptureRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof BI.CustomerCaptureRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {BI.CustomerCaptureRequest} CustomerCaptureRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CustomerCaptureRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a CustomerCaptureRequest message. - * @function verify - * @memberof BI.CustomerCaptureRequest - * @static - * @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) { - if (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"; - if (message.tree != null && message.hasOwnProperty("tree")) - if (!$util.isString(message.tree)) - return "tree: string expected"; - if (message.hash != null && message.hasOwnProperty("hash")) - if (!$util.isString(message.hash)) - return "hash: string expected"; - if (message.image != null && message.hasOwnProperty("image")) - if (!$util.isString(message.image)) - return "image: string expected"; - if (message.pageLoadTime != null && message.hasOwnProperty("pageLoadTime")) - if (!$util.isString(message.pageLoadTime)) - return "pageLoadTime: string expected"; - if (message.keyId != null && message.hasOwnProperty("keyId")) - if (!$util.isString(message.keyId)) - return "keyId: string expected"; - if (message.test != null && message.hasOwnProperty("test")) - if (typeof message.test !== "boolean") - return "test: boolean expected"; - if (message.issueType != null && message.hasOwnProperty("issueType")) - if (!$util.isString(message.issueType)) - return "issueType: string expected"; - if (message.notes != null && message.hasOwnProperty("notes")) - if (!$util.isString(message.notes)) - return "notes: string expected"; - return null; - }; - /** * Creates a CustomerCaptureRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -276540,6 +224956,8 @@ export const BI = $root.BI = (() => { CustomerCaptureRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.BI.CustomerCaptureRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".BI.CustomerCaptureRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -276594,23 +225012,23 @@ export const BI = $root.BI = (() => { object.issueType = ""; object.notes = ""; } - if (message.pageUrl != null && message.hasOwnProperty("pageUrl")) + if (message.pageUrl != null && Object.hasOwnProperty.call(message, "pageUrl")) object.pageUrl = message.pageUrl; - if (message.tree != null && message.hasOwnProperty("tree")) + if (message.tree != null && Object.hasOwnProperty.call(message, "tree")) object.tree = message.tree; - if (message.hash != null && message.hasOwnProperty("hash")) + if (message.hash != null && Object.hasOwnProperty.call(message, "hash")) object.hash = message.hash; - if (message.image != null && message.hasOwnProperty("image")) + if (message.image != null && Object.hasOwnProperty.call(message, "image")) object.image = message.image; - if (message.pageLoadTime != null && message.hasOwnProperty("pageLoadTime")) + if (message.pageLoadTime != null && Object.hasOwnProperty.call(message, "pageLoadTime")) object.pageLoadTime = message.pageLoadTime; - if (message.keyId != null && message.hasOwnProperty("keyId")) + if (message.keyId != null && Object.hasOwnProperty.call(message, "keyId")) object.keyId = message.keyId; - if (message.test != null && message.hasOwnProperty("test")) + if (message.test != null && Object.hasOwnProperty.call(message, "test")) object.test = message.test; - if (message.issueType != null && message.hasOwnProperty("issueType")) + if (message.issueType != null && Object.hasOwnProperty.call(message, "issueType")) object.issueType = message.issueType; - if (message.notes != null && message.hasOwnProperty("notes")) + if (message.notes != null && Object.hasOwnProperty.call(message, "notes")) object.notes = message.notes; return object; }; @@ -276698,19 +225116,6 @@ export const BI = $root.BI = (() => { return writer; }; - /** - * Encodes the specified CustomerCaptureResponse message, length delimited. Does not implicitly {@link BI.CustomerCaptureResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof BI.CustomerCaptureResponse - * @static - * @param {BI.ICustomerCaptureResponse} message CustomerCaptureResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CustomerCaptureResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a CustomerCaptureResponse message from the specified reader or buffer. * @function decode @@ -276743,40 +225148,6 @@ export const BI = $root.BI = (() => { return message; }; - /** - * Decodes a CustomerCaptureResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof BI.CustomerCaptureResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {BI.CustomerCaptureResponse} CustomerCaptureResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CustomerCaptureResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a CustomerCaptureResponse message. - * @function verify - * @memberof BI.CustomerCaptureResponse - * @static - * @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) { - 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 CustomerCaptureResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -276788,10 +225159,6 @@ export const BI = $root.BI = (() => { CustomerCaptureResponse.fromObject = function fromObject(object, long) { 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(); }; @@ -276960,19 +225327,6 @@ export const BI = $root.BI = (() => { return writer; }; - /** - * Encodes the specified Error message, length delimited. Does not implicitly {@link BI.Error.verify|verify} messages. - * @function encodeDelimited - * @memberof BI.Error - * @static - * @param {BI.IError} message Error message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Error.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes an Error message from the specified reader or buffer. * @function decode @@ -277038,54 +225392,6 @@ export const BI = $root.BI = (() => { return message; }; - /** - * Decodes an Error message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof BI.Error - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {BI.Error} Error - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Error.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an Error message. - * @function verify - * @memberof BI.Error - * @static - * @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) { - if (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"; - if (message.message != null && message.hasOwnProperty("message")) - if (!$util.isString(message.message)) - return "message: string expected"; - if (message.extras != null && message.hasOwnProperty("extras")) { - if (!$util.isObject(message.extras)) - return "extras: object expected"; - let key = Object.keys(message.extras); - for (let i = 0; i < key.length; ++i) - if (!$util.isString(message.extras[key[i]])) - return "extras: string{k:string} expected"; - } - return null; - }; - /** * Creates an Error message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -277097,6 +225403,8 @@ export const BI = $root.BI = (() => { Error.fromObject = function fromObject(object, long) { if (object instanceof $root.BI.Error) return object; + if (!$util.isObject(object)) + throw TypeError(".BI.Error: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -277107,7 +225415,7 @@ export const BI = $root.BI = (() => { if (object.message != null) message.message = String(object.message); if (object.extras) { - if (typeof object.extras !== "object") + if (!$util.isObject(object.extras)) throw TypeError(".BI.Error.extras: object expected"); message.extras = {}; for (let keys = Object.keys(object.extras), i = 0; i < keys.length; ++i) { @@ -277142,9 +225450,9 @@ export const BI = $root.BI = (() => { object.code = ""; object.message = ""; } - if (message.code != null && message.hasOwnProperty("code")) + if (message.code != null && Object.hasOwnProperty.call(message, "code")) object.code = message.code; - if (message.message != null && message.hasOwnProperty("message")) + if (message.message != null && Object.hasOwnProperty.call(message, "message")) object.message = message.message; let keys2; if (message.extras && (keys2 = Object.keys(message.extras)).length) { @@ -277307,19 +225615,6 @@ export const BI = $root.BI = (() => { return writer; }; - /** - * Encodes the specified QuotePurchase message, length delimited. Does not implicitly {@link BI.QuotePurchase.verify|verify} messages. - * @function encodeDelimited - * @memberof BI.QuotePurchase - * @static - * @param {BI.IQuotePurchase} message QuotePurchase message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - QuotePurchase.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a QuotePurchase message from the specified reader or buffer. * @function decode @@ -277376,58 +225671,6 @@ export const BI = $root.BI = (() => { return message; }; - /** - * Decodes a QuotePurchase message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof BI.QuotePurchase - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {BI.QuotePurchase} QuotePurchase - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - QuotePurchase.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a QuotePurchase message. - * @function verify - * @memberof BI.QuotePurchase - * @static - * @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) { - if (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"; - if (message.includedTax != null && message.hasOwnProperty("includedTax")) - if (typeof message.includedTax !== "boolean") - return "includedTax: boolean expected"; - if (message.includedOtherAddons != null && message.hasOwnProperty("includedOtherAddons")) - if (typeof message.includedOtherAddons !== "boolean") - return "includedOtherAddons: boolean expected"; - if (message.taxAmount != null && message.hasOwnProperty("taxAmount")) - if (typeof message.taxAmount !== "number") - return "taxAmount: number expected"; - if (message.taxLabel != null && message.hasOwnProperty("taxLabel")) - if (!$util.isString(message.taxLabel)) - return "taxLabel: string expected"; - if (message.purchaseIdentifier != null && message.hasOwnProperty("purchaseIdentifier")) - if (!$util.isString(message.purchaseIdentifier)) - return "purchaseIdentifier: string expected"; - return null; - }; - /** * Creates a QuotePurchase message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -277439,6 +225682,8 @@ export const BI = $root.BI = (() => { QuotePurchase.fromObject = function fromObject(object, long) { if (object instanceof $root.BI.QuotePurchase) return object; + if (!$util.isObject(object)) + throw TypeError(".BI.QuotePurchase: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -277484,17 +225729,17 @@ export const BI = $root.BI = (() => { object.taxLabel = ""; object.purchaseIdentifier = ""; } - if (message.quoteTotal != null && message.hasOwnProperty("quoteTotal")) + if (message.quoteTotal != null && Object.hasOwnProperty.call(message, "quoteTotal")) object.quoteTotal = options.json && !isFinite(message.quoteTotal) ? String(message.quoteTotal) : message.quoteTotal; - if (message.includedTax != null && message.hasOwnProperty("includedTax")) + if (message.includedTax != null && Object.hasOwnProperty.call(message, "includedTax")) object.includedTax = message.includedTax; - if (message.includedOtherAddons != null && message.hasOwnProperty("includedOtherAddons")) + if (message.includedOtherAddons != null && Object.hasOwnProperty.call(message, "includedOtherAddons")) object.includedOtherAddons = message.includedOtherAddons; - if (message.taxAmount != null && message.hasOwnProperty("taxAmount")) + if (message.taxAmount != null && Object.hasOwnProperty.call(message, "taxAmount")) object.taxAmount = options.json && !isFinite(message.taxAmount) ? String(message.taxAmount) : message.taxAmount; - if (message.taxLabel != null && message.hasOwnProperty("taxLabel")) + if (message.taxLabel != null && Object.hasOwnProperty.call(message, "taxLabel")) object.taxLabel = message.taxLabel; - if (message.purchaseIdentifier != null && message.hasOwnProperty("purchaseIdentifier")) + if (message.purchaseIdentifier != null && Object.hasOwnProperty.call(message, "purchaseIdentifier")) object.purchaseIdentifier = message.purchaseIdentifier; return object; }; @@ -277619,19 +225864,6 @@ export const BI = $root.BI = (() => { return writer; }; - /** - * Encodes the specified PurchaseOptions message, length delimited. Does not implicitly {@link BI.PurchaseOptions.verify|verify} messages. - * @function encodeDelimited - * @memberof BI.PurchaseOptions - * @static - * @param {BI.IPurchaseOptions} message PurchaseOptions message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - PurchaseOptions.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a PurchaseOptions message from the specified reader or buffer. * @function decode @@ -277672,51 +225904,6 @@ export const BI = $root.BI = (() => { return message; }; - /** - * Decodes a PurchaseOptions message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof BI.PurchaseOptions - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {BI.PurchaseOptions} PurchaseOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - PurchaseOptions.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a PurchaseOptions message. - * @function verify - * @memberof BI.PurchaseOptions - * @static - * @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) { - 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; - if (typeof message.inConsole !== "boolean") - return "inConsole: boolean expected"; - } - if (message.externalCheckout != null && message.hasOwnProperty("externalCheckout")) { - properties._externalCheckout = 1; - if (typeof message.externalCheckout !== "boolean") - return "externalCheckout: boolean expected"; - } - return null; - }; - /** * Creates a PurchaseOptions message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -277728,6 +225915,8 @@ export const BI = $root.BI = (() => { PurchaseOptions.fromObject = function fromObject(object, long) { if (object instanceof $root.BI.PurchaseOptions) return object; + if (!$util.isObject(object)) + throw TypeError(".BI.PurchaseOptions: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -277757,12 +225946,12 @@ export const BI = $root.BI = (() => { if (q > $util.recursionLimit) throw Error("max depth exceeded"); let object = {}; - if (message.inConsole != null && message.hasOwnProperty("inConsole")) { + if (message.inConsole != null && Object.hasOwnProperty.call(message, "inConsole")) { object.inConsole = message.inConsole; if (options.oneofs) object._inConsole = "inConsole"; } - if (message.externalCheckout != null && message.hasOwnProperty("externalCheckout")) { + if (message.externalCheckout != null && Object.hasOwnProperty.call(message, "externalCheckout")) { object.externalCheckout = message.externalCheckout; if (options.oneofs) object._externalCheckout = "externalCheckout"; @@ -278077,19 +226266,6 @@ export const BI = $root.BI = (() => { return writer; }; - /** - * Encodes the specified AddonPurchaseOptions message, length delimited. Does not implicitly {@link BI.AddonPurchaseOptions.verify|verify} messages. - * @function encodeDelimited - * @memberof BI.AddonPurchaseOptions - * @static - * @param {BI.IAddonPurchaseOptions} message AddonPurchaseOptions message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - AddonPurchaseOptions.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes an AddonPurchaseOptions message from the specified reader or buffer. * @function decode @@ -278174,145 +226350,6 @@ export const BI = $root.BI = (() => { return message; }; - /** - * Decodes an AddonPurchaseOptions message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof BI.AddonPurchaseOptions - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {BI.AddonPurchaseOptions} AddonPurchaseOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - AddonPurchaseOptions.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an AddonPurchaseOptions message. - * @function verify - * @memberof BI.AddonPurchaseOptions - * @static - * @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) { - 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); - if (error) - return "storage." + error; - } - } - if (message.audit != null && message.hasOwnProperty("audit")) { - properties._audit = 1; - { - let error = $root.BI.PurchaseOptions.verify(message.audit, long + 1); - if (error) - return "audit." + error; - } - } - if (message.breachwatch != null && message.hasOwnProperty("breachwatch")) { - properties._breachwatch = 1; - { - let error = $root.BI.PurchaseOptions.verify(message.breachwatch, long + 1); - if (error) - return "breachwatch." + error; - } - } - if (message.chat != null && message.hasOwnProperty("chat")) { - properties._chat = 1; - { - let error = $root.BI.PurchaseOptions.verify(message.chat, long + 1); - if (error) - return "chat." + error; - } - } - if (message.compliance != null && message.hasOwnProperty("compliance")) { - properties._compliance = 1; - { - let error = $root.BI.PurchaseOptions.verify(message.compliance, long + 1); - if (error) - return "compliance." + error; - } - } - if (message.professionalServicesSilver != null && message.hasOwnProperty("professionalServicesSilver")) { - properties._professionalServicesSilver = 1; - { - let error = $root.BI.PurchaseOptions.verify(message.professionalServicesSilver, long + 1); - if (error) - return "professionalServicesSilver." + error; - } - } - if (message.professionalServicesPlatinum != null && message.hasOwnProperty("professionalServicesPlatinum")) { - properties._professionalServicesPlatinum = 1; - { - let error = $root.BI.PurchaseOptions.verify(message.professionalServicesPlatinum, long + 1); - if (error) - return "professionalServicesPlatinum." + error; - } - } - if (message.pam != null && message.hasOwnProperty("pam")) { - properties._pam = 1; - { - let error = $root.BI.PurchaseOptions.verify(message.pam, long + 1); - if (error) - return "pam." + error; - } - } - if (message.epm != null && message.hasOwnProperty("epm")) { - properties._epm = 1; - { - let error = $root.BI.PurchaseOptions.verify(message.epm, long + 1); - if (error) - return "epm." + error; - } - } - if (message.secretsManager != null && message.hasOwnProperty("secretsManager")) { - properties._secretsManager = 1; - { - let error = $root.BI.PurchaseOptions.verify(message.secretsManager, long + 1); - if (error) - return "secretsManager." + error; - } - } - if (message.connectionManager != null && message.hasOwnProperty("connectionManager")) { - properties._connectionManager = 1; - { - let error = $root.BI.PurchaseOptions.verify(message.connectionManager, long + 1); - if (error) - return "connectionManager." + error; - } - } - if (message.remoteBrowserIsolation != null && message.hasOwnProperty("remoteBrowserIsolation")) { - properties._remoteBrowserIsolation = 1; - { - let error = $root.BI.PurchaseOptions.verify(message.remoteBrowserIsolation, long + 1); - if (error) - return "remoteBrowserIsolation." + error; - } - } - if (message.nhiTier != null && message.hasOwnProperty("nhiTier")) { - properties._nhiTier = 1; - { - let error = $root.BI.PurchaseOptions.verify(message.nhiTier, long + 1); - if (error) - return "nhiTier." + error; - } - } - return null; - }; - /** * Creates an AddonPurchaseOptions message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -278324,73 +226361,75 @@ export const BI = $root.BI = (() => { AddonPurchaseOptions.fromObject = function fromObject(object, long) { if (object instanceof $root.BI.AddonPurchaseOptions) return object; + if (!$util.isObject(object)) + throw TypeError(".BI.AddonPurchaseOptions: object expected"); 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") + if (!$util.isObject(object.storage)) throw TypeError(".BI.AddonPurchaseOptions.storage: object expected"); message.storage = $root.BI.PurchaseOptions.fromObject(object.storage, long + 1); } if (object.audit != null) { - if (typeof object.audit !== "object") + if (!$util.isObject(object.audit)) throw TypeError(".BI.AddonPurchaseOptions.audit: object expected"); message.audit = $root.BI.PurchaseOptions.fromObject(object.audit, long + 1); } if (object.breachwatch != null) { - if (typeof object.breachwatch !== "object") + if (!$util.isObject(object.breachwatch)) throw TypeError(".BI.AddonPurchaseOptions.breachwatch: object expected"); message.breachwatch = $root.BI.PurchaseOptions.fromObject(object.breachwatch, long + 1); } if (object.chat != null) { - if (typeof object.chat !== "object") + if (!$util.isObject(object.chat)) throw TypeError(".BI.AddonPurchaseOptions.chat: object expected"); message.chat = $root.BI.PurchaseOptions.fromObject(object.chat, long + 1); } if (object.compliance != null) { - if (typeof object.compliance !== "object") + if (!$util.isObject(object.compliance)) throw TypeError(".BI.AddonPurchaseOptions.compliance: object expected"); message.compliance = $root.BI.PurchaseOptions.fromObject(object.compliance, long + 1); } if (object.professionalServicesSilver != null) { - if (typeof object.professionalServicesSilver !== "object") + if (!$util.isObject(object.professionalServicesSilver)) throw TypeError(".BI.AddonPurchaseOptions.professionalServicesSilver: object expected"); message.professionalServicesSilver = $root.BI.PurchaseOptions.fromObject(object.professionalServicesSilver, long + 1); } if (object.professionalServicesPlatinum != null) { - if (typeof object.professionalServicesPlatinum !== "object") + if (!$util.isObject(object.professionalServicesPlatinum)) throw TypeError(".BI.AddonPurchaseOptions.professionalServicesPlatinum: object expected"); message.professionalServicesPlatinum = $root.BI.PurchaseOptions.fromObject(object.professionalServicesPlatinum, long + 1); } if (object.pam != null) { - if (typeof object.pam !== "object") + if (!$util.isObject(object.pam)) throw TypeError(".BI.AddonPurchaseOptions.pam: object expected"); message.pam = $root.BI.PurchaseOptions.fromObject(object.pam, long + 1); } if (object.epm != null) { - if (typeof object.epm !== "object") + if (!$util.isObject(object.epm)) throw TypeError(".BI.AddonPurchaseOptions.epm: object expected"); message.epm = $root.BI.PurchaseOptions.fromObject(object.epm, long + 1); } if (object.secretsManager != null) { - if (typeof object.secretsManager !== "object") + if (!$util.isObject(object.secretsManager)) throw TypeError(".BI.AddonPurchaseOptions.secretsManager: object expected"); message.secretsManager = $root.BI.PurchaseOptions.fromObject(object.secretsManager, long + 1); } if (object.connectionManager != null) { - if (typeof object.connectionManager !== "object") + if (!$util.isObject(object.connectionManager)) throw TypeError(".BI.AddonPurchaseOptions.connectionManager: object expected"); message.connectionManager = $root.BI.PurchaseOptions.fromObject(object.connectionManager, long + 1); } if (object.remoteBrowserIsolation != null) { - if (typeof object.remoteBrowserIsolation !== "object") + if (!$util.isObject(object.remoteBrowserIsolation)) throw TypeError(".BI.AddonPurchaseOptions.remoteBrowserIsolation: object expected"); message.remoteBrowserIsolation = $root.BI.PurchaseOptions.fromObject(object.remoteBrowserIsolation, long + 1); } if (object.nhiTier != null) { - if (typeof object.nhiTier !== "object") + if (!$util.isObject(object.nhiTier)) throw TypeError(".BI.AddonPurchaseOptions.nhiTier: object expected"); message.nhiTier = $root.BI.PurchaseOptions.fromObject(object.nhiTier, long + 1); } @@ -278414,67 +226453,67 @@ export const BI = $root.BI = (() => { if (q > $util.recursionLimit) throw Error("max depth exceeded"); let object = {}; - if (message.storage != null && message.hasOwnProperty("storage")) { + if (message.storage != null && Object.hasOwnProperty.call(message, "storage")) { object.storage = $root.BI.PurchaseOptions.toObject(message.storage, options, q + 1); if (options.oneofs) object._storage = "storage"; } - if (message.audit != null && message.hasOwnProperty("audit")) { + if (message.audit != null && Object.hasOwnProperty.call(message, "audit")) { object.audit = $root.BI.PurchaseOptions.toObject(message.audit, options, q + 1); if (options.oneofs) object._audit = "audit"; } - if (message.breachwatch != null && message.hasOwnProperty("breachwatch")) { + if (message.breachwatch != null && Object.hasOwnProperty.call(message, "breachwatch")) { object.breachwatch = $root.BI.PurchaseOptions.toObject(message.breachwatch, options, q + 1); if (options.oneofs) object._breachwatch = "breachwatch"; } - if (message.chat != null && message.hasOwnProperty("chat")) { + if (message.chat != null && Object.hasOwnProperty.call(message, "chat")) { object.chat = $root.BI.PurchaseOptions.toObject(message.chat, options, q + 1); if (options.oneofs) object._chat = "chat"; } - if (message.compliance != null && message.hasOwnProperty("compliance")) { + if (message.compliance != null && Object.hasOwnProperty.call(message, "compliance")) { object.compliance = $root.BI.PurchaseOptions.toObject(message.compliance, options, q + 1); if (options.oneofs) object._compliance = "compliance"; } - if (message.professionalServicesSilver != null && message.hasOwnProperty("professionalServicesSilver")) { + if (message.professionalServicesSilver != null && Object.hasOwnProperty.call(message, "professionalServicesSilver")) { object.professionalServicesSilver = $root.BI.PurchaseOptions.toObject(message.professionalServicesSilver, options, q + 1); if (options.oneofs) object._professionalServicesSilver = "professionalServicesSilver"; } - if (message.professionalServicesPlatinum != null && message.hasOwnProperty("professionalServicesPlatinum")) { + if (message.professionalServicesPlatinum != null && Object.hasOwnProperty.call(message, "professionalServicesPlatinum")) { object.professionalServicesPlatinum = $root.BI.PurchaseOptions.toObject(message.professionalServicesPlatinum, options, q + 1); if (options.oneofs) object._professionalServicesPlatinum = "professionalServicesPlatinum"; } - if (message.pam != null && message.hasOwnProperty("pam")) { + if (message.pam != null && Object.hasOwnProperty.call(message, "pam")) { object.pam = $root.BI.PurchaseOptions.toObject(message.pam, options, q + 1); if (options.oneofs) object._pam = "pam"; } - if (message.epm != null && message.hasOwnProperty("epm")) { + if (message.epm != null && Object.hasOwnProperty.call(message, "epm")) { object.epm = $root.BI.PurchaseOptions.toObject(message.epm, options, q + 1); if (options.oneofs) object._epm = "epm"; } - if (message.secretsManager != null && message.hasOwnProperty("secretsManager")) { + if (message.secretsManager != null && Object.hasOwnProperty.call(message, "secretsManager")) { object.secretsManager = $root.BI.PurchaseOptions.toObject(message.secretsManager, options, q + 1); if (options.oneofs) object._secretsManager = "secretsManager"; } - if (message.connectionManager != null && message.hasOwnProperty("connectionManager")) { + if (message.connectionManager != null && Object.hasOwnProperty.call(message, "connectionManager")) { object.connectionManager = $root.BI.PurchaseOptions.toObject(message.connectionManager, options, q + 1); if (options.oneofs) object._connectionManager = "connectionManager"; } - if (message.remoteBrowserIsolation != null && message.hasOwnProperty("remoteBrowserIsolation")) { + if (message.remoteBrowserIsolation != null && Object.hasOwnProperty.call(message, "remoteBrowserIsolation")) { object.remoteBrowserIsolation = $root.BI.PurchaseOptions.toObject(message.remoteBrowserIsolation, options, q + 1); if (options.oneofs) object._remoteBrowserIsolation = "remoteBrowserIsolation"; } - if (message.nhiTier != null && message.hasOwnProperty("nhiTier")) { + if (message.nhiTier != null && Object.hasOwnProperty.call(message, "nhiTier")) { object.nhiTier = $root.BI.PurchaseOptions.toObject(message.nhiTier, options, q + 1); if (options.oneofs) object._nhiTier = "nhiTier"; @@ -278598,19 +226637,6 @@ export const BI = $root.BI = (() => { return writer; }; - /** - * Encodes the specified AvailablePurchaseOptions message, length delimited. Does not implicitly {@link BI.AvailablePurchaseOptions.verify|verify} messages. - * @function encodeDelimited - * @memberof BI.AvailablePurchaseOptions - * @static - * @param {BI.IAvailablePurchaseOptions} message AvailablePurchaseOptions message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - AvailablePurchaseOptions.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes an AvailablePurchaseOptions message from the specified reader or buffer. * @function decode @@ -278655,55 +226681,6 @@ export const BI = $root.BI = (() => { return message; }; - /** - * Decodes an AvailablePurchaseOptions message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof BI.AvailablePurchaseOptions - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {BI.AvailablePurchaseOptions} AvailablePurchaseOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - AvailablePurchaseOptions.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an AvailablePurchaseOptions message. - * @function verify - * @memberof BI.AvailablePurchaseOptions - * @static - * @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) { - if (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); - if (error) - return "basePlan." + error; - } - if (message.users != null && message.hasOwnProperty("users")) { - let error = $root.BI.PurchaseOptions.verify(message.users, long + 1); - if (error) - return "users." + error; - } - if (message.addons != null && message.hasOwnProperty("addons")) { - let error = $root.BI.AddonPurchaseOptions.verify(message.addons, long + 1); - if (error) - return "addons." + error; - } - return null; - }; - /** * Creates an AvailablePurchaseOptions message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -278715,23 +226692,25 @@ export const BI = $root.BI = (() => { AvailablePurchaseOptions.fromObject = function fromObject(object, long) { if (object instanceof $root.BI.AvailablePurchaseOptions) return object; + if (!$util.isObject(object)) + throw TypeError(".BI.AvailablePurchaseOptions: object expected"); 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") + if (!$util.isObject(object.basePlan)) throw TypeError(".BI.AvailablePurchaseOptions.basePlan: object expected"); message.basePlan = $root.BI.PurchaseOptions.fromObject(object.basePlan, long + 1); } if (object.users != null) { - if (typeof object.users !== "object") + if (!$util.isObject(object.users)) throw TypeError(".BI.AvailablePurchaseOptions.users: object expected"); message.users = $root.BI.PurchaseOptions.fromObject(object.users, long + 1); } if (object.addons != null) { - if (typeof object.addons !== "object") + if (!$util.isObject(object.addons)) throw TypeError(".BI.AvailablePurchaseOptions.addons: object expected"); message.addons = $root.BI.AddonPurchaseOptions.fromObject(object.addons, long + 1); } @@ -278760,11 +226739,11 @@ export const BI = $root.BI = (() => { object.users = null; object.addons = null; } - if (message.basePlan != null && message.hasOwnProperty("basePlan")) + if (message.basePlan != null && Object.hasOwnProperty.call(message, "basePlan")) object.basePlan = $root.BI.PurchaseOptions.toObject(message.basePlan, options, q + 1); - if (message.users != null && message.hasOwnProperty("users")) + if (message.users != null && Object.hasOwnProperty.call(message, "users")) object.users = $root.BI.PurchaseOptions.toObject(message.users, options, q + 1); - if (message.addons != null && message.hasOwnProperty("addons")) + if (message.addons != null && Object.hasOwnProperty.call(message, "addons")) object.addons = $root.BI.AddonPurchaseOptions.toObject(message.addons, options, q + 1); return object; }; @@ -278852,19 +226831,6 @@ export const BI = $root.BI = (() => { return writer; }; - /** - * Encodes the specified UpgradeLicenseStatusRequest message, length delimited. Does not implicitly {@link BI.UpgradeLicenseStatusRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof BI.UpgradeLicenseStatusRequest - * @static - * @param {BI.IUpgradeLicenseStatusRequest} message UpgradeLicenseStatusRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - UpgradeLicenseStatusRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes an UpgradeLicenseStatusRequest message from the specified reader or buffer. * @function decode @@ -278897,40 +226863,6 @@ export const BI = $root.BI = (() => { return message; }; - /** - * Decodes an UpgradeLicenseStatusRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof BI.UpgradeLicenseStatusRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {BI.UpgradeLicenseStatusRequest} UpgradeLicenseStatusRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - UpgradeLicenseStatusRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an UpgradeLicenseStatusRequest message. - * @function verify - * @memberof BI.UpgradeLicenseStatusRequest - * @static - * @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) { - 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 an UpgradeLicenseStatusRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -278942,10 +226874,6 @@ export const BI = $root.BI = (() => { UpgradeLicenseStatusRequest.fromObject = function fromObject(object, long) { 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(); }; @@ -279078,19 +227006,6 @@ export const BI = $root.BI = (() => { return writer; }; - /** - * Encodes the specified UpgradeLicenseStatusResponse message, length delimited. Does not implicitly {@link BI.UpgradeLicenseStatusResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof BI.UpgradeLicenseStatusResponse - * @static - * @param {BI.IUpgradeLicenseStatusResponse} message UpgradeLicenseStatusResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - UpgradeLicenseStatusResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes an UpgradeLicenseStatusResponse message from the specified reader or buffer. * @function decode @@ -279135,53 +227050,6 @@ export const BI = $root.BI = (() => { return message; }; - /** - * Decodes an UpgradeLicenseStatusResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof BI.UpgradeLicenseStatusResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {BI.UpgradeLicenseStatusResponse} UpgradeLicenseStatusResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - UpgradeLicenseStatusResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an UpgradeLicenseStatusResponse message. - * @function verify - * @memberof BI.UpgradeLicenseStatusResponse - * @static - * @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) { - if (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); - if (error) - return "purchaseOptions." + error; - } - if (message.error != null && message.hasOwnProperty("error")) { - let error = $root.BI.Error.verify(message.error, long + 1); - if (error) - return "error." + error; - } - return null; - }; - /** * Creates an UpgradeLicenseStatusResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -279193,6 +227061,8 @@ export const BI = $root.BI = (() => { UpgradeLicenseStatusResponse.fromObject = function fromObject(object, long) { if (object instanceof $root.BI.UpgradeLicenseStatusResponse) return object; + if (!$util.isObject(object)) + throw TypeError(".BI.UpgradeLicenseStatusResponse: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -279201,12 +227071,12 @@ export const BI = $root.BI = (() => { if (object.allowPurchaseFromConsole != null) message.allowPurchaseFromConsole = Boolean(object.allowPurchaseFromConsole); if (object.purchaseOptions != null) { - if (typeof object.purchaseOptions !== "object") + if (!$util.isObject(object.purchaseOptions)) throw TypeError(".BI.UpgradeLicenseStatusResponse.purchaseOptions: object expected"); message.purchaseOptions = $root.BI.AvailablePurchaseOptions.fromObject(object.purchaseOptions, long + 1); } if (object.error != null) { - if (typeof object.error !== "object") + if (!$util.isObject(object.error)) throw TypeError(".BI.UpgradeLicenseStatusResponse.error: object expected"); message.error = $root.BI.Error.fromObject(object.error, long + 1); } @@ -279235,11 +227105,11 @@ export const BI = $root.BI = (() => { object.purchaseOptions = null; object.error = null; } - if (message.allowPurchaseFromConsole != null && message.hasOwnProperty("allowPurchaseFromConsole")) + if (message.allowPurchaseFromConsole != null && Object.hasOwnProperty.call(message, "allowPurchaseFromConsole")) object.allowPurchaseFromConsole = message.allowPurchaseFromConsole; - if (message.purchaseOptions != null && message.hasOwnProperty("purchaseOptions")) + if (message.purchaseOptions != null && Object.hasOwnProperty.call(message, "purchaseOptions")) object.purchaseOptions = $root.BI.AvailablePurchaseOptions.toObject(message.purchaseOptions, options, q + 1); - if (message.error != null && message.hasOwnProperty("error")) + if (message.error != null && Object.hasOwnProperty.call(message, "error")) object.error = $root.BI.Error.toObject(message.error, options, q + 1); return object; }; @@ -279360,19 +227230,6 @@ export const BI = $root.BI = (() => { return writer; }; - /** - * Encodes the specified UpgradeLicenseQuotePurchaseRequest message, length delimited. Does not implicitly {@link BI.UpgradeLicenseQuotePurchaseRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof BI.UpgradeLicenseQuotePurchaseRequest - * @static - * @param {BI.IUpgradeLicenseQuotePurchaseRequest} message UpgradeLicenseQuotePurchaseRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - UpgradeLicenseQuotePurchaseRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes an UpgradeLicenseQuotePurchaseRequest message from the specified reader or buffer. * @function decode @@ -279417,64 +227274,6 @@ export const BI = $root.BI = (() => { return message; }; - /** - * Decodes an UpgradeLicenseQuotePurchaseRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof BI.UpgradeLicenseQuotePurchaseRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {BI.UpgradeLicenseQuotePurchaseRequest} UpgradeLicenseQuotePurchaseRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - UpgradeLicenseQuotePurchaseRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an UpgradeLicenseQuotePurchaseRequest message. - * @function verify - * @memberof BI.UpgradeLicenseQuotePurchaseRequest - * @static - * @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) { - if (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: - return "productType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: - case 9: - case 10: - case 11: - break; - } - if (message.quantity != null && message.hasOwnProperty("quantity")) - if (!$util.isInteger(message.quantity)) - return "quantity: integer expected"; - if (message.tier != null && message.hasOwnProperty("tier")) - if (!$util.isInteger(message.tier)) - return "tier: integer expected"; - return null; - }; - /** * Creates an UpgradeLicenseQuotePurchaseRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -279486,6 +227285,8 @@ export const BI = $root.BI = (() => { UpgradeLicenseQuotePurchaseRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.BI.UpgradeLicenseQuotePurchaseRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".BI.UpgradeLicenseQuotePurchaseRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -279576,11 +227377,11 @@ export const BI = $root.BI = (() => { object.quantity = 0; object.tier = 0; } - if (message.productType != null && message.hasOwnProperty("productType")) + if (message.productType != null && Object.hasOwnProperty.call(message, "productType")) object.productType = options.enums === String ? $root.BI.PurchaseProductType[message.productType] === undefined ? message.productType : $root.BI.PurchaseProductType[message.productType] : message.productType; - if (message.quantity != null && message.hasOwnProperty("quantity")) + if (message.quantity != null && Object.hasOwnProperty.call(message, "quantity")) object.quantity = message.quantity; - if (message.tier != null && message.hasOwnProperty("tier")) + if (message.tier != null && Object.hasOwnProperty.call(message, "tier")) object.tier = message.tier; return object; }; @@ -279712,19 +227513,6 @@ export const BI = $root.BI = (() => { return writer; }; - /** - * Encodes the specified UpgradeLicenseQuotePurchaseResponse message, length delimited. Does not implicitly {@link BI.UpgradeLicenseQuotePurchaseResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof BI.UpgradeLicenseQuotePurchaseResponse - * @static - * @param {BI.IUpgradeLicenseQuotePurchaseResponse} message UpgradeLicenseQuotePurchaseResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - UpgradeLicenseQuotePurchaseResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes an UpgradeLicenseQuotePurchaseResponse message from the specified reader or buffer. * @function decode @@ -279773,56 +227561,6 @@ export const BI = $root.BI = (() => { return message; }; - /** - * Decodes an UpgradeLicenseQuotePurchaseResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof BI.UpgradeLicenseQuotePurchaseResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {BI.UpgradeLicenseQuotePurchaseResponse} UpgradeLicenseQuotePurchaseResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - UpgradeLicenseQuotePurchaseResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an UpgradeLicenseQuotePurchaseResponse message. - * @function verify - * @memberof BI.UpgradeLicenseQuotePurchaseResponse - * @static - * @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) { - if (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); - if (error) - return "quotePurchase." + error; - } - if (message.viewSummaryLink != null && message.hasOwnProperty("viewSummaryLink")) - 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); - if (error) - return "error." + error; - } - return null; - }; - /** * Creates an UpgradeLicenseQuotePurchaseResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -279834,6 +227572,8 @@ export const BI = $root.BI = (() => { UpgradeLicenseQuotePurchaseResponse.fromObject = function fromObject(object, long) { if (object instanceof $root.BI.UpgradeLicenseQuotePurchaseResponse) return object; + if (!$util.isObject(object)) + throw TypeError(".BI.UpgradeLicenseQuotePurchaseResponse: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -279842,14 +227582,14 @@ export const BI = $root.BI = (() => { if (object.success != null) message.success = Boolean(object.success); if (object.quotePurchase != null) { - if (typeof object.quotePurchase !== "object") + if (!$util.isObject(object.quotePurchase)) throw TypeError(".BI.UpgradeLicenseQuotePurchaseResponse.quotePurchase: object expected"); message.quotePurchase = $root.BI.QuotePurchase.fromObject(object.quotePurchase, long + 1); } if (object.viewSummaryLink != null) message.viewSummaryLink = String(object.viewSummaryLink); if (object.error != null) { - if (typeof object.error !== "object") + if (!$util.isObject(object.error)) throw TypeError(".BI.UpgradeLicenseQuotePurchaseResponse.error: object expected"); message.error = $root.BI.Error.fromObject(object.error, long + 1); } @@ -279879,13 +227619,13 @@ export const BI = $root.BI = (() => { object.viewSummaryLink = ""; object.error = null; } - if (message.success != null && message.hasOwnProperty("success")) + if (message.success != null && Object.hasOwnProperty.call(message, "success")) object.success = message.success; - if (message.quotePurchase != null && message.hasOwnProperty("quotePurchase")) + if (message.quotePurchase != null && Object.hasOwnProperty.call(message, "quotePurchase")) object.quotePurchase = $root.BI.QuotePurchase.toObject(message.quotePurchase, options, q + 1); - if (message.viewSummaryLink != null && message.hasOwnProperty("viewSummaryLink")) + if (message.viewSummaryLink != null && Object.hasOwnProperty.call(message, "viewSummaryLink")) object.viewSummaryLink = message.viewSummaryLink; - if (message.error != null && message.hasOwnProperty("error")) + if (message.error != null && Object.hasOwnProperty.call(message, "error")) object.error = $root.BI.Error.toObject(message.error, options, q + 1); return object; }; @@ -280017,19 +227757,6 @@ export const BI = $root.BI = (() => { return writer; }; - /** - * Encodes the specified UpgradeLicenseCompletePurchaseRequest message, length delimited. Does not implicitly {@link BI.UpgradeLicenseCompletePurchaseRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof BI.UpgradeLicenseCompletePurchaseRequest - * @static - * @param {BI.IUpgradeLicenseCompletePurchaseRequest} message UpgradeLicenseCompletePurchaseRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - UpgradeLicenseCompletePurchaseRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes an UpgradeLicenseCompletePurchaseRequest message from the specified reader or buffer. * @function decode @@ -280078,69 +227805,6 @@ export const BI = $root.BI = (() => { return message; }; - /** - * Decodes an UpgradeLicenseCompletePurchaseRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof BI.UpgradeLicenseCompletePurchaseRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {BI.UpgradeLicenseCompletePurchaseRequest} UpgradeLicenseCompletePurchaseRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - UpgradeLicenseCompletePurchaseRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an UpgradeLicenseCompletePurchaseRequest message. - * @function verify - * @memberof BI.UpgradeLicenseCompletePurchaseRequest - * @static - * @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) { - if (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: - return "productType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: - case 9: - case 10: - case 11: - break; - } - if (message.quantity != null && message.hasOwnProperty("quantity")) - 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); - if (error) - return "quotePurchase." + error; - } - if (message.tier != null && message.hasOwnProperty("tier")) - if (!$util.isInteger(message.tier)) - return "tier: integer expected"; - return null; - }; - /** * Creates an UpgradeLicenseCompletePurchaseRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -280152,6 +227816,8 @@ export const BI = $root.BI = (() => { UpgradeLicenseCompletePurchaseRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.BI.UpgradeLicenseCompletePurchaseRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".BI.UpgradeLicenseCompletePurchaseRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -280216,7 +227882,7 @@ export const BI = $root.BI = (() => { if (object.quantity != null) message.quantity = object.quantity | 0; if (object.quotePurchase != null) { - if (typeof object.quotePurchase !== "object") + if (!$util.isObject(object.quotePurchase)) throw TypeError(".BI.UpgradeLicenseCompletePurchaseRequest.quotePurchase: object expected"); message.quotePurchase = $root.BI.QuotePurchase.fromObject(object.quotePurchase, long + 1); } @@ -280248,13 +227914,13 @@ export const BI = $root.BI = (() => { object.quotePurchase = null; object.tier = 0; } - if (message.productType != null && message.hasOwnProperty("productType")) + if (message.productType != null && Object.hasOwnProperty.call(message, "productType")) object.productType = options.enums === String ? $root.BI.PurchaseProductType[message.productType] === undefined ? message.productType : $root.BI.PurchaseProductType[message.productType] : message.productType; - if (message.quantity != null && message.hasOwnProperty("quantity")) + if (message.quantity != null && Object.hasOwnProperty.call(message, "quantity")) object.quantity = message.quantity; - if (message.quotePurchase != null && message.hasOwnProperty("quotePurchase")) + if (message.quotePurchase != null && Object.hasOwnProperty.call(message, "quotePurchase")) object.quotePurchase = $root.BI.QuotePurchase.toObject(message.quotePurchase, options, q + 1); - if (message.tier != null && message.hasOwnProperty("tier")) + if (message.tier != null && Object.hasOwnProperty.call(message, "tier")) object.tier = message.tier; return object; }; @@ -280386,19 +228052,6 @@ export const BI = $root.BI = (() => { return writer; }; - /** - * Encodes the specified UpgradeLicenseCompletePurchaseResponse message, length delimited. Does not implicitly {@link BI.UpgradeLicenseCompletePurchaseResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof BI.UpgradeLicenseCompletePurchaseResponse - * @static - * @param {BI.IUpgradeLicenseCompletePurchaseResponse} message UpgradeLicenseCompletePurchaseResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - UpgradeLicenseCompletePurchaseResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes an UpgradeLicenseCompletePurchaseResponse message from the specified reader or buffer. * @function decode @@ -280447,56 +228100,6 @@ export const BI = $root.BI = (() => { return message; }; - /** - * Decodes an UpgradeLicenseCompletePurchaseResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof BI.UpgradeLicenseCompletePurchaseResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {BI.UpgradeLicenseCompletePurchaseResponse} UpgradeLicenseCompletePurchaseResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - UpgradeLicenseCompletePurchaseResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an UpgradeLicenseCompletePurchaseResponse message. - * @function verify - * @memberof BI.UpgradeLicenseCompletePurchaseResponse - * @static - * @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) { - if (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.invoiceNumber != null && message.hasOwnProperty("invoiceNumber")) - 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); - if (error) - return "error." + error; - } - if (message.quotePurchase != null && message.hasOwnProperty("quotePurchase")) { - let error = $root.BI.QuotePurchase.verify(message.quotePurchase, long + 1); - if (error) - return "quotePurchase." + error; - } - return null; - }; - /** * Creates an UpgradeLicenseCompletePurchaseResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -280508,6 +228111,8 @@ export const BI = $root.BI = (() => { UpgradeLicenseCompletePurchaseResponse.fromObject = function fromObject(object, long) { if (object instanceof $root.BI.UpgradeLicenseCompletePurchaseResponse) return object; + if (!$util.isObject(object)) + throw TypeError(".BI.UpgradeLicenseCompletePurchaseResponse: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -280518,12 +228123,12 @@ export const BI = $root.BI = (() => { if (object.invoiceNumber != null) message.invoiceNumber = String(object.invoiceNumber); if (object.error != null) { - if (typeof object.error !== "object") + if (!$util.isObject(object.error)) throw TypeError(".BI.UpgradeLicenseCompletePurchaseResponse.error: object expected"); message.error = $root.BI.Error.fromObject(object.error, long + 1); } if (object.quotePurchase != null) { - if (typeof object.quotePurchase !== "object") + if (!$util.isObject(object.quotePurchase)) throw TypeError(".BI.UpgradeLicenseCompletePurchaseResponse.quotePurchase: object expected"); message.quotePurchase = $root.BI.QuotePurchase.fromObject(object.quotePurchase, long + 1); } @@ -280553,13 +228158,13 @@ export const BI = $root.BI = (() => { object.error = null; object.quotePurchase = null; } - if (message.success != null && message.hasOwnProperty("success")) + if (message.success != null && Object.hasOwnProperty.call(message, "success")) object.success = message.success; - if (message.invoiceNumber != null && message.hasOwnProperty("invoiceNumber")) + if (message.invoiceNumber != null && Object.hasOwnProperty.call(message, "invoiceNumber")) object.invoiceNumber = message.invoiceNumber; - if (message.error != null && message.hasOwnProperty("error")) + if (message.error != null && Object.hasOwnProperty.call(message, "error")) object.error = $root.BI.Error.toObject(message.error, options, q + 1); - if (message.quotePurchase != null && message.hasOwnProperty("quotePurchase")) + if (message.quotePurchase != null && Object.hasOwnProperty.call(message, "quotePurchase")) object.quotePurchase = $root.BI.QuotePurchase.toObject(message.quotePurchase, options, q + 1); return object; }; @@ -280669,19 +228274,6 @@ export const BI = $root.BI = (() => { return writer; }; - /** - * Encodes the specified EnterpriseBasePlan message, length delimited. Does not implicitly {@link BI.EnterpriseBasePlan.verify|verify} messages. - * @function encodeDelimited - * @memberof BI.EnterpriseBasePlan - * @static - * @param {BI.IEnterpriseBasePlan} message EnterpriseBasePlan message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - EnterpriseBasePlan.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes an EnterpriseBasePlan message from the specified reader or buffer. * @function decode @@ -280722,55 +228314,6 @@ export const BI = $root.BI = (() => { return message; }; - /** - * Decodes an EnterpriseBasePlan message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof BI.EnterpriseBasePlan - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {BI.EnterpriseBasePlan} EnterpriseBasePlan - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - EnterpriseBasePlan.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an EnterpriseBasePlan message. - * @function verify - * @memberof BI.EnterpriseBasePlan - * @static - * @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) { - if (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: - return "baseplanVersion: enum value expected"; - case 0: - case 1: - case 2: - case 3: - break; - } - if (message.cost != null && message.hasOwnProperty("cost")) { - let error = $root.BI.Cost.verify(message.cost, long + 1); - if (error) - return "cost." + error; - } - return null; - }; - /** * Creates an EnterpriseBasePlan message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -280782,6 +228325,8 @@ export const BI = $root.BI = (() => { EnterpriseBasePlan.fromObject = function fromObject(object, long) { if (object instanceof $root.BI.EnterpriseBasePlan) return object; + if (!$util.isObject(object)) + throw TypeError(".BI.EnterpriseBasePlan: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -280812,7 +228357,7 @@ export const BI = $root.BI = (() => { break; } if (object.cost != null) { - if (typeof object.cost !== "object") + if (!$util.isObject(object.cost)) throw TypeError(".BI.EnterpriseBasePlan.cost: object expected"); message.cost = $root.BI.Cost.fromObject(object.cost, long + 1); } @@ -280840,9 +228385,9 @@ export const BI = $root.BI = (() => { object.baseplanVersion = options.enums === String ? "UNKNOWN" : 0; object.cost = null; } - if (message.baseplanVersion != null && message.hasOwnProperty("baseplanVersion")) + if (message.baseplanVersion != null && Object.hasOwnProperty.call(message, "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")) + if (message.cost != null && Object.hasOwnProperty.call(message, "cost")) object.cost = $root.BI.Cost.toObject(message.cost, options, q + 1); return object; }; @@ -280948,19 +228493,6 @@ export const BI = $root.BI = (() => { return writer; }; - /** - * Encodes the specified SubscriptionEnterprisePricingRequest message, length delimited. Does not implicitly {@link BI.SubscriptionEnterprisePricingRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof BI.SubscriptionEnterprisePricingRequest - * @static - * @param {BI.ISubscriptionEnterprisePricingRequest} message SubscriptionEnterprisePricingRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SubscriptionEnterprisePricingRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a SubscriptionEnterprisePricingRequest message from the specified reader or buffer. * @function decode @@ -280993,40 +228525,6 @@ export const BI = $root.BI = (() => { return message; }; - /** - * Decodes a SubscriptionEnterprisePricingRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof BI.SubscriptionEnterprisePricingRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {BI.SubscriptionEnterprisePricingRequest} SubscriptionEnterprisePricingRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SubscriptionEnterprisePricingRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a SubscriptionEnterprisePricingRequest message. - * @function verify - * @memberof BI.SubscriptionEnterprisePricingRequest - * @static - * @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) { - 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 SubscriptionEnterprisePricingRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -281038,10 +228536,6 @@ export const BI = $root.BI = (() => { SubscriptionEnterprisePricingRequest.fromObject = function fromObject(object, long) { 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(); }; @@ -281196,19 +228690,6 @@ export const BI = $root.BI = (() => { return writer; }; - /** - * Encodes the specified NhiTierPlan message, length delimited. Does not implicitly {@link BI.NhiTierPlan.verify|verify} messages. - * @function encodeDelimited - * @memberof BI.NhiTierPlan - * @static - * @param {BI.INhiTierPlan} message NhiTierPlan message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - NhiTierPlan.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a NhiTierPlan message from the specified reader or buffer. * @function decode @@ -281261,57 +228742,6 @@ export const BI = $root.BI = (() => { return message; }; - /** - * Decodes a NhiTierPlan message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof BI.NhiTierPlan - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {BI.NhiTierPlan} NhiTierPlan - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - NhiTierPlan.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a NhiTierPlan message. - * @function verify - * @memberof BI.NhiTierPlan - * @static - * @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) { - if (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"; - if (message.nhiCeiling != null && message.hasOwnProperty("nhiCeiling")) - 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); - if (error) - return "cost." + error; - } - if (message.productId != null && message.hasOwnProperty("productId")) - if (!$util.isInteger(message.productId)) - return "productId: integer expected"; - if (message.nhiFloor != null && message.hasOwnProperty("nhiFloor")) - if (!$util.isInteger(message.nhiFloor)) - return "nhiFloor: integer expected"; - return null; - }; - /** * Creates a NhiTierPlan message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -281323,6 +228753,8 @@ export const BI = $root.BI = (() => { NhiTierPlan.fromObject = function fromObject(object, long) { if (object instanceof $root.BI.NhiTierPlan) return object; + if (!$util.isObject(object)) + throw TypeError(".BI.NhiTierPlan: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -281333,7 +228765,7 @@ export const BI = $root.BI = (() => { if (object.nhiCeiling != null) message.nhiCeiling = object.nhiCeiling | 0; if (object.cost != null) { - if (typeof object.cost !== "object") + if (!$util.isObject(object.cost)) throw TypeError(".BI.NhiTierPlan.cost: object expected"); message.cost = $root.BI.Cost.fromObject(object.cost, long + 1); } @@ -281368,15 +228800,15 @@ export const BI = $root.BI = (() => { object.productId = 0; object.nhiFloor = 0; } - if (message.tierId != null && message.hasOwnProperty("tierId")) + if (message.tierId != null && Object.hasOwnProperty.call(message, "tierId")) object.tierId = message.tierId; - if (message.nhiCeiling != null && message.hasOwnProperty("nhiCeiling")) + if (message.nhiCeiling != null && Object.hasOwnProperty.call(message, "nhiCeiling")) object.nhiCeiling = message.nhiCeiling; - if (message.cost != null && message.hasOwnProperty("cost")) + if (message.cost != null && Object.hasOwnProperty.call(message, "cost")) object.cost = $root.BI.Cost.toObject(message.cost, options, q + 1); - if (message.productId != null && message.hasOwnProperty("productId")) + if (message.productId != null && Object.hasOwnProperty.call(message, "productId")) object.productId = message.productId; - if (message.nhiFloor != null && message.hasOwnProperty("nhiFloor")) + if (message.nhiFloor != null && Object.hasOwnProperty.call(message, "nhiFloor")) object.nhiFloor = message.nhiFloor; return object; }; @@ -281516,19 +228948,6 @@ export const BI = $root.BI = (() => { return writer; }; - /** - * Encodes the specified SubscriptionEnterprisePricingResponse message, length delimited. Does not implicitly {@link BI.SubscriptionEnterprisePricingResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof BI.SubscriptionEnterprisePricingResponse - * @static - * @param {BI.ISubscriptionEnterprisePricingResponse} message SubscriptionEnterprisePricingResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SubscriptionEnterprisePricingResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a SubscriptionEnterprisePricingResponse message from the specified reader or buffer. * @function decode @@ -281585,76 +229004,6 @@ export const BI = $root.BI = (() => { return message; }; - /** - * Decodes a SubscriptionEnterprisePricingResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof BI.SubscriptionEnterprisePricingResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {BI.SubscriptionEnterprisePricingResponse} SubscriptionEnterprisePricingResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SubscriptionEnterprisePricingResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a SubscriptionEnterprisePricingResponse message. - * @function verify - * @memberof BI.SubscriptionEnterprisePricingResponse - * @static - * @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) { - if (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); - if (error) - return "basePlans." + error; - } - } - 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); - if (error) - return "addons." + error; - } - } - if (message.filePlans != null && message.hasOwnProperty("filePlans")) { - 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); - if (error) - return "filePlans." + error; - } - } - if (message.nhiTierPlans != null && message.hasOwnProperty("nhiTierPlans")) { - 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); - if (error) - return "nhiTierPlans." + error; - } - } - return null; - }; - /** * Creates a SubscriptionEnterprisePricingResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -281666,6 +229015,8 @@ export const BI = $root.BI = (() => { SubscriptionEnterprisePricingResponse.fromObject = function fromObject(object, long) { if (object instanceof $root.BI.SubscriptionEnterprisePricingResponse) return object; + if (!$util.isObject(object)) + throw TypeError(".BI.SubscriptionEnterprisePricingResponse: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -281676,7 +229027,7 @@ export const BI = $root.BI = (() => { throw TypeError(".BI.SubscriptionEnterprisePricingResponse.basePlans: array expected"); message.basePlans = []; for (let i = 0; i < object.basePlans.length; ++i) { - if (typeof object.basePlans[i] !== "object") + if (!$util.isObject(object.basePlans[i])) throw TypeError(".BI.SubscriptionEnterprisePricingResponse.basePlans: object expected"); message.basePlans[i] = $root.BI.EnterpriseBasePlan.fromObject(object.basePlans[i], long + 1); } @@ -281686,7 +229037,7 @@ export const BI = $root.BI = (() => { throw TypeError(".BI.SubscriptionEnterprisePricingResponse.addons: array expected"); message.addons = []; for (let i = 0; i < object.addons.length; ++i) { - if (typeof object.addons[i] !== "object") + if (!$util.isObject(object.addons[i])) throw TypeError(".BI.SubscriptionEnterprisePricingResponse.addons: object expected"); message.addons[i] = $root.BI.Addon.fromObject(object.addons[i], long + 1); } @@ -281696,7 +229047,7 @@ export const BI = $root.BI = (() => { throw TypeError(".BI.SubscriptionEnterprisePricingResponse.filePlans: array expected"); message.filePlans = []; for (let i = 0; i < object.filePlans.length; ++i) { - if (typeof object.filePlans[i] !== "object") + if (!$util.isObject(object.filePlans[i])) throw TypeError(".BI.SubscriptionEnterprisePricingResponse.filePlans: object expected"); message.filePlans[i] = $root.BI.FilePlan.fromObject(object.filePlans[i], long + 1); } @@ -281706,7 +229057,7 @@ export const BI = $root.BI = (() => { throw TypeError(".BI.SubscriptionEnterprisePricingResponse.nhiTierPlans: array expected"); message.nhiTierPlans = []; for (let i = 0; i < object.nhiTierPlans.length; ++i) { - if (typeof object.nhiTierPlans[i] !== "object") + if (!$util.isObject(object.nhiTierPlans[i])) throw TypeError(".BI.SubscriptionEnterprisePricingResponse.nhiTierPlans: object expected"); message.nhiTierPlans[i] = $root.BI.NhiTierPlan.fromObject(object.nhiTierPlans[i], long + 1); } @@ -281893,19 +229244,6 @@ export const BI = $root.BI = (() => { return writer; }; - /** - * Encodes the specified SingularDeviceIdentifier message, length delimited. Does not implicitly {@link BI.SingularDeviceIdentifier.verify|verify} messages. - * @function encodeDelimited - * @memberof BI.SingularDeviceIdentifier - * @static - * @param {BI.ISingularDeviceIdentifier} message SingularDeviceIdentifier message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SingularDeviceIdentifier.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a SingularDeviceIdentifier message from the specified reader or buffer. * @function decode @@ -281946,58 +229284,6 @@ export const BI = $root.BI = (() => { return message; }; - /** - * Decodes a SingularDeviceIdentifier message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof BI.SingularDeviceIdentifier - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {BI.SingularDeviceIdentifier} SingularDeviceIdentifier - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SingularDeviceIdentifier.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a SingularDeviceIdentifier message. - * @function verify - * @memberof BI.SingularDeviceIdentifier - * @static - * @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) { - if (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"; - if (message.idType != null && message.hasOwnProperty("idType")) - switch (message.idType) { - default: - return "idType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: - break; - } - return null; - }; - /** * Creates a SingularDeviceIdentifier message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -282009,6 +229295,8 @@ export const BI = $root.BI = (() => { SingularDeviceIdentifier.fromObject = function fromObject(object, long) { if (object instanceof $root.BI.SingularDeviceIdentifier) return object; + if (!$util.isObject(object)) + throw TypeError(".BI.SingularDeviceIdentifier: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -282084,9 +229372,9 @@ export const BI = $root.BI = (() => { object.id = ""; object.idType = options.enums === String ? "UNKNOWN_IDENTIFIER_TYPE" : 0; } - if (message.id != null && message.hasOwnProperty("id")) + if (message.id != null && Object.hasOwnProperty.call(message, "id")) object.id = message.id; - if (message.idType != null && message.hasOwnProperty("idType")) + if (message.idType != null && Object.hasOwnProperty.call(message, "idType")) object.idType = options.enums === String ? $root.BI.IdentifierType[message.idType] === undefined ? message.idType : $root.BI.IdentifierType[message.idType] : message.idType; return object; }; @@ -282262,19 +229550,6 @@ export const BI = $root.BI = (() => { return writer; }; - /** - * Encodes the specified SingularSharedData message, length delimited. Does not implicitly {@link BI.SingularSharedData.verify|verify} messages. - * @function encodeDelimited - * @memberof BI.SingularSharedData - * @static - * @param {BI.ISingularSharedData} message SingularSharedData message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SingularSharedData.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a SingularSharedData message from the specified reader or buffer. * @function decode @@ -282339,64 +229614,6 @@ export const BI = $root.BI = (() => { return message; }; - /** - * Decodes a SingularSharedData message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof BI.SingularSharedData - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {BI.SingularSharedData} SingularSharedData - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SingularSharedData.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a SingularSharedData message. - * @function verify - * @memberof BI.SingularSharedData - * @static - * @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) { - if (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"; - if (message.osVersion != null && message.hasOwnProperty("osVersion")) - if (!$util.isString(message.osVersion)) - return "osVersion: string expected"; - if (message.make != null && message.hasOwnProperty("make")) - if (!$util.isString(message.make)) - return "make: string expected"; - if (message.model != null && message.hasOwnProperty("model")) - if (!$util.isString(message.model)) - return "model: string expected"; - if (message.locale != null && message.hasOwnProperty("locale")) - if (!$util.isString(message.locale)) - return "locale: string expected"; - if (message.build != null && message.hasOwnProperty("build")) - if (!$util.isString(message.build)) - return "build: string expected"; - if (message.appIdentifier != null && message.hasOwnProperty("appIdentifier")) - if (!$util.isString(message.appIdentifier)) - return "appIdentifier: string expected"; - if (message.attAuthorizationStatus != null && message.hasOwnProperty("attAuthorizationStatus")) - if (!$util.isInteger(message.attAuthorizationStatus)) - return "attAuthorizationStatus: integer expected"; - return null; - }; - /** * Creates a SingularSharedData message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -282408,6 +229625,8 @@ export const BI = $root.BI = (() => { SingularSharedData.fromObject = function fromObject(object, long) { if (object instanceof $root.BI.SingularSharedData) return object; + if (!$util.isObject(object)) + throw TypeError(".BI.SingularSharedData: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -282459,21 +229678,21 @@ export const BI = $root.BI = (() => { object.appIdentifier = ""; object.attAuthorizationStatus = 0; } - if (message.platform != null && message.hasOwnProperty("platform")) + if (message.platform != null && Object.hasOwnProperty.call(message, "platform")) object.platform = message.platform; - if (message.osVersion != null && message.hasOwnProperty("osVersion")) + if (message.osVersion != null && Object.hasOwnProperty.call(message, "osVersion")) object.osVersion = message.osVersion; - if (message.make != null && message.hasOwnProperty("make")) + if (message.make != null && Object.hasOwnProperty.call(message, "make")) object.make = message.make; - if (message.model != null && message.hasOwnProperty("model")) + if (message.model != null && Object.hasOwnProperty.call(message, "model")) object.model = message.model; - if (message.locale != null && message.hasOwnProperty("locale")) + if (message.locale != null && Object.hasOwnProperty.call(message, "locale")) object.locale = message.locale; - if (message.build != null && message.hasOwnProperty("build")) + if (message.build != null && Object.hasOwnProperty.call(message, "build")) object.build = message.build; - if (message.appIdentifier != null && message.hasOwnProperty("appIdentifier")) + if (message.appIdentifier != null && Object.hasOwnProperty.call(message, "appIdentifier")) object.appIdentifier = message.appIdentifier; - if (message.attAuthorizationStatus != null && message.hasOwnProperty("attAuthorizationStatus")) + if (message.attAuthorizationStatus != null && Object.hasOwnProperty.call(message, "attAuthorizationStatus")) object.attAuthorizationStatus = message.attAuthorizationStatus; return object; }; @@ -282717,19 +229936,6 @@ export const BI = $root.BI = (() => { return writer; }; - /** - * Encodes the specified SingularSessionRequest message, length delimited. Does not implicitly {@link BI.SingularSessionRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof BI.SingularSessionRequest - * @static - * @param {BI.ISingularSessionRequest} message SingularSessionRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SingularSessionRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a SingularSessionRequest message from the specified reader or buffer. * @function decode @@ -282820,90 +230026,6 @@ export const BI = $root.BI = (() => { return message; }; - /** - * Decodes a SingularSessionRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof BI.SingularSessionRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {BI.SingularSessionRequest} SingularSessionRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SingularSessionRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a SingularSessionRequest message. - * @function verify - * @memberof BI.SingularSessionRequest - * @static - * @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) { - if (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); - if (error) - return "deviceIdentifiers." + error; - } - } - if (message.sharedData != null && message.hasOwnProperty("sharedData")) { - let error = $root.BI.SingularSharedData.verify(message.sharedData, long + 1); - if (error) - return "sharedData." + error; - } - if (message.applicationVersion != null && message.hasOwnProperty("applicationVersion")) - if (!$util.isString(message.applicationVersion)) - return "applicationVersion: string expected"; - if (message.install != null && message.hasOwnProperty("install")) - if (typeof message.install !== "boolean") - return "install: boolean expected"; - if (message.installTime != null && message.hasOwnProperty("installTime")) - if (!$util.isInteger(message.installTime) && !(message.installTime && $util.isInteger(message.installTime.low) && $util.isInteger(message.installTime.high))) - return "installTime: integer|Long expected"; - if (message.updateTime != null && message.hasOwnProperty("updateTime")) - if (!$util.isInteger(message.updateTime) && !(message.updateTime && $util.isInteger(message.updateTime.low) && $util.isInteger(message.updateTime.high))) - return "updateTime: integer|Long expected"; - if (message.installSource != null && message.hasOwnProperty("installSource")) - if (!$util.isString(message.installSource)) - return "installSource: string expected"; - if (message.installReceipt != null && message.hasOwnProperty("installReceipt")) - if (!$util.isString(message.installReceipt)) - return "installReceipt: string expected"; - if (message.openuri != null && message.hasOwnProperty("openuri")) - if (!$util.isString(message.openuri)) - return "openuri: string expected"; - if (message.ddlEnabled != null && message.hasOwnProperty("ddlEnabled")) - if (typeof message.ddlEnabled !== "boolean") - return "ddlEnabled: boolean expected"; - if (message.singularLinkResolveRequired != null && message.hasOwnProperty("singularLinkResolveRequired")) - if (typeof message.singularLinkResolveRequired !== "boolean") - return "singularLinkResolveRequired: boolean expected"; - if (message.installRef != null && message.hasOwnProperty("installRef")) - if (!$util.isString(message.installRef)) - return "installRef: string expected"; - if (message.metaRef != null && message.hasOwnProperty("metaRef")) - if (!$util.isString(message.metaRef)) - return "metaRef: string expected"; - if (message.attributionToken != null && message.hasOwnProperty("attributionToken")) - if (!$util.isString(message.attributionToken)) - return "attributionToken: string expected"; - return null; - }; - /** * Creates a SingularSessionRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -282915,6 +230037,8 @@ export const BI = $root.BI = (() => { SingularSessionRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.BI.SingularSessionRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".BI.SingularSessionRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -282925,13 +230049,13 @@ export const BI = $root.BI = (() => { throw TypeError(".BI.SingularSessionRequest.deviceIdentifiers: array expected"); message.deviceIdentifiers = []; for (let i = 0; i < object.deviceIdentifiers.length; ++i) { - if (typeof object.deviceIdentifiers[i] !== "object") + if (!$util.isObject(object.deviceIdentifiers[i])) throw TypeError(".BI.SingularSessionRequest.deviceIdentifiers: object expected"); message.deviceIdentifiers[i] = $root.BI.SingularDeviceIdentifier.fromObject(object.deviceIdentifiers[i], long + 1); } } if (object.sharedData != null) { - if (typeof object.sharedData !== "object") + if (!$util.isObject(object.sharedData)) throw TypeError(".BI.SingularSessionRequest.sharedData: object expected"); message.sharedData = $root.BI.SingularSharedData.fromObject(object.sharedData, long + 1); } @@ -283023,41 +230147,41 @@ export const BI = $root.BI = (() => { for (let j = 0; j < message.deviceIdentifiers.length; ++j) object.deviceIdentifiers[j] = $root.BI.SingularDeviceIdentifier.toObject(message.deviceIdentifiers[j], options, q + 1); } - if (message.sharedData != null && message.hasOwnProperty("sharedData")) + if (message.sharedData != null && Object.hasOwnProperty.call(message, "sharedData")) object.sharedData = $root.BI.SingularSharedData.toObject(message.sharedData, options, q + 1); - if (message.applicationVersion != null && message.hasOwnProperty("applicationVersion")) + if (message.applicationVersion != null && Object.hasOwnProperty.call(message, "applicationVersion")) object.applicationVersion = message.applicationVersion; - if (message.install != null && message.hasOwnProperty("install")) + if (message.install != null && Object.hasOwnProperty.call(message, "install")) object.install = message.install; - if (message.installTime != null && message.hasOwnProperty("installTime")) + if (message.installTime != null && Object.hasOwnProperty.call(message, "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") 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 (message.updateTime != null && Object.hasOwnProperty.call(message, "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") 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; - if (message.installSource != null && message.hasOwnProperty("installSource")) + if (message.installSource != null && Object.hasOwnProperty.call(message, "installSource")) object.installSource = message.installSource; - if (message.installReceipt != null && message.hasOwnProperty("installReceipt")) + if (message.installReceipt != null && Object.hasOwnProperty.call(message, "installReceipt")) object.installReceipt = message.installReceipt; - if (message.openuri != null && message.hasOwnProperty("openuri")) + if (message.openuri != null && Object.hasOwnProperty.call(message, "openuri")) object.openuri = message.openuri; - if (message.ddlEnabled != null && message.hasOwnProperty("ddlEnabled")) + if (message.ddlEnabled != null && Object.hasOwnProperty.call(message, "ddlEnabled")) object.ddlEnabled = message.ddlEnabled; - if (message.singularLinkResolveRequired != null && message.hasOwnProperty("singularLinkResolveRequired")) + if (message.singularLinkResolveRequired != null && Object.hasOwnProperty.call(message, "singularLinkResolveRequired")) object.singularLinkResolveRequired = message.singularLinkResolveRequired; - if (message.installRef != null && message.hasOwnProperty("installRef")) + if (message.installRef != null && Object.hasOwnProperty.call(message, "installRef")) object.installRef = message.installRef; - if (message.metaRef != null && message.hasOwnProperty("metaRef")) + if (message.metaRef != null && Object.hasOwnProperty.call(message, "metaRef")) object.metaRef = message.metaRef; - if (message.attributionToken != null && message.hasOwnProperty("attributionToken")) + if (message.attributionToken != null && Object.hasOwnProperty.call(message, "attributionToken")) object.attributionToken = message.attributionToken; return object; }; @@ -283180,19 +230304,6 @@ export const BI = $root.BI = (() => { return writer; }; - /** - * Encodes the specified SingularEventRequest message, length delimited. Does not implicitly {@link BI.SingularEventRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof BI.SingularEventRequest - * @static - * @param {BI.ISingularEventRequest} message SingularEventRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SingularEventRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a SingularEventRequest message from the specified reader or buffer. * @function decode @@ -283239,57 +230350,6 @@ export const BI = $root.BI = (() => { return message; }; - /** - * Decodes a SingularEventRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof BI.SingularEventRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {BI.SingularEventRequest} SingularEventRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SingularEventRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a SingularEventRequest message. - * @function verify - * @memberof BI.SingularEventRequest - * @static - * @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) { - if (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); - if (error) - return "deviceIdentifiers." + error; - } - } - if (message.sharedData != null && message.hasOwnProperty("sharedData")) { - let error = $root.BI.SingularSharedData.verify(message.sharedData, long + 1); - if (error) - return "sharedData." + error; - } - if (message.eventName != null && message.hasOwnProperty("eventName")) - if (!$util.isString(message.eventName)) - return "eventName: string expected"; - return null; - }; - /** * Creates a SingularEventRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -283301,6 +230361,8 @@ export const BI = $root.BI = (() => { SingularEventRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.BI.SingularEventRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".BI.SingularEventRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -283311,13 +230373,13 @@ export const BI = $root.BI = (() => { throw TypeError(".BI.SingularEventRequest.deviceIdentifiers: array expected"); message.deviceIdentifiers = []; for (let i = 0; i < object.deviceIdentifiers.length; ++i) { - if (typeof object.deviceIdentifiers[i] !== "object") + if (!$util.isObject(object.deviceIdentifiers[i])) throw TypeError(".BI.SingularEventRequest.deviceIdentifiers: object expected"); message.deviceIdentifiers[i] = $root.BI.SingularDeviceIdentifier.fromObject(object.deviceIdentifiers[i], long + 1); } } if (object.sharedData != null) { - if (typeof object.sharedData !== "object") + if (!$util.isObject(object.sharedData)) throw TypeError(".BI.SingularEventRequest.sharedData: object expected"); message.sharedData = $root.BI.SingularSharedData.fromObject(object.sharedData, long + 1); } @@ -283354,9 +230416,9 @@ export const BI = $root.BI = (() => { for (let j = 0; j < message.deviceIdentifiers.length; ++j) object.deviceIdentifiers[j] = $root.BI.SingularDeviceIdentifier.toObject(message.deviceIdentifiers[j], options, q + 1); } - if (message.sharedData != null && message.hasOwnProperty("sharedData")) + if (message.sharedData != null && Object.hasOwnProperty.call(message, "sharedData")) object.sharedData = $root.BI.SingularSharedData.toObject(message.sharedData, options, q + 1); - if (message.eventName != null && message.hasOwnProperty("eventName")) + if (message.eventName != null && Object.hasOwnProperty.call(message, "eventName")) object.eventName = message.eventName; return object; }; @@ -283455,19 +230517,6 @@ export const BI = $root.BI = (() => { return writer; }; - /** - * Encodes the specified ActivePamCountRequest message, length delimited. Does not implicitly {@link BI.ActivePamCountRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof BI.ActivePamCountRequest - * @static - * @param {BI.IActivePamCountRequest} message ActivePamCountRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ActivePamCountRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes an ActivePamCountRequest message from the specified reader or buffer. * @function decode @@ -283504,43 +230553,6 @@ export const BI = $root.BI = (() => { return message; }; - /** - * Decodes an ActivePamCountRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof BI.ActivePamCountRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {BI.ActivePamCountRequest} ActivePamCountRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ActivePamCountRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an ActivePamCountRequest message. - * @function verify - * @memberof BI.ActivePamCountRequest - * @static - * @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) { - if (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"; - return null; - }; - /** * Creates an ActivePamCountRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -283552,6 +230564,8 @@ export const BI = $root.BI = (() => { ActivePamCountRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.BI.ActivePamCountRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".BI.ActivePamCountRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -283581,7 +230595,7 @@ export const BI = $root.BI = (() => { let object = {}; if (options.defaults) object.enterpriseId = 0; - if (message.enterpriseId != null && message.hasOwnProperty("enterpriseId")) + if (message.enterpriseId != null && Object.hasOwnProperty.call(message, "enterpriseId")) object.enterpriseId = message.enterpriseId; return object; }; @@ -283680,19 +230694,6 @@ export const BI = $root.BI = (() => { return writer; }; - /** - * Encodes the specified ActivePamCountResponse message, length delimited. Does not implicitly {@link BI.ActivePamCountResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof BI.ActivePamCountResponse - * @static - * @param {BI.IActivePamCountResponse} message ActivePamCountResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ActivePamCountResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes an ActivePamCountResponse message from the specified reader or buffer. * @function decode @@ -283729,43 +230730,6 @@ export const BI = $root.BI = (() => { return message; }; - /** - * Decodes an ActivePamCountResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof BI.ActivePamCountResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {BI.ActivePamCountResponse} ActivePamCountResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ActivePamCountResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an ActivePamCountResponse message. - * @function verify - * @memberof BI.ActivePamCountResponse - * @static - * @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) { - if (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"; - return null; - }; - /** * Creates an ActivePamCountResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -283777,6 +230741,8 @@ export const BI = $root.BI = (() => { ActivePamCountResponse.fromObject = function fromObject(object, long) { if (object instanceof $root.BI.ActivePamCountResponse) return object; + if (!$util.isObject(object)) + throw TypeError(".BI.ActivePamCountResponse: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -283806,7 +230772,7 @@ export const BI = $root.BI = (() => { let object = {}; if (options.defaults) object.pamCount = 0; - if (message.pamCount != null && message.hasOwnProperty("pamCount")) + if (message.pamCount != null && Object.hasOwnProperty.call(message, "pamCount")) object.pamCount = message.pamCount; return object; }; @@ -283927,19 +230893,6 @@ export const BI = $root.BI = (() => { return writer; }; - /** - * Encodes the specified NhiEnterpriseRequest message, length delimited. Does not implicitly {@link BI.NhiEnterpriseRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof BI.NhiEnterpriseRequest - * @static - * @param {BI.INhiEnterpriseRequest} message NhiEnterpriseRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - NhiEnterpriseRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a NhiEnterpriseRequest message from the specified reader or buffer. * @function decode @@ -283984,49 +230937,6 @@ export const BI = $root.BI = (() => { return message; }; - /** - * Decodes a NhiEnterpriseRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof BI.NhiEnterpriseRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {BI.NhiEnterpriseRequest} NhiEnterpriseRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - NhiEnterpriseRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a NhiEnterpriseRequest message. - * @function verify - * @memberof BI.NhiEnterpriseRequest - * @static - * @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) { - if (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"; - 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"; - if (message.endTime != null && message.hasOwnProperty("endTime")) - if (!$util.isInteger(message.endTime) && !(message.endTime && $util.isInteger(message.endTime.low) && $util.isInteger(message.endTime.high))) - return "endTime: integer|Long expected"; - return null; - }; - /** * Creates a NhiEnterpriseRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -284038,6 +230948,8 @@ export const BI = $root.BI = (() => { NhiEnterpriseRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.BI.NhiEnterpriseRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".BI.NhiEnterpriseRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -284096,16 +231008,16 @@ export const BI = $root.BI = (() => { } else object.endTime = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; } - if (message.enterpriseId != null && message.hasOwnProperty("enterpriseId")) + if (message.enterpriseId != null && Object.hasOwnProperty.call(message, "enterpriseId")) object.enterpriseId = message.enterpriseId; - if (message.startTime != null && message.hasOwnProperty("startTime")) + if (message.startTime != null && Object.hasOwnProperty.call(message, "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") 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 (message.endTime != null && Object.hasOwnProperty.call(message, "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") @@ -284249,19 +231161,6 @@ export const BI = $root.BI = (() => { return writer; }; - /** - * Encodes the specified NhiMetricsRequest message, length delimited. Does not implicitly {@link BI.NhiMetricsRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof BI.NhiMetricsRequest - * @static - * @param {BI.INhiMetricsRequest} message NhiMetricsRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - NhiMetricsRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a NhiMetricsRequest message from the specified reader or buffer. * @function decode @@ -284319,62 +231218,6 @@ export const BI = $root.BI = (() => { return message; }; - /** - * Decodes a NhiMetricsRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof BI.NhiMetricsRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {BI.NhiMetricsRequest} NhiMetricsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - NhiMetricsRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a NhiMetricsRequest message. - * @function verify - * @memberof BI.NhiMetricsRequest - * @static - * @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) { - if (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"; - for (let i = 0; i < message.enterpriseIds.length; ++i) - if (!$util.isInteger(message.enterpriseIds[i])) - return "enterpriseIds: integer[] expected"; - } - 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"; - if (message.endTime != null && message.hasOwnProperty("endTime")) - if (!$util.isInteger(message.endTime) && !(message.endTime && $util.isInteger(message.endTime.low) && $util.isInteger(message.endTime.high))) - return "endTime: integer|Long expected"; - if (message.enterprises != null && message.hasOwnProperty("enterprises")) { - 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); - if (error) - return "enterprises." + error; - } - } - return null; - }; - /** * Creates a NhiMetricsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -284386,6 +231229,8 @@ export const BI = $root.BI = (() => { NhiMetricsRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.BI.NhiMetricsRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".BI.NhiMetricsRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -284421,7 +231266,7 @@ export const BI = $root.BI = (() => { throw TypeError(".BI.NhiMetricsRequest.enterprises: array expected"); message.enterprises = []; for (let i = 0; i < object.enterprises.length; ++i) { - if (typeof object.enterprises[i] !== "object") + if (!$util.isObject(object.enterprises[i])) throw TypeError(".BI.NhiMetricsRequest.enterprises: object expected"); message.enterprises[i] = $root.BI.NhiEnterpriseRequest.fromObject(object.enterprises[i], long + 1); } @@ -284467,14 +231312,14 @@ export const BI = $root.BI = (() => { for (let j = 0; j < message.enterpriseIds.length; ++j) object.enterpriseIds[j] = message.enterpriseIds[j]; } - if (message.startTime != null && message.hasOwnProperty("startTime")) + if (message.startTime != null && Object.hasOwnProperty.call(message, "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") 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 (message.endTime != null && Object.hasOwnProperty.call(message, "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") @@ -284606,19 +231451,6 @@ export const google = $root.google = (() => { return writer; }; - /** - * Encodes the specified Http message, length delimited. Does not implicitly {@link google.api.Http.verify|verify} messages. - * @function encodeDelimited - * @memberof google.api.Http - * @static - * @param {google.api.IHttp} message Http message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Http.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a Http message from the specified reader or buffer. * @function decode @@ -284657,49 +231489,6 @@ export const google = $root.google = (() => { return message; }; - /** - * Decodes a Http message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.api.Http - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.api.Http} Http - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Http.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a Http message. - * @function verify - * @memberof google.api.Http - * @static - * @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) { - if (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); - if (error) - return "rules." + error; - } - } - return null; - }; - /** * Creates a Http message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -284711,6 +231500,8 @@ export const google = $root.google = (() => { Http.fromObject = function fromObject(object, long) { if (object instanceof $root.google.api.Http) return object; + if (!$util.isObject(object)) + throw TypeError(".google.api.Http: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -284721,7 +231512,7 @@ export const google = $root.google = (() => { throw TypeError(".google.api.Http.rules: array expected"); message.rules = []; for (let i = 0; i < object.rules.length; ++i) { - if (typeof object.rules[i] !== "object") + if (!$util.isObject(object.rules[i])) throw TypeError(".google.api.Http.rules: object expected"); message.rules[i] = $root.google.api.HttpRule.fromObject(object.rules[i], long + 1); } @@ -284954,19 +231745,6 @@ export const google = $root.google = (() => { return writer; }; - /** - * Encodes the specified HttpRule message, length delimited. Does not implicitly {@link google.api.HttpRule.verify|verify} messages. - * @function encodeDelimited - * @memberof google.api.HttpRule - * @static - * @param {google.api.IHttpRule} message HttpRule message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - HttpRule.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a HttpRule message from the specified reader or buffer. * @function decode @@ -285037,99 +231815,6 @@ export const google = $root.google = (() => { return message; }; - /** - * Decodes a HttpRule message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.api.HttpRule - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.api.HttpRule} HttpRule - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - HttpRule.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a HttpRule message. - * @function verify - * @memberof google.api.HttpRule - * @static - * @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) { - 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; - if (!$util.isString(message.get)) - return "get: string expected"; - } - if (message.put != null && message.hasOwnProperty("put")) { - if (properties.pattern === 1) - return "pattern: multiple values"; - properties.pattern = 1; - if (!$util.isString(message.put)) - return "put: string expected"; - } - if (message.post != null && message.hasOwnProperty("post")) { - if (properties.pattern === 1) - return "pattern: multiple values"; - properties.pattern = 1; - if (!$util.isString(message.post)) - return "post: string expected"; - } - if (message["delete"] != null && message.hasOwnProperty("delete")) { - if (properties.pattern === 1) - return "pattern: multiple values"; - properties.pattern = 1; - if (!$util.isString(message["delete"])) - return "delete: string expected"; - } - if (message.patch != null && message.hasOwnProperty("patch")) { - if (properties.pattern === 1) - return "pattern: multiple values"; - properties.pattern = 1; - if (!$util.isString(message.patch)) - return "patch: string expected"; - } - if (message.custom != null && message.hasOwnProperty("custom")) { - if (properties.pattern === 1) - return "pattern: multiple values"; - properties.pattern = 1; - { - let error = $root.google.api.CustomHttpPattern.verify(message.custom, long + 1); - if (error) - return "custom." + error; - } - } - if (message.selector != null && message.hasOwnProperty("selector")) - if (!$util.isString(message.selector)) - return "selector: string expected"; - if (message.body != null && message.hasOwnProperty("body")) - if (!$util.isString(message.body)) - return "body: string expected"; - if (message.additionalBindings != null && message.hasOwnProperty("additionalBindings")) { - 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); - if (error) - return "additionalBindings." + error; - } - } - return null; - }; - /** * Creates a HttpRule message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -285141,6 +231826,8 @@ export const google = $root.google = (() => { HttpRule.fromObject = function fromObject(object, long) { if (object instanceof $root.google.api.HttpRule) return object; + if (!$util.isObject(object)) + throw TypeError(".google.api.HttpRule: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -285157,7 +231844,7 @@ export const google = $root.google = (() => { if (object.patch != null) message.patch = String(object.patch); if (object.custom != null) { - if (typeof object.custom !== "object") + if (!$util.isObject(object.custom)) throw TypeError(".google.api.HttpRule.custom: object expected"); message.custom = $root.google.api.CustomHttpPattern.fromObject(object.custom, long + 1); } @@ -285170,7 +231857,7 @@ export const google = $root.google = (() => { throw TypeError(".google.api.HttpRule.additionalBindings: array expected"); message.additionalBindings = []; for (let i = 0; i < object.additionalBindings.length; ++i) { - if (typeof object.additionalBindings[i] !== "object") + if (!$util.isObject(object.additionalBindings[i])) throw TypeError(".google.api.HttpRule.additionalBindings: object expected"); message.additionalBindings[i] = $root.google.api.HttpRule.fromObject(object.additionalBindings[i], long + 1); } @@ -285201,36 +231888,36 @@ export const google = $root.google = (() => { object.selector = ""; object.body = ""; } - if (message.selector != null && message.hasOwnProperty("selector")) + if (message.selector != null && Object.hasOwnProperty.call(message, "selector")) object.selector = message.selector; - if (message.get != null && message.hasOwnProperty("get")) { + if (message.get != null && Object.hasOwnProperty.call(message, "get")) { object.get = message.get; if (options.oneofs) object.pattern = "get"; } - if (message.put != null && message.hasOwnProperty("put")) { + if (message.put != null && Object.hasOwnProperty.call(message, "put")) { object.put = message.put; if (options.oneofs) object.pattern = "put"; } - if (message.post != null && message.hasOwnProperty("post")) { + if (message.post != null && Object.hasOwnProperty.call(message, "post")) { object.post = message.post; if (options.oneofs) object.pattern = "post"; } - if (message["delete"] != null && message.hasOwnProperty("delete")) { + if (message["delete"] != null && Object.hasOwnProperty.call(message, "delete")) { object["delete"] = message["delete"]; if (options.oneofs) object.pattern = "delete"; } - if (message.patch != null && message.hasOwnProperty("patch")) { + if (message.patch != null && Object.hasOwnProperty.call(message, "patch")) { object.patch = message.patch; if (options.oneofs) object.pattern = "patch"; } - if (message.body != null && message.hasOwnProperty("body")) + if (message.body != null && Object.hasOwnProperty.call(message, "body")) object.body = message.body; - if (message.custom != null && message.hasOwnProperty("custom")) { + if (message.custom != null && Object.hasOwnProperty.call(message, "custom")) { object.custom = $root.google.api.CustomHttpPattern.toObject(message.custom, options, q + 1); if (options.oneofs) object.pattern = "custom"; @@ -285348,19 +232035,6 @@ export const google = $root.google = (() => { return writer; }; - /** - * Encodes the specified CustomHttpPattern message, length delimited. Does not implicitly {@link google.api.CustomHttpPattern.verify|verify} messages. - * @function encodeDelimited - * @memberof google.api.CustomHttpPattern - * @static - * @param {google.api.ICustomHttpPattern} message CustomHttpPattern message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CustomHttpPattern.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a CustomHttpPattern message from the specified reader or buffer. * @function decode @@ -285401,46 +232075,6 @@ export const google = $root.google = (() => { return message; }; - /** - * Decodes a CustomHttpPattern message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.api.CustomHttpPattern - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.api.CustomHttpPattern} CustomHttpPattern - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CustomHttpPattern.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a CustomHttpPattern message. - * @function verify - * @memberof google.api.CustomHttpPattern - * @static - * @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) { - if (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"; - if (message.path != null && message.hasOwnProperty("path")) - if (!$util.isString(message.path)) - return "path: string expected"; - return null; - }; - /** * Creates a CustomHttpPattern message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -285452,6 +232086,8 @@ export const google = $root.google = (() => { CustomHttpPattern.fromObject = function fromObject(object, long) { if (object instanceof $root.google.api.CustomHttpPattern) return object; + if (!$util.isObject(object)) + throw TypeError(".google.api.CustomHttpPattern: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -285485,9 +232121,9 @@ export const google = $root.google = (() => { object.kind = ""; object.path = ""; } - if (message.kind != null && message.hasOwnProperty("kind")) + if (message.kind != null && Object.hasOwnProperty.call(message, "kind")) object.kind = message.kind; - if (message.path != null && message.hasOwnProperty("path")) + if (message.path != null && Object.hasOwnProperty.call(message, "path")) object.path = message.path; return object; }; @@ -285600,19 +232236,6 @@ export const google = $root.google = (() => { return writer; }; - /** - * Encodes the specified FileDescriptorSet message, length delimited. Does not implicitly {@link google.protobuf.FileDescriptorSet.verify|verify} messages. - * @function encodeDelimited - * @memberof google.protobuf.FileDescriptorSet - * @static - * @param {google.protobuf.IFileDescriptorSet} message FileDescriptorSet message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - FileDescriptorSet.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a FileDescriptorSet message from the specified reader or buffer. * @function decode @@ -285651,49 +232274,6 @@ export const google = $root.google = (() => { return message; }; - /** - * Decodes a FileDescriptorSet message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.protobuf.FileDescriptorSet - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.FileDescriptorSet} FileDescriptorSet - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - FileDescriptorSet.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a FileDescriptorSet message. - * @function verify - * @memberof google.protobuf.FileDescriptorSet - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - FileDescriptorSet.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.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); - if (error) - return "file." + error; - } - } - return null; - }; - /** * Creates a FileDescriptorSet message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -285705,6 +232285,8 @@ export const google = $root.google = (() => { FileDescriptorSet.fromObject = function fromObject(object, long) { if (object instanceof $root.google.protobuf.FileDescriptorSet) return object; + if (!$util.isObject(object)) + throw TypeError(".google.protobuf.FileDescriptorSet: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -285715,7 +232297,7 @@ export const google = $root.google = (() => { throw TypeError(".google.protobuf.FileDescriptorSet.file: array expected"); message.file = []; for (let i = 0; i < object.file.length; ++i) { - if (typeof object.file[i] !== "object") + if (!$util.isObject(object.file[i])) throw TypeError(".google.protobuf.FileDescriptorSet.file: object expected"); message.file[i] = $root.google.protobuf.FileDescriptorProto.fromObject(object.file[i], long + 1); } @@ -286037,19 +232619,6 @@ export const google = $root.google = (() => { return writer; }; - /** - * Encodes the specified FileDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.FileDescriptorProto.verify|verify} messages. - * @function encodeDelimited - * @memberof google.protobuf.FileDescriptorProto - * @static - * @param {google.protobuf.IFileDescriptorProto} message FileDescriptorProto message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - FileDescriptorProto.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a FileDescriptorProto message from the specified reader or buffer. * @function decode @@ -286164,141 +232733,6 @@ export const google = $root.google = (() => { return message; }; - /** - * Decodes a FileDescriptorProto message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.protobuf.FileDescriptorProto - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.FileDescriptorProto} FileDescriptorProto - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - FileDescriptorProto.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a FileDescriptorProto message. - * @function verify - * @memberof google.protobuf.FileDescriptorProto - * @static - * @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) { - if (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["package"] != null && message.hasOwnProperty("package")) - if (!$util.isString(message["package"])) - return "package: string expected"; - if (message.dependency != null && message.hasOwnProperty("dependency")) { - if (!Array.isArray(message.dependency)) - return "dependency: array expected"; - for (let i = 0; i < message.dependency.length; ++i) - if (!$util.isString(message.dependency[i])) - return "dependency: string[] expected"; - } - if (message.publicDependency != null && message.hasOwnProperty("publicDependency")) { - if (!Array.isArray(message.publicDependency)) - return "publicDependency: array expected"; - for (let i = 0; i < message.publicDependency.length; ++i) - if (!$util.isInteger(message.publicDependency[i])) - return "publicDependency: integer[] expected"; - } - if (message.weakDependency != null && message.hasOwnProperty("weakDependency")) { - if (!Array.isArray(message.weakDependency)) - return "weakDependency: array expected"; - for (let i = 0; i < message.weakDependency.length; ++i) - 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); - if (error) - return "messageType." + error; - } - } - if (message.enumType != null && message.hasOwnProperty("enumType")) { - 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); - if (error) - return "enumType." + error; - } - } - if (message.service != null && message.hasOwnProperty("service")) { - 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); - if (error) - return "service." + error; - } - } - if (message.extension != null && message.hasOwnProperty("extension")) { - 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); - if (error) - return "extension." + error; - } - } - if (message.options != null && message.hasOwnProperty("options")) { - let error = $root.google.protobuf.FileOptions.verify(message.options, long + 1); - if (error) - return "options." + error; - } - if (message.sourceCodeInfo != null && message.hasOwnProperty("sourceCodeInfo")) { - let error = $root.google.protobuf.SourceCodeInfo.verify(message.sourceCodeInfo, long + 1); - 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; - }; - /** * Creates a FileDescriptorProto message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -286310,6 +232744,8 @@ export const google = $root.google = (() => { FileDescriptorProto.fromObject = function fromObject(object, long) { if (object instanceof $root.google.protobuf.FileDescriptorProto) return object; + if (!$util.isObject(object)) + throw TypeError(".google.protobuf.FileDescriptorProto: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -286352,7 +232788,7 @@ export const google = $root.google = (() => { throw TypeError(".google.protobuf.FileDescriptorProto.messageType: array expected"); message.messageType = []; for (let i = 0; i < object.messageType.length; ++i) { - if (typeof object.messageType[i] !== "object") + if (!$util.isObject(object.messageType[i])) throw TypeError(".google.protobuf.FileDescriptorProto.messageType: object expected"); message.messageType[i] = $root.google.protobuf.DescriptorProto.fromObject(object.messageType[i], long + 1); } @@ -286362,7 +232798,7 @@ export const google = $root.google = (() => { throw TypeError(".google.protobuf.FileDescriptorProto.enumType: array expected"); message.enumType = []; for (let i = 0; i < object.enumType.length; ++i) { - if (typeof object.enumType[i] !== "object") + if (!$util.isObject(object.enumType[i])) throw TypeError(".google.protobuf.FileDescriptorProto.enumType: object expected"); message.enumType[i] = $root.google.protobuf.EnumDescriptorProto.fromObject(object.enumType[i], long + 1); } @@ -286372,7 +232808,7 @@ export const google = $root.google = (() => { throw TypeError(".google.protobuf.FileDescriptorProto.service: array expected"); message.service = []; for (let i = 0; i < object.service.length; ++i) { - if (typeof object.service[i] !== "object") + if (!$util.isObject(object.service[i])) throw TypeError(".google.protobuf.FileDescriptorProto.service: object expected"); message.service[i] = $root.google.protobuf.ServiceDescriptorProto.fromObject(object.service[i], long + 1); } @@ -286382,18 +232818,18 @@ export const google = $root.google = (() => { throw TypeError(".google.protobuf.FileDescriptorProto.extension: array expected"); message.extension = []; for (let i = 0; i < object.extension.length; ++i) { - if (typeof object.extension[i] !== "object") + if (!$util.isObject(object.extension[i])) throw TypeError(".google.protobuf.FileDescriptorProto.extension: object expected"); message.extension[i] = $root.google.protobuf.FieldDescriptorProto.fromObject(object.extension[i], long + 1); } } if (object.options != null) { - if (typeof object.options !== "object") + if (!$util.isObject(object.options)) throw TypeError(".google.protobuf.FileDescriptorProto.options: object expected"); message.options = $root.google.protobuf.FileOptions.fromObject(object.options, long + 1); } if (object.sourceCodeInfo != null) { - if (typeof object.sourceCodeInfo !== "object") + if (!$util.isObject(object.sourceCodeInfo)) throw TypeError(".google.protobuf.FileDescriptorProto.sourceCodeInfo: object expected"); message.sourceCodeInfo = $root.google.protobuf.SourceCodeInfo.fromObject(object.sourceCodeInfo, long + 1); } @@ -286493,9 +232929,9 @@ export const google = $root.google = (() => { object.syntax = ""; object.edition = options.enums === String ? "EDITION_UNKNOWN" : 0; } - if (message.name != null && message.hasOwnProperty("name")) + if (message.name != null && Object.hasOwnProperty.call(message, "name")) object.name = message.name; - if (message["package"] != null && message.hasOwnProperty("package")) + if (message["package"] != null && Object.hasOwnProperty.call(message, "package")) object["package"] = message["package"]; if (message.dependency && message.dependency.length) { object.dependency = []; @@ -286522,9 +232958,9 @@ export const google = $root.google = (() => { for (let j = 0; j < message.extension.length; ++j) object.extension[j] = $root.google.protobuf.FieldDescriptorProto.toObject(message.extension[j], options, q + 1); } - if (message.options != null && message.hasOwnProperty("options")) + if (message.options != null && Object.hasOwnProperty.call(message, "options")) object.options = $root.google.protobuf.FileOptions.toObject(message.options, options, q + 1); - if (message.sourceCodeInfo != null && message.hasOwnProperty("sourceCodeInfo")) + if (message.sourceCodeInfo != null && Object.hasOwnProperty.call(message, "sourceCodeInfo")) object.sourceCodeInfo = $root.google.protobuf.SourceCodeInfo.toObject(message.sourceCodeInfo, options, q + 1); if (message.publicDependency && message.publicDependency.length) { object.publicDependency = []; @@ -286536,9 +232972,9 @@ export const google = $root.google = (() => { for (let j = 0; j < message.weakDependency.length; ++j) object.weakDependency[j] = message.weakDependency[j]; } - if (message.syntax != null && message.hasOwnProperty("syntax")) + if (message.syntax != null && Object.hasOwnProperty.call(message, "syntax")) object.syntax = message.syntax; - if (message.edition != null && message.hasOwnProperty("edition")) + if (message.edition != null && Object.hasOwnProperty.call(message, "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 = []; @@ -286768,19 +233204,6 @@ export const google = $root.google = (() => { return writer; }; - /** - * Encodes the specified DescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.verify|verify} messages. - * @function encodeDelimited - * @memberof google.protobuf.DescriptorProto - * @static - * @param {google.protobuf.IDescriptorProto} message DescriptorProto message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - DescriptorProto.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a DescriptorProto message from the specified reader or buffer. * @function decode @@ -286873,127 +233296,6 @@ export const google = $root.google = (() => { return message; }; - /** - * Decodes a DescriptorProto message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.protobuf.DescriptorProto - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.DescriptorProto} DescriptorProto - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - DescriptorProto.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a DescriptorProto message. - * @function verify - * @memberof google.protobuf.DescriptorProto - * @static - * @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) { - if (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.field != null && message.hasOwnProperty("field")) { - 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); - if (error) - return "field." + error; - } - } - if (message.extension != null && message.hasOwnProperty("extension")) { - 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); - if (error) - return "extension." + error; - } - } - if (message.nestedType != null && message.hasOwnProperty("nestedType")) { - 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); - if (error) - return "nestedType." + error; - } - } - if (message.enumType != null && message.hasOwnProperty("enumType")) { - 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); - if (error) - return "enumType." + error; - } - } - if (message.extensionRange != null && message.hasOwnProperty("extensionRange")) { - 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); - if (error) - return "extensionRange." + error; - } - } - if (message.oneofDecl != null && message.hasOwnProperty("oneofDecl")) { - 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); - if (error) - return "oneofDecl." + error; - } - } - if (message.options != null && message.hasOwnProperty("options")) { - let error = $root.google.protobuf.MessageOptions.verify(message.options, long + 1); - 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.DescriptorProto.ReservedRange.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; - }; - /** * Creates a DescriptorProto message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -287005,6 +233307,8 @@ export const google = $root.google = (() => { DescriptorProto.fromObject = function fromObject(object, long) { if (object instanceof $root.google.protobuf.DescriptorProto) return object; + if (!$util.isObject(object)) + throw TypeError(".google.protobuf.DescriptorProto: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -287017,7 +233321,7 @@ export const google = $root.google = (() => { throw TypeError(".google.protobuf.DescriptorProto.field: array expected"); message.field = []; for (let i = 0; i < object.field.length; ++i) { - if (typeof object.field[i] !== "object") + if (!$util.isObject(object.field[i])) throw TypeError(".google.protobuf.DescriptorProto.field: object expected"); message.field[i] = $root.google.protobuf.FieldDescriptorProto.fromObject(object.field[i], long + 1); } @@ -287027,7 +233331,7 @@ export const google = $root.google = (() => { throw TypeError(".google.protobuf.DescriptorProto.extension: array expected"); message.extension = []; for (let i = 0; i < object.extension.length; ++i) { - if (typeof object.extension[i] !== "object") + if (!$util.isObject(object.extension[i])) throw TypeError(".google.protobuf.DescriptorProto.extension: object expected"); message.extension[i] = $root.google.protobuf.FieldDescriptorProto.fromObject(object.extension[i], long + 1); } @@ -287037,7 +233341,7 @@ export const google = $root.google = (() => { throw TypeError(".google.protobuf.DescriptorProto.nestedType: array expected"); message.nestedType = []; for (let i = 0; i < object.nestedType.length; ++i) { - if (typeof object.nestedType[i] !== "object") + if (!$util.isObject(object.nestedType[i])) throw TypeError(".google.protobuf.DescriptorProto.nestedType: object expected"); message.nestedType[i] = $root.google.protobuf.DescriptorProto.fromObject(object.nestedType[i], long + 1); } @@ -287047,7 +233351,7 @@ export const google = $root.google = (() => { throw TypeError(".google.protobuf.DescriptorProto.enumType: array expected"); message.enumType = []; for (let i = 0; i < object.enumType.length; ++i) { - if (typeof object.enumType[i] !== "object") + if (!$util.isObject(object.enumType[i])) throw TypeError(".google.protobuf.DescriptorProto.enumType: object expected"); message.enumType[i] = $root.google.protobuf.EnumDescriptorProto.fromObject(object.enumType[i], long + 1); } @@ -287057,7 +233361,7 @@ export const google = $root.google = (() => { throw TypeError(".google.protobuf.DescriptorProto.extensionRange: array expected"); message.extensionRange = []; for (let i = 0; i < object.extensionRange.length; ++i) { - if (typeof object.extensionRange[i] !== "object") + if (!$util.isObject(object.extensionRange[i])) throw TypeError(".google.protobuf.DescriptorProto.extensionRange: object expected"); message.extensionRange[i] = $root.google.protobuf.DescriptorProto.ExtensionRange.fromObject(object.extensionRange[i], long + 1); } @@ -287067,13 +233371,13 @@ export const google = $root.google = (() => { throw TypeError(".google.protobuf.DescriptorProto.oneofDecl: array expected"); message.oneofDecl = []; for (let i = 0; i < object.oneofDecl.length; ++i) { - if (typeof object.oneofDecl[i] !== "object") + if (!$util.isObject(object.oneofDecl[i])) throw TypeError(".google.protobuf.DescriptorProto.oneofDecl: object expected"); message.oneofDecl[i] = $root.google.protobuf.OneofDescriptorProto.fromObject(object.oneofDecl[i], long + 1); } } if (object.options != null) { - if (typeof object.options !== "object") + if (!$util.isObject(object.options)) throw TypeError(".google.protobuf.DescriptorProto.options: object expected"); message.options = $root.google.protobuf.MessageOptions.fromObject(object.options, long + 1); } @@ -287082,7 +233386,7 @@ export const google = $root.google = (() => { throw TypeError(".google.protobuf.DescriptorProto.reservedRange: array expected"); message.reservedRange = []; for (let i = 0; i < object.reservedRange.length; ++i) { - if (typeof object.reservedRange[i] !== "object") + if (!$util.isObject(object.reservedRange[i])) throw TypeError(".google.protobuf.DescriptorProto.reservedRange: object expected"); message.reservedRange[i] = $root.google.protobuf.DescriptorProto.ReservedRange.fromObject(object.reservedRange[i], long + 1); } @@ -287149,7 +233453,7 @@ export const google = $root.google = (() => { object.options = null; object.visibility = options.enums === String ? "VISIBILITY_UNSET" : 0; } - if (message.name != null && message.hasOwnProperty("name")) + if (message.name != null && Object.hasOwnProperty.call(message, "name")) object.name = message.name; if (message.field && message.field.length) { object.field = []; @@ -287176,7 +233480,7 @@ export const google = $root.google = (() => { for (let j = 0; j < message.extension.length; ++j) object.extension[j] = $root.google.protobuf.FieldDescriptorProto.toObject(message.extension[j], options, q + 1); } - if (message.options != null && message.hasOwnProperty("options")) + if (message.options != null && Object.hasOwnProperty.call(message, "options")) object.options = $root.google.protobuf.MessageOptions.toObject(message.options, options, q + 1); if (message.oneofDecl && message.oneofDecl.length) { object.oneofDecl = []; @@ -287193,7 +233497,7 @@ export const google = $root.google = (() => { for (let j = 0; j < message.reservedName.length; ++j) object.reservedName[j] = message.reservedName[j]; } - if (message.visibility != null && message.hasOwnProperty("visibility")) + if (message.visibility != null && Object.hasOwnProperty.call(message, "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; }; @@ -287311,19 +233615,6 @@ export const google = $root.google = (() => { return writer; }; - /** - * Encodes the specified ExtensionRange message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.ExtensionRange.verify|verify} messages. - * @function encodeDelimited - * @memberof google.protobuf.DescriptorProto.ExtensionRange - * @static - * @param {google.protobuf.DescriptorProto.IExtensionRange} message ExtensionRange message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ExtensionRange.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes an ExtensionRange message from the specified reader or buffer. * @function decode @@ -287368,51 +233659,6 @@ export const google = $root.google = (() => { return message; }; - /** - * Decodes an ExtensionRange message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.protobuf.DescriptorProto.ExtensionRange - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.DescriptorProto.ExtensionRange} ExtensionRange - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ExtensionRange.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an ExtensionRange message. - * @function verify - * @memberof google.protobuf.DescriptorProto.ExtensionRange - * @static - * @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) { - if (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; - }; - /** * Creates an ExtensionRange message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -287424,6 +233670,8 @@ export const google = $root.google = (() => { ExtensionRange.fromObject = function fromObject(object, long) { if (object instanceof $root.google.protobuf.DescriptorProto.ExtensionRange) return object; + if (!$util.isObject(object)) + throw TypeError(".google.protobuf.DescriptorProto.ExtensionRange: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -287434,7 +233682,7 @@ export const google = $root.google = (() => { if (object.end != null) message.end = object.end | 0; if (object.options != null) { - if (typeof object.options !== "object") + if (!$util.isObject(object.options)) throw TypeError(".google.protobuf.DescriptorProto.ExtensionRange.options: object expected"); message.options = $root.google.protobuf.ExtensionRangeOptions.fromObject(object.options, long + 1); } @@ -287463,11 +233711,11 @@ export const google = $root.google = (() => { object.end = 0; object.options = null; } - if (message.start != null && message.hasOwnProperty("start")) + if (message.start != null && Object.hasOwnProperty.call(message, "start")) object.start = message.start; - if (message.end != null && message.hasOwnProperty("end")) + if (message.end != null && Object.hasOwnProperty.call(message, "end")) object.end = message.end; - if (message.options != null && message.hasOwnProperty("options")) + if (message.options != null && Object.hasOwnProperty.call(message, "options")) object.options = $root.google.protobuf.ExtensionRangeOptions.toObject(message.options, options, q + 1); return object; }; @@ -287577,19 +233825,6 @@ export const google = $root.google = (() => { return writer; }; - /** - * Encodes the specified ReservedRange message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.ReservedRange.verify|verify} messages. - * @function encodeDelimited - * @memberof google.protobuf.DescriptorProto.ReservedRange - * @static - * @param {google.protobuf.DescriptorProto.IReservedRange} message ReservedRange message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ReservedRange.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a ReservedRange message from the specified reader or buffer. * @function decode @@ -287630,46 +233865,6 @@ export const google = $root.google = (() => { return message; }; - /** - * Decodes a ReservedRange message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.protobuf.DescriptorProto.ReservedRange - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.DescriptorProto.ReservedRange} ReservedRange - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ReservedRange.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a ReservedRange message. - * @function verify - * @memberof google.protobuf.DescriptorProto.ReservedRange - * @static - * @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) { - if (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 a ReservedRange message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -287681,6 +233876,8 @@ export const google = $root.google = (() => { ReservedRange.fromObject = function fromObject(object, long) { if (object instanceof $root.google.protobuf.DescriptorProto.ReservedRange) return object; + if (!$util.isObject(object)) + throw TypeError(".google.protobuf.DescriptorProto.ReservedRange: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -287714,9 +233911,9 @@ export const google = $root.google = (() => { object.start = 0; object.end = 0; } - if (message.start != null && message.hasOwnProperty("start")) + if (message.start != null && Object.hasOwnProperty.call(message, "start")) object.start = message.start; - if (message.end != null && message.hasOwnProperty("end")) + if (message.end != null && Object.hasOwnProperty.call(message, "end")) object.end = message.end; return object; }; @@ -287855,19 +234052,6 @@ export const google = $root.google = (() => { 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 @@ -287920,71 +234104,6 @@ export const google = $root.google = (() => { 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 @@ -287996,6 +234115,8 @@ export const google = $root.google = (() => { ExtensionRangeOptions.fromObject = function fromObject(object, long) { if (object instanceof $root.google.protobuf.ExtensionRangeOptions) return object; + if (!$util.isObject(object)) + throw TypeError(".google.protobuf.ExtensionRangeOptions: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -288006,7 +234127,7 @@ export const google = $root.google = (() => { 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") + if (!$util.isObject(object.uninterpretedOption[i])) throw TypeError(".google.protobuf.ExtensionRangeOptions.uninterpretedOption: object expected"); message.uninterpretedOption[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpretedOption[i], long + 1); } @@ -288016,13 +234137,13 @@ export const google = $root.google = (() => { 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") + if (!$util.isObject(object.declaration[i])) 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") + if (!$util.isObject(object.features)) throw TypeError(".google.protobuf.ExtensionRangeOptions.features: object expected"); message.features = $root.google.protobuf.FeatureSet.fromObject(object.features, long + 1); } @@ -288075,9 +234196,9 @@ export const google = $root.google = (() => { 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")) + if (message.verification != null && Object.hasOwnProperty.call(message, "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")) + if (message.features != null && Object.hasOwnProperty.call(message, "features")) object.features = $root.google.protobuf.FeatureSet.toObject(message.features, options, q + 1); if (message.uninterpretedOption && message.uninterpretedOption.length) { object.uninterpretedOption = []; @@ -288222,19 +234343,6 @@ export const google = $root.google = (() => { 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 @@ -288287,55 +234395,6 @@ export const google = $root.google = (() => { 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 @@ -288347,6 +234406,8 @@ export const google = $root.google = (() => { Declaration.fromObject = function fromObject(object, long) { if (object instanceof $root.google.protobuf.ExtensionRangeOptions.Declaration) return object; + if (!$util.isObject(object)) + throw TypeError(".google.protobuf.ExtensionRangeOptions.Declaration: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -288389,15 +234450,15 @@ export const google = $root.google = (() => { object.reserved = false; object.repeated = false; } - if (message.number != null && message.hasOwnProperty("number")) + if (message.number != null && Object.hasOwnProperty.call(message, "number")) object.number = message.number; - if (message.fullName != null && message.hasOwnProperty("fullName")) + if (message.fullName != null && Object.hasOwnProperty.call(message, "fullName")) object.fullName = message.fullName; - if (message.type != null && message.hasOwnProperty("type")) + if (message.type != null && Object.hasOwnProperty.call(message, "type")) object.type = message.type; - if (message.reserved != null && message.hasOwnProperty("reserved")) + if (message.reserved != null && Object.hasOwnProperty.call(message, "reserved")) object.reserved = message.reserved; - if (message.repeated != null && message.hasOwnProperty("repeated")) + if (message.repeated != null && Object.hasOwnProperty.call(message, "repeated")) object.repeated = message.repeated; return object; }; @@ -288623,19 +234684,6 @@ export const google = $root.google = (() => { return writer; }; - /** - * Encodes the specified FieldDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.FieldDescriptorProto.verify|verify} messages. - * @function encodeDelimited - * @memberof google.protobuf.FieldDescriptorProto - * @static - * @param {google.protobuf.IFieldDescriptorProto} message FieldDescriptorProto message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - FieldDescriptorProto.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a FieldDescriptorProto message from the specified reader or buffer. * @function decode @@ -288712,102 +234760,6 @@ export const google = $root.google = (() => { return message; }; - /** - * Decodes a FieldDescriptorProto message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.protobuf.FieldDescriptorProto - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.FieldDescriptorProto} FieldDescriptorProto - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - FieldDescriptorProto.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a FieldDescriptorProto message. - * @function verify - * @memberof google.protobuf.FieldDescriptorProto - * @static - * @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) { - if (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.number != null && message.hasOwnProperty("number")) - if (!$util.isInteger(message.number)) - return "number: integer expected"; - if (message.label != null && message.hasOwnProperty("label")) - switch (message.label) { - default: - return "label: enum value expected"; - case 1: - case 3: - case 2: - break; - } - if (message.type != null && message.hasOwnProperty("type")) - switch (message.type) { - default: - return "type: enum value expected"; - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: - case 9: - case 10: - case 11: - case 12: - case 13: - case 14: - case 15: - case 16: - case 17: - case 18: - break; - } - if (message.typeName != null && message.hasOwnProperty("typeName")) - if (!$util.isString(message.typeName)) - return "typeName: string expected"; - if (message.extendee != null && message.hasOwnProperty("extendee")) - if (!$util.isString(message.extendee)) - return "extendee: string expected"; - if (message.defaultValue != null && message.hasOwnProperty("defaultValue")) - if (!$util.isString(message.defaultValue)) - return "defaultValue: string expected"; - if (message.oneofIndex != null && message.hasOwnProperty("oneofIndex")) - if (!$util.isInteger(message.oneofIndex)) - return "oneofIndex: integer expected"; - if (message.jsonName != null && message.hasOwnProperty("jsonName")) - 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); - if (error) - return "options." + error; - } - if (message.proto3Optional != null && message.hasOwnProperty("proto3Optional")) - if (typeof message.proto3Optional !== "boolean") - return "proto3Optional: boolean expected"; - return null; - }; - /** * Creates a FieldDescriptorProto message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -288819,6 +234771,8 @@ export const google = $root.google = (() => { FieldDescriptorProto.fromObject = function fromObject(object, long) { if (object instanceof $root.google.protobuf.FieldDescriptorProto) return object; + if (!$util.isObject(object)) + throw TypeError(".google.protobuf.FieldDescriptorProto: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -288939,7 +234893,7 @@ export const google = $root.google = (() => { if (object.jsonName != null) message.jsonName = String(object.jsonName); if (object.options != null) { - if (typeof object.options !== "object") + if (!$util.isObject(object.options)) throw TypeError(".google.protobuf.FieldDescriptorProto.options: object expected"); message.options = $root.google.protobuf.FieldOptions.fromObject(object.options, long + 1); } @@ -288978,27 +234932,27 @@ export const google = $root.google = (() => { object.jsonName = ""; object.proto3Optional = false; } - if (message.name != null && message.hasOwnProperty("name")) + if (message.name != null && Object.hasOwnProperty.call(message, "name")) object.name = message.name; - if (message.extendee != null && message.hasOwnProperty("extendee")) + if (message.extendee != null && Object.hasOwnProperty.call(message, "extendee")) object.extendee = message.extendee; - if (message.number != null && message.hasOwnProperty("number")) + if (message.number != null && Object.hasOwnProperty.call(message, "number")) object.number = message.number; - if (message.label != null && message.hasOwnProperty("label")) + if (message.label != null && Object.hasOwnProperty.call(message, "label")) object.label = options.enums === String ? $root.google.protobuf.FieldDescriptorProto.Label[message.label] === undefined ? message.label : $root.google.protobuf.FieldDescriptorProto.Label[message.label] : message.label; - if (message.type != null && message.hasOwnProperty("type")) + if (message.type != null && Object.hasOwnProperty.call(message, "type")) object.type = options.enums === String ? $root.google.protobuf.FieldDescriptorProto.Type[message.type] === undefined ? message.type : $root.google.protobuf.FieldDescriptorProto.Type[message.type] : message.type; - if (message.typeName != null && message.hasOwnProperty("typeName")) + if (message.typeName != null && Object.hasOwnProperty.call(message, "typeName")) object.typeName = message.typeName; - if (message.defaultValue != null && message.hasOwnProperty("defaultValue")) + if (message.defaultValue != null && Object.hasOwnProperty.call(message, "defaultValue")) object.defaultValue = message.defaultValue; - if (message.options != null && message.hasOwnProperty("options")) + if (message.options != null && Object.hasOwnProperty.call(message, "options")) object.options = $root.google.protobuf.FieldOptions.toObject(message.options, options, q + 1); - if (message.oneofIndex != null && message.hasOwnProperty("oneofIndex")) + if (message.oneofIndex != null && Object.hasOwnProperty.call(message, "oneofIndex")) object.oneofIndex = message.oneofIndex; - if (message.jsonName != null && message.hasOwnProperty("jsonName")) + if (message.jsonName != null && Object.hasOwnProperty.call(message, "jsonName")) object.jsonName = message.jsonName; - if (message.proto3Optional != null && message.hasOwnProperty("proto3Optional")) + if (message.proto3Optional != null && Object.hasOwnProperty.call(message, "proto3Optional")) object.proto3Optional = message.proto3Optional; return object; }; @@ -289170,19 +235124,6 @@ export const google = $root.google = (() => { return writer; }; - /** - * Encodes the specified OneofDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.OneofDescriptorProto.verify|verify} messages. - * @function encodeDelimited - * @memberof google.protobuf.OneofDescriptorProto - * @static - * @param {google.protobuf.IOneofDescriptorProto} message OneofDescriptorProto message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - OneofDescriptorProto.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes an OneofDescriptorProto message from the specified reader or buffer. * @function decode @@ -289223,48 +235164,6 @@ export const google = $root.google = (() => { return message; }; - /** - * Decodes an OneofDescriptorProto message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.protobuf.OneofDescriptorProto - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.OneofDescriptorProto} OneofDescriptorProto - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - OneofDescriptorProto.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an OneofDescriptorProto message. - * @function verify - * @memberof google.protobuf.OneofDescriptorProto - * @static - * @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) { - if (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); - if (error) - return "options." + error; - } - return null; - }; - /** * Creates an OneofDescriptorProto message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -289276,6 +235175,8 @@ export const google = $root.google = (() => { OneofDescriptorProto.fromObject = function fromObject(object, long) { if (object instanceof $root.google.protobuf.OneofDescriptorProto) return object; + if (!$util.isObject(object)) + throw TypeError(".google.protobuf.OneofDescriptorProto: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -289284,7 +235185,7 @@ export const google = $root.google = (() => { if (object.name != null) message.name = String(object.name); if (object.options != null) { - if (typeof object.options !== "object") + if (!$util.isObject(object.options)) throw TypeError(".google.protobuf.OneofDescriptorProto.options: object expected"); message.options = $root.google.protobuf.OneofOptions.fromObject(object.options, long + 1); } @@ -289312,9 +235213,9 @@ export const google = $root.google = (() => { object.name = ""; object.options = null; } - if (message.name != null && message.hasOwnProperty("name")) + if (message.name != null && Object.hasOwnProperty.call(message, "name")) object.name = message.name; - if (message.options != null && message.hasOwnProperty("options")) + if (message.options != null && Object.hasOwnProperty.call(message, "options")) object.options = $root.google.protobuf.OneofOptions.toObject(message.options, options, q + 1); return object; }; @@ -289474,19 +235375,6 @@ export const google = $root.google = (() => { return writer; }; - /** - * Encodes the specified EnumDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.EnumDescriptorProto.verify|verify} messages. - * @function encodeDelimited - * @memberof google.protobuf.EnumDescriptorProto - * @static - * @param {google.protobuf.IEnumDescriptorProto} message EnumDescriptorProto message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - EnumDescriptorProto.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes an EnumDescriptorProto message from the specified reader or buffer. * @function decode @@ -289549,82 +235437,6 @@ export const google = $root.google = (() => { return message; }; - /** - * Decodes an EnumDescriptorProto message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.protobuf.EnumDescriptorProto - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.EnumDescriptorProto} EnumDescriptorProto - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - EnumDescriptorProto.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an EnumDescriptorProto message. - * @function verify - * @memberof google.protobuf.EnumDescriptorProto - * @static - * @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) { - if (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.value != null && message.hasOwnProperty("value")) { - 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); - if (error) - return "value." + error; - } - } - if (message.options != null && message.hasOwnProperty("options")) { - let error = $root.google.protobuf.EnumOptions.verify(message.options, long + 1); - 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; - }; - /** * Creates an EnumDescriptorProto message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -289636,6 +235448,8 @@ export const google = $root.google = (() => { EnumDescriptorProto.fromObject = function fromObject(object, long) { if (object instanceof $root.google.protobuf.EnumDescriptorProto) return object; + if (!$util.isObject(object)) + throw TypeError(".google.protobuf.EnumDescriptorProto: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -289648,13 +235462,13 @@ export const google = $root.google = (() => { throw TypeError(".google.protobuf.EnumDescriptorProto.value: array expected"); message.value = []; for (let i = 0; i < object.value.length; ++i) { - if (typeof object.value[i] !== "object") + if (!$util.isObject(object.value[i])) throw TypeError(".google.protobuf.EnumDescriptorProto.value: object expected"); message.value[i] = $root.google.protobuf.EnumValueDescriptorProto.fromObject(object.value[i], long + 1); } } if (object.options != null) { - if (typeof object.options !== "object") + if (!$util.isObject(object.options)) throw TypeError(".google.protobuf.EnumDescriptorProto.options: object expected"); message.options = $root.google.protobuf.EnumOptions.fromObject(object.options, long + 1); } @@ -289663,7 +235477,7 @@ export const google = $root.google = (() => { 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") + if (!$util.isObject(object.reservedRange[i])) throw TypeError(".google.protobuf.EnumDescriptorProto.reservedRange: object expected"); message.reservedRange[i] = $root.google.protobuf.EnumDescriptorProto.EnumReservedRange.fromObject(object.reservedRange[i], long + 1); } @@ -289725,14 +235539,14 @@ export const google = $root.google = (() => { object.options = null; object.visibility = options.enums === String ? "VISIBILITY_UNSET" : 0; } - if (message.name != null && message.hasOwnProperty("name")) + if (message.name != null && Object.hasOwnProperty.call(message, "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); } - if (message.options != null && message.hasOwnProperty("options")) + if (message.options != null && Object.hasOwnProperty.call(message, "options")) object.options = $root.google.protobuf.EnumOptions.toObject(message.options, options, q + 1); if (message.reservedRange && message.reservedRange.length) { object.reservedRange = []; @@ -289744,7 +235558,7 @@ export const google = $root.google = (() => { for (let j = 0; j < message.reservedName.length; ++j) object.reservedName[j] = message.reservedName[j]; } - if (message.visibility != null && message.hasOwnProperty("visibility")) + if (message.visibility != null && Object.hasOwnProperty.call(message, "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; }; @@ -289851,19 +235665,6 @@ export const google = $root.google = (() => { 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 @@ -289904,46 +235705,6 @@ export const google = $root.google = (() => { 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 @@ -289955,6 +235716,8 @@ export const google = $root.google = (() => { EnumReservedRange.fromObject = function fromObject(object, long) { if (object instanceof $root.google.protobuf.EnumDescriptorProto.EnumReservedRange) return object; + if (!$util.isObject(object)) + throw TypeError(".google.protobuf.EnumDescriptorProto.EnumReservedRange: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -289988,9 +235751,9 @@ export const google = $root.google = (() => { object.start = 0; object.end = 0; } - if (message.start != null && message.hasOwnProperty("start")) + if (message.start != null && Object.hasOwnProperty.call(message, "start")) object.start = message.start; - if (message.end != null && message.hasOwnProperty("end")) + if (message.end != null && Object.hasOwnProperty.call(message, "end")) object.end = message.end; return object; }; @@ -290114,19 +235877,6 @@ export const google = $root.google = (() => { return writer; }; - /** - * Encodes the specified EnumValueDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.EnumValueDescriptorProto.verify|verify} messages. - * @function encodeDelimited - * @memberof google.protobuf.EnumValueDescriptorProto - * @static - * @param {google.protobuf.IEnumValueDescriptorProto} message EnumValueDescriptorProto message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - EnumValueDescriptorProto.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes an EnumValueDescriptorProto message from the specified reader or buffer. * @function decode @@ -290171,51 +235921,6 @@ export const google = $root.google = (() => { return message; }; - /** - * Decodes an EnumValueDescriptorProto message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.protobuf.EnumValueDescriptorProto - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.EnumValueDescriptorProto} EnumValueDescriptorProto - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - EnumValueDescriptorProto.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an EnumValueDescriptorProto message. - * @function verify - * @memberof google.protobuf.EnumValueDescriptorProto - * @static - * @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) { - if (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.number != null && message.hasOwnProperty("number")) - 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); - if (error) - return "options." + error; - } - return null; - }; - /** * Creates an EnumValueDescriptorProto message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -290227,6 +235932,8 @@ export const google = $root.google = (() => { EnumValueDescriptorProto.fromObject = function fromObject(object, long) { if (object instanceof $root.google.protobuf.EnumValueDescriptorProto) return object; + if (!$util.isObject(object)) + throw TypeError(".google.protobuf.EnumValueDescriptorProto: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -290237,7 +235944,7 @@ export const google = $root.google = (() => { if (object.number != null) message.number = object.number | 0; if (object.options != null) { - if (typeof object.options !== "object") + if (!$util.isObject(object.options)) throw TypeError(".google.protobuf.EnumValueDescriptorProto.options: object expected"); message.options = $root.google.protobuf.EnumValueOptions.fromObject(object.options, long + 1); } @@ -290266,11 +235973,11 @@ export const google = $root.google = (() => { object.number = 0; object.options = null; } - if (message.name != null && message.hasOwnProperty("name")) + if (message.name != null && Object.hasOwnProperty.call(message, "name")) object.name = message.name; - if (message.number != null && message.hasOwnProperty("number")) + if (message.number != null && Object.hasOwnProperty.call(message, "number")) object.number = message.number; - if (message.options != null && message.hasOwnProperty("options")) + if (message.options != null && Object.hasOwnProperty.call(message, "options")) object.options = $root.google.protobuf.EnumValueOptions.toObject(message.options, options, q + 1); return object; }; @@ -290393,19 +236100,6 @@ export const google = $root.google = (() => { return writer; }; - /** - * Encodes the specified ServiceDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.ServiceDescriptorProto.verify|verify} messages. - * @function encodeDelimited - * @memberof google.protobuf.ServiceDescriptorProto - * @static - * @param {google.protobuf.IServiceDescriptorProto} message ServiceDescriptorProto message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ServiceDescriptorProto.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a ServiceDescriptorProto message from the specified reader or buffer. * @function decode @@ -290452,57 +236146,6 @@ export const google = $root.google = (() => { return message; }; - /** - * Decodes a ServiceDescriptorProto message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.protobuf.ServiceDescriptorProto - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.ServiceDescriptorProto} ServiceDescriptorProto - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ServiceDescriptorProto.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a ServiceDescriptorProto message. - * @function verify - * @memberof google.protobuf.ServiceDescriptorProto - * @static - * @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) { - if (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.method != null && message.hasOwnProperty("method")) { - 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); - if (error) - return "method." + error; - } - } - if (message.options != null && message.hasOwnProperty("options")) { - let error = $root.google.protobuf.ServiceOptions.verify(message.options, long + 1); - if (error) - return "options." + error; - } - return null; - }; - /** * Creates a ServiceDescriptorProto message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -290514,6 +236157,8 @@ export const google = $root.google = (() => { ServiceDescriptorProto.fromObject = function fromObject(object, long) { if (object instanceof $root.google.protobuf.ServiceDescriptorProto) return object; + if (!$util.isObject(object)) + throw TypeError(".google.protobuf.ServiceDescriptorProto: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -290526,13 +236171,13 @@ export const google = $root.google = (() => { throw TypeError(".google.protobuf.ServiceDescriptorProto.method: array expected"); message.method = []; for (let i = 0; i < object.method.length; ++i) { - if (typeof object.method[i] !== "object") + if (!$util.isObject(object.method[i])) throw TypeError(".google.protobuf.ServiceDescriptorProto.method: object expected"); message.method[i] = $root.google.protobuf.MethodDescriptorProto.fromObject(object.method[i], long + 1); } } if (object.options != null) { - if (typeof object.options !== "object") + if (!$util.isObject(object.options)) throw TypeError(".google.protobuf.ServiceDescriptorProto.options: object expected"); message.options = $root.google.protobuf.ServiceOptions.fromObject(object.options, long + 1); } @@ -290562,14 +236207,14 @@ export const google = $root.google = (() => { object.name = ""; object.options = null; } - if (message.name != null && message.hasOwnProperty("name")) + if (message.name != null && Object.hasOwnProperty.call(message, "name")) object.name = message.name; 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); } - if (message.options != null && message.hasOwnProperty("options")) + if (message.options != null && Object.hasOwnProperty.call(message, "options")) object.options = $root.google.protobuf.ServiceOptions.toObject(message.options, options, q + 1); return object; }; @@ -290723,19 +236368,6 @@ export const google = $root.google = (() => { return writer; }; - /** - * Encodes the specified MethodDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.MethodDescriptorProto.verify|verify} messages. - * @function encodeDelimited - * @memberof google.protobuf.MethodDescriptorProto - * @static - * @param {google.protobuf.IMethodDescriptorProto} message MethodDescriptorProto message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MethodDescriptorProto.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a MethodDescriptorProto message from the specified reader or buffer. * @function decode @@ -290792,60 +236424,6 @@ export const google = $root.google = (() => { return message; }; - /** - * Decodes a MethodDescriptorProto message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.protobuf.MethodDescriptorProto - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.MethodDescriptorProto} MethodDescriptorProto - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MethodDescriptorProto.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a MethodDescriptorProto message. - * @function verify - * @memberof google.protobuf.MethodDescriptorProto - * @static - * @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) { - if (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.inputType != null && message.hasOwnProperty("inputType")) - if (!$util.isString(message.inputType)) - return "inputType: string expected"; - if (message.outputType != null && message.hasOwnProperty("outputType")) - 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); - if (error) - return "options." + error; - } - if (message.clientStreaming != null && message.hasOwnProperty("clientStreaming")) - if (typeof message.clientStreaming !== "boolean") - return "clientStreaming: boolean expected"; - if (message.serverStreaming != null && message.hasOwnProperty("serverStreaming")) - if (typeof message.serverStreaming !== "boolean") - return "serverStreaming: boolean expected"; - return null; - }; - /** * Creates a MethodDescriptorProto message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -290857,6 +236435,8 @@ export const google = $root.google = (() => { MethodDescriptorProto.fromObject = function fromObject(object, long) { if (object instanceof $root.google.protobuf.MethodDescriptorProto) return object; + if (!$util.isObject(object)) + throw TypeError(".google.protobuf.MethodDescriptorProto: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -290869,7 +236449,7 @@ export const google = $root.google = (() => { if (object.outputType != null) message.outputType = String(object.outputType); if (object.options != null) { - if (typeof object.options !== "object") + if (!$util.isObject(object.options)) throw TypeError(".google.protobuf.MethodDescriptorProto.options: object expected"); message.options = $root.google.protobuf.MethodOptions.fromObject(object.options, long + 1); } @@ -290905,17 +236485,17 @@ export const google = $root.google = (() => { object.clientStreaming = false; object.serverStreaming = false; } - if (message.name != null && message.hasOwnProperty("name")) + if (message.name != null && Object.hasOwnProperty.call(message, "name")) object.name = message.name; - if (message.inputType != null && message.hasOwnProperty("inputType")) + if (message.inputType != null && Object.hasOwnProperty.call(message, "inputType")) object.inputType = message.inputType; - if (message.outputType != null && message.hasOwnProperty("outputType")) + if (message.outputType != null && Object.hasOwnProperty.call(message, "outputType")) object.outputType = message.outputType; - if (message.options != null && message.hasOwnProperty("options")) + if (message.options != null && Object.hasOwnProperty.call(message, "options")) object.options = $root.google.protobuf.MethodOptions.toObject(message.options, options, q + 1); - if (message.clientStreaming != null && message.hasOwnProperty("clientStreaming")) + if (message.clientStreaming != null && Object.hasOwnProperty.call(message, "clientStreaming")) object.clientStreaming = message.clientStreaming; - if (message.serverStreaming != null && message.hasOwnProperty("serverStreaming")) + if (message.serverStreaming != null && Object.hasOwnProperty.call(message, "serverStreaming")) object.serverStreaming = message.serverStreaming; return object; }; @@ -291236,19 +236816,6 @@ export const google = $root.google = (() => { return writer; }; - /** - * Encodes the specified FileOptions message, length delimited. Does not implicitly {@link google.protobuf.FileOptions.verify|verify} messages. - * @function encodeDelimited - * @memberof google.protobuf.FileOptions - * @static - * @param {google.protobuf.IFileOptions} message FileOptions message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - FileOptions.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a FileOptions message from the specified reader or buffer. * @function decode @@ -291367,117 +236934,6 @@ export const google = $root.google = (() => { return message; }; - /** - * Decodes a FileOptions message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.protobuf.FileOptions - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.FileOptions} FileOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - FileOptions.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a FileOptions message. - * @function verify - * @memberof google.protobuf.FileOptions - * @static - * @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) { - if (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"; - if (message.javaOuterClassname != null && message.hasOwnProperty("javaOuterClassname")) - if (!$util.isString(message.javaOuterClassname)) - return "javaOuterClassname: string expected"; - if (message.javaMultipleFiles != null && message.hasOwnProperty("javaMultipleFiles")) - if (typeof message.javaMultipleFiles !== "boolean") - return "javaMultipleFiles: boolean expected"; - if (message.javaGenerateEqualsAndHash != null && message.hasOwnProperty("javaGenerateEqualsAndHash")) - if (typeof message.javaGenerateEqualsAndHash !== "boolean") - return "javaGenerateEqualsAndHash: boolean expected"; - if (message.javaStringCheckUtf8 != null && message.hasOwnProperty("javaStringCheckUtf8")) - if (typeof message.javaStringCheckUtf8 !== "boolean") - return "javaStringCheckUtf8: boolean expected"; - if (message.optimizeFor != null && message.hasOwnProperty("optimizeFor")) - switch (message.optimizeFor) { - default: - return "optimizeFor: enum value expected"; - case 1: - case 2: - case 3: - break; - } - if (message.goPackage != null && message.hasOwnProperty("goPackage")) - if (!$util.isString(message.goPackage)) - return "goPackage: string expected"; - if (message.ccGenericServices != null && message.hasOwnProperty("ccGenericServices")) - if (typeof message.ccGenericServices !== "boolean") - return "ccGenericServices: boolean expected"; - if (message.javaGenericServices != null && message.hasOwnProperty("javaGenericServices")) - if (typeof message.javaGenericServices !== "boolean") - return "javaGenericServices: boolean expected"; - if (message.pyGenericServices != null && message.hasOwnProperty("pyGenericServices")) - if (typeof message.pyGenericServices !== "boolean") - return "pyGenericServices: boolean expected"; - if (message.deprecated != null && message.hasOwnProperty("deprecated")) - if (typeof message.deprecated !== "boolean") - return "deprecated: boolean expected"; - if (message.ccEnableArenas != null && message.hasOwnProperty("ccEnableArenas")) - if (typeof message.ccEnableArenas !== "boolean") - return "ccEnableArenas: boolean expected"; - if (message.objcClassPrefix != null && message.hasOwnProperty("objcClassPrefix")) - if (!$util.isString(message.objcClassPrefix)) - return "objcClassPrefix: string expected"; - 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); - if (error) - return "uninterpretedOption." + error; - } - } - return null; - }; - /** * Creates a FileOptions message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -291489,6 +236945,8 @@ export const google = $root.google = (() => { FileOptions.fromObject = function fromObject(object, long) { if (object instanceof $root.google.protobuf.FileOptions) return object; + if (!$util.isObject(object)) + throw TypeError(".google.protobuf.FileOptions: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -291551,7 +237009,7 @@ export const google = $root.google = (() => { if (object.rubyPackage != null) message.rubyPackage = String(object.rubyPackage); if (object.features != null) { - if (typeof object.features !== "object") + if (!$util.isObject(object.features)) throw TypeError(".google.protobuf.FileOptions.features: object expected"); message.features = $root.google.protobuf.FeatureSet.fromObject(object.features, long + 1); } @@ -291560,7 +237018,7 @@ export const google = $root.google = (() => { throw TypeError(".google.protobuf.FileOptions.uninterpretedOption: array expected"); message.uninterpretedOption = []; for (let i = 0; i < object.uninterpretedOption.length; ++i) { - if (typeof object.uninterpretedOption[i] !== "object") + if (!$util.isObject(object.uninterpretedOption[i])) throw TypeError(".google.protobuf.FileOptions.uninterpretedOption: object expected"); message.uninterpretedOption[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpretedOption[i], long + 1); } @@ -291609,45 +237067,45 @@ export const google = $root.google = (() => { object.rubyPackage = ""; object.features = null; } - if (message.javaPackage != null && message.hasOwnProperty("javaPackage")) + if (message.javaPackage != null && Object.hasOwnProperty.call(message, "javaPackage")) object.javaPackage = message.javaPackage; - if (message.javaOuterClassname != null && message.hasOwnProperty("javaOuterClassname")) + if (message.javaOuterClassname != null && Object.hasOwnProperty.call(message, "javaOuterClassname")) object.javaOuterClassname = message.javaOuterClassname; - if (message.optimizeFor != null && message.hasOwnProperty("optimizeFor")) + if (message.optimizeFor != null && Object.hasOwnProperty.call(message, "optimizeFor")) object.optimizeFor = options.enums === String ? $root.google.protobuf.FileOptions.OptimizeMode[message.optimizeFor] === undefined ? message.optimizeFor : $root.google.protobuf.FileOptions.OptimizeMode[message.optimizeFor] : message.optimizeFor; - if (message.javaMultipleFiles != null && message.hasOwnProperty("javaMultipleFiles")) + if (message.javaMultipleFiles != null && Object.hasOwnProperty.call(message, "javaMultipleFiles")) object.javaMultipleFiles = message.javaMultipleFiles; - if (message.goPackage != null && message.hasOwnProperty("goPackage")) + if (message.goPackage != null && Object.hasOwnProperty.call(message, "goPackage")) object.goPackage = message.goPackage; - if (message.ccGenericServices != null && message.hasOwnProperty("ccGenericServices")) + if (message.ccGenericServices != null && Object.hasOwnProperty.call(message, "ccGenericServices")) object.ccGenericServices = message.ccGenericServices; - if (message.javaGenericServices != null && message.hasOwnProperty("javaGenericServices")) + if (message.javaGenericServices != null && Object.hasOwnProperty.call(message, "javaGenericServices")) object.javaGenericServices = message.javaGenericServices; - if (message.pyGenericServices != null && message.hasOwnProperty("pyGenericServices")) + if (message.pyGenericServices != null && Object.hasOwnProperty.call(message, "pyGenericServices")) object.pyGenericServices = message.pyGenericServices; - if (message.javaGenerateEqualsAndHash != null && message.hasOwnProperty("javaGenerateEqualsAndHash")) + if (message.javaGenerateEqualsAndHash != null && Object.hasOwnProperty.call(message, "javaGenerateEqualsAndHash")) object.javaGenerateEqualsAndHash = message.javaGenerateEqualsAndHash; - if (message.deprecated != null && message.hasOwnProperty("deprecated")) + if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated")) object.deprecated = message.deprecated; - if (message.javaStringCheckUtf8 != null && message.hasOwnProperty("javaStringCheckUtf8")) + if (message.javaStringCheckUtf8 != null && Object.hasOwnProperty.call(message, "javaStringCheckUtf8")) object.javaStringCheckUtf8 = message.javaStringCheckUtf8; - if (message.ccEnableArenas != null && message.hasOwnProperty("ccEnableArenas")) + if (message.ccEnableArenas != null && Object.hasOwnProperty.call(message, "ccEnableArenas")) object.ccEnableArenas = message.ccEnableArenas; - if (message.objcClassPrefix != null && message.hasOwnProperty("objcClassPrefix")) + if (message.objcClassPrefix != null && Object.hasOwnProperty.call(message, "objcClassPrefix")) object.objcClassPrefix = message.objcClassPrefix; - if (message.csharpNamespace != null && message.hasOwnProperty("csharpNamespace")) + if (message.csharpNamespace != null && Object.hasOwnProperty.call(message, "csharpNamespace")) object.csharpNamespace = message.csharpNamespace; - if (message.swiftPrefix != null && message.hasOwnProperty("swiftPrefix")) + if (message.swiftPrefix != null && Object.hasOwnProperty.call(message, "swiftPrefix")) object.swiftPrefix = message.swiftPrefix; - if (message.phpClassPrefix != null && message.hasOwnProperty("phpClassPrefix")) + if (message.phpClassPrefix != null && Object.hasOwnProperty.call(message, "phpClassPrefix")) object.phpClassPrefix = message.phpClassPrefix; - if (message.phpNamespace != null && message.hasOwnProperty("phpNamespace")) + if (message.phpNamespace != null && Object.hasOwnProperty.call(message, "phpNamespace")) object.phpNamespace = message.phpNamespace; - if (message.phpMetadataNamespace != null && message.hasOwnProperty("phpMetadataNamespace")) + if (message.phpMetadataNamespace != null && Object.hasOwnProperty.call(message, "phpMetadataNamespace")) object.phpMetadataNamespace = message.phpMetadataNamespace; - if (message.rubyPackage != null && message.hasOwnProperty("rubyPackage")) + if (message.rubyPackage != null && Object.hasOwnProperty.call(message, "rubyPackage")) object.rubyPackage = message.rubyPackage; - if (message.features != null && message.hasOwnProperty("features")) + if (message.features != null && Object.hasOwnProperty.call(message, "features")) object.features = $root.google.protobuf.FeatureSet.toObject(message.features, options, q + 1); if (message.uninterpretedOption && message.uninterpretedOption.length) { object.uninterpretedOption = []; @@ -291835,19 +237293,6 @@ export const google = $root.google = (() => { return writer; }; - /** - * Encodes the specified MessageOptions message, length delimited. Does not implicitly {@link google.protobuf.MessageOptions.verify|verify} messages. - * @function encodeDelimited - * @memberof google.protobuf.MessageOptions - * @static - * @param {google.protobuf.IMessageOptions} message MessageOptions message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MessageOptions.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a MessageOptions message from the specified reader or buffer. * @function decode @@ -291910,69 +237355,6 @@ export const google = $root.google = (() => { return message; }; - /** - * Decodes a MessageOptions message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.protobuf.MessageOptions - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.MessageOptions} MessageOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MessageOptions.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a MessageOptions message. - * @function verify - * @memberof google.protobuf.MessageOptions - * @static - * @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) { - if (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"; - if (message.noStandardDescriptorAccessor != null && message.hasOwnProperty("noStandardDescriptorAccessor")) - if (typeof message.noStandardDescriptorAccessor !== "boolean") - return "noStandardDescriptorAccessor: boolean expected"; - if (message.deprecated != null && message.hasOwnProperty("deprecated")) - if (typeof message.deprecated !== "boolean") - return "deprecated: boolean expected"; - 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); - if (error) - return "uninterpretedOption." + error; - } - } - return null; - }; - /** * Creates a MessageOptions message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -291984,6 +237366,8 @@ export const google = $root.google = (() => { MessageOptions.fromObject = function fromObject(object, long) { if (object instanceof $root.google.protobuf.MessageOptions) return object; + if (!$util.isObject(object)) + throw TypeError(".google.protobuf.MessageOptions: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -292000,7 +237384,7 @@ export const google = $root.google = (() => { if (object.deprecatedLegacyJsonFieldConflicts != null) message.deprecatedLegacyJsonFieldConflicts = Boolean(object.deprecatedLegacyJsonFieldConflicts); if (object.features != null) { - if (typeof object.features !== "object") + if (!$util.isObject(object.features)) throw TypeError(".google.protobuf.MessageOptions.features: object expected"); message.features = $root.google.protobuf.FeatureSet.fromObject(object.features, long + 1); } @@ -292009,7 +237393,7 @@ export const google = $root.google = (() => { throw TypeError(".google.protobuf.MessageOptions.uninterpretedOption: array expected"); message.uninterpretedOption = []; for (let i = 0; i < object.uninterpretedOption.length; ++i) { - if (typeof object.uninterpretedOption[i] !== "object") + if (!$util.isObject(object.uninterpretedOption[i])) throw TypeError(".google.protobuf.MessageOptions.uninterpretedOption: object expected"); message.uninterpretedOption[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpretedOption[i], long + 1); } @@ -292044,17 +237428,17 @@ export const google = $root.google = (() => { object.deprecatedLegacyJsonFieldConflicts = false; object.features = null; } - if (message.messageSetWireFormat != null && message.hasOwnProperty("messageSetWireFormat")) + if (message.messageSetWireFormat != null && Object.hasOwnProperty.call(message, "messageSetWireFormat")) object.messageSetWireFormat = message.messageSetWireFormat; - if (message.noStandardDescriptorAccessor != null && message.hasOwnProperty("noStandardDescriptorAccessor")) + if (message.noStandardDescriptorAccessor != null && Object.hasOwnProperty.call(message, "noStandardDescriptorAccessor")) object.noStandardDescriptorAccessor = message.noStandardDescriptorAccessor; - if (message.deprecated != null && message.hasOwnProperty("deprecated")) + if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated")) object.deprecated = message.deprecated; - if (message.mapEntry != null && message.hasOwnProperty("mapEntry")) + if (message.mapEntry != null && Object.hasOwnProperty.call(message, "mapEntry")) object.mapEntry = message.mapEntry; - if (message.deprecatedLegacyJsonFieldConflicts != null && message.hasOwnProperty("deprecatedLegacyJsonFieldConflicts")) + if (message.deprecatedLegacyJsonFieldConflicts != null && Object.hasOwnProperty.call(message, "deprecatedLegacyJsonFieldConflicts")) object.deprecatedLegacyJsonFieldConflicts = message.deprecatedLegacyJsonFieldConflicts; - if (message.features != null && message.hasOwnProperty("features")) + if (message.features != null && Object.hasOwnProperty.call(message, "features")) object.features = $root.google.protobuf.FeatureSet.toObject(message.features, options, q + 1); if (message.uninterpretedOption && message.uninterpretedOption.length) { object.uninterpretedOption = []; @@ -292307,19 +237691,6 @@ export const google = $root.google = (() => { return writer; }; - /** - * Encodes the specified FieldOptions message, length delimited. Does not implicitly {@link google.protobuf.FieldOptions.verify|verify} messages. - * @function encodeDelimited - * @memberof google.protobuf.FieldOptions - * @static - * @param {google.protobuf.IFieldOptions} message FieldOptions message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - FieldOptions.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a FieldOptions message from the specified reader or buffer. * @function decode @@ -292419,133 +237790,6 @@ export const google = $root.google = (() => { return message; }; - /** - * Decodes a FieldOptions message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.protobuf.FieldOptions - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.FieldOptions} FieldOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - FieldOptions.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a FieldOptions message. - * @function verify - * @memberof google.protobuf.FieldOptions - * @static - * @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) { - if (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: - return "ctype: enum value expected"; - case 0: - case 1: - case 2: - break; - } - if (message.packed != null && message.hasOwnProperty("packed")) - if (typeof message.packed !== "boolean") - return "packed: boolean expected"; - if (message.jstype != null && message.hasOwnProperty("jstype")) - switch (message.jstype) { - default: - return "jstype: enum value expected"; - case 0: - case 1: - case 2: - break; - } - 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); - if (error) - return "uninterpretedOption." + error; - } - } - return null; - }; - /** * Creates a FieldOptions message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -292557,6 +237801,8 @@ export const google = $root.google = (() => { FieldOptions.fromObject = function fromObject(object, long) { if (object instanceof $root.google.protobuf.FieldOptions) return object; + if (!$util.isObject(object)) + throw TypeError(".google.protobuf.FieldOptions: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -292692,18 +237938,18 @@ export const google = $root.google = (() => { 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") + if (!$util.isObject(object.editionDefaults[i])) 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") + if (!$util.isObject(object.features)) 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") + if (!$util.isObject(object.featureSupport)) throw TypeError(".google.protobuf.FieldOptions.featureSupport: object expected"); message.featureSupport = $root.google.protobuf.FieldOptions.FeatureSupport.fromObject(object.featureSupport, long + 1); } @@ -292712,7 +237958,7 @@ export const google = $root.google = (() => { throw TypeError(".google.protobuf.FieldOptions.uninterpretedOption: array expected"); message.uninterpretedOption = []; for (let i = 0; i < object.uninterpretedOption.length; ++i) { - if (typeof object.uninterpretedOption[i] !== "object") + if (!$util.isObject(object.uninterpretedOption[i])) throw TypeError(".google.protobuf.FieldOptions.uninterpretedOption: object expected"); message.uninterpretedOption[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpretedOption[i], long + 1); } @@ -292755,23 +238001,23 @@ export const google = $root.google = (() => { object.features = null; object.featureSupport = null; } - if (message.ctype != null && message.hasOwnProperty("ctype")) + if (message.ctype != null && Object.hasOwnProperty.call(message, "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; - if (message.packed != null && message.hasOwnProperty("packed")) + if (message.packed != null && Object.hasOwnProperty.call(message, "packed")) object.packed = message.packed; - if (message.deprecated != null && message.hasOwnProperty("deprecated")) + if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated")) object.deprecated = message.deprecated; - if (message.lazy != null && message.hasOwnProperty("lazy")) + if (message.lazy != null && Object.hasOwnProperty.call(message, "lazy")) object.lazy = message.lazy; - if (message.jstype != null && message.hasOwnProperty("jstype")) + if (message.jstype != null && Object.hasOwnProperty.call(message, "jstype")) 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")) + if (message.weak != null && Object.hasOwnProperty.call(message, "weak")) object.weak = message.weak; - if (message.unverifiedLazy != null && message.hasOwnProperty("unverifiedLazy")) + if (message.unverifiedLazy != null && Object.hasOwnProperty.call(message, "unverifiedLazy")) object.unverifiedLazy = message.unverifiedLazy; - if (message.debugRedact != null && message.hasOwnProperty("debugRedact")) + if (message.debugRedact != null && Object.hasOwnProperty.call(message, "debugRedact")) object.debugRedact = message.debugRedact; - if (message.retention != null && message.hasOwnProperty("retention")) + if (message.retention != null && Object.hasOwnProperty.call(message, "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 = []; @@ -292783,9 +238029,9 @@ export const google = $root.google = (() => { 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")) + if (message.features != null && Object.hasOwnProperty.call(message, "features")) object.features = $root.google.protobuf.FeatureSet.toObject(message.features, options, q + 1); - if (message.featureSupport != null && message.hasOwnProperty("featureSupport")) + if (message.featureSupport != null && Object.hasOwnProperty.call(message, "featureSupport")) object.featureSupport = $root.google.protobuf.FieldOptions.FeatureSupport.toObject(message.featureSupport, options, q + 1); if (message.uninterpretedOption && message.uninterpretedOption.length) { object.uninterpretedOption = []; @@ -292975,19 +238221,6 @@ export const google = $root.google = (() => { 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 @@ -293028,61 +238261,6 @@ export const google = $root.google = (() => { 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 @@ -293094,6 +238272,8 @@ export const google = $root.google = (() => { EditionDefault.fromObject = function fromObject(object, long) { if (object instanceof $root.google.protobuf.FieldOptions.EditionDefault) return object; + if (!$util.isObject(object)) + throw TypeError(".google.protobuf.FieldOptions.EditionDefault: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -293181,9 +238361,9 @@ export const google = $root.google = (() => { object.value = ""; object.edition = options.enums === String ? "EDITION_UNKNOWN" : 0; } - if (message.value != null && message.hasOwnProperty("value")) + if (message.value != null && Object.hasOwnProperty.call(message, "value")) object.value = message.value; - if (message.edition != null && message.hasOwnProperty("edition")) + if (message.edition != null && Object.hasOwnProperty.call(message, "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; }; @@ -293315,19 +238495,6 @@ export const google = $root.google = (() => { 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 @@ -293376,97 +238543,6 @@ export const google = $root.google = (() => { 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 @@ -293478,6 +238554,8 @@ export const google = $root.google = (() => { FeatureSupport.fromObject = function fromObject(object, long) { if (object instanceof $root.google.protobuf.FieldOptions.FeatureSupport) return object; + if (!$util.isObject(object)) + throw TypeError(".google.protobuf.FieldOptions.FeatureSupport: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -293679,13 +238757,13 @@ export const google = $root.google = (() => { object.deprecationWarning = ""; object.editionRemoved = options.enums === String ? "EDITION_UNKNOWN" : 0; } - if (message.editionIntroduced != null && message.hasOwnProperty("editionIntroduced")) + if (message.editionIntroduced != null && Object.hasOwnProperty.call(message, "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")) + if (message.editionDeprecated != null && Object.hasOwnProperty.call(message, "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")) + if (message.deprecationWarning != null && Object.hasOwnProperty.call(message, "deprecationWarning")) object.deprecationWarning = message.deprecationWarning; - if (message.editionRemoved != null && message.hasOwnProperty("editionRemoved")) + if (message.editionRemoved != null && Object.hasOwnProperty.call(message, "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; }; @@ -293800,19 +238878,6 @@ export const google = $root.google = (() => { return writer; }; - /** - * Encodes the specified OneofOptions message, length delimited. Does not implicitly {@link google.protobuf.OneofOptions.verify|verify} messages. - * @function encodeDelimited - * @memberof google.protobuf.OneofOptions - * @static - * @param {google.protobuf.IOneofOptions} message OneofOptions message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - OneofOptions.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes an OneofOptions message from the specified reader or buffer. * @function decode @@ -293855,54 +238920,6 @@ export const google = $root.google = (() => { return message; }; - /** - * Decodes an OneofOptions message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.protobuf.OneofOptions - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.OneofOptions} OneofOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - OneofOptions.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an OneofOptions message. - * @function verify - * @memberof google.protobuf.OneofOptions - * @static - * @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) { - if (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); - if (error) - return "uninterpretedOption." + error; - } - } - return null; - }; - /** * Creates an OneofOptions message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -293914,13 +238931,15 @@ export const google = $root.google = (() => { OneofOptions.fromObject = function fromObject(object, long) { if (object instanceof $root.google.protobuf.OneofOptions) return object; + if (!$util.isObject(object)) + throw TypeError(".google.protobuf.OneofOptions: object expected"); 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") + if (!$util.isObject(object.features)) throw TypeError(".google.protobuf.OneofOptions.features: object expected"); message.features = $root.google.protobuf.FeatureSet.fromObject(object.features, long + 1); } @@ -293929,7 +238948,7 @@ export const google = $root.google = (() => { throw TypeError(".google.protobuf.OneofOptions.uninterpretedOption: array expected"); message.uninterpretedOption = []; for (let i = 0; i < object.uninterpretedOption.length; ++i) { - if (typeof object.uninterpretedOption[i] !== "object") + if (!$util.isObject(object.uninterpretedOption[i])) throw TypeError(".google.protobuf.OneofOptions.uninterpretedOption: object expected"); message.uninterpretedOption[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpretedOption[i], long + 1); } @@ -293958,7 +238977,7 @@ export const google = $root.google = (() => { object.uninterpretedOption = []; if (options.defaults) object.features = null; - if (message.features != null && message.hasOwnProperty("features")) + if (message.features != null && Object.hasOwnProperty.call(message, "features")) object.features = $root.google.protobuf.FeatureSet.toObject(message.features, options, q + 1); if (message.uninterpretedOption && message.uninterpretedOption.length) { object.uninterpretedOption = []; @@ -294108,19 +239127,6 @@ export const google = $root.google = (() => { return writer; }; - /** - * Encodes the specified EnumOptions message, length delimited. Does not implicitly {@link google.protobuf.EnumOptions.verify|verify} messages. - * @function encodeDelimited - * @memberof google.protobuf.EnumOptions - * @static - * @param {google.protobuf.IEnumOptions} message EnumOptions message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - EnumOptions.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes an EnumOptions message from the specified reader or buffer. * @function decode @@ -294175,63 +239181,6 @@ export const google = $root.google = (() => { return message; }; - /** - * Decodes an EnumOptions message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.protobuf.EnumOptions - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.EnumOptions} EnumOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - EnumOptions.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an EnumOptions message. - * @function verify - * @memberof google.protobuf.EnumOptions - * @static - * @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) { - if (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); - if (error) - return "uninterpretedOption." + error; - } - } - return null; - }; - /** * Creates an EnumOptions message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -294243,6 +239192,8 @@ export const google = $root.google = (() => { EnumOptions.fromObject = function fromObject(object, long) { if (object instanceof $root.google.protobuf.EnumOptions) return object; + if (!$util.isObject(object)) + throw TypeError(".google.protobuf.EnumOptions: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -294255,7 +239206,7 @@ export const google = $root.google = (() => { if (object.deprecatedLegacyJsonFieldConflicts != null) message.deprecatedLegacyJsonFieldConflicts = Boolean(object.deprecatedLegacyJsonFieldConflicts); if (object.features != null) { - if (typeof object.features !== "object") + if (!$util.isObject(object.features)) throw TypeError(".google.protobuf.EnumOptions.features: object expected"); message.features = $root.google.protobuf.FeatureSet.fromObject(object.features, long + 1); } @@ -294264,7 +239215,7 @@ export const google = $root.google = (() => { throw TypeError(".google.protobuf.EnumOptions.uninterpretedOption: array expected"); message.uninterpretedOption = []; for (let i = 0; i < object.uninterpretedOption.length; ++i) { - if (typeof object.uninterpretedOption[i] !== "object") + if (!$util.isObject(object.uninterpretedOption[i])) throw TypeError(".google.protobuf.EnumOptions.uninterpretedOption: object expected"); message.uninterpretedOption[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpretedOption[i], long + 1); } @@ -294297,13 +239248,13 @@ export const google = $root.google = (() => { object.deprecatedLegacyJsonFieldConflicts = false; object.features = null; } - if (message.allowAlias != null && message.hasOwnProperty("allowAlias")) + if (message.allowAlias != null && Object.hasOwnProperty.call(message, "allowAlias")) object.allowAlias = message.allowAlias; - if (message.deprecated != null && message.hasOwnProperty("deprecated")) + if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated")) object.deprecated = message.deprecated; - if (message.deprecatedLegacyJsonFieldConflicts != null && message.hasOwnProperty("deprecatedLegacyJsonFieldConflicts")) + if (message.deprecatedLegacyJsonFieldConflicts != null && Object.hasOwnProperty.call(message, "deprecatedLegacyJsonFieldConflicts")) object.deprecatedLegacyJsonFieldConflicts = message.deprecatedLegacyJsonFieldConflicts; - if (message.features != null && message.hasOwnProperty("features")) + if (message.features != null && Object.hasOwnProperty.call(message, "features")) object.features = $root.google.protobuf.FeatureSet.toObject(message.features, options, q + 1); if (message.uninterpretedOption && message.uninterpretedOption.length) { object.uninterpretedOption = []; @@ -294453,19 +239404,6 @@ export const google = $root.google = (() => { return writer; }; - /** - * Encodes the specified EnumValueOptions message, length delimited. Does not implicitly {@link google.protobuf.EnumValueOptions.verify|verify} messages. - * @function encodeDelimited - * @memberof google.protobuf.EnumValueOptions - * @static - * @param {google.protobuf.IEnumValueOptions} message EnumValueOptions message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - EnumValueOptions.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes an EnumValueOptions message from the specified reader or buffer. * @function decode @@ -294520,65 +239458,6 @@ export const google = $root.google = (() => { return message; }; - /** - * Decodes an EnumValueOptions message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.protobuf.EnumValueOptions - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.EnumValueOptions} EnumValueOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - EnumValueOptions.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an EnumValueOptions message. - * @function verify - * @memberof google.protobuf.EnumValueOptions - * @static - * @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) { - if (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); - if (error) - return "uninterpretedOption." + error; - } - } - return null; - }; - /** * Creates an EnumValueOptions message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -294590,6 +239469,8 @@ export const google = $root.google = (() => { EnumValueOptions.fromObject = function fromObject(object, long) { if (object instanceof $root.google.protobuf.EnumValueOptions) return object; + if (!$util.isObject(object)) + throw TypeError(".google.protobuf.EnumValueOptions: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -294598,14 +239479,14 @@ export const google = $root.google = (() => { if (object.deprecated != null) message.deprecated = Boolean(object.deprecated); if (object.features != null) { - if (typeof object.features !== "object") + if (!$util.isObject(object.features)) 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") + if (!$util.isObject(object.featureSupport)) throw TypeError(".google.protobuf.EnumValueOptions.featureSupport: object expected"); message.featureSupport = $root.google.protobuf.FieldOptions.FeatureSupport.fromObject(object.featureSupport, long + 1); } @@ -294614,7 +239495,7 @@ export const google = $root.google = (() => { throw TypeError(".google.protobuf.EnumValueOptions.uninterpretedOption: array expected"); message.uninterpretedOption = []; for (let i = 0; i < object.uninterpretedOption.length; ++i) { - if (typeof object.uninterpretedOption[i] !== "object") + if (!$util.isObject(object.uninterpretedOption[i])) throw TypeError(".google.protobuf.EnumValueOptions.uninterpretedOption: object expected"); message.uninterpretedOption[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpretedOption[i], long + 1); } @@ -294647,13 +239528,13 @@ export const google = $root.google = (() => { object.debugRedact = false; object.featureSupport = null; } - if (message.deprecated != null && message.hasOwnProperty("deprecated")) + if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated")) object.deprecated = message.deprecated; - if (message.features != null && message.hasOwnProperty("features")) + if (message.features != null && Object.hasOwnProperty.call(message, "features")) object.features = $root.google.protobuf.FeatureSet.toObject(message.features, options, q + 1); - if (message.debugRedact != null && message.hasOwnProperty("debugRedact")) + if (message.debugRedact != null && Object.hasOwnProperty.call(message, "debugRedact")) object.debugRedact = message.debugRedact; - if (message.featureSupport != null && message.hasOwnProperty("featureSupport")) + if (message.featureSupport != null && Object.hasOwnProperty.call(message, "featureSupport")) object.featureSupport = $root.google.protobuf.FieldOptions.FeatureSupport.toObject(message.featureSupport, options, q + 1); if (message.uninterpretedOption && message.uninterpretedOption.length) { object.uninterpretedOption = []; @@ -294781,19 +239662,6 @@ export const google = $root.google = (() => { return writer; }; - /** - * Encodes the specified ServiceOptions message, length delimited. Does not implicitly {@link google.protobuf.ServiceOptions.verify|verify} messages. - * @function encodeDelimited - * @memberof google.protobuf.ServiceOptions - * @static - * @param {google.protobuf.IServiceOptions} message ServiceOptions message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ServiceOptions.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a ServiceOptions message from the specified reader or buffer. * @function decode @@ -294840,57 +239708,6 @@ export const google = $root.google = (() => { return message; }; - /** - * Decodes a ServiceOptions message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.protobuf.ServiceOptions - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.ServiceOptions} ServiceOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ServiceOptions.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a ServiceOptions message. - * @function verify - * @memberof google.protobuf.ServiceOptions - * @static - * @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) { - if (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"; - 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; - } - } - return null; - }; - /** * Creates a ServiceOptions message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -294902,13 +239719,15 @@ export const google = $root.google = (() => { ServiceOptions.fromObject = function fromObject(object, long) { if (object instanceof $root.google.protobuf.ServiceOptions) return object; + if (!$util.isObject(object)) + throw TypeError(".google.protobuf.ServiceOptions: object expected"); 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") + if (!$util.isObject(object.features)) throw TypeError(".google.protobuf.ServiceOptions.features: object expected"); message.features = $root.google.protobuf.FeatureSet.fromObject(object.features, long + 1); } @@ -294919,7 +239738,7 @@ export const google = $root.google = (() => { throw TypeError(".google.protobuf.ServiceOptions.uninterpretedOption: array expected"); message.uninterpretedOption = []; for (let i = 0; i < object.uninterpretedOption.length; ++i) { - if (typeof object.uninterpretedOption[i] !== "object") + if (!$util.isObject(object.uninterpretedOption[i])) throw TypeError(".google.protobuf.ServiceOptions.uninterpretedOption: object expected"); message.uninterpretedOption[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpretedOption[i], long + 1); } @@ -294950,9 +239769,9 @@ export const google = $root.google = (() => { object.deprecated = false; object.features = null; } - if (message.deprecated != null && message.hasOwnProperty("deprecated")) + if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated")) object.deprecated = message.deprecated; - if (message.features != null && message.hasOwnProperty("features")) + if (message.features != null && Object.hasOwnProperty.call(message, "features")) object.features = $root.google.protobuf.FeatureSet.toObject(message.features, options, q + 1); if (message.uninterpretedOption && message.uninterpretedOption.length) { object.uninterpretedOption = []; @@ -295102,19 +239921,6 @@ export const google = $root.google = (() => { return writer; }; - /** - * Encodes the specified MethodOptions message, length delimited. Does not implicitly {@link google.protobuf.MethodOptions.verify|verify} messages. - * @function encodeDelimited - * @memberof google.protobuf.MethodOptions - * @static - * @param {google.protobuf.IMethodOptions} message MethodOptions message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MethodOptions.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a MethodOptions message from the specified reader or buffer. * @function decode @@ -295169,71 +239975,6 @@ export const google = $root.google = (() => { return message; }; - /** - * Decodes a MethodOptions message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.protobuf.MethodOptions - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.MethodOptions} MethodOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MethodOptions.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a MethodOptions message. - * @function verify - * @memberof google.protobuf.MethodOptions - * @static - * @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) { - if (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); - 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); - if (error) - return ".google.api.http." + error; - } - return null; - }; - /** * Creates a MethodOptions message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -295245,6 +239986,8 @@ export const google = $root.google = (() => { MethodOptions.fromObject = function fromObject(object, long) { if (object instanceof $root.google.protobuf.MethodOptions) return object; + if (!$util.isObject(object)) + throw TypeError(".google.protobuf.MethodOptions: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -295273,7 +240016,7 @@ export const google = $root.google = (() => { break; } if (object.features != null) { - if (typeof object.features !== "object") + if (!$util.isObject(object.features)) throw TypeError(".google.protobuf.MethodOptions.features: object expected"); message.features = $root.google.protobuf.FeatureSet.fromObject(object.features, long + 1); } @@ -295282,13 +240025,13 @@ export const google = $root.google = (() => { throw TypeError(".google.protobuf.MethodOptions.uninterpretedOption: array expected"); message.uninterpretedOption = []; for (let i = 0; i < object.uninterpretedOption.length; ++i) { - if (typeof object.uninterpretedOption[i] !== "object") + if (!$util.isObject(object.uninterpretedOption[i])) throw TypeError(".google.protobuf.MethodOptions.uninterpretedOption: object expected"); message.uninterpretedOption[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpretedOption[i], long + 1); } } if (object[".google.api.http"] != null) { - if (typeof object[".google.api.http"] !== "object") + if (!$util.isObject(object[".google.api.http"])) 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); } @@ -295320,18 +240063,18 @@ export const google = $root.google = (() => { object.features = null; object[".google.api.http"] = null; } - if (message.deprecated != null && message.hasOwnProperty("deprecated")) + if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated")) object.deprecated = message.deprecated; - if (message.idempotencyLevel != null && message.hasOwnProperty("idempotencyLevel")) + if (message.idempotencyLevel != null && Object.hasOwnProperty.call(message, "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")) + if (message.features != null && Object.hasOwnProperty.call(message, "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); } - if (message[".google.api.http"] != null && message.hasOwnProperty(".google.api.http")) + if (message[".google.api.http"] != null && Object.hasOwnProperty.call(message, ".google.api.http")) object[".google.api.http"] = $root.google.api.HttpRule.toObject(message[".google.api.http"], options, q + 1); return object; }; @@ -295514,19 +240257,6 @@ export const google = $root.google = (() => { return writer; }; - /** - * Encodes the specified UninterpretedOption message, length delimited. Does not implicitly {@link google.protobuf.UninterpretedOption.verify|verify} messages. - * @function encodeDelimited - * @memberof google.protobuf.UninterpretedOption - * @static - * @param {google.protobuf.IUninterpretedOption} message UninterpretedOption message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - UninterpretedOption.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes an UninterpretedOption message from the specified reader or buffer. * @function decode @@ -295589,67 +240319,6 @@ export const google = $root.google = (() => { return message; }; - /** - * Decodes an UninterpretedOption message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.protobuf.UninterpretedOption - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.UninterpretedOption} UninterpretedOption - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - UninterpretedOption.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an UninterpretedOption message. - * @function verify - * @memberof google.protobuf.UninterpretedOption - * @static - * @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) { - if (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); - if (error) - return "name." + error; - } - } - if (message.identifierValue != null && message.hasOwnProperty("identifierValue")) - if (!$util.isString(message.identifierValue)) - return "identifierValue: string expected"; - if (message.positiveIntValue != null && message.hasOwnProperty("positiveIntValue")) - if (!$util.isInteger(message.positiveIntValue) && !(message.positiveIntValue && $util.isInteger(message.positiveIntValue.low) && $util.isInteger(message.positiveIntValue.high))) - return "positiveIntValue: integer|Long expected"; - if (message.negativeIntValue != null && message.hasOwnProperty("negativeIntValue")) - if (!$util.isInteger(message.negativeIntValue) && !(message.negativeIntValue && $util.isInteger(message.negativeIntValue.low) && $util.isInteger(message.negativeIntValue.high))) - return "negativeIntValue: integer|Long expected"; - if (message.doubleValue != null && message.hasOwnProperty("doubleValue")) - if (typeof message.doubleValue !== "number") - return "doubleValue: number expected"; - if (message.stringValue != null && message.hasOwnProperty("stringValue")) - if (!(message.stringValue && typeof message.stringValue.length === "number" || $util.isString(message.stringValue))) - return "stringValue: buffer expected"; - if (message.aggregateValue != null && message.hasOwnProperty("aggregateValue")) - if (!$util.isString(message.aggregateValue)) - return "aggregateValue: string expected"; - return null; - }; - /** * Creates an UninterpretedOption message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -295661,6 +240330,8 @@ export const google = $root.google = (() => { UninterpretedOption.fromObject = function fromObject(object, long) { if (object instanceof $root.google.protobuf.UninterpretedOption) return object; + if (!$util.isObject(object)) + throw TypeError(".google.protobuf.UninterpretedOption: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -295671,7 +240342,7 @@ export const google = $root.google = (() => { throw TypeError(".google.protobuf.UninterpretedOption.name: array expected"); message.name = []; for (let i = 0; i < object.name.length; ++i) { - if (typeof object.name[i] !== "object") + if (!$util.isObject(object.name[i])) throw TypeError(".google.protobuf.UninterpretedOption.name: object expected"); message.name[i] = $root.google.protobuf.UninterpretedOption.NamePart.fromObject(object.name[i], long + 1); } @@ -295754,27 +240425,27 @@ export const google = $root.google = (() => { for (let j = 0; j < message.name.length; ++j) object.name[j] = $root.google.protobuf.UninterpretedOption.NamePart.toObject(message.name[j], options, q + 1); } - if (message.identifierValue != null && message.hasOwnProperty("identifierValue")) + if (message.identifierValue != null && Object.hasOwnProperty.call(message, "identifierValue")) object.identifierValue = message.identifierValue; - if (message.positiveIntValue != null && message.hasOwnProperty("positiveIntValue")) + if (message.positiveIntValue != null && Object.hasOwnProperty.call(message, "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") 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 (message.negativeIntValue != null && Object.hasOwnProperty.call(message, "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") 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; - if (message.doubleValue != null && message.hasOwnProperty("doubleValue")) + if (message.doubleValue != null && Object.hasOwnProperty.call(message, "doubleValue")) object.doubleValue = options.json && !isFinite(message.doubleValue) ? String(message.doubleValue) : message.doubleValue; - if (message.stringValue != null && message.hasOwnProperty("stringValue")) + if (message.stringValue != null && Object.hasOwnProperty.call(message, "stringValue")) object.stringValue = options.bytes === String ? $util.base64.encode(message.stringValue, 0, message.stringValue.length) : options.bytes === Array ? Array.prototype.slice.call(message.stringValue) : message.stringValue; - if (message.aggregateValue != null && message.hasOwnProperty("aggregateValue")) + if (message.aggregateValue != null && Object.hasOwnProperty.call(message, "aggregateValue")) object.aggregateValue = message.aggregateValue; return object; }; @@ -295879,19 +240550,6 @@ export const google = $root.google = (() => { return writer; }; - /** - * Encodes the specified NamePart message, length delimited. Does not implicitly {@link google.protobuf.UninterpretedOption.NamePart.verify|verify} messages. - * @function encodeDelimited - * @memberof google.protobuf.UninterpretedOption.NamePart - * @static - * @param {google.protobuf.UninterpretedOption.INamePart} message NamePart message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - NamePart.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a NamePart message from the specified reader or buffer. * @function decode @@ -295929,51 +240587,13 @@ export const google = $root.google = (() => { break; } } - if (!message.hasOwnProperty("namePart")) + if (!Object.hasOwnProperty.call(message, "namePart")) throw $util.ProtocolError("missing required 'namePart'", { instance: message }); - if (!message.hasOwnProperty("isExtension")) + if (!Object.hasOwnProperty.call(message, "isExtension")) throw $util.ProtocolError("missing required 'isExtension'", { instance: message }); return message; }; - /** - * Decodes a NamePart message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.protobuf.UninterpretedOption.NamePart - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.UninterpretedOption.NamePart} NamePart - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - NamePart.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a NamePart message. - * @function verify - * @memberof google.protobuf.UninterpretedOption.NamePart - * @static - * @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) { - 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") - return "isExtension: boolean expected"; - return null; - }; - /** * Creates a NamePart message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -295985,6 +240605,8 @@ export const google = $root.google = (() => { NamePart.fromObject = function fromObject(object, long) { if (object instanceof $root.google.protobuf.UninterpretedOption.NamePart) return object; + if (!$util.isObject(object)) + throw TypeError(".google.protobuf.UninterpretedOption.NamePart: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -296018,9 +240640,9 @@ export const google = $root.google = (() => { object.namePart = ""; object.isExtension = false; } - if (message.namePart != null && message.hasOwnProperty("namePart")) + if (message.namePart != null && Object.hasOwnProperty.call(message, "namePart")) object.namePart = message.namePart; - if (message.isExtension != null && message.hasOwnProperty("isExtension")) + if (message.isExtension != null && Object.hasOwnProperty.call(message, "isExtension")) object.isExtension = message.isExtension; return object; }; @@ -296199,19 +240821,6 @@ export const google = $root.google = (() => { 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 @@ -296276,115 +240885,6 @@ export const google = $root.google = (() => { 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 @@ -296396,6 +240896,8 @@ export const google = $root.google = (() => { FeatureSet.fromObject = function fromObject(object, long) { if (object instanceof $root.google.protobuf.FeatureSet) return object; + if (!$util.isObject(object)) + throw TypeError(".google.protobuf.FeatureSet: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -296603,21 +241105,21 @@ export const google = $root.google = (() => { 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")) + if (message.fieldPresence != null && Object.hasOwnProperty.call(message, "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")) + if (message.enumType != null && Object.hasOwnProperty.call(message, "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")) + if (message.repeatedFieldEncoding != null && Object.hasOwnProperty.call(message, "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")) + if (message.utf8Validation != null && Object.hasOwnProperty.call(message, "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")) + if (message.messageEncoding != null && Object.hasOwnProperty.call(message, "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")) + if (message.jsonFormat != null && Object.hasOwnProperty.call(message, "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")) + if (message.enforceNamingStyle != null && Object.hasOwnProperty.call(message, "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")) + if (message.defaultSymbolVisibility != null && Object.hasOwnProperty.call(message, "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; }; @@ -296816,19 +241318,6 @@ export const google = $root.google = (() => { 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 @@ -296861,40 +241350,6 @@ export const google = $root.google = (() => { 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 @@ -296906,10 +241361,6 @@ export const google = $root.google = (() => { 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(); }; @@ -297067,19 +241518,6 @@ export const google = $root.google = (() => { 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 @@ -297126,85 +241564,6 @@ export const google = $root.google = (() => { 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 @@ -297216,6 +241575,8 @@ export const google = $root.google = (() => { FeatureSetDefaults.fromObject = function fromObject(object, long) { if (object instanceof $root.google.protobuf.FeatureSetDefaults) return object; + if (!$util.isObject(object)) + throw TypeError(".google.protobuf.FeatureSetDefaults: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -297226,7 +241587,7 @@ export const google = $root.google = (() => { 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") + if (!$util.isObject(object.defaults[i])) throw TypeError(".google.protobuf.FeatureSetDefaults.defaults: object expected"); message.defaults[i] = $root.google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.fromObject(object.defaults[i], long + 1); } @@ -297374,9 +241735,9 @@ export const google = $root.google = (() => { 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")) + if (message.minimumEdition != null && Object.hasOwnProperty.call(message, "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")) + if (message.maximumEdition != null && Object.hasOwnProperty.call(message, "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; }; @@ -297494,19 +241855,6 @@ export const google = $root.google = (() => { 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 @@ -297551,68 +241899,6 @@ export const google = $root.google = (() => { 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 @@ -297624,6 +241910,8 @@ export const google = $root.google = (() => { FeatureSetEditionDefault.fromObject = function fromObject(object, long) { if (object instanceof $root.google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault) return object; + if (!$util.isObject(object)) + throw TypeError(".google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -297686,12 +241974,12 @@ export const google = $root.google = (() => { break; } if (object.overridableFeatures != null) { - if (typeof object.overridableFeatures !== "object") + if (!$util.isObject(object.overridableFeatures)) 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") + if (!$util.isObject(object.fixedFeatures)) throw TypeError(".google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.fixedFeatures: object expected"); message.fixedFeatures = $root.google.protobuf.FeatureSet.fromObject(object.fixedFeatures, long + 1); } @@ -297720,11 +242008,11 @@ export const google = $root.google = (() => { object.overridableFeatures = null; object.fixedFeatures = null; } - if (message.edition != null && message.hasOwnProperty("edition")) + if (message.edition != null && Object.hasOwnProperty.call(message, "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")) + if (message.overridableFeatures != null && Object.hasOwnProperty.call(message, "overridableFeatures")) object.overridableFeatures = $root.google.protobuf.FeatureSet.toObject(message.overridableFeatures, options, q + 1); - if (message.fixedFeatures != null && message.hasOwnProperty("fixedFeatures")) + if (message.fixedFeatures != null && Object.hasOwnProperty.call(message, "fixedFeatures")) object.fixedFeatures = $root.google.protobuf.FeatureSet.toObject(message.fixedFeatures, options, q + 1); return object; }; @@ -297828,19 +242116,6 @@ export const google = $root.google = (() => { return writer; }; - /** - * Encodes the specified SourceCodeInfo message, length delimited. Does not implicitly {@link google.protobuf.SourceCodeInfo.verify|verify} messages. - * @function encodeDelimited - * @memberof google.protobuf.SourceCodeInfo - * @static - * @param {google.protobuf.ISourceCodeInfo} message SourceCodeInfo message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SourceCodeInfo.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a SourceCodeInfo message from the specified reader or buffer. * @function decode @@ -297879,49 +242154,6 @@ export const google = $root.google = (() => { return message; }; - /** - * Decodes a SourceCodeInfo message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.protobuf.SourceCodeInfo - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.SourceCodeInfo} SourceCodeInfo - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SourceCodeInfo.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a SourceCodeInfo message. - * @function verify - * @memberof google.protobuf.SourceCodeInfo - * @static - * @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) { - if (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); - if (error) - return "location." + error; - } - } - return null; - }; - /** * Creates a SourceCodeInfo message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -297933,6 +242165,8 @@ export const google = $root.google = (() => { SourceCodeInfo.fromObject = function fromObject(object, long) { if (object instanceof $root.google.protobuf.SourceCodeInfo) return object; + if (!$util.isObject(object)) + throw TypeError(".google.protobuf.SourceCodeInfo: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -297943,7 +242177,7 @@ export const google = $root.google = (() => { throw TypeError(".google.protobuf.SourceCodeInfo.location: array expected"); message.location = []; for (let i = 0; i < object.location.length; ++i) { - if (typeof object.location[i] !== "object") + if (!$util.isObject(object.location[i])) throw TypeError(".google.protobuf.SourceCodeInfo.location: object expected"); message.location[i] = $root.google.protobuf.SourceCodeInfo.Location.fromObject(object.location[i], long + 1); } @@ -298125,19 +242359,6 @@ export const google = $root.google = (() => { return writer; }; - /** - * Encodes the specified Location message, length delimited. Does not implicitly {@link google.protobuf.SourceCodeInfo.Location.verify|verify} messages. - * @function encodeDelimited - * @memberof google.protobuf.SourceCodeInfo.Location - * @static - * @param {google.protobuf.SourceCodeInfo.ILocation} message Location message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Location.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a Location message from the specified reader or buffer. * @function decode @@ -298206,67 +242427,6 @@ export const google = $root.google = (() => { return message; }; - /** - * Decodes a Location message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.protobuf.SourceCodeInfo.Location - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.SourceCodeInfo.Location} Location - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Location.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a Location message. - * @function verify - * @memberof google.protobuf.SourceCodeInfo.Location - * @static - * @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) { - if (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"; - for (let i = 0; i < message.path.length; ++i) - if (!$util.isInteger(message.path[i])) - return "path: integer[] expected"; - } - if (message.span != null && message.hasOwnProperty("span")) { - if (!Array.isArray(message.span)) - return "span: array expected"; - for (let i = 0; i < message.span.length; ++i) - if (!$util.isInteger(message.span[i])) - return "span: integer[] expected"; - } - if (message.leadingComments != null && message.hasOwnProperty("leadingComments")) - if (!$util.isString(message.leadingComments)) - return "leadingComments: string expected"; - if (message.trailingComments != null && message.hasOwnProperty("trailingComments")) - if (!$util.isString(message.trailingComments)) - return "trailingComments: string expected"; - if (message.leadingDetachedComments != null && message.hasOwnProperty("leadingDetachedComments")) { - if (!Array.isArray(message.leadingDetachedComments)) - return "leadingDetachedComments: array expected"; - for (let i = 0; i < message.leadingDetachedComments.length; ++i) - if (!$util.isString(message.leadingDetachedComments[i])) - return "leadingDetachedComments: string[] expected"; - } - return null; - }; - /** * Creates a Location message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -298278,6 +242438,8 @@ export const google = $root.google = (() => { Location.fromObject = function fromObject(object, long) { if (object instanceof $root.google.protobuf.SourceCodeInfo.Location) return object; + if (!$util.isObject(object)) + throw TypeError(".google.protobuf.SourceCodeInfo.Location: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -298347,9 +242509,9 @@ export const google = $root.google = (() => { for (let j = 0; j < message.span.length; ++j) object.span[j] = message.span[j]; } - if (message.leadingComments != null && message.hasOwnProperty("leadingComments")) + if (message.leadingComments != null && Object.hasOwnProperty.call(message, "leadingComments")) object.leadingComments = message.leadingComments; - if (message.trailingComments != null && message.hasOwnProperty("trailingComments")) + if (message.trailingComments != null && Object.hasOwnProperty.call(message, "trailingComments")) object.trailingComments = message.trailingComments; if (message.leadingDetachedComments && message.leadingDetachedComments.length) { object.leadingDetachedComments = []; @@ -298458,19 +242620,6 @@ export const google = $root.google = (() => { return writer; }; - /** - * Encodes the specified GeneratedCodeInfo message, length delimited. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.verify|verify} messages. - * @function encodeDelimited - * @memberof google.protobuf.GeneratedCodeInfo - * @static - * @param {google.protobuf.IGeneratedCodeInfo} message GeneratedCodeInfo message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GeneratedCodeInfo.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a GeneratedCodeInfo message from the specified reader or buffer. * @function decode @@ -298509,49 +242658,6 @@ export const google = $root.google = (() => { return message; }; - /** - * Decodes a GeneratedCodeInfo message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.protobuf.GeneratedCodeInfo - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.GeneratedCodeInfo} GeneratedCodeInfo - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GeneratedCodeInfo.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a GeneratedCodeInfo message. - * @function verify - * @memberof google.protobuf.GeneratedCodeInfo - * @static - * @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) { - if (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); - if (error) - return "annotation." + error; - } - } - return null; - }; - /** * Creates a GeneratedCodeInfo message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -298563,6 +242669,8 @@ export const google = $root.google = (() => { GeneratedCodeInfo.fromObject = function fromObject(object, long) { if (object instanceof $root.google.protobuf.GeneratedCodeInfo) return object; + if (!$util.isObject(object)) + throw TypeError(".google.protobuf.GeneratedCodeInfo: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -298573,7 +242681,7 @@ export const google = $root.google = (() => { throw TypeError(".google.protobuf.GeneratedCodeInfo.annotation: array expected"); message.annotation = []; for (let i = 0; i < object.annotation.length; ++i) { - if (typeof object.annotation[i] !== "object") + if (!$util.isObject(object.annotation[i])) throw TypeError(".google.protobuf.GeneratedCodeInfo.annotation: object expected"); message.annotation[i] = $root.google.protobuf.GeneratedCodeInfo.Annotation.fromObject(object.annotation[i], long + 1); } @@ -298748,19 +242856,6 @@ export const google = $root.google = (() => { return writer; }; - /** - * Encodes the specified Annotation message, length delimited. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.Annotation.verify|verify} messages. - * @function encodeDelimited - * @memberof google.protobuf.GeneratedCodeInfo.Annotation - * @static - * @param {google.protobuf.GeneratedCodeInfo.IAnnotation} message Annotation message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Annotation.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes an Annotation message from the specified reader or buffer. * @function decode @@ -298820,65 +242915,6 @@ export const google = $root.google = (() => { return message; }; - /** - * Decodes an Annotation message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.protobuf.GeneratedCodeInfo.Annotation - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.GeneratedCodeInfo.Annotation} Annotation - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Annotation.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an Annotation message. - * @function verify - * @memberof google.protobuf.GeneratedCodeInfo.Annotation - * @static - * @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) { - if (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"; - for (let i = 0; i < message.path.length; ++i) - if (!$util.isInteger(message.path[i])) - return "path: integer[] expected"; - } - if (message.sourceFile != null && message.hasOwnProperty("sourceFile")) - if (!$util.isString(message.sourceFile)) - return "sourceFile: string expected"; - if (message.begin != null && message.hasOwnProperty("begin")) - if (!$util.isInteger(message.begin)) - return "begin: integer expected"; - 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; - }; - /** * Creates an Annotation message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -298890,6 +242926,8 @@ export const google = $root.google = (() => { Annotation.fromObject = function fromObject(object, long) { if (object instanceof $root.google.protobuf.GeneratedCodeInfo.Annotation) return object; + if (!$util.isObject(object)) + throw TypeError(".google.protobuf.GeneratedCodeInfo.Annotation: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -298961,13 +242999,13 @@ export const google = $root.google = (() => { for (let j = 0; j < message.path.length; ++j) object.path[j] = message.path[j]; } - if (message.sourceFile != null && message.hasOwnProperty("sourceFile")) + if (message.sourceFile != null && Object.hasOwnProperty.call(message, "sourceFile")) object.sourceFile = message.sourceFile; - if (message.begin != null && message.hasOwnProperty("begin")) + if (message.begin != null && Object.hasOwnProperty.call(message, "begin")) object.begin = message.begin; - if (message.end != null && message.hasOwnProperty("end")) + if (message.end != null && Object.hasOwnProperty.call(message, "end")) object.end = message.end; - if (message.semantic != null && message.hasOwnProperty("semantic")) + if (message.semantic != null && Object.hasOwnProperty.call(message, "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; }; @@ -299105,19 +243143,6 @@ export const google = $root.google = (() => { return writer; }; - /** - * Encodes the specified Struct message, length delimited. Does not implicitly {@link google.protobuf.Struct.verify|verify} messages. - * @function encodeDelimited - * @memberof google.protobuf.Struct - * @static - * @param {google.protobuf.IStruct} message Struct message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Struct.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a Struct message from the specified reader or buffer. * @function decode @@ -299175,50 +243200,6 @@ export const google = $root.google = (() => { return message; }; - /** - * Decodes a Struct message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.protobuf.Struct - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.Struct} Struct - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Struct.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a Struct message. - * @function verify - * @memberof google.protobuf.Struct - * @static - * @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) { - if (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); - if (error) - return "fields." + error; - } - } - return null; - }; - /** * Creates a Struct message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -299230,19 +243211,21 @@ export const google = $root.google = (() => { Struct.fromObject = function fromObject(object, long) { if (object instanceof $root.google.protobuf.Struct) return object; + if (!$util.isObject(object)) + throw TypeError(".google.protobuf.Struct: object expected"); 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") + if (!$util.isObject(object.fields)) 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") + if (!$util.isObject(object.fields[keys[i]])) throw TypeError(".google.protobuf.Struct.fields: object expected"); message.fields[keys[i]] = $root.google.protobuf.Value.fromObject(object.fields[keys[i]], long + 1); } @@ -299444,19 +243427,6 @@ export const google = $root.google = (() => { return writer; }; - /** - * Encodes the specified Value message, length delimited. Does not implicitly {@link google.protobuf.Value.verify|verify} messages. - * @function encodeDelimited - * @memberof google.protobuf.Value - * @static - * @param {google.protobuf.IValue} message Value message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Value.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a Value message from the specified reader or buffer. * @function decode @@ -299513,91 +243483,6 @@ export const google = $root.google = (() => { return message; }; - /** - * Decodes a Value message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.protobuf.Value - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.Value} Value - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Value.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a Value message. - * @function verify - * @memberof google.protobuf.Value - * @static - * @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) { - 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; - switch (message.nullValue) { - default: - return "nullValue: enum value expected"; - case 0: - break; - } - } - if (message.numberValue != null && message.hasOwnProperty("numberValue")) { - if (properties.kind === 1) - return "kind: multiple values"; - properties.kind = 1; - if (typeof message.numberValue !== "number") - return "numberValue: number expected"; - } - if (message.stringValue != null && message.hasOwnProperty("stringValue")) { - if (properties.kind === 1) - return "kind: multiple values"; - properties.kind = 1; - if (!$util.isString(message.stringValue)) - return "stringValue: string expected"; - } - if (message.boolValue != null && message.hasOwnProperty("boolValue")) { - if (properties.kind === 1) - return "kind: multiple values"; - properties.kind = 1; - if (typeof message.boolValue !== "boolean") - return "boolValue: boolean expected"; - } - if (message.structValue != null && message.hasOwnProperty("structValue")) { - if (properties.kind === 1) - return "kind: multiple values"; - properties.kind = 1; - { - let error = $root.google.protobuf.Struct.verify(message.structValue, long + 1); - if (error) - return "structValue." + error; - } - } - if (message.listValue != null && message.hasOwnProperty("listValue")) { - if (properties.kind === 1) - return "kind: multiple values"; - properties.kind = 1; - { - let error = $root.google.protobuf.ListValue.verify(message.listValue, long + 1); - if (error) - return "listValue." + error; - } - } - return null; - }; - /** * Creates a Value message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -299609,6 +243494,8 @@ export const google = $root.google = (() => { Value.fromObject = function fromObject(object, long) { if (object instanceof $root.google.protobuf.Value) return object; + if (!$util.isObject(object)) + throw TypeError(".google.protobuf.Value: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -299633,12 +243520,12 @@ export const google = $root.google = (() => { if (object.boolValue != null) message.boolValue = Boolean(object.boolValue); if (object.structValue != null) { - if (typeof object.structValue !== "object") + if (!$util.isObject(object.structValue)) throw TypeError(".google.protobuf.Value.structValue: object expected"); message.structValue = $root.google.protobuf.Struct.fromObject(object.structValue, long + 1); } if (object.listValue != null) { - if (typeof object.listValue !== "object") + if (!$util.isObject(object.listValue)) throw TypeError(".google.protobuf.Value.listValue: object expected"); message.listValue = $root.google.protobuf.ListValue.fromObject(object.listValue, long + 1); } @@ -299662,32 +243549,32 @@ export const google = $root.google = (() => { if (q > $util.recursionLimit) throw Error("max depth exceeded"); let object = {}; - if (message.nullValue != null && message.hasOwnProperty("nullValue")) { + if (message.nullValue != null && Object.hasOwnProperty.call(message, "nullValue")) { object.nullValue = options.enums === String ? $root.google.protobuf.NullValue[message.nullValue] === undefined ? message.nullValue : $root.google.protobuf.NullValue[message.nullValue] : message.nullValue; if (options.oneofs) object.kind = "nullValue"; } - if (message.numberValue != null && message.hasOwnProperty("numberValue")) { + if (message.numberValue != null && Object.hasOwnProperty.call(message, "numberValue")) { object.numberValue = options.json && !isFinite(message.numberValue) ? String(message.numberValue) : message.numberValue; if (options.oneofs) object.kind = "numberValue"; } - if (message.stringValue != null && message.hasOwnProperty("stringValue")) { + if (message.stringValue != null && Object.hasOwnProperty.call(message, "stringValue")) { object.stringValue = message.stringValue; if (options.oneofs) object.kind = "stringValue"; } - if (message.boolValue != null && message.hasOwnProperty("boolValue")) { + if (message.boolValue != null && Object.hasOwnProperty.call(message, "boolValue")) { object.boolValue = message.boolValue; if (options.oneofs) object.kind = "boolValue"; } - if (message.structValue != null && message.hasOwnProperty("structValue")) { + if (message.structValue != null && Object.hasOwnProperty.call(message, "structValue")) { object.structValue = $root.google.protobuf.Struct.toObject(message.structValue, options, q + 1); if (options.oneofs) object.kind = "structValue"; } - if (message.listValue != null && message.hasOwnProperty("listValue")) { + if (message.listValue != null && Object.hasOwnProperty.call(message, "listValue")) { object.listValue = $root.google.protobuf.ListValue.toObject(message.listValue, options, q + 1); if (options.oneofs) object.kind = "listValue"; @@ -299803,19 +243690,6 @@ export const google = $root.google = (() => { return writer; }; - /** - * Encodes the specified ListValue message, length delimited. Does not implicitly {@link google.protobuf.ListValue.verify|verify} messages. - * @function encodeDelimited - * @memberof google.protobuf.ListValue - * @static - * @param {google.protobuf.IListValue} message ListValue message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ListValue.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a ListValue message from the specified reader or buffer. * @function decode @@ -299854,49 +243728,6 @@ export const google = $root.google = (() => { return message; }; - /** - * Decodes a ListValue message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.protobuf.ListValue - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.ListValue} ListValue - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ListValue.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a ListValue message. - * @function verify - * @memberof google.protobuf.ListValue - * @static - * @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) { - if (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); - if (error) - return "values." + error; - } - } - return null; - }; - /** * Creates a ListValue message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -299908,6 +243739,8 @@ export const google = $root.google = (() => { ListValue.fromObject = function fromObject(object, long) { if (object instanceof $root.google.protobuf.ListValue) return object; + if (!$util.isObject(object)) + throw TypeError(".google.protobuf.ListValue: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -299918,7 +243751,7 @@ export const google = $root.google = (() => { throw TypeError(".google.protobuf.ListValue.values: array expected"); message.values = []; for (let i = 0; i < object.values.length; ++i) { - if (typeof object.values[i] !== "object") + if (!$util.isObject(object.values[i])) throw TypeError(".google.protobuf.ListValue.values: object expected"); message.values[i] = $root.google.protobuf.Value.fromObject(object.values[i], long + 1); } @@ -300114,19 +243947,6 @@ export const Router = $root.Router = (() => { return writer; }; - /** - * Encodes the specified RouterResponse message, length delimited. Does not implicitly {@link Router.RouterResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof Router.RouterResponse - * @static - * @param {Router.IRouterResponse} message RouterResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RouterResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a RouterResponse message from the specified reader or buffer. * @function decode @@ -300171,62 +243991,6 @@ export const Router = $root.Router = (() => { return message; }; - /** - * Decodes a RouterResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Router.RouterResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Router.RouterResponse} RouterResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RouterResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a RouterResponse message. - * @function verify - * @memberof Router.RouterResponse - * @static - * @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) { - if (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: - return "responseCode: 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.errorMessage != null && message.hasOwnProperty("errorMessage")) - if (!$util.isString(message.errorMessage)) - return "errorMessage: string expected"; - if (message.encryptedPayload != null && message.hasOwnProperty("encryptedPayload")) - if (!(message.encryptedPayload && typeof message.encryptedPayload.length === "number" || $util.isString(message.encryptedPayload))) - return "encryptedPayload: buffer expected"; - return null; - }; - /** * Creates a RouterResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -300238,6 +244002,8 @@ export const Router = $root.Router = (() => { RouterResponse.fromObject = function fromObject(object, long) { if (object instanceof $root.Router.RouterResponse) return object; + if (!$util.isObject(object)) + throw TypeError(".Router.RouterResponse: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -300329,11 +244095,11 @@ export const Router = $root.Router = (() => { object.encryptedPayload = $util.newBuffer(object.encryptedPayload); } } - if (message.responseCode != null && message.hasOwnProperty("responseCode")) + if (message.responseCode != null && Object.hasOwnProperty.call(message, "responseCode")) object.responseCode = options.enums === String ? $root.Router.RouterResponseCode[message.responseCode] === undefined ? message.responseCode : $root.Router.RouterResponseCode[message.responseCode] : message.responseCode; - if (message.errorMessage != null && message.hasOwnProperty("errorMessage")) + if (message.errorMessage != null && Object.hasOwnProperty.call(message, "errorMessage")) object.errorMessage = message.errorMessage; - if (message.encryptedPayload != null && message.hasOwnProperty("encryptedPayload")) + if (message.encryptedPayload != null && Object.hasOwnProperty.call(message, "encryptedPayload")) object.encryptedPayload = options.bytes === String ? $util.base64.encode(message.encryptedPayload, 0, message.encryptedPayload.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedPayload) : message.encryptedPayload; return object; }; @@ -300487,19 +244253,6 @@ export const Router = $root.Router = (() => { return writer; }; - /** - * Encodes the specified RouterControllerMessage message, length delimited. Does not implicitly {@link Router.RouterControllerMessage.verify|verify} messages. - * @function encodeDelimited - * @memberof Router.RouterControllerMessage - * @static - * @param {Router.IRouterControllerMessage} message RouterControllerMessage message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RouterControllerMessage.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a RouterControllerMessage message from the specified reader or buffer. * @function decode @@ -300556,70 +244309,6 @@ export const Router = $root.Router = (() => { return message; }; - /** - * Decodes a RouterControllerMessage message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Router.RouterControllerMessage - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Router.RouterControllerMessage} RouterControllerMessage - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RouterControllerMessage.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a RouterControllerMessage message. - * @function verify - * @memberof Router.RouterControllerMessage - * @static - * @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) { - if (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: - return "messageType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: - break; - } - if (message.messageUid != null && message.hasOwnProperty("messageUid")) - if (!(message.messageUid && typeof message.messageUid.length === "number" || $util.isString(message.messageUid))) - return "messageUid: buffer expected"; - if (message.controllerUid != null && message.hasOwnProperty("controllerUid")) - if (!(message.controllerUid && typeof message.controllerUid.length === "number" || $util.isString(message.controllerUid))) - return "controllerUid: buffer expected"; - if (message.streamResponse != null && message.hasOwnProperty("streamResponse")) - if (typeof message.streamResponse !== "boolean") - return "streamResponse: boolean expected"; - if (message.payload != null && message.hasOwnProperty("payload")) - if (!(message.payload && typeof message.payload.length === "number" || $util.isString(message.payload))) - return "payload: buffer expected"; - if (message.timeout != null && message.hasOwnProperty("timeout")) - if (!$util.isInteger(message.timeout)) - return "timeout: integer expected"; - return null; - }; - /** * Creates a RouterControllerMessage message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -300631,6 +244320,8 @@ export const Router = $root.Router = (() => { RouterControllerMessage.fromObject = function fromObject(object, long) { if (object instanceof $root.Router.RouterControllerMessage) return object; + if (!$util.isObject(object)) + throw TypeError(".Router.RouterControllerMessage: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -300745,17 +244436,17 @@ export const Router = $root.Router = (() => { } object.timeout = 0; } - if (message.messageType != null && message.hasOwnProperty("messageType")) + if (message.messageType != null && Object.hasOwnProperty.call(message, "messageType")) object.messageType = options.enums === String ? $root.PAM.ControllerMessageType[message.messageType] === undefined ? message.messageType : $root.PAM.ControllerMessageType[message.messageType] : message.messageType; - if (message.messageUid != null && message.hasOwnProperty("messageUid")) + if (message.messageUid != null && Object.hasOwnProperty.call(message, "messageUid")) object.messageUid = options.bytes === String ? $util.base64.encode(message.messageUid, 0, message.messageUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.messageUid) : message.messageUid; - if (message.controllerUid != null && message.hasOwnProperty("controllerUid")) + if (message.controllerUid != null && Object.hasOwnProperty.call(message, "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.streamResponse != null && message.hasOwnProperty("streamResponse")) + if (message.streamResponse != null && Object.hasOwnProperty.call(message, "streamResponse")) object.streamResponse = message.streamResponse; - if (message.payload != null && message.hasOwnProperty("payload")) + if (message.payload != null && Object.hasOwnProperty.call(message, "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.timeout != null && message.hasOwnProperty("timeout")) + if (message.timeout != null && Object.hasOwnProperty.call(message, "timeout")) object.timeout = message.timeout; return object; }; @@ -300975,19 +244666,6 @@ export const Router = $root.Router = (() => { return writer; }; - /** - * Encodes the specified RouterUserAuth message, length delimited. Does not implicitly {@link Router.RouterUserAuth.verify|verify} messages. - * @function encodeDelimited - * @memberof Router.RouterUserAuth - * @static - * @param {Router.IRouterUserAuth} message RouterUserAuth message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RouterUserAuth.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a RouterUserAuth message from the specified reader or buffer. * @function decode @@ -301068,76 +244746,6 @@ export const Router = $root.Router = (() => { return message; }; - /** - * Decodes a RouterUserAuth message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Router.RouterUserAuth - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Router.RouterUserAuth} RouterUserAuth - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RouterUserAuth.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a RouterUserAuth message. - * @function verify - * @memberof Router.RouterUserAuth - * @static - * @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) { - if (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"; - 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.userId != null && message.hasOwnProperty("userId")) - if (!$util.isInteger(message.userId)) - return "userId: integer expected"; - 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"; - if (message.deviceName != null && message.hasOwnProperty("deviceName")) - if (!$util.isString(message.deviceName)) - return "deviceName: string expected"; - if (message.deviceToken != null && message.hasOwnProperty("deviceToken")) - if (!(message.deviceToken && typeof message.deviceToken.length === "number" || $util.isString(message.deviceToken))) - return "deviceToken: buffer expected"; - if (message.clientVersionId != null && message.hasOwnProperty("clientVersionId")) - if (!$util.isInteger(message.clientVersionId)) - return "clientVersionId: integer expected"; - if (message.needUsername != null && message.hasOwnProperty("needUsername")) - if (typeof message.needUsername !== "boolean") - return "needUsername: boolean expected"; - if (message.username != null && message.hasOwnProperty("username")) - if (!$util.isString(message.username)) - return "username: string expected"; - if (message.mspEnterpriseId != null && message.hasOwnProperty("mspEnterpriseId")) - if (!$util.isInteger(message.mspEnterpriseId)) - return "mspEnterpriseId: integer expected"; - if (message.isPedmAdmin != null && message.hasOwnProperty("isPedmAdmin")) - if (typeof message.isPedmAdmin !== "boolean") - return "isPedmAdmin: boolean expected"; - if (message.mcEnterpriseId != null && message.hasOwnProperty("mcEnterpriseId")) - if (!$util.isInteger(message.mcEnterpriseId)) - return "mcEnterpriseId: integer expected"; - return null; - }; - /** * Creates a RouterUserAuth message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -301149,6 +244757,8 @@ export const Router = $root.Router = (() => { RouterUserAuth.fromObject = function fromObject(object, long) { if (object instanceof $root.Router.RouterUserAuth) return object; + if (!$util.isObject(object)) + throw TypeError(".Router.RouterUserAuth: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -301250,34 +244860,34 @@ export const Router = $root.Router = (() => { object.isPedmAdmin = false; object.mcEnterpriseId = 0; } - if (message.transmissionKey != null && message.hasOwnProperty("transmissionKey")) + if (message.transmissionKey != null && Object.hasOwnProperty.call(message, "transmissionKey")) object.transmissionKey = options.bytes === String ? $util.base64.encode(message.transmissionKey, 0, message.transmissionKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.transmissionKey) : message.transmissionKey; - if (message.sessionToken != null && message.hasOwnProperty("sessionToken")) + if (message.sessionToken != null && Object.hasOwnProperty.call(message, "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.userId != null && message.hasOwnProperty("userId")) + if (message.userId != null && Object.hasOwnProperty.call(message, "userId")) object.userId = message.userId; - if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) + if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, "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") 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.deviceName != null && message.hasOwnProperty("deviceName")) + if (message.deviceName != null && Object.hasOwnProperty.call(message, "deviceName")) object.deviceName = message.deviceName; - if (message.deviceToken != null && message.hasOwnProperty("deviceToken")) + if (message.deviceToken != null && Object.hasOwnProperty.call(message, "deviceToken")) object.deviceToken = options.bytes === String ? $util.base64.encode(message.deviceToken, 0, message.deviceToken.length) : options.bytes === Array ? Array.prototype.slice.call(message.deviceToken) : message.deviceToken; - if (message.clientVersionId != null && message.hasOwnProperty("clientVersionId")) + if (message.clientVersionId != null && Object.hasOwnProperty.call(message, "clientVersionId")) object.clientVersionId = message.clientVersionId; - if (message.needUsername != null && message.hasOwnProperty("needUsername")) + if (message.needUsername != null && Object.hasOwnProperty.call(message, "needUsername")) object.needUsername = message.needUsername; - if (message.username != null && message.hasOwnProperty("username")) + if (message.username != null && Object.hasOwnProperty.call(message, "username")) object.username = message.username; - if (message.mspEnterpriseId != null && message.hasOwnProperty("mspEnterpriseId")) + if (message.mspEnterpriseId != null && Object.hasOwnProperty.call(message, "mspEnterpriseId")) object.mspEnterpriseId = message.mspEnterpriseId; - if (message.isPedmAdmin != null && message.hasOwnProperty("isPedmAdmin")) + if (message.isPedmAdmin != null && Object.hasOwnProperty.call(message, "isPedmAdmin")) object.isPedmAdmin = message.isPedmAdmin; - if (message.mcEnterpriseId != null && message.hasOwnProperty("mcEnterpriseId")) + if (message.mcEnterpriseId != null && Object.hasOwnProperty.call(message, "mcEnterpriseId")) object.mcEnterpriseId = message.mcEnterpriseId; return object; }; @@ -301508,19 +245118,6 @@ export const Router = $root.Router = (() => { return writer; }; - /** - * Encodes the specified RouterDeviceAuth message, length delimited. Does not implicitly {@link Router.RouterDeviceAuth.verify|verify} messages. - * @function encodeDelimited - * @memberof Router.RouterDeviceAuth - * @static - * @param {Router.IRouterDeviceAuth} message RouterDeviceAuth message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RouterDeviceAuth.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a RouterDeviceAuth message from the specified reader or buffer. * @function decode @@ -301605,79 +245202,6 @@ export const Router = $root.Router = (() => { return message; }; - /** - * Decodes a RouterDeviceAuth message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Router.RouterDeviceAuth - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Router.RouterDeviceAuth} RouterDeviceAuth - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RouterDeviceAuth.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a RouterDeviceAuth message. - * @function verify - * @memberof Router.RouterDeviceAuth - * @static - * @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) { - if (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"; - if (message.clientVersion != null && message.hasOwnProperty("clientVersion")) - if (!$util.isString(message.clientVersion)) - return "clientVersion: string expected"; - if (message.signature != null && message.hasOwnProperty("signature")) - if (!(message.signature && typeof message.signature.length === "number" || $util.isString(message.signature))) - return "signature: buffer expected"; - if (message.enterpriseId != null && message.hasOwnProperty("enterpriseId")) - if (!$util.isInteger(message.enterpriseId)) - return "enterpriseId: integer expected"; - 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"; - if (message.deviceName != null && message.hasOwnProperty("deviceName")) - if (!$util.isString(message.deviceName)) - return "deviceName: string expected"; - if (message.deviceToken != null && message.hasOwnProperty("deviceToken")) - if (!(message.deviceToken && typeof message.deviceToken.length === "number" || $util.isString(message.deviceToken))) - return "deviceToken: buffer expected"; - if (message.controllerName != null && message.hasOwnProperty("controllerName")) - if (!$util.isString(message.controllerName)) - return "controllerName: string expected"; - if (message.controllerUid != null && message.hasOwnProperty("controllerUid")) - if (!(message.controllerUid && typeof message.controllerUid.length === "number" || $util.isString(message.controllerUid))) - return "controllerUid: buffer expected"; - if (message.ownerUser != null && message.hasOwnProperty("ownerUser")) - if (!$util.isString(message.ownerUser)) - return "ownerUser: string expected"; - if (message.challenge != null && message.hasOwnProperty("challenge")) - if (!$util.isString(message.challenge)) - return "challenge: string expected"; - if (message.ownerId != null && message.hasOwnProperty("ownerId")) - if (!$util.isInteger(message.ownerId)) - return "ownerId: integer expected"; - if (message.maxInstanceCount != null && message.hasOwnProperty("maxInstanceCount")) - if (!$util.isInteger(message.maxInstanceCount)) - return "maxInstanceCount: integer expected"; - return null; - }; - /** * Creates a RouterDeviceAuth message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -301689,6 +245213,8 @@ export const Router = $root.Router = (() => { RouterDeviceAuth.fromObject = function fromObject(object, long) { if (object instanceof $root.Router.RouterDeviceAuth) return object; + if (!$util.isObject(object)) + throw TypeError(".Router.RouterDeviceAuth: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -301793,36 +245319,36 @@ export const Router = $root.Router = (() => { object.ownerId = 0; object.maxInstanceCount = 0; } - if (message.clientId != null && message.hasOwnProperty("clientId")) + if (message.clientId != null && Object.hasOwnProperty.call(message, "clientId")) object.clientId = message.clientId; - if (message.clientVersion != null && message.hasOwnProperty("clientVersion")) + if (message.clientVersion != null && Object.hasOwnProperty.call(message, "clientVersion")) object.clientVersion = message.clientVersion; - if (message.signature != null && message.hasOwnProperty("signature")) + if (message.signature != null && Object.hasOwnProperty.call(message, "signature")) object.signature = options.bytes === String ? $util.base64.encode(message.signature, 0, message.signature.length) : options.bytes === Array ? Array.prototype.slice.call(message.signature) : message.signature; - if (message.enterpriseId != null && message.hasOwnProperty("enterpriseId")) + if (message.enterpriseId != null && Object.hasOwnProperty.call(message, "enterpriseId")) object.enterpriseId = message.enterpriseId; - if (message.nodeId != null && message.hasOwnProperty("nodeId")) + if (message.nodeId != null && Object.hasOwnProperty.call(message, "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") 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.deviceName != null && message.hasOwnProperty("deviceName")) + if (message.deviceName != null && Object.hasOwnProperty.call(message, "deviceName")) object.deviceName = message.deviceName; - if (message.deviceToken != null && message.hasOwnProperty("deviceToken")) + if (message.deviceToken != null && Object.hasOwnProperty.call(message, "deviceToken")) object.deviceToken = options.bytes === String ? $util.base64.encode(message.deviceToken, 0, message.deviceToken.length) : options.bytes === Array ? Array.prototype.slice.call(message.deviceToken) : message.deviceToken; - if (message.controllerName != null && message.hasOwnProperty("controllerName")) + if (message.controllerName != null && Object.hasOwnProperty.call(message, "controllerName")) object.controllerName = message.controllerName; - if (message.controllerUid != null && message.hasOwnProperty("controllerUid")) + if (message.controllerUid != null && Object.hasOwnProperty.call(message, "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.ownerUser != null && message.hasOwnProperty("ownerUser")) + if (message.ownerUser != null && Object.hasOwnProperty.call(message, "ownerUser")) object.ownerUser = message.ownerUser; - if (message.challenge != null && message.hasOwnProperty("challenge")) + if (message.challenge != null && Object.hasOwnProperty.call(message, "challenge")) object.challenge = message.challenge; - if (message.ownerId != null && message.hasOwnProperty("ownerId")) + if (message.ownerId != null && Object.hasOwnProperty.call(message, "ownerId")) object.ownerId = message.ownerId; - if (message.maxInstanceCount != null && message.hasOwnProperty("maxInstanceCount")) + if (message.maxInstanceCount != null && Object.hasOwnProperty.call(message, "maxInstanceCount")) object.maxInstanceCount = message.maxInstanceCount; return object; }; @@ -301965,19 +245491,6 @@ export const Router = $root.Router = (() => { return writer; }; - /** - * Encodes the specified RouterRecordRotation message, length delimited. Does not implicitly {@link Router.RouterRecordRotation.verify|verify} messages. - * @function encodeDelimited - * @memberof Router.RouterRecordRotation - * @static - * @param {Router.IRouterRecordRotation} message RouterRecordRotation message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RouterRecordRotation.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a RouterRecordRotation message from the specified reader or buffer. * @function decode @@ -302030,55 +245543,6 @@ export const Router = $root.Router = (() => { return message; }; - /** - * Decodes a RouterRecordRotation message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Router.RouterRecordRotation - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Router.RouterRecordRotation} RouterRecordRotation - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RouterRecordRotation.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a RouterRecordRotation message. - * @function verify - * @memberof Router.RouterRecordRotation - * @static - * @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) { - if (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.configurationUid != null && message.hasOwnProperty("configurationUid")) - if (!(message.configurationUid && typeof message.configurationUid.length === "number" || $util.isString(message.configurationUid))) - return "configurationUid: buffer expected"; - if (message.controllerUid != null && message.hasOwnProperty("controllerUid")) - if (!(message.controllerUid && typeof message.controllerUid.length === "number" || $util.isString(message.controllerUid))) - return "controllerUid: buffer expected"; - if (message.resourceUid != null && message.hasOwnProperty("resourceUid")) - if (!(message.resourceUid && typeof message.resourceUid.length === "number" || $util.isString(message.resourceUid))) - return "resourceUid: buffer expected"; - if (message.noSchedule != null && message.hasOwnProperty("noSchedule")) - if (typeof message.noSchedule !== "boolean") - return "noSchedule: boolean expected"; - return null; - }; - /** * Creates a RouterRecordRotation message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -302090,6 +245554,8 @@ export const Router = $root.Router = (() => { RouterRecordRotation.fromObject = function fromObject(object, long) { if (object instanceof $root.Router.RouterRecordRotation) return object; + if (!$util.isObject(object)) + throw TypeError(".Router.RouterRecordRotation: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -302168,15 +245634,15 @@ export const Router = $root.Router = (() => { } object.noSchedule = false; } - if (message.recordUid != null && message.hasOwnProperty("recordUid")) + if (message.recordUid != null && Object.hasOwnProperty.call(message, "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.configurationUid != null && message.hasOwnProperty("configurationUid")) + if (message.configurationUid != null && Object.hasOwnProperty.call(message, "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.controllerUid != null && message.hasOwnProperty("controllerUid")) + if (message.controllerUid != null && Object.hasOwnProperty.call(message, "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.resourceUid != null && message.hasOwnProperty("resourceUid")) + if (message.resourceUid != null && Object.hasOwnProperty.call(message, "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.noSchedule != null && message.hasOwnProperty("noSchedule")) + if (message.noSchedule != null && Object.hasOwnProperty.call(message, "noSchedule")) object.noSchedule = message.noSchedule; return object; }; @@ -302288,19 +245754,6 @@ export const Router = $root.Router = (() => { return writer; }; - /** - * Encodes the specified RouterRecordRotationsRequest message, length delimited. Does not implicitly {@link Router.RouterRecordRotationsRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof Router.RouterRecordRotationsRequest - * @static - * @param {Router.IRouterRecordRotationsRequest} message RouterRecordRotationsRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RouterRecordRotationsRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a RouterRecordRotationsRequest message from the specified reader or buffer. * @function decode @@ -302343,50 +245796,6 @@ export const Router = $root.Router = (() => { return message; }; - /** - * Decodes a RouterRecordRotationsRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Router.RouterRecordRotationsRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Router.RouterRecordRotationsRequest} RouterRecordRotationsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RouterRecordRotationsRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a RouterRecordRotationsRequest message. - * @function verify - * @memberof Router.RouterRecordRotationsRequest - * @static - * @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) { - if (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"; - 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) - if (!(message.records[i] && typeof message.records[i].length === "number" || $util.isString(message.records[i]))) - return "records: buffer[] expected"; - } - return null; - }; - /** * Creates a RouterRecordRotationsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -302398,6 +245807,8 @@ export const Router = $root.Router = (() => { RouterRecordRotationsRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.Router.RouterRecordRotationsRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".Router.RouterRecordRotationsRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -302439,7 +245850,7 @@ export const Router = $root.Router = (() => { object.records = []; if (options.defaults) object.enterpriseId = 0; - if (message.enterpriseId != null && message.hasOwnProperty("enterpriseId")) + if (message.enterpriseId != null && Object.hasOwnProperty.call(message, "enterpriseId")) object.enterpriseId = message.enterpriseId; if (message.records && message.records.length) { object.records = []; @@ -302556,19 +245967,6 @@ export const Router = $root.Router = (() => { return writer; }; - /** - * Encodes the specified RouterRecordRotationsResponse message, length delimited. Does not implicitly {@link Router.RouterRecordRotationsResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof Router.RouterRecordRotationsResponse - * @static - * @param {Router.IRouterRecordRotationsResponse} message RouterRecordRotationsResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RouterRecordRotationsResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a RouterRecordRotationsResponse message from the specified reader or buffer. * @function decode @@ -302611,52 +246009,6 @@ export const Router = $root.Router = (() => { return message; }; - /** - * Decodes a RouterRecordRotationsResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Router.RouterRecordRotationsResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Router.RouterRecordRotationsResponse} RouterRecordRotationsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RouterRecordRotationsResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a RouterRecordRotationsResponse message. - * @function verify - * @memberof Router.RouterRecordRotationsResponse - * @static - * @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) { - if (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); - if (error) - return "rotations." + error; - } - } - if (message.hasMore != null && message.hasOwnProperty("hasMore")) - if (typeof message.hasMore !== "boolean") - return "hasMore: boolean expected"; - return null; - }; - /** * Creates a RouterRecordRotationsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -302668,6 +246020,8 @@ export const Router = $root.Router = (() => { RouterRecordRotationsResponse.fromObject = function fromObject(object, long) { if (object instanceof $root.Router.RouterRecordRotationsResponse) return object; + if (!$util.isObject(object)) + throw TypeError(".Router.RouterRecordRotationsResponse: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -302678,7 +246032,7 @@ export const Router = $root.Router = (() => { throw TypeError(".Router.RouterRecordRotationsResponse.rotations: array expected"); message.rotations = []; for (let i = 0; i < object.rotations.length; ++i) { - if (typeof object.rotations[i] !== "object") + if (!$util.isObject(object.rotations[i])) throw TypeError(".Router.RouterRecordRotationsResponse.rotations: object expected"); message.rotations[i] = $root.Router.RouterRecordRotation.fromObject(object.rotations[i], long + 1); } @@ -302714,7 +246068,7 @@ export const Router = $root.Router = (() => { for (let j = 0; j < message.rotations.length; ++j) object.rotations[j] = $root.Router.RouterRecordRotation.toObject(message.rotations[j], options, q + 1); } - if (message.hasMore != null && message.hasOwnProperty("hasMore")) + if (message.hasMore != null && Object.hasOwnProperty.call(message, "hasMore")) object.hasMore = message.hasMore; return object; }; @@ -302919,19 +246273,6 @@ export const Router = $root.Router = (() => { return writer; }; - /** - * Encodes the specified RouterRotationInfo message, length delimited. Does not implicitly {@link Router.RouterRotationInfo.verify|verify} messages. - * @function encodeDelimited - * @memberof Router.RouterRotationInfo - * @static - * @param {Router.IRouterRotationInfo} message RouterRotationInfo message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RouterRotationInfo.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a RouterRotationInfo message from the specified reader or buffer. * @function decode @@ -303000,74 +246341,6 @@ export const Router = $root.Router = (() => { return message; }; - /** - * Decodes a RouterRotationInfo message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Router.RouterRotationInfo - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Router.RouterRotationInfo} RouterRotationInfo - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RouterRotationInfo.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a RouterRotationInfo message. - * @function verify - * @memberof Router.RouterRotationInfo - * @static - * @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) { - if (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: - return "status: enum value expected"; - case 0: - case 1: - case 2: - case 3: - break; - } - if (message.configurationUid != null && message.hasOwnProperty("configurationUid")) - if (!(message.configurationUid && typeof message.configurationUid.length === "number" || $util.isString(message.configurationUid))) - return "configurationUid: buffer expected"; - if (message.resourceUid != null && message.hasOwnProperty("resourceUid")) - if (!(message.resourceUid && typeof message.resourceUid.length === "number" || $util.isString(message.resourceUid))) - return "resourceUid: buffer expected"; - 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"; - if (message.controllerUid != null && message.hasOwnProperty("controllerUid")) - if (!(message.controllerUid && typeof message.controllerUid.length === "number" || $util.isString(message.controllerUid))) - return "controllerUid: buffer expected"; - if (message.controllerName != null && message.hasOwnProperty("controllerName")) - if (!$util.isString(message.controllerName)) - return "controllerName: string expected"; - if (message.scriptName != null && message.hasOwnProperty("scriptName")) - if (!$util.isString(message.scriptName)) - return "scriptName: string expected"; - if (message.pwdComplexity != null && message.hasOwnProperty("pwdComplexity")) - if (!$util.isString(message.pwdComplexity)) - return "pwdComplexity: string expected"; - if (message.disabled != null && message.hasOwnProperty("disabled")) - if (typeof message.disabled !== "boolean") - return "disabled: boolean expected"; - return null; - }; - /** * Creates a RouterRotationInfo message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -303079,6 +246352,8 @@ export const Router = $root.Router = (() => { RouterRotationInfo.fromObject = function fromObject(object, long) { if (object instanceof $root.Router.RouterRotationInfo) return object; + if (!$util.isObject(object)) + throw TypeError(".Router.RouterRotationInfo: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -303193,28 +246468,28 @@ export const Router = $root.Router = (() => { object.pwdComplexity = ""; object.disabled = false; } - if (message.status != null && message.hasOwnProperty("status")) + if (message.status != null && Object.hasOwnProperty.call(message, "status")) object.status = options.enums === String ? $root.Router.RouterRotationStatus[message.status] === undefined ? message.status : $root.Router.RouterRotationStatus[message.status] : message.status; - if (message.configurationUid != null && message.hasOwnProperty("configurationUid")) + if (message.configurationUid != null && Object.hasOwnProperty.call(message, "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.resourceUid != null && message.hasOwnProperty("resourceUid")) + if (message.resourceUid != null && Object.hasOwnProperty.call(message, "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 (message.nodeId != null && Object.hasOwnProperty.call(message, "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") 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.controllerUid != null && message.hasOwnProperty("controllerUid")) + if (message.controllerUid != null && Object.hasOwnProperty.call(message, "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.controllerName != null && message.hasOwnProperty("controllerName")) + if (message.controllerName != null && Object.hasOwnProperty.call(message, "controllerName")) object.controllerName = message.controllerName; - if (message.scriptName != null && message.hasOwnProperty("scriptName")) + if (message.scriptName != null && Object.hasOwnProperty.call(message, "scriptName")) object.scriptName = message.scriptName; - if (message.pwdComplexity != null && message.hasOwnProperty("pwdComplexity")) + if (message.pwdComplexity != null && Object.hasOwnProperty.call(message, "pwdComplexity")) object.pwdComplexity = message.pwdComplexity; - if (message.disabled != null && message.hasOwnProperty("disabled")) + if (message.disabled != null && Object.hasOwnProperty.call(message, "disabled")) object.disabled = message.disabled; return object; }; @@ -303477,19 +246752,6 @@ export const Router = $root.Router = (() => { return writer; }; - /** - * Encodes the specified RouterRecordRotationRequest message, length delimited. Does not implicitly {@link Router.RouterRecordRotationRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof Router.RouterRecordRotationRequest - * @static - * @param {Router.IRouterRecordRotationRequest} message RouterRecordRotationRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RouterRecordRotationRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a RouterRecordRotationRequest message from the specified reader or buffer. * @function decode @@ -303578,92 +246840,6 @@ export const Router = $root.Router = (() => { return message; }; - /** - * Decodes a RouterRecordRotationRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Router.RouterRecordRotationRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Router.RouterRecordRotationRequest} RouterRecordRotationRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RouterRecordRotationRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a RouterRecordRotationRequest message. - * @function verify - * @memberof Router.RouterRecordRotationRequest - * @static - * @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) { - 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))) - return "recordUid: buffer expected"; - 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"; - if (message.configurationUid != null && message.hasOwnProperty("configurationUid")) - if (!(message.configurationUid && typeof message.configurationUid.length === "number" || $util.isString(message.configurationUid))) - return "configurationUid: buffer expected"; - if (message.resourceUid != null && message.hasOwnProperty("resourceUid")) - if (!(message.resourceUid && typeof message.resourceUid.length === "number" || $util.isString(message.resourceUid))) - return "resourceUid: buffer expected"; - if (message.schedule != null && message.hasOwnProperty("schedule")) - if (!$util.isString(message.schedule)) - return "schedule: string expected"; - 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"; - if (message.pwdComplexity != null && message.hasOwnProperty("pwdComplexity")) - if (!(message.pwdComplexity && typeof message.pwdComplexity.length === "number" || $util.isString(message.pwdComplexity))) - return "pwdComplexity: buffer expected"; - if (message.disabled != null && message.hasOwnProperty("disabled")) - if (typeof message.disabled !== "boolean") - return "disabled: boolean expected"; - if (message.remoteAddress != null && message.hasOwnProperty("remoteAddress")) - if (!$util.isString(message.remoteAddress)) - return "remoteAddress: string expected"; - if (message.clientVersionId != null && message.hasOwnProperty("clientVersionId")) - if (!$util.isInteger(message.clientVersionId)) - return "clientVersionId: integer expected"; - if (message.noop != null && message.hasOwnProperty("noop")) - if (typeof message.noop !== "boolean") - return "noop: boolean expected"; - if (message.saasConfiguration != null && message.hasOwnProperty("saasConfiguration")) { - properties._saasConfiguration = 1; - if (!(message.saasConfiguration && typeof message.saasConfiguration.length === "number" || $util.isString(message.saasConfiguration))) - return "saasConfiguration: buffer expected"; - } - if (message.updateServices != null && message.hasOwnProperty("updateServices")) { - properties._updateServices = 1; - if (typeof message.updateServices !== "boolean") - return "updateServices: boolean expected"; - } - if (message.serviceResources != null && message.hasOwnProperty("serviceResources")) { - properties._serviceResources = 1; - { - let error = $root.PAM.UidList.verify(message.serviceResources, long + 1); - if (error) - return "serviceResources." + error; - } - } - return null; - }; - /** * Creates a RouterRecordRotationRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -303675,6 +246851,8 @@ export const Router = $root.Router = (() => { RouterRecordRotationRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.Router.RouterRecordRotationRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".Router.RouterRecordRotationRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -303736,7 +246914,7 @@ export const Router = $root.Router = (() => { if (object.updateServices != null) message.updateServices = Boolean(object.updateServices); if (object.serviceResources != null) { - if (typeof object.serviceResources !== "object") + if (!$util.isObject(object.serviceResources)) throw TypeError(".Router.RouterRecordRotationRequest.serviceResources: object expected"); message.serviceResources = $root.PAM.UidList.fromObject(object.serviceResources, long + 1); } @@ -303805,49 +246983,49 @@ export const Router = $root.Router = (() => { object.clientVersionId = 0; object.noop = false; } - if (message.recordUid != null && message.hasOwnProperty("recordUid")) + if (message.recordUid != null && Object.hasOwnProperty.call(message, "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 (message.revision != null && Object.hasOwnProperty.call(message, "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") 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.configurationUid != null && message.hasOwnProperty("configurationUid")) + if (message.configurationUid != null && Object.hasOwnProperty.call(message, "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.resourceUid != null && message.hasOwnProperty("resourceUid")) + if (message.resourceUid != null && Object.hasOwnProperty.call(message, "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.schedule != null && message.hasOwnProperty("schedule")) + if (message.schedule != null && Object.hasOwnProperty.call(message, "schedule")) object.schedule = message.schedule; - if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) + if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, "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") 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.pwdComplexity != null && message.hasOwnProperty("pwdComplexity")) + if (message.pwdComplexity != null && Object.hasOwnProperty.call(message, "pwdComplexity")) object.pwdComplexity = options.bytes === String ? $util.base64.encode(message.pwdComplexity, 0, message.pwdComplexity.length) : options.bytes === Array ? Array.prototype.slice.call(message.pwdComplexity) : message.pwdComplexity; - if (message.disabled != null && message.hasOwnProperty("disabled")) + if (message.disabled != null && Object.hasOwnProperty.call(message, "disabled")) object.disabled = message.disabled; - if (message.remoteAddress != null && message.hasOwnProperty("remoteAddress")) + if (message.remoteAddress != null && Object.hasOwnProperty.call(message, "remoteAddress")) object.remoteAddress = message.remoteAddress; - if (message.clientVersionId != null && message.hasOwnProperty("clientVersionId")) + if (message.clientVersionId != null && Object.hasOwnProperty.call(message, "clientVersionId")) object.clientVersionId = message.clientVersionId; - if (message.noop != null && message.hasOwnProperty("noop")) + if (message.noop != null && Object.hasOwnProperty.call(message, "noop")) object.noop = message.noop; - if (message.saasConfiguration != null && message.hasOwnProperty("saasConfiguration")) { + if (message.saasConfiguration != null && Object.hasOwnProperty.call(message, "saasConfiguration")) { object.saasConfiguration = options.bytes === String ? $util.base64.encode(message.saasConfiguration, 0, message.saasConfiguration.length) : options.bytes === Array ? Array.prototype.slice.call(message.saasConfiguration) : message.saasConfiguration; if (options.oneofs) object._saasConfiguration = "saasConfiguration"; } - if (message.updateServices != null && message.hasOwnProperty("updateServices")) { + if (message.updateServices != null && Object.hasOwnProperty.call(message, "updateServices")) { object.updateServices = message.updateServices; if (options.oneofs) object._updateServices = "updateServices"; } - if (message.serviceResources != null && message.hasOwnProperty("serviceResources")) { + if (message.serviceResources != null && Object.hasOwnProperty.call(message, "serviceResources")) { object.serviceResources = $root.PAM.UidList.toObject(message.serviceResources, options, q + 1); if (options.oneofs) object._serviceResources = "serviceResources"; @@ -303960,19 +247138,6 @@ export const Router = $root.Router = (() => { return writer; }; - /** - * Encodes the specified UserRecordAccessRequest message, length delimited. Does not implicitly {@link Router.UserRecordAccessRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof Router.UserRecordAccessRequest - * @static - * @param {Router.IUserRecordAccessRequest} message UserRecordAccessRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - UserRecordAccessRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a UserRecordAccessRequest message from the specified reader or buffer. * @function decode @@ -304013,46 +247178,6 @@ export const Router = $root.Router = (() => { return message; }; - /** - * Decodes a UserRecordAccessRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Router.UserRecordAccessRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Router.UserRecordAccessRequest} UserRecordAccessRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - UserRecordAccessRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a UserRecordAccessRequest message. - * @function verify - * @memberof Router.UserRecordAccessRequest - * @static - * @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) { - if (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"; - if (message.recordUid != null && message.hasOwnProperty("recordUid")) - if (!(message.recordUid && typeof message.recordUid.length === "number" || $util.isString(message.recordUid))) - return "recordUid: buffer expected"; - return null; - }; - /** * Creates a UserRecordAccessRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -304064,6 +247189,8 @@ export const Router = $root.Router = (() => { UserRecordAccessRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.Router.UserRecordAccessRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".Router.UserRecordAccessRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -304106,9 +247233,9 @@ export const Router = $root.Router = (() => { object.recordUid = $util.newBuffer(object.recordUid); } } - if (message.userId != null && message.hasOwnProperty("userId")) + if (message.userId != null && Object.hasOwnProperty.call(message, "userId")) object.userId = message.userId; - if (message.recordUid != null && message.hasOwnProperty("recordUid")) + if (message.recordUid != null && Object.hasOwnProperty.call(message, "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; return object; }; @@ -304251,19 +247378,6 @@ export const Router = $root.Router = (() => { return writer; }; - /** - * Encodes the specified UserRecordAccessResponse message, length delimited. Does not implicitly {@link Router.UserRecordAccessResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof Router.UserRecordAccessResponse - * @static - * @param {Router.IUserRecordAccessResponse} message UserRecordAccessResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - UserRecordAccessResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a UserRecordAccessResponse message from the specified reader or buffer. * @function decode @@ -304308,58 +247422,6 @@ export const Router = $root.Router = (() => { return message; }; - /** - * Decodes a UserRecordAccessResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Router.UserRecordAccessResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Router.UserRecordAccessResponse} UserRecordAccessResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - UserRecordAccessResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a UserRecordAccessResponse message. - * @function verify - * @memberof Router.UserRecordAccessResponse - * @static - * @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) { - if (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.accessLevel != null && message.hasOwnProperty("accessLevel")) - switch (message.accessLevel) { - default: - return "accessLevel: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - break; - } - if (message.isShareAdmin != null && message.hasOwnProperty("isShareAdmin")) - if (typeof message.isShareAdmin !== "boolean") - return "isShareAdmin: boolean expected"; - return null; - }; - /** * Creates a UserRecordAccessResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -304371,6 +247433,8 @@ export const Router = $root.Router = (() => { UserRecordAccessResponse.fromObject = function fromObject(object, long) { if (object instanceof $root.Router.UserRecordAccessResponse) return object; + if (!$util.isObject(object)) + throw TypeError(".Router.UserRecordAccessResponse: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -304446,11 +247510,11 @@ export const Router = $root.Router = (() => { object.accessLevel = options.enums === String ? "RRAL_NONE" : 0; object.isShareAdmin = false; } - if (message.recordUid != null && message.hasOwnProperty("recordUid")) + if (message.recordUid != null && Object.hasOwnProperty.call(message, "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.accessLevel != null && message.hasOwnProperty("accessLevel")) + if (message.accessLevel != null && Object.hasOwnProperty.call(message, "accessLevel")) object.accessLevel = options.enums === String ? $root.Router.UserRecordAccessLevel[message.accessLevel] === undefined ? message.accessLevel : $root.Router.UserRecordAccessLevel[message.accessLevel] : message.accessLevel; - if (message.isShareAdmin != null && message.hasOwnProperty("isShareAdmin")) + if (message.isShareAdmin != null && Object.hasOwnProperty.call(message, "isShareAdmin")) object.isShareAdmin = message.isShareAdmin; return object; }; @@ -304551,19 +247615,6 @@ export const Router = $root.Router = (() => { return writer; }; - /** - * Encodes the specified UserRecordAccessRequests message, length delimited. Does not implicitly {@link Router.UserRecordAccessRequests.verify|verify} messages. - * @function encodeDelimited - * @memberof Router.UserRecordAccessRequests - * @static - * @param {Router.IUserRecordAccessRequests} message UserRecordAccessRequests message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - UserRecordAccessRequests.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a UserRecordAccessRequests message from the specified reader or buffer. * @function decode @@ -304602,49 +247653,6 @@ export const Router = $root.Router = (() => { return message; }; - /** - * Decodes a UserRecordAccessRequests message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Router.UserRecordAccessRequests - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Router.UserRecordAccessRequests} UserRecordAccessRequests - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - UserRecordAccessRequests.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a UserRecordAccessRequests message. - * @function verify - * @memberof Router.UserRecordAccessRequests - * @static - * @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) { - if (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); - if (error) - return "requests." + error; - } - } - return null; - }; - /** * Creates a UserRecordAccessRequests message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -304656,6 +247664,8 @@ export const Router = $root.Router = (() => { UserRecordAccessRequests.fromObject = function fromObject(object, long) { if (object instanceof $root.Router.UserRecordAccessRequests) return object; + if (!$util.isObject(object)) + throw TypeError(".Router.UserRecordAccessRequests: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -304666,7 +247676,7 @@ export const Router = $root.Router = (() => { throw TypeError(".Router.UserRecordAccessRequests.requests: array expected"); message.requests = []; for (let i = 0; i < object.requests.length; ++i) { - if (typeof object.requests[i] !== "object") + if (!$util.isObject(object.requests[i])) throw TypeError(".Router.UserRecordAccessRequests.requests: object expected"); message.requests[i] = $root.Router.UserRecordAccessRequest.fromObject(object.requests[i], long + 1); } @@ -304797,19 +247807,6 @@ export const Router = $root.Router = (() => { return writer; }; - /** - * Encodes the specified UserRecordAccessResponses message, length delimited. Does not implicitly {@link Router.UserRecordAccessResponses.verify|verify} messages. - * @function encodeDelimited - * @memberof Router.UserRecordAccessResponses - * @static - * @param {Router.IUserRecordAccessResponses} message UserRecordAccessResponses message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - UserRecordAccessResponses.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a UserRecordAccessResponses message from the specified reader or buffer. * @function decode @@ -304848,49 +247845,6 @@ export const Router = $root.Router = (() => { return message; }; - /** - * Decodes a UserRecordAccessResponses message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Router.UserRecordAccessResponses - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Router.UserRecordAccessResponses} UserRecordAccessResponses - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - UserRecordAccessResponses.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a UserRecordAccessResponses message. - * @function verify - * @memberof Router.UserRecordAccessResponses - * @static - * @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) { - if (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); - if (error) - return "responses." + error; - } - } - return null; - }; - /** * Creates a UserRecordAccessResponses message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -304902,6 +247856,8 @@ export const Router = $root.Router = (() => { UserRecordAccessResponses.fromObject = function fromObject(object, long) { if (object instanceof $root.Router.UserRecordAccessResponses) return object; + if (!$util.isObject(object)) + throw TypeError(".Router.UserRecordAccessResponses: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -304912,7 +247868,7 @@ export const Router = $root.Router = (() => { throw TypeError(".Router.UserRecordAccessResponses.responses: array expected"); message.responses = []; for (let i = 0; i < object.responses.length; ++i) { - if (typeof object.responses[i] !== "object") + if (!$util.isObject(object.responses[i])) throw TypeError(".Router.UserRecordAccessResponses.responses: object expected"); message.responses[i] = $root.Router.UserRecordAccessResponse.fromObject(object.responses[i], long + 1); } @@ -305054,19 +248010,6 @@ export const Router = $root.Router = (() => { return writer; }; - /** - * Encodes the specified UserSharedFolderAccessRequest message, length delimited. Does not implicitly {@link Router.UserSharedFolderAccessRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof Router.UserSharedFolderAccessRequest - * @static - * @param {Router.IUserSharedFolderAccessRequest} message UserSharedFolderAccessRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - UserSharedFolderAccessRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a UserSharedFolderAccessRequest message from the specified reader or buffer. * @function decode @@ -305109,50 +248052,6 @@ export const Router = $root.Router = (() => { return message; }; - /** - * Decodes a UserSharedFolderAccessRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Router.UserSharedFolderAccessRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Router.UserSharedFolderAccessRequest} UserSharedFolderAccessRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - UserSharedFolderAccessRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a UserSharedFolderAccessRequest message. - * @function verify - * @memberof Router.UserSharedFolderAccessRequest - * @static - * @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) { - if (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"; - if (message.sharedFolderUid != null && message.hasOwnProperty("sharedFolderUid")) { - if (!Array.isArray(message.sharedFolderUid)) - return "sharedFolderUid: array expected"; - for (let i = 0; i < message.sharedFolderUid.length; ++i) - if (!(message.sharedFolderUid[i] && typeof message.sharedFolderUid[i].length === "number" || $util.isString(message.sharedFolderUid[i]))) - return "sharedFolderUid: buffer[] expected"; - } - return null; - }; - /** * Creates a UserSharedFolderAccessRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -305164,6 +248063,8 @@ export const Router = $root.Router = (() => { UserSharedFolderAccessRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.Router.UserSharedFolderAccessRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".Router.UserSharedFolderAccessRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -305205,7 +248106,7 @@ export const Router = $root.Router = (() => { object.sharedFolderUid = []; if (options.defaults) object.userId = 0; - if (message.userId != null && message.hasOwnProperty("userId")) + if (message.userId != null && Object.hasOwnProperty.call(message, "userId")) object.userId = message.userId; if (message.sharedFolderUid && message.sharedFolderUid.length) { object.sharedFolderUid = []; @@ -305320,19 +248221,6 @@ export const Router = $root.Router = (() => { return writer; }; - /** - * Encodes the specified UserSharedFolderAccessResponse message, length delimited. Does not implicitly {@link Router.UserSharedFolderAccessResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof Router.UserSharedFolderAccessResponse - * @static - * @param {Router.IUserSharedFolderAccessResponse} message UserSharedFolderAccessResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - UserSharedFolderAccessResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a UserSharedFolderAccessResponse message from the specified reader or buffer. * @function decode @@ -305373,57 +248261,6 @@ export const Router = $root.Router = (() => { return message; }; - /** - * Decodes a UserSharedFolderAccessResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Router.UserSharedFolderAccessResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Router.UserSharedFolderAccessResponse} UserSharedFolderAccessResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - UserSharedFolderAccessResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a UserSharedFolderAccessResponse message. - * @function verify - * @memberof Router.UserSharedFolderAccessResponse - * @static - * @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) { - if (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"; - if (message.accessRoleType != null && message.hasOwnProperty("accessRoleType")) - switch (message.accessRoleType) { - default: - return "accessRoleType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - break; - } - return null; - }; - /** * Creates a UserSharedFolderAccessResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -305435,6 +248272,8 @@ export const Router = $root.Router = (() => { UserSharedFolderAccessResponse.fromObject = function fromObject(object, long) { if (object instanceof $root.Router.UserSharedFolderAccessResponse) return object; + if (!$util.isObject(object)) + throw TypeError(".Router.UserSharedFolderAccessResponse: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -305515,9 +248354,9 @@ export const Router = $root.Router = (() => { } object.accessRoleType = options.enums === String ? "NAVIGATOR" : 0; } - if (message.sharedFolderUid != null && message.hasOwnProperty("sharedFolderUid")) + if (message.sharedFolderUid != null && Object.hasOwnProperty.call(message, "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.accessRoleType != null && message.hasOwnProperty("accessRoleType")) + if (message.accessRoleType != null && Object.hasOwnProperty.call(message, "accessRoleType")) object.accessRoleType = options.enums === String ? $root.Folder.AccessRoleType[message.accessRoleType] === undefined ? message.accessRoleType : $root.Folder.AccessRoleType[message.accessRoleType] : message.accessRoleType; return object; }; @@ -305618,19 +248457,6 @@ export const Router = $root.Router = (() => { return writer; }; - /** - * Encodes the specified UserSharedFolderAccessResponses message, length delimited. Does not implicitly {@link Router.UserSharedFolderAccessResponses.verify|verify} messages. - * @function encodeDelimited - * @memberof Router.UserSharedFolderAccessResponses - * @static - * @param {Router.IUserSharedFolderAccessResponses} message UserSharedFolderAccessResponses message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - UserSharedFolderAccessResponses.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a UserSharedFolderAccessResponses message from the specified reader or buffer. * @function decode @@ -305669,49 +248495,6 @@ export const Router = $root.Router = (() => { return message; }; - /** - * Decodes a UserSharedFolderAccessResponses message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Router.UserSharedFolderAccessResponses - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Router.UserSharedFolderAccessResponses} UserSharedFolderAccessResponses - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - UserSharedFolderAccessResponses.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a UserSharedFolderAccessResponses message. - * @function verify - * @memberof Router.UserSharedFolderAccessResponses - * @static - * @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) { - if (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); - if (error) - return "responses." + error; - } - } - return null; - }; - /** * Creates a UserSharedFolderAccessResponses message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -305723,6 +248506,8 @@ export const Router = $root.Router = (() => { UserSharedFolderAccessResponses.fromObject = function fromObject(object, long) { if (object instanceof $root.Router.UserSharedFolderAccessResponses) return object; + if (!$util.isObject(object)) + throw TypeError(".Router.UserSharedFolderAccessResponses: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -305733,7 +248518,7 @@ export const Router = $root.Router = (() => { throw TypeError(".Router.UserSharedFolderAccessResponses.responses: array expected"); message.responses = []; for (let i = 0; i < object.responses.length; ++i) { - if (typeof object.responses[i] !== "object") + if (!$util.isObject(object.responses[i])) throw TypeError(".Router.UserSharedFolderAccessResponses.responses: object expected"); message.responses[i] = $root.Router.UserSharedFolderAccessResponse.fromObject(object.responses[i], long + 1); } @@ -305875,19 +248660,6 @@ export const Router = $root.Router = (() => { return writer; }; - /** - * Encodes the specified UserFolderPermissionsRequest message, length delimited. Does not implicitly {@link Router.UserFolderPermissionsRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof Router.UserFolderPermissionsRequest - * @static - * @param {Router.IUserFolderPermissionsRequest} message UserFolderPermissionsRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - UserFolderPermissionsRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a UserFolderPermissionsRequest message from the specified reader or buffer. * @function decode @@ -305930,50 +248702,6 @@ export const Router = $root.Router = (() => { return message; }; - /** - * Decodes a UserFolderPermissionsRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Router.UserFolderPermissionsRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Router.UserFolderPermissionsRequest} UserFolderPermissionsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - UserFolderPermissionsRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a UserFolderPermissionsRequest message. - * @function verify - * @memberof Router.UserFolderPermissionsRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - UserFolderPermissionsRequest.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.userId != null && message.hasOwnProperty("userId")) - if (!$util.isInteger(message.userId)) - return "userId: integer expected"; - if (message.folderUid != null && message.hasOwnProperty("folderUid")) { - if (!Array.isArray(message.folderUid)) - return "folderUid: array expected"; - for (let i = 0; i < message.folderUid.length; ++i) - if (!(message.folderUid[i] && typeof message.folderUid[i].length === "number" || $util.isString(message.folderUid[i]))) - return "folderUid: buffer[] expected"; - } - return null; - }; - /** * Creates a UserFolderPermissionsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -305985,6 +248713,8 @@ export const Router = $root.Router = (() => { UserFolderPermissionsRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.Router.UserFolderPermissionsRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".Router.UserFolderPermissionsRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -306026,7 +248756,7 @@ export const Router = $root.Router = (() => { object.folderUid = []; if (options.defaults) object.userId = 0; - if (message.userId != null && message.hasOwnProperty("userId")) + if (message.userId != null && Object.hasOwnProperty.call(message, "userId")) object.userId = message.userId; if (message.folderUid && message.folderUid.length) { object.folderUid = []; @@ -306141,19 +248871,6 @@ export const Router = $root.Router = (() => { return writer; }; - /** - * Encodes the specified UserFolderPermissionsResponse message, length delimited. Does not implicitly {@link Router.UserFolderPermissionsResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof Router.UserFolderPermissionsResponse - * @static - * @param {Router.IUserFolderPermissionsResponse} message UserFolderPermissionsResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - UserFolderPermissionsResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a UserFolderPermissionsResponse message from the specified reader or buffer. * @function decode @@ -306194,48 +248911,6 @@ export const Router = $root.Router = (() => { return message; }; - /** - * Decodes a UserFolderPermissionsResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Router.UserFolderPermissionsResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Router.UserFolderPermissionsResponse} UserFolderPermissionsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - UserFolderPermissionsResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a UserFolderPermissionsResponse message. - * @function verify - * @memberof Router.UserFolderPermissionsResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - UserFolderPermissionsResponse.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.folderUid != null && message.hasOwnProperty("folderUid")) - if (!(message.folderUid && typeof message.folderUid.length === "number" || $util.isString(message.folderUid))) - return "folderUid: buffer expected"; - if (message.permissions != null && message.hasOwnProperty("permissions")) { - let error = $root.Folder.FolderPermissions.verify(message.permissions, long + 1); - if (error) - return "permissions." + error; - } - return null; - }; - /** * Creates a UserFolderPermissionsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -306247,6 +248922,8 @@ export const Router = $root.Router = (() => { UserFolderPermissionsResponse.fromObject = function fromObject(object, long) { if (object instanceof $root.Router.UserFolderPermissionsResponse) return object; + if (!$util.isObject(object)) + throw TypeError(".Router.UserFolderPermissionsResponse: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -306258,7 +248935,7 @@ export const Router = $root.Router = (() => { else if (object.folderUid.length >= 0) message.folderUid = object.folderUid; if (object.permissions != null) { - if (typeof object.permissions !== "object") + if (!$util.isObject(object.permissions)) throw TypeError(".Router.UserFolderPermissionsResponse.permissions: object expected"); message.permissions = $root.Folder.FolderPermissions.fromObject(object.permissions, long + 1); } @@ -306292,9 +248969,9 @@ export const Router = $root.Router = (() => { } object.permissions = null; } - if (message.folderUid != null && message.hasOwnProperty("folderUid")) + if (message.folderUid != null && Object.hasOwnProperty.call(message, "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.permissions != null && message.hasOwnProperty("permissions")) + if (message.permissions != null && Object.hasOwnProperty.call(message, "permissions")) object.permissions = $root.Folder.FolderPermissions.toObject(message.permissions, options, q + 1); return object; }; @@ -306395,19 +249072,6 @@ export const Router = $root.Router = (() => { return writer; }; - /** - * Encodes the specified UserFolderPermissionsResponses message, length delimited. Does not implicitly {@link Router.UserFolderPermissionsResponses.verify|verify} messages. - * @function encodeDelimited - * @memberof Router.UserFolderPermissionsResponses - * @static - * @param {Router.IUserFolderPermissionsResponses} message UserFolderPermissionsResponses message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - UserFolderPermissionsResponses.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a UserFolderPermissionsResponses message from the specified reader or buffer. * @function decode @@ -306446,49 +249110,6 @@ export const Router = $root.Router = (() => { return message; }; - /** - * Decodes a UserFolderPermissionsResponses message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Router.UserFolderPermissionsResponses - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Router.UserFolderPermissionsResponses} UserFolderPermissionsResponses - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - UserFolderPermissionsResponses.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a UserFolderPermissionsResponses message. - * @function verify - * @memberof Router.UserFolderPermissionsResponses - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - UserFolderPermissionsResponses.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.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.UserFolderPermissionsResponse.verify(message.responses[i], long + 1); - if (error) - return "responses." + error; - } - } - return null; - }; - /** * Creates a UserFolderPermissionsResponses message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -306500,6 +249121,8 @@ export const Router = $root.Router = (() => { UserFolderPermissionsResponses.fromObject = function fromObject(object, long) { if (object instanceof $root.Router.UserFolderPermissionsResponses) return object; + if (!$util.isObject(object)) + throw TypeError(".Router.UserFolderPermissionsResponses: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -306510,7 +249133,7 @@ export const Router = $root.Router = (() => { throw TypeError(".Router.UserFolderPermissionsResponses.responses: array expected"); message.responses = []; for (let i = 0; i < object.responses.length; ++i) { - if (typeof object.responses[i] !== "object") + if (!$util.isObject(object.responses[i])) throw TypeError(".Router.UserFolderPermissionsResponses.responses: object expected"); message.responses[i] = $root.Router.UserFolderPermissionsResponse.fromObject(object.responses[i], long + 1); } @@ -306650,19 +249273,6 @@ export const Router = $root.Router = (() => { return writer; }; - /** - * Encodes the specified RotationSchedule message, length delimited. Does not implicitly {@link Router.RotationSchedule.verify|verify} messages. - * @function encodeDelimited - * @memberof Router.RotationSchedule - * @static - * @param {Router.IRotationSchedule} message RotationSchedule message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RotationSchedule.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a RotationSchedule message from the specified reader or buffer. * @function decode @@ -306703,46 +249313,6 @@ export const Router = $root.Router = (() => { return message; }; - /** - * Decodes a RotationSchedule message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Router.RotationSchedule - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Router.RotationSchedule} RotationSchedule - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RotationSchedule.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a RotationSchedule message. - * @function verify - * @memberof Router.RotationSchedule - * @static - * @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) { - if (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.schedule != null && message.hasOwnProperty("schedule")) - if (!$util.isString(message.schedule)) - return "schedule: string expected"; - return null; - }; - /** * Creates a RotationSchedule message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -306754,6 +249324,8 @@ export const Router = $root.Router = (() => { RotationSchedule.fromObject = function fromObject(object, long) { if (object instanceof $root.Router.RotationSchedule) return object; + if (!$util.isObject(object)) + throw TypeError(".Router.RotationSchedule: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -306796,9 +249368,9 @@ export const Router = $root.Router = (() => { } object.schedule = ""; } - if (message.recordUid != null && message.hasOwnProperty("recordUid")) + if (message.recordUid != null && Object.hasOwnProperty.call(message, "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.schedule != null && message.hasOwnProperty("schedule")) + if (message.schedule != null && Object.hasOwnProperty.call(message, "schedule")) object.schedule = message.schedule; return object; }; @@ -306948,19 +249520,6 @@ export const Router = $root.Router = (() => { return writer; }; - /** - * Encodes the specified ApiCallbackRequest message, length delimited. Does not implicitly {@link Router.ApiCallbackRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof Router.ApiCallbackRequest - * @static - * @param {Router.IApiCallbackRequest} message ApiCallbackRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ApiCallbackRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes an ApiCallbackRequest message from the specified reader or buffer. * @function decode @@ -307011,64 +249570,6 @@ export const Router = $root.Router = (() => { return message; }; - /** - * Decodes an ApiCallbackRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Router.ApiCallbackRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Router.ApiCallbackRequest} ApiCallbackRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ApiCallbackRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an ApiCallbackRequest message. - * @function verify - * @memberof Router.ApiCallbackRequest - * @static - * @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) { - if (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"; - 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.Router.ApiCallbackSchedule.verify(message.schedules[i], long + 1); - if (error) - return "schedules." + error; - } - } - if (message.url != null && message.hasOwnProperty("url")) - if (!$util.isString(message.url)) - return "url: string expected"; - if (message.serviceType != null && message.hasOwnProperty("serviceType")) - switch (message.serviceType) { - default: - return "serviceType: enum value expected"; - case 0: - case 1: - case 2: - break; - } - return null; - }; - /** * Creates an ApiCallbackRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -307080,6 +249581,8 @@ export const Router = $root.Router = (() => { ApiCallbackRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.Router.ApiCallbackRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".Router.ApiCallbackRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -307095,7 +249598,7 @@ export const Router = $root.Router = (() => { throw TypeError(".Router.ApiCallbackRequest.schedules: array expected"); message.schedules = []; for (let i = 0; i < object.schedules.length; ++i) { - if (typeof object.schedules[i] !== "object") + if (!$util.isObject(object.schedules[i])) throw TypeError(".Router.ApiCallbackRequest.schedules: object expected"); message.schedules[i] = $root.Router.ApiCallbackSchedule.fromObject(object.schedules[i], long + 1); } @@ -307155,16 +249658,16 @@ export const Router = $root.Router = (() => { object.url = ""; object.serviceType = options.enums === String ? "UNSPECIFIED" : 0; } - if (message.resourceUid != null && message.hasOwnProperty("resourceUid")) + if (message.resourceUid != null && Object.hasOwnProperty.call(message, "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.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); } - if (message.url != null && message.hasOwnProperty("url")) + if (message.url != null && Object.hasOwnProperty.call(message, "url")) object.url = message.url; - if (message.serviceType != null && message.hasOwnProperty("serviceType")) + if (message.serviceType != null && Object.hasOwnProperty.call(message, "serviceType")) object.serviceType = options.enums === String ? $root.Router.ServiceType[message.serviceType] === undefined ? message.serviceType : $root.Router.ServiceType[message.serviceType] : message.serviceType; return object; }; @@ -307274,19 +249777,6 @@ export const Router = $root.Router = (() => { return writer; }; - /** - * Encodes the specified ApiCallbackSchedule message, length delimited. Does not implicitly {@link Router.ApiCallbackSchedule.verify|verify} messages. - * @function encodeDelimited - * @memberof Router.ApiCallbackSchedule - * @static - * @param {Router.IApiCallbackSchedule} message ApiCallbackSchedule message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ApiCallbackSchedule.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes an ApiCallbackSchedule message from the specified reader or buffer. * @function decode @@ -307327,46 +249817,6 @@ export const Router = $root.Router = (() => { return message; }; - /** - * Decodes an ApiCallbackSchedule message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Router.ApiCallbackSchedule - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Router.ApiCallbackSchedule} ApiCallbackSchedule - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ApiCallbackSchedule.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an ApiCallbackSchedule message. - * @function verify - * @memberof Router.ApiCallbackSchedule - * @static - * @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) { - if (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"; - if (message.data != null && message.hasOwnProperty("data")) - if (!(message.data && typeof message.data.length === "number" || $util.isString(message.data))) - return "data: buffer expected"; - return null; - }; - /** * Creates an ApiCallbackSchedule message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -307378,6 +249828,8 @@ export const Router = $root.Router = (() => { ApiCallbackSchedule.fromObject = function fromObject(object, long) { if (object instanceof $root.Router.ApiCallbackSchedule) return object; + if (!$util.isObject(object)) + throw TypeError(".Router.ApiCallbackSchedule: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -307420,9 +249872,9 @@ export const Router = $root.Router = (() => { object.data = $util.newBuffer(object.data); } } - if (message.schedule != null && message.hasOwnProperty("schedule")) + if (message.schedule != null && Object.hasOwnProperty.call(message, "schedule")) object.schedule = message.schedule; - if (message.data != null && message.hasOwnProperty("data")) + if (message.data != null && Object.hasOwnProperty.call(message, "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; return object; }; @@ -307534,19 +249986,6 @@ export const Router = $root.Router = (() => { return writer; }; - /** - * Encodes the specified RouterScheduledActions message, length delimited. Does not implicitly {@link Router.RouterScheduledActions.verify|verify} messages. - * @function encodeDelimited - * @memberof Router.RouterScheduledActions - * @static - * @param {Router.IRouterScheduledActions} message RouterScheduledActions message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RouterScheduledActions.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a RouterScheduledActions message from the specified reader or buffer. * @function decode @@ -307589,50 +250028,6 @@ export const Router = $root.Router = (() => { return message; }; - /** - * Decodes a RouterScheduledActions message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Router.RouterScheduledActions - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Router.RouterScheduledActions} RouterScheduledActions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RouterScheduledActions.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a RouterScheduledActions message. - * @function verify - * @memberof Router.RouterScheduledActions - * @static - * @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) { - if (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"; - if (message.resourceUids != null && message.hasOwnProperty("resourceUids")) { - if (!Array.isArray(message.resourceUids)) - return "resourceUids: array expected"; - for (let i = 0; i < message.resourceUids.length; ++i) - if (!(message.resourceUids[i] && typeof message.resourceUids[i].length === "number" || $util.isString(message.resourceUids[i]))) - return "resourceUids: buffer[] expected"; - } - return null; - }; - /** * Creates a RouterScheduledActions message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -307644,6 +250039,8 @@ export const Router = $root.Router = (() => { RouterScheduledActions.fromObject = function fromObject(object, long) { if (object instanceof $root.Router.RouterScheduledActions) return object; + if (!$util.isObject(object)) + throw TypeError(".Router.RouterScheduledActions: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -307685,7 +250082,7 @@ export const Router = $root.Router = (() => { object.resourceUids = []; if (options.defaults) object.schedule = ""; - if (message.schedule != null && message.hasOwnProperty("schedule")) + if (message.schedule != null && Object.hasOwnProperty.call(message, "schedule")) object.schedule = message.schedule; if (message.resourceUids && message.resourceUids.length) { object.resourceUids = []; @@ -307791,19 +250188,6 @@ export const Router = $root.Router = (() => { return writer; }; - /** - * Encodes the specified RouterRecordsRotationRequest message, length delimited. Does not implicitly {@link Router.RouterRecordsRotationRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof Router.RouterRecordsRotationRequest - * @static - * @param {Router.IRouterRecordsRotationRequest} message RouterRecordsRotationRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RouterRecordsRotationRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a RouterRecordsRotationRequest message from the specified reader or buffer. * @function decode @@ -307842,49 +250226,6 @@ export const Router = $root.Router = (() => { return message; }; - /** - * Decodes a RouterRecordsRotationRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Router.RouterRecordsRotationRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Router.RouterRecordsRotationRequest} RouterRecordsRotationRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RouterRecordsRotationRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a RouterRecordsRotationRequest message. - * @function verify - * @memberof Router.RouterRecordsRotationRequest - * @static - * @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) { - if (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); - if (error) - return "rotationSchedules." + error; - } - } - return null; - }; - /** * Creates a RouterRecordsRotationRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -307896,6 +250237,8 @@ export const Router = $root.Router = (() => { RouterRecordsRotationRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.Router.RouterRecordsRotationRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".Router.RouterRecordsRotationRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -307906,7 +250249,7 @@ export const Router = $root.Router = (() => { throw TypeError(".Router.RouterRecordsRotationRequest.rotationSchedules: array expected"); message.rotationSchedules = []; for (let i = 0; i < object.rotationSchedules.length; ++i) { - if (typeof object.rotationSchedules[i] !== "object") + if (!$util.isObject(object.rotationSchedules[i])) throw TypeError(".Router.RouterRecordsRotationRequest.rotationSchedules: object expected"); message.rotationSchedules[i] = $root.Router.RouterScheduledActions.fromObject(object.rotationSchedules[i], long + 1); } @@ -308079,19 +250422,6 @@ export const Router = $root.Router = (() => { return writer; }; - /** - * Encodes the specified ConnectionParameters message, length delimited. Does not implicitly {@link Router.ConnectionParameters.verify|verify} messages. - * @function encodeDelimited - * @memberof Router.ConnectionParameters - * @static - * @param {Router.IConnectionParameters} message ConnectionParameters message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ConnectionParameters.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a ConnectionParameters message from the specified reader or buffer. * @function decode @@ -308144,55 +250474,6 @@ export const Router = $root.Router = (() => { return message; }; - /** - * Decodes a ConnectionParameters message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Router.ConnectionParameters - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Router.ConnectionParameters} ConnectionParameters - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ConnectionParameters.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a ConnectionParameters message. - * @function verify - * @memberof Router.ConnectionParameters - * @static - * @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) { - if (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"; - 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.userId != null && message.hasOwnProperty("userId")) - if (!$util.isInteger(message.userId)) - return "userId: integer expected"; - if (message.controllerUid != null && message.hasOwnProperty("controllerUid")) - if (!(message.controllerUid && typeof message.controllerUid.length === "number" || $util.isString(message.controllerUid))) - return "controllerUid: buffer expected"; - if (message.credentialsRecordUid != null && message.hasOwnProperty("credentialsRecordUid")) - if (!(message.credentialsRecordUid && typeof message.credentialsRecordUid.length === "number" || $util.isString(message.credentialsRecordUid))) - return "credentialsRecordUid: buffer expected"; - return null; - }; - /** * Creates a ConnectionParameters message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -308204,6 +250485,8 @@ export const Router = $root.Router = (() => { ConnectionParameters.fromObject = function fromObject(object, long) { if (object instanceof $root.Router.ConnectionParameters) return object; + if (!$util.isObject(object)) + throw TypeError(".Router.ConnectionParameters: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -308282,15 +250565,15 @@ export const Router = $root.Router = (() => { object.credentialsRecordUid = $util.newBuffer(object.credentialsRecordUid); } } - if (message.connectionUid != null && message.hasOwnProperty("connectionUid")) + if (message.connectionUid != null && Object.hasOwnProperty.call(message, "connectionUid")) object.connectionUid = options.bytes === String ? $util.base64.encode(message.connectionUid, 0, message.connectionUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.connectionUid) : message.connectionUid; - if (message.recordUid != null && message.hasOwnProperty("recordUid")) + if (message.recordUid != null && Object.hasOwnProperty.call(message, "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.userId != null && message.hasOwnProperty("userId")) + if (message.userId != null && Object.hasOwnProperty.call(message, "userId")) object.userId = message.userId; - if (message.controllerUid != null && message.hasOwnProperty("controllerUid")) + if (message.controllerUid != null && Object.hasOwnProperty.call(message, "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.credentialsRecordUid != null && message.hasOwnProperty("credentialsRecordUid")) + if (message.credentialsRecordUid != null && Object.hasOwnProperty.call(message, "credentialsRecordUid")) object.credentialsRecordUid = options.bytes === String ? $util.base64.encode(message.credentialsRecordUid, 0, message.credentialsRecordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.credentialsRecordUid) : message.credentialsRecordUid; return object; }; @@ -308391,19 +250674,6 @@ export const Router = $root.Router = (() => { return writer; }; - /** - * Encodes the specified ValidateConnectionsRequest message, length delimited. Does not implicitly {@link Router.ValidateConnectionsRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof Router.ValidateConnectionsRequest - * @static - * @param {Router.IValidateConnectionsRequest} message ValidateConnectionsRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ValidateConnectionsRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a ValidateConnectionsRequest message from the specified reader or buffer. * @function decode @@ -308442,49 +250712,6 @@ export const Router = $root.Router = (() => { return message; }; - /** - * Decodes a ValidateConnectionsRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Router.ValidateConnectionsRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Router.ValidateConnectionsRequest} ValidateConnectionsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ValidateConnectionsRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a ValidateConnectionsRequest message. - * @function verify - * @memberof Router.ValidateConnectionsRequest - * @static - * @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) { - if (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); - if (error) - return "connections." + error; - } - } - return null; - }; - /** * Creates a ValidateConnectionsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -308496,6 +250723,8 @@ export const Router = $root.Router = (() => { ValidateConnectionsRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.Router.ValidateConnectionsRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".Router.ValidateConnectionsRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -308506,7 +250735,7 @@ export const Router = $root.Router = (() => { throw TypeError(".Router.ValidateConnectionsRequest.connections: array expected"); message.connections = []; for (let i = 0; i < object.connections.length; ++i) { - if (typeof object.connections[i] !== "object") + if (!$util.isObject(object.connections[i])) throw TypeError(".Router.ValidateConnectionsRequest.connections: object expected"); message.connections[i] = $root.Router.ConnectionParameters.fromObject(object.connections[i], long + 1); } @@ -308646,19 +250875,6 @@ export const Router = $root.Router = (() => { return writer; }; - /** - * Encodes the specified ConnectionValidationFailure message, length delimited. Does not implicitly {@link Router.ConnectionValidationFailure.verify|verify} messages. - * @function encodeDelimited - * @memberof Router.ConnectionValidationFailure - * @static - * @param {Router.IConnectionValidationFailure} message ConnectionValidationFailure message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ConnectionValidationFailure.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a ConnectionValidationFailure message from the specified reader or buffer. * @function decode @@ -308699,46 +250915,6 @@ export const Router = $root.Router = (() => { return message; }; - /** - * Decodes a ConnectionValidationFailure message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Router.ConnectionValidationFailure - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Router.ConnectionValidationFailure} ConnectionValidationFailure - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ConnectionValidationFailure.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a ConnectionValidationFailure message. - * @function verify - * @memberof Router.ConnectionValidationFailure - * @static - * @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) { - if (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"; - if (message.errorMessage != null && message.hasOwnProperty("errorMessage")) - if (!$util.isString(message.errorMessage)) - return "errorMessage: string expected"; - return null; - }; - /** * Creates a ConnectionValidationFailure message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -308750,6 +250926,8 @@ export const Router = $root.Router = (() => { ConnectionValidationFailure.fromObject = function fromObject(object, long) { if (object instanceof $root.Router.ConnectionValidationFailure) return object; + if (!$util.isObject(object)) + throw TypeError(".Router.ConnectionValidationFailure: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -308792,9 +250970,9 @@ export const Router = $root.Router = (() => { } object.errorMessage = ""; } - if (message.connectionUid != null && message.hasOwnProperty("connectionUid")) + if (message.connectionUid != null && Object.hasOwnProperty.call(message, "connectionUid")) object.connectionUid = options.bytes === String ? $util.base64.encode(message.connectionUid, 0, message.connectionUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.connectionUid) : message.connectionUid; - if (message.errorMessage != null && message.hasOwnProperty("errorMessage")) + if (message.errorMessage != null && Object.hasOwnProperty.call(message, "errorMessage")) object.errorMessage = message.errorMessage; return object; }; @@ -308895,19 +251073,6 @@ export const Router = $root.Router = (() => { return writer; }; - /** - * Encodes the specified ValidateConnectionsResponse message, length delimited. Does not implicitly {@link Router.ValidateConnectionsResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof Router.ValidateConnectionsResponse - * @static - * @param {Router.IValidateConnectionsResponse} message ValidateConnectionsResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ValidateConnectionsResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a ValidateConnectionsResponse message from the specified reader or buffer. * @function decode @@ -308946,49 +251111,6 @@ export const Router = $root.Router = (() => { return message; }; - /** - * Decodes a ValidateConnectionsResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Router.ValidateConnectionsResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Router.ValidateConnectionsResponse} ValidateConnectionsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ValidateConnectionsResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a ValidateConnectionsResponse message. - * @function verify - * @memberof Router.ValidateConnectionsResponse - * @static - * @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) { - if (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); - if (error) - return "failedConnections." + error; - } - } - return null; - }; - /** * Creates a ValidateConnectionsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -309000,6 +251122,8 @@ export const Router = $root.Router = (() => { ValidateConnectionsResponse.fromObject = function fromObject(object, long) { if (object instanceof $root.Router.ValidateConnectionsResponse) return object; + if (!$util.isObject(object)) + throw TypeError(".Router.ValidateConnectionsResponse: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -309010,7 +251134,7 @@ export const Router = $root.Router = (() => { throw TypeError(".Router.ValidateConnectionsResponse.failedConnections: array expected"); message.failedConnections = []; for (let i = 0; i < object.failedConnections.length; ++i) { - if (typeof object.failedConnections[i] !== "object") + if (!$util.isObject(object.failedConnections[i])) throw TypeError(".Router.ValidateConnectionsResponse.failedConnections: object expected"); message.failedConnections[i] = $root.Router.ConnectionValidationFailure.fromObject(object.failedConnections[i], long + 1); } @@ -309139,19 +251263,6 @@ export const Router = $root.Router = (() => { return writer; }; - /** - * Encodes the specified GetEnforcementRequest message, length delimited. Does not implicitly {@link Router.GetEnforcementRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof Router.GetEnforcementRequest - * @static - * @param {Router.IGetEnforcementRequest} message GetEnforcementRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetEnforcementRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a GetEnforcementRequest message from the specified reader or buffer. * @function decode @@ -309188,43 +251299,6 @@ export const Router = $root.Router = (() => { return message; }; - /** - * Decodes a GetEnforcementRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Router.GetEnforcementRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Router.GetEnforcementRequest} GetEnforcementRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetEnforcementRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a GetEnforcementRequest message. - * @function verify - * @memberof Router.GetEnforcementRequest - * @static - * @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) { - if (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"; - return null; - }; - /** * Creates a GetEnforcementRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -309236,6 +251310,8 @@ export const Router = $root.Router = (() => { GetEnforcementRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.Router.GetEnforcementRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".Router.GetEnforcementRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -309276,7 +251352,7 @@ export const Router = $root.Router = (() => { object.enterpriseUserId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; } else object.enterpriseUserId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; - if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) + if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, "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") @@ -309391,19 +251467,6 @@ export const Router = $root.Router = (() => { return writer; }; - /** - * Encodes the specified EnforcementType message, length delimited. Does not implicitly {@link Router.EnforcementType.verify|verify} messages. - * @function encodeDelimited - * @memberof Router.EnforcementType - * @static - * @param {Router.IEnforcementType} message EnforcementType message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - EnforcementType.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes an EnforcementType message from the specified reader or buffer. * @function decode @@ -309444,46 +251507,6 @@ export const Router = $root.Router = (() => { return message; }; - /** - * Decodes an EnforcementType message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Router.EnforcementType - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Router.EnforcementType} EnforcementType - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - EnforcementType.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an EnforcementType message. - * @function verify - * @memberof Router.EnforcementType - * @static - * @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) { - if (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"; - if (message.value != null && message.hasOwnProperty("value")) - if (!$util.isString(message.value)) - return "value: string expected"; - return null; - }; - /** * Creates an EnforcementType message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -309495,6 +251518,8 @@ export const Router = $root.Router = (() => { EnforcementType.fromObject = function fromObject(object, long) { if (object instanceof $root.Router.EnforcementType) return object; + if (!$util.isObject(object)) + throw TypeError(".Router.EnforcementType: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -309528,9 +251553,9 @@ export const Router = $root.Router = (() => { object.enforcementTypeId = 0; object.value = ""; } - if (message.enforcementTypeId != null && message.hasOwnProperty("enforcementTypeId")) + if (message.enforcementTypeId != null && Object.hasOwnProperty.call(message, "enforcementTypeId")) object.enforcementTypeId = message.enforcementTypeId; - if (message.value != null && message.hasOwnProperty("value")) + if (message.value != null && Object.hasOwnProperty.call(message, "value")) object.value = message.value; return object; }; @@ -309658,19 +251683,6 @@ export const Router = $root.Router = (() => { return writer; }; - /** - * Encodes the specified GetEnforcementResponse message, length delimited. Does not implicitly {@link Router.GetEnforcementResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof Router.GetEnforcementResponse - * @static - * @param {Router.IGetEnforcementResponse} message GetEnforcementResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetEnforcementResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a GetEnforcementResponse message from the specified reader or buffer. * @function decode @@ -309724,59 +251736,6 @@ export const Router = $root.Router = (() => { return message; }; - /** - * Decodes a GetEnforcementResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Router.GetEnforcementResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Router.GetEnforcementResponse} GetEnforcementResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetEnforcementResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a GetEnforcementResponse message. - * @function verify - * @memberof Router.GetEnforcementResponse - * @static - * @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) { - if (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); - if (error) - return "enforcementTypes." + error; - } - } - if (message.addOnIds != null && message.hasOwnProperty("addOnIds")) { - if (!Array.isArray(message.addOnIds)) - return "addOnIds: array expected"; - for (let i = 0; i < message.addOnIds.length; ++i) - if (!$util.isInteger(message.addOnIds[i])) - return "addOnIds: integer[] expected"; - } - if (message.isInTrial != null && message.hasOwnProperty("isInTrial")) - if (typeof message.isInTrial !== "boolean") - return "isInTrial: boolean expected"; - return null; - }; - /** * Creates a GetEnforcementResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -309788,6 +251747,8 @@ export const Router = $root.Router = (() => { GetEnforcementResponse.fromObject = function fromObject(object, long) { if (object instanceof $root.Router.GetEnforcementResponse) return object; + if (!$util.isObject(object)) + throw TypeError(".Router.GetEnforcementResponse: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -309798,7 +251759,7 @@ export const Router = $root.Router = (() => { throw TypeError(".Router.GetEnforcementResponse.enforcementTypes: array expected"); message.enforcementTypes = []; for (let i = 0; i < object.enforcementTypes.length; ++i) { - if (typeof object.enforcementTypes[i] !== "object") + if (!$util.isObject(object.enforcementTypes[i])) throw TypeError(".Router.GetEnforcementResponse.enforcementTypes: object expected"); message.enforcementTypes[i] = $root.Router.EnforcementType.fromObject(object.enforcementTypes[i], long + 1); } @@ -309848,7 +251809,7 @@ export const Router = $root.Router = (() => { for (let j = 0; j < message.addOnIds.length; ++j) object.addOnIds[j] = message.addOnIds[j]; } - if (message.isInTrial != null && message.hasOwnProperty("isInTrial")) + if (message.isInTrial != null && Object.hasOwnProperty.call(message, "isInTrial")) object.isInTrial = message.isInTrial; return object; }; @@ -309969,19 +251930,6 @@ export const Router = $root.Router = (() => { return writer; }; - /** - * Encodes the specified PEDMTOTPValidateRequest message, length delimited. Does not implicitly {@link Router.PEDMTOTPValidateRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof Router.PEDMTOTPValidateRequest - * @static - * @param {Router.IPEDMTOTPValidateRequest} message PEDMTOTPValidateRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - PEDMTOTPValidateRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a PEDMTOTPValidateRequest message from the specified reader or buffer. * @function decode @@ -310026,49 +251974,6 @@ export const Router = $root.Router = (() => { return message; }; - /** - * Decodes a PEDMTOTPValidateRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Router.PEDMTOTPValidateRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Router.PEDMTOTPValidateRequest} PEDMTOTPValidateRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - PEDMTOTPValidateRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a PEDMTOTPValidateRequest message. - * @function verify - * @memberof Router.PEDMTOTPValidateRequest - * @static - * @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) { - if (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"; - if (message.enterpriseId != null && message.hasOwnProperty("enterpriseId")) - if (!$util.isInteger(message.enterpriseId)) - return "enterpriseId: integer expected"; - if (message.code != null && message.hasOwnProperty("code")) - if (!$util.isInteger(message.code)) - return "code: integer expected"; - return null; - }; - /** * Creates a PEDMTOTPValidateRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -310080,6 +251985,8 @@ export const Router = $root.Router = (() => { PEDMTOTPValidateRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.Router.PEDMTOTPValidateRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".Router.PEDMTOTPValidateRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -310116,11 +252023,11 @@ export const Router = $root.Router = (() => { object.enterpriseId = 0; object.code = 0; } - if (message.username != null && message.hasOwnProperty("username")) + if (message.username != null && Object.hasOwnProperty.call(message, "username")) object.username = message.username; - if (message.enterpriseId != null && message.hasOwnProperty("enterpriseId")) + if (message.enterpriseId != null && Object.hasOwnProperty.call(message, "enterpriseId")) object.enterpriseId = message.enterpriseId; - if (message.code != null && message.hasOwnProperty("code")) + if (message.code != null && Object.hasOwnProperty.call(message, "code")) object.code = message.code; return object; }; @@ -310230,19 +252137,6 @@ export const Router = $root.Router = (() => { return writer; }; - /** - * Encodes the specified GetPEDMAdminInfoResponse message, length delimited. Does not implicitly {@link Router.GetPEDMAdminInfoResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof Router.GetPEDMAdminInfoResponse - * @static - * @param {Router.IGetPEDMAdminInfoResponse} message GetPEDMAdminInfoResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetPEDMAdminInfoResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a GetPEDMAdminInfoResponse message from the specified reader or buffer. * @function decode @@ -310283,46 +252177,6 @@ export const Router = $root.Router = (() => { return message; }; - /** - * Decodes a GetPEDMAdminInfoResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Router.GetPEDMAdminInfoResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Router.GetPEDMAdminInfoResponse} GetPEDMAdminInfoResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetPEDMAdminInfoResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a GetPEDMAdminInfoResponse message. - * @function verify - * @memberof Router.GetPEDMAdminInfoResponse - * @static - * @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) { - if (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"; - if (message.pedmAddonActive != null && message.hasOwnProperty("pedmAddonActive")) - if (typeof message.pedmAddonActive !== "boolean") - return "pedmAddonActive: boolean expected"; - return null; - }; - /** * Creates a GetPEDMAdminInfoResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -310334,6 +252188,8 @@ export const Router = $root.Router = (() => { GetPEDMAdminInfoResponse.fromObject = function fromObject(object, long) { if (object instanceof $root.Router.GetPEDMAdminInfoResponse) return object; + if (!$util.isObject(object)) + throw TypeError(".Router.GetPEDMAdminInfoResponse: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -310367,9 +252223,9 @@ export const Router = $root.Router = (() => { object.isPedmAdmin = false; object.pedmAddonActive = false; } - if (message.isPedmAdmin != null && message.hasOwnProperty("isPedmAdmin")) + if (message.isPedmAdmin != null && Object.hasOwnProperty.call(message, "isPedmAdmin")) object.isPedmAdmin = message.isPedmAdmin; - if (message.pedmAddonActive != null && message.hasOwnProperty("pedmAddonActive")) + if (message.pedmAddonActive != null && Object.hasOwnProperty.call(message, "pedmAddonActive")) object.pedmAddonActive = message.pedmAddonActive; return object; }; @@ -310505,19 +252361,6 @@ export const Router = $root.Router = (() => { return writer; }; - /** - * Encodes the specified PAMNetworkSettings message, length delimited. Does not implicitly {@link Router.PAMNetworkSettings.verify|verify} messages. - * @function encodeDelimited - * @memberof Router.PAMNetworkSettings - * @static - * @param {Router.IPAMNetworkSettings} message PAMNetworkSettings message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - PAMNetworkSettings.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a PAMNetworkSettings message from the specified reader or buffer. * @function decode @@ -310562,54 +252405,6 @@ export const Router = $root.Router = (() => { return message; }; - /** - * Decodes a PAMNetworkSettings message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Router.PAMNetworkSettings - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Router.PAMNetworkSettings} PAMNetworkSettings - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - PAMNetworkSettings.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a PAMNetworkSettings message. - * @function verify - * @memberof Router.PAMNetworkSettings - * @static - * @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) { - 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.allowedSettings != null && message.hasOwnProperty("allowedSettings")) - if (!(message.allowedSettings && typeof message.allowedSettings.length === "number" || $util.isString(message.allowedSettings))) - return "allowedSettings: buffer expected"; - if (message.idpConfigUid != null && message.hasOwnProperty("idpConfigUid")) { - properties._idpConfigUid = 1; - if (!(message.idpConfigUid && typeof message.idpConfigUid.length === "number" || $util.isString(message.idpConfigUid))) - return "idpConfigUid: buffer expected"; - } - if (message.adminUid != null && message.hasOwnProperty("adminUid")) { - properties._adminUid = 1; - if (!(message.adminUid && typeof message.adminUid.length === "number" || $util.isString(message.adminUid))) - return "adminUid: buffer expected"; - } - return null; - }; - /** * Creates a PAMNetworkSettings message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -310621,6 +252416,8 @@ export const Router = $root.Router = (() => { PAMNetworkSettings.fromObject = function fromObject(object, long) { if (object instanceof $root.Router.PAMNetworkSettings) return object; + if (!$util.isObject(object)) + throw TypeError(".Router.PAMNetworkSettings: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -310669,14 +252466,14 @@ export const Router = $root.Router = (() => { if (options.bytes !== Array) object.allowedSettings = $util.newBuffer(object.allowedSettings); } - if (message.allowedSettings != null && message.hasOwnProperty("allowedSettings")) + if (message.allowedSettings != null && Object.hasOwnProperty.call(message, "allowedSettings")) object.allowedSettings = options.bytes === String ? $util.base64.encode(message.allowedSettings, 0, message.allowedSettings.length) : options.bytes === Array ? Array.prototype.slice.call(message.allowedSettings) : message.allowedSettings; - if (message.idpConfigUid != null && message.hasOwnProperty("idpConfigUid")) { + if (message.idpConfigUid != null && Object.hasOwnProperty.call(message, "idpConfigUid")) { object.idpConfigUid = options.bytes === String ? $util.base64.encode(message.idpConfigUid, 0, message.idpConfigUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.idpConfigUid) : message.idpConfigUid; if (options.oneofs) object._idpConfigUid = "idpConfigUid"; } - if (message.adminUid != null && message.hasOwnProperty("adminUid")) { + if (message.adminUid != null && Object.hasOwnProperty.call(message, "adminUid")) { object.adminUid = options.bytes === String ? $util.base64.encode(message.adminUid, 0, message.adminUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.adminUid) : message.adminUid; if (options.oneofs) object._adminUid = "adminUid"; @@ -310824,19 +252621,6 @@ export const Router = $root.Router = (() => { return writer; }; - /** - * Encodes the specified PAMNetworkConfigurationRequest message, length delimited. Does not implicitly {@link Router.PAMNetworkConfigurationRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof Router.PAMNetworkConfigurationRequest - * @static - * @param {Router.IPAMNetworkConfigurationRequest} message PAMNetworkConfigurationRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - PAMNetworkConfigurationRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a PAMNetworkConfigurationRequest message from the specified reader or buffer. * @function decode @@ -310889,70 +252673,6 @@ export const Router = $root.Router = (() => { return message; }; - /** - * Decodes a PAMNetworkConfigurationRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Router.PAMNetworkConfigurationRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Router.PAMNetworkConfigurationRequest} PAMNetworkConfigurationRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - PAMNetworkConfigurationRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a PAMNetworkConfigurationRequest message. - * @function verify - * @memberof Router.PAMNetworkConfigurationRequest - * @static - * @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) { - 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))) - return "recordUid: buffer expected"; - if (message.networkSettings != null && message.hasOwnProperty("networkSettings")) { - properties._networkSettings = 1; - { - let error = $root.Router.PAMNetworkSettings.verify(message.networkSettings, long + 1); - if (error) - return "networkSettings." + error; - } - } - if (message.resources != null && message.hasOwnProperty("resources")) { - 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); - if (error) - return "resources." + error; - } - } - 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.RouterRecordRotationRequest.verify(message.rotations[i], long + 1); - if (error) - return "rotations." + error; - } - } - return null; - }; - /** * Creates a PAMNetworkConfigurationRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -310964,6 +252684,8 @@ export const Router = $root.Router = (() => { PAMNetworkConfigurationRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.Router.PAMNetworkConfigurationRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".Router.PAMNetworkConfigurationRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -310975,7 +252697,7 @@ export const Router = $root.Router = (() => { else if (object.recordUid.length >= 0) message.recordUid = object.recordUid; if (object.networkSettings != null) { - if (typeof object.networkSettings !== "object") + if (!$util.isObject(object.networkSettings)) throw TypeError(".Router.PAMNetworkConfigurationRequest.networkSettings: object expected"); message.networkSettings = $root.Router.PAMNetworkSettings.fromObject(object.networkSettings, long + 1); } @@ -310984,7 +252706,7 @@ export const Router = $root.Router = (() => { throw TypeError(".Router.PAMNetworkConfigurationRequest.resources: array expected"); message.resources = []; for (let i = 0; i < object.resources.length; ++i) { - if (typeof object.resources[i] !== "object") + if (!$util.isObject(object.resources[i])) throw TypeError(".Router.PAMNetworkConfigurationRequest.resources: object expected"); message.resources[i] = $root.PAM.PAMResourceConfig.fromObject(object.resources[i], long + 1); } @@ -310994,7 +252716,7 @@ export const Router = $root.Router = (() => { throw TypeError(".Router.PAMNetworkConfigurationRequest.rotations: array expected"); message.rotations = []; for (let i = 0; i < object.rotations.length; ++i) { - if (typeof object.rotations[i] !== "object") + if (!$util.isObject(object.rotations[i])) throw TypeError(".Router.PAMNetworkConfigurationRequest.rotations: object expected"); message.rotations[i] = $root.Router.RouterRecordRotationRequest.fromObject(object.rotations[i], long + 1); } @@ -311031,9 +252753,9 @@ export const Router = $root.Router = (() => { if (options.bytes !== Array) object.recordUid = $util.newBuffer(object.recordUid); } - if (message.recordUid != null && message.hasOwnProperty("recordUid")) + if (message.recordUid != null && Object.hasOwnProperty.call(message, "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")) { + if (message.networkSettings != null && Object.hasOwnProperty.call(message, "networkSettings")) { object.networkSettings = $root.Router.PAMNetworkSettings.toObject(message.networkSettings, options, q + 1); if (options.oneofs) object._networkSettings = "networkSettings"; @@ -311167,19 +252889,6 @@ export const Router = $root.Router = (() => { return writer; }; - /** - * Encodes the specified PAMDiscoveryRulesSetRequest message, length delimited. Does not implicitly {@link Router.PAMDiscoveryRulesSetRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof Router.PAMDiscoveryRulesSetRequest - * @static - * @param {Router.IPAMDiscoveryRulesSetRequest} message PAMDiscoveryRulesSetRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - PAMDiscoveryRulesSetRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a PAMDiscoveryRulesSetRequest message from the specified reader or buffer. * @function decode @@ -311224,49 +252933,6 @@ export const Router = $root.Router = (() => { return message; }; - /** - * Decodes a PAMDiscoveryRulesSetRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Router.PAMDiscoveryRulesSetRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Router.PAMDiscoveryRulesSetRequest} PAMDiscoveryRulesSetRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - PAMDiscoveryRulesSetRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a PAMDiscoveryRulesSetRequest message. - * @function verify - * @memberof Router.PAMDiscoveryRulesSetRequest - * @static - * @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) { - if (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"; - if (message.rules != null && message.hasOwnProperty("rules")) - if (!(message.rules && typeof message.rules.length === "number" || $util.isString(message.rules))) - return "rules: buffer expected"; - if (message.rulesKey != null && message.hasOwnProperty("rulesKey")) - if (!(message.rulesKey && typeof message.rulesKey.length === "number" || $util.isString(message.rulesKey))) - return "rulesKey: buffer expected"; - return null; - }; - /** * Creates a PAMDiscoveryRulesSetRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -311278,6 +252944,8 @@ export const Router = $root.Router = (() => { PAMDiscoveryRulesSetRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.Router.PAMDiscoveryRulesSetRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".Router.PAMDiscoveryRulesSetRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -311341,11 +253009,11 @@ export const Router = $root.Router = (() => { object.rulesKey = $util.newBuffer(object.rulesKey); } } - if (message.networkUid != null && message.hasOwnProperty("networkUid")) + if (message.networkUid != null && Object.hasOwnProperty.call(message, "networkUid")) object.networkUid = options.bytes === String ? $util.base64.encode(message.networkUid, 0, message.networkUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.networkUid) : message.networkUid; - if (message.rules != null && message.hasOwnProperty("rules")) + if (message.rules != null && Object.hasOwnProperty.call(message, "rules")) object.rules = options.bytes === String ? $util.base64.encode(message.rules, 0, message.rules.length) : options.bytes === Array ? Array.prototype.slice.call(message.rules) : message.rules; - if (message.rulesKey != null && message.hasOwnProperty("rulesKey")) + if (message.rulesKey != null && Object.hasOwnProperty.call(message, "rulesKey")) object.rulesKey = options.bytes === String ? $util.base64.encode(message.rulesKey, 0, message.rulesKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.rulesKey) : message.rulesKey; return object; }; @@ -311466,19 +253134,6 @@ export const Router = $root.Router = (() => { return writer; }; - /** - * Encodes the specified Router2FAValidateRequest message, length delimited. Does not implicitly {@link Router.Router2FAValidateRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof Router.Router2FAValidateRequest - * @static - * @param {Router.IRouter2FAValidateRequest} message Router2FAValidateRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Router2FAValidateRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a Router2FAValidateRequest message from the specified reader or buffer. * @function decode @@ -311523,49 +253178,6 @@ export const Router = $root.Router = (() => { return message; }; - /** - * Decodes a Router2FAValidateRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Router.Router2FAValidateRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Router.Router2FAValidateRequest} Router2FAValidateRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Router2FAValidateRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a Router2FAValidateRequest message. - * @function verify - * @memberof Router.Router2FAValidateRequest - * @static - * @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) { - if (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"; - 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.value != null && message.hasOwnProperty("value")) - if (!$util.isString(message.value)) - return "value: string expected"; - return null; - }; - /** * Creates a Router2FAValidateRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -311577,6 +253189,8 @@ export const Router = $root.Router = (() => { Router2FAValidateRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.Router.Router2FAValidateRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".Router.Router2FAValidateRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -311631,11 +253245,11 @@ export const Router = $root.Router = (() => { } object.value = ""; } - if (message.transmissionKey != null && message.hasOwnProperty("transmissionKey")) + if (message.transmissionKey != null && Object.hasOwnProperty.call(message, "transmissionKey")) object.transmissionKey = options.bytes === String ? $util.base64.encode(message.transmissionKey, 0, message.transmissionKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.transmissionKey) : message.transmissionKey; - if (message.sessionToken != null && message.hasOwnProperty("sessionToken")) + if (message.sessionToken != null && Object.hasOwnProperty.call(message, "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.value != null && message.hasOwnProperty("value")) + if (message.value != null && Object.hasOwnProperty.call(message, "value")) object.value = message.value; return object; }; @@ -311756,19 +253370,6 @@ export const Router = $root.Router = (() => { return writer; }; - /** - * Encodes the specified Router2FASendPushRequest message, length delimited. Does not implicitly {@link Router.Router2FASendPushRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof Router.Router2FASendPushRequest - * @static - * @param {Router.IRouter2FASendPushRequest} message Router2FASendPushRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Router2FASendPushRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a Router2FASendPushRequest message from the specified reader or buffer. * @function decode @@ -311813,59 +253414,6 @@ export const Router = $root.Router = (() => { return message; }; - /** - * Decodes a Router2FASendPushRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Router.Router2FASendPushRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Router.Router2FASendPushRequest} Router2FASendPushRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Router2FASendPushRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a Router2FASendPushRequest message. - * @function verify - * @memberof Router.Router2FASendPushRequest - * @static - * @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) { - if (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"; - 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.pushType != null && message.hasOwnProperty("pushType")) - switch (message.pushType) { - default: - return "pushType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - break; - } - return null; - }; - /** * Creates a Router2FASendPushRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -311877,6 +253425,8 @@ export const Router = $root.Router = (() => { Router2FASendPushRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.Router.Router2FASendPushRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".Router.Router2FASendPushRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -311965,11 +253515,11 @@ export const Router = $root.Router = (() => { } object.pushType = options.enums === String ? "TWO_FA_PUSH_NONE" : 0; } - if (message.transmissionKey != null && message.hasOwnProperty("transmissionKey")) + if (message.transmissionKey != null && Object.hasOwnProperty.call(message, "transmissionKey")) object.transmissionKey = options.bytes === String ? $util.base64.encode(message.transmissionKey, 0, message.transmissionKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.transmissionKey) : message.transmissionKey; - if (message.sessionToken != null && message.hasOwnProperty("sessionToken")) + if (message.sessionToken != null && Object.hasOwnProperty.call(message, "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.pushType != null && message.hasOwnProperty("pushType")) + if (message.pushType != null && Object.hasOwnProperty.call(message, "pushType")) object.pushType = options.enums === String ? $root.Authentication.TwoFactorPushType[message.pushType] === undefined ? message.pushType : $root.Authentication.TwoFactorPushType[message.pushType] : message.pushType; return object; }; @@ -312079,19 +253629,6 @@ export const Router = $root.Router = (() => { return writer; }; - /** - * Encodes the specified Router2FAGetWebAuthnChallengeRequest message, length delimited. Does not implicitly {@link Router.Router2FAGetWebAuthnChallengeRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof Router.Router2FAGetWebAuthnChallengeRequest - * @static - * @param {Router.IRouter2FAGetWebAuthnChallengeRequest} message Router2FAGetWebAuthnChallengeRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Router2FAGetWebAuthnChallengeRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a Router2FAGetWebAuthnChallengeRequest message from the specified reader or buffer. * @function decode @@ -312132,46 +253669,6 @@ export const Router = $root.Router = (() => { return message; }; - /** - * Decodes a Router2FAGetWebAuthnChallengeRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Router.Router2FAGetWebAuthnChallengeRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Router.Router2FAGetWebAuthnChallengeRequest} Router2FAGetWebAuthnChallengeRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Router2FAGetWebAuthnChallengeRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a Router2FAGetWebAuthnChallengeRequest message. - * @function verify - * @memberof Router.Router2FAGetWebAuthnChallengeRequest - * @static - * @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) { - if (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"; - if (message.sessionToken != null && message.hasOwnProperty("sessionToken")) - if (!(message.sessionToken && typeof message.sessionToken.length === "number" || $util.isString(message.sessionToken))) - return "sessionToken: buffer expected"; - return null; - }; - /** * Creates a Router2FAGetWebAuthnChallengeRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -312183,6 +253680,8 @@ export const Router = $root.Router = (() => { Router2FAGetWebAuthnChallengeRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.Router.Router2FAGetWebAuthnChallengeRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".Router.Router2FAGetWebAuthnChallengeRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -312234,9 +253733,9 @@ export const Router = $root.Router = (() => { object.sessionToken = $util.newBuffer(object.sessionToken); } } - if (message.transmissionKey != null && message.hasOwnProperty("transmissionKey")) + if (message.transmissionKey != null && Object.hasOwnProperty.call(message, "transmissionKey")) object.transmissionKey = options.bytes === String ? $util.base64.encode(message.transmissionKey, 0, message.transmissionKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.transmissionKey) : message.transmissionKey; - if (message.sessionToken != null && message.hasOwnProperty("sessionToken")) + if (message.sessionToken != null && Object.hasOwnProperty.call(message, "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; return object; }; @@ -312348,19 +253847,6 @@ export const Router = $root.Router = (() => { return writer; }; - /** - * Encodes the specified Router2FAGetWebAuthnChallengeResponse message, length delimited. Does not implicitly {@link Router.Router2FAGetWebAuthnChallengeResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof Router.Router2FAGetWebAuthnChallengeResponse - * @static - * @param {Router.IRouter2FAGetWebAuthnChallengeResponse} message Router2FAGetWebAuthnChallengeResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Router2FAGetWebAuthnChallengeResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a Router2FAGetWebAuthnChallengeResponse message from the specified reader or buffer. * @function decode @@ -312403,50 +253889,6 @@ export const Router = $root.Router = (() => { return message; }; - /** - * Decodes a Router2FAGetWebAuthnChallengeResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Router.Router2FAGetWebAuthnChallengeResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Router.Router2FAGetWebAuthnChallengeResponse} Router2FAGetWebAuthnChallengeResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Router2FAGetWebAuthnChallengeResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a Router2FAGetWebAuthnChallengeResponse message. - * @function verify - * @memberof Router.Router2FAGetWebAuthnChallengeResponse - * @static - * @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) { - if (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"; - if (message.capabilities != null && message.hasOwnProperty("capabilities")) { - if (!Array.isArray(message.capabilities)) - return "capabilities: array expected"; - for (let i = 0; i < message.capabilities.length; ++i) - if (!$util.isString(message.capabilities[i])) - return "capabilities: string[] expected"; - } - return null; - }; - /** * Creates a Router2FAGetWebAuthnChallengeResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -312458,6 +253900,8 @@ export const Router = $root.Router = (() => { Router2FAGetWebAuthnChallengeResponse.fromObject = function fromObject(object, long) { if (object instanceof $root.Router.Router2FAGetWebAuthnChallengeResponse) return object; + if (!$util.isObject(object)) + throw TypeError(".Router.Router2FAGetWebAuthnChallengeResponse: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -312496,7 +253940,7 @@ export const Router = $root.Router = (() => { object.capabilities = []; if (options.defaults) object.challenge = ""; - if (message.challenge != null && message.hasOwnProperty("challenge")) + if (message.challenge != null && Object.hasOwnProperty.call(message, "challenge")) object.challenge = message.challenge; if (message.capabilities && message.capabilities.length) { object.capabilities = []; @@ -312622,19 +254066,6 @@ export const Router = $root.Router = (() => { return writer; }; - /** - * Encodes the specified CreateEphemeralSecretRequest message, length delimited. Does not implicitly {@link Router.CreateEphemeralSecretRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof Router.CreateEphemeralSecretRequest - * @static - * @param {Router.ICreateEphemeralSecretRequest} message CreateEphemeralSecretRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CreateEphemeralSecretRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a CreateEphemeralSecretRequest message from the specified reader or buffer. * @function decode @@ -312679,49 +254110,6 @@ export const Router = $root.Router = (() => { return message; }; - /** - * Decodes a CreateEphemeralSecretRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof Router.CreateEphemeralSecretRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Router.CreateEphemeralSecretRequest} CreateEphemeralSecretRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CreateEphemeralSecretRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a CreateEphemeralSecretRequest message. - * @function verify - * @memberof Router.CreateEphemeralSecretRequest - * @static - * @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) { - if (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"; - if (message.secretKeyHash != null && message.hasOwnProperty("secretKeyHash")) - if (!(message.secretKeyHash && typeof message.secretKeyHash.length === "number" || $util.isString(message.secretKeyHash))) - return "secretKeyHash: buffer expected"; - if (message.ttl != null && message.hasOwnProperty("ttl")) - if (!$util.isInteger(message.ttl) && !(message.ttl && $util.isInteger(message.ttl.low) && $util.isInteger(message.ttl.high))) - return "ttl: integer|Long expected"; - return null; - }; - /** * Creates a CreateEphemeralSecretRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -312733,6 +254121,8 @@ export const Router = $root.Router = (() => { CreateEphemeralSecretRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.Router.CreateEphemeralSecretRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".Router.CreateEphemeralSecretRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -312798,11 +254188,11 @@ export const Router = $root.Router = (() => { } else object.ttl = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; } - if (message.encryptedSecret != null && message.hasOwnProperty("encryptedSecret")) + if (message.encryptedSecret != null && Object.hasOwnProperty.call(message, "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")) + if (message.secretKeyHash != null && Object.hasOwnProperty.call(message, "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 (message.ttl != null && Object.hasOwnProperty.call(message, "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") @@ -312962,19 +254352,6 @@ export const PAM = $root.PAM = (() => { return writer; }; - /** - * Encodes the specified PAMRotationSchedule message, length delimited. Does not implicitly {@link PAM.PAMRotationSchedule.verify|verify} messages. - * @function encodeDelimited - * @memberof PAM.PAMRotationSchedule - * @static - * @param {PAM.IPAMRotationSchedule} message PAMRotationSchedule message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - PAMRotationSchedule.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a PAMRotationSchedule message from the specified reader or buffer. * @function decode @@ -313027,55 +254404,6 @@ export const PAM = $root.PAM = (() => { return message; }; - /** - * Decodes a PAMRotationSchedule message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof PAM.PAMRotationSchedule - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {PAM.PAMRotationSchedule} PAMRotationSchedule - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - PAMRotationSchedule.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a PAMRotationSchedule message. - * @function verify - * @memberof PAM.PAMRotationSchedule - * @static - * @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) { - if (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.configurationUid != null && message.hasOwnProperty("configurationUid")) - if (!(message.configurationUid && typeof message.configurationUid.length === "number" || $util.isString(message.configurationUid))) - return "configurationUid: buffer expected"; - if (message.controllerUid != null && message.hasOwnProperty("controllerUid")) - if (!(message.controllerUid && typeof message.controllerUid.length === "number" || $util.isString(message.controllerUid))) - return "controllerUid: buffer expected"; - if (message.scheduleData != null && message.hasOwnProperty("scheduleData")) - if (!$util.isString(message.scheduleData)) - return "scheduleData: string expected"; - if (message.noSchedule != null && message.hasOwnProperty("noSchedule")) - if (typeof message.noSchedule !== "boolean") - return "noSchedule: boolean expected"; - return null; - }; - /** * Creates a PAMRotationSchedule message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -313087,6 +254415,8 @@ export const PAM = $root.PAM = (() => { PAMRotationSchedule.fromObject = function fromObject(object, long) { if (object instanceof $root.PAM.PAMRotationSchedule) return object; + if (!$util.isObject(object)) + throw TypeError(".PAM.PAMRotationSchedule: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -313156,15 +254486,15 @@ export const PAM = $root.PAM = (() => { object.scheduleData = ""; object.noSchedule = false; } - if (message.recordUid != null && message.hasOwnProperty("recordUid")) + if (message.recordUid != null && Object.hasOwnProperty.call(message, "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.configurationUid != null && message.hasOwnProperty("configurationUid")) + if (message.configurationUid != null && Object.hasOwnProperty.call(message, "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.controllerUid != null && message.hasOwnProperty("controllerUid")) + if (message.controllerUid != null && Object.hasOwnProperty.call(message, "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.scheduleData != null && message.hasOwnProperty("scheduleData")) + if (message.scheduleData != null && Object.hasOwnProperty.call(message, "scheduleData")) object.scheduleData = message.scheduleData; - if (message.noSchedule != null && message.hasOwnProperty("noSchedule")) + if (message.noSchedule != null && Object.hasOwnProperty.call(message, "noSchedule")) object.noSchedule = message.noSchedule; return object; }; @@ -313265,19 +254595,6 @@ export const PAM = $root.PAM = (() => { return writer; }; - /** - * Encodes the specified PAMRotationSchedulesResponse message, length delimited. Does not implicitly {@link PAM.PAMRotationSchedulesResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof PAM.PAMRotationSchedulesResponse - * @static - * @param {PAM.IPAMRotationSchedulesResponse} message PAMRotationSchedulesResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - PAMRotationSchedulesResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a PAMRotationSchedulesResponse message from the specified reader or buffer. * @function decode @@ -313316,49 +254633,6 @@ export const PAM = $root.PAM = (() => { return message; }; - /** - * Decodes a PAMRotationSchedulesResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof PAM.PAMRotationSchedulesResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {PAM.PAMRotationSchedulesResponse} PAMRotationSchedulesResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - PAMRotationSchedulesResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a PAMRotationSchedulesResponse message. - * @function verify - * @memberof PAM.PAMRotationSchedulesResponse - * @static - * @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) { - if (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); - if (error) - return "schedules." + error; - } - } - return null; - }; - /** * Creates a PAMRotationSchedulesResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -313370,6 +254644,8 @@ export const PAM = $root.PAM = (() => { PAMRotationSchedulesResponse.fromObject = function fromObject(object, long) { if (object instanceof $root.PAM.PAMRotationSchedulesResponse) return object; + if (!$util.isObject(object)) + throw TypeError(".PAM.PAMRotationSchedulesResponse: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -313380,7 +254656,7 @@ export const PAM = $root.PAM = (() => { throw TypeError(".PAM.PAMRotationSchedulesResponse.schedules: array expected"); message.schedules = []; for (let i = 0; i < object.schedules.length; ++i) { - if (typeof object.schedules[i] !== "object") + if (!$util.isObject(object.schedules[i])) throw TypeError(".PAM.PAMRotationSchedulesResponse.schedules: object expected"); message.schedules[i] = $root.PAM.PAMRotationSchedule.fromObject(object.schedules[i], long + 1); } @@ -313555,19 +254831,6 @@ export const PAM = $root.PAM = (() => { return writer; }; - /** - * Encodes the specified PAMOnlineController message, length delimited. Does not implicitly {@link PAM.PAMOnlineController.verify|verify} messages. - * @function encodeDelimited - * @memberof PAM.PAMOnlineController - * @static - * @param {PAM.IPAMOnlineController} message PAMOnlineController message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - PAMOnlineController.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a PAMOnlineController message from the specified reader or buffer. * @function decode @@ -313622,61 +254885,6 @@ export const PAM = $root.PAM = (() => { return message; }; - /** - * Decodes a PAMOnlineController message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof PAM.PAMOnlineController - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {PAM.PAMOnlineController} PAMOnlineController - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - PAMOnlineController.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a PAMOnlineController message. - * @function verify - * @memberof PAM.PAMOnlineController - * @static - * @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) { - if (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"; - if (message.connectedOn != null && message.hasOwnProperty("connectedOn")) - if (!$util.isInteger(message.connectedOn) && !(message.connectedOn && $util.isInteger(message.connectedOn.low) && $util.isInteger(message.connectedOn.high))) - return "connectedOn: integer|Long expected"; - if (message.ipAddress != null && message.hasOwnProperty("ipAddress")) - if (!$util.isString(message.ipAddress)) - return "ipAddress: string expected"; - if (message.version != null && message.hasOwnProperty("version")) - if (!$util.isString(message.version)) - return "version: string expected"; - 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.PAM.PAMWebRtcConnection.verify(message.connections[i], long + 1); - if (error) - return "connections." + error; - } - } - return null; - }; - /** * Creates a PAMOnlineController message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -313688,6 +254896,8 @@ export const PAM = $root.PAM = (() => { PAMOnlineController.fromObject = function fromObject(object, long) { if (object instanceof $root.PAM.PAMOnlineController) return object; + if (!$util.isObject(object)) + throw TypeError(".PAM.PAMOnlineController: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -313716,7 +254926,7 @@ export const PAM = $root.PAM = (() => { throw TypeError(".PAM.PAMOnlineController.connections: array expected"); message.connections = []; for (let i = 0; i < object.connections.length; ++i) { - if (typeof object.connections[i] !== "object") + if (!$util.isObject(object.connections[i])) throw TypeError(".PAM.PAMOnlineController.connections: object expected"); message.connections[i] = $root.PAM.PAMWebRtcConnection.fromObject(object.connections[i], long + 1); } @@ -313759,18 +254969,18 @@ export const PAM = $root.PAM = (() => { object.ipAddress = ""; object.version = ""; } - if (message.controllerUid != null && message.hasOwnProperty("controllerUid")) + if (message.controllerUid != null && Object.hasOwnProperty.call(message, "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 (message.connectedOn != null && Object.hasOwnProperty.call(message, "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") 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; - if (message.ipAddress != null && message.hasOwnProperty("ipAddress")) + if (message.ipAddress != null && Object.hasOwnProperty.call(message, "ipAddress")) object.ipAddress = message.ipAddress; - if (message.version != null && message.hasOwnProperty("version")) + if (message.version != null && Object.hasOwnProperty.call(message, "version")) object.version = message.version; if (message.connections && message.connections.length) { object.connections = []; @@ -313961,19 +255171,6 @@ export const PAM = $root.PAM = (() => { return writer; }; - /** - * Encodes the specified PAMWebRtcConnection message, length delimited. Does not implicitly {@link PAM.PAMWebRtcConnection.verify|verify} messages. - * @function encodeDelimited - * @memberof PAM.PAMWebRtcConnection - * @static - * @param {PAM.IPAMWebRtcConnection} message PAMWebRtcConnection message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - PAMWebRtcConnection.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a PAMWebRtcConnection message from the specified reader or buffer. * @function decode @@ -314030,72 +255227,6 @@ export const PAM = $root.PAM = (() => { return message; }; - /** - * Decodes a PAMWebRtcConnection message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof PAM.PAMWebRtcConnection - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {PAM.PAMWebRtcConnection} PAMWebRtcConnection - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - PAMWebRtcConnection.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a PAMWebRtcConnection message. - * @function verify - * @memberof PAM.PAMWebRtcConnection - * @static - * @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) { - if (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"; - if (message.type != null && message.hasOwnProperty("type")) - switch (message.type) { - default: - return "type: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: - case 9: - case 10: - break; - } - 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.userName != null && message.hasOwnProperty("userName")) - if (!$util.isString(message.userName)) - return "userName: string expected"; - if (message.startedOn != null && message.hasOwnProperty("startedOn")) - if (!$util.isInteger(message.startedOn) && !(message.startedOn && $util.isInteger(message.startedOn.low) && $util.isInteger(message.startedOn.high))) - return "startedOn: integer|Long expected"; - if (message.configurationUid != null && message.hasOwnProperty("configurationUid")) - if (!(message.configurationUid && typeof message.configurationUid.length === "number" || $util.isString(message.configurationUid))) - return "configurationUid: buffer expected"; - return null; - }; - /** * Creates a PAMWebRtcConnection message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -314107,6 +255238,8 @@ export const PAM = $root.PAM = (() => { PAMWebRtcConnection.fromObject = function fromObject(object, long) { if (object instanceof $root.PAM.PAMWebRtcConnection) return object; + if (!$util.isObject(object)) + throw TypeError(".PAM.PAMWebRtcConnection: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -314240,22 +255373,22 @@ export const PAM = $root.PAM = (() => { object.configurationUid = $util.newBuffer(object.configurationUid); } } - if (message.connectionUid != null && message.hasOwnProperty("connectionUid")) + if (message.connectionUid != null && Object.hasOwnProperty.call(message, "connectionUid")) object.connectionUid = options.bytes === String ? $util.base64.encode(message.connectionUid, 0, message.connectionUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.connectionUid) : message.connectionUid; - if (message.type != null && message.hasOwnProperty("type")) + if (message.type != null && Object.hasOwnProperty.call(message, "type")) object.type = options.enums === String ? $root.PAM.WebRtcConnectionType[message.type] === undefined ? message.type : $root.PAM.WebRtcConnectionType[message.type] : message.type; - if (message.recordUid != null && message.hasOwnProperty("recordUid")) + if (message.recordUid != null && Object.hasOwnProperty.call(message, "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.userName != null && message.hasOwnProperty("userName")) + if (message.userName != null && Object.hasOwnProperty.call(message, "userName")) object.userName = message.userName; - if (message.startedOn != null && message.hasOwnProperty("startedOn")) + if (message.startedOn != null && Object.hasOwnProperty.call(message, "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") 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.configurationUid != null && message.hasOwnProperty("configurationUid")) + if (message.configurationUid != null && Object.hasOwnProperty.call(message, "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; return object; }; @@ -314369,19 +255502,6 @@ export const PAM = $root.PAM = (() => { return writer; }; - /** - * Encodes the specified PAMOnlineControllers message, length delimited. Does not implicitly {@link PAM.PAMOnlineControllers.verify|verify} messages. - * @function encodeDelimited - * @memberof PAM.PAMOnlineControllers - * @static - * @param {PAM.IPAMOnlineControllers} message PAMOnlineControllers message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - PAMOnlineControllers.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a PAMOnlineControllers message from the specified reader or buffer. * @function decode @@ -314426,56 +255546,6 @@ export const PAM = $root.PAM = (() => { return message; }; - /** - * Decodes a PAMOnlineControllers message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof PAM.PAMOnlineControllers - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {PAM.PAMOnlineControllers} PAMOnlineControllers - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - PAMOnlineControllers.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a PAMOnlineControllers message. - * @function verify - * @memberof PAM.PAMOnlineControllers - * @static - * @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) { - if (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"; - for (let i = 0; i < message.deprecated.length; ++i) - if (!(message.deprecated[i] && typeof message.deprecated[i].length === "number" || $util.isString(message.deprecated[i]))) - return "deprecated: buffer[] expected"; - } - 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.PAMOnlineController.verify(message.controllers[i], long + 1); - if (error) - return "controllers." + error; - } - } - return null; - }; - /** * Creates a PAMOnlineControllers message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -314487,6 +255557,8 @@ export const PAM = $root.PAM = (() => { PAMOnlineControllers.fromObject = function fromObject(object, long) { if (object instanceof $root.PAM.PAMOnlineControllers) return object; + if (!$util.isObject(object)) + throw TypeError(".PAM.PAMOnlineControllers: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -314507,7 +255579,7 @@ export const PAM = $root.PAM = (() => { throw TypeError(".PAM.PAMOnlineControllers.controllers: array expected"); message.controllers = []; for (let i = 0; i < object.controllers.length; ++i) { - if (typeof object.controllers[i] !== "object") + if (!$util.isObject(object.controllers[i])) throw TypeError(".PAM.PAMOnlineControllers.controllers: object expected"); message.controllers[i] = $root.PAM.PAMOnlineController.fromObject(object.controllers[i], long + 1); } @@ -314654,19 +255726,6 @@ export const PAM = $root.PAM = (() => { return writer; }; - /** - * Encodes the specified PAMRotateRequest message, length delimited. Does not implicitly {@link PAM.PAMRotateRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof PAM.PAMRotateRequest - * @static - * @param {PAM.IPAMRotateRequest} message PAMRotateRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - PAMRotateRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a PAMRotateRequest message from the specified reader or buffer. * @function decode @@ -314707,46 +255766,6 @@ export const PAM = $root.PAM = (() => { return message; }; - /** - * Decodes a PAMRotateRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof PAM.PAMRotateRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {PAM.PAMRotateRequest} PAMRotateRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - PAMRotateRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a PAMRotateRequest message. - * @function verify - * @memberof PAM.PAMRotateRequest - * @static - * @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) { - if (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"; - if (message.recordUid != null && message.hasOwnProperty("recordUid")) - if (!(message.recordUid && typeof message.recordUid.length === "number" || $util.isString(message.recordUid))) - return "recordUid: buffer expected"; - return null; - }; - /** * Creates a PAMRotateRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -314758,6 +255777,8 @@ export const PAM = $root.PAM = (() => { PAMRotateRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.PAM.PAMRotateRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".PAM.PAMRotateRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -314809,9 +255830,9 @@ export const PAM = $root.PAM = (() => { object.recordUid = $util.newBuffer(object.recordUid); } } - if (message.requestUid != null && message.hasOwnProperty("requestUid")) + if (message.requestUid != null && Object.hasOwnProperty.call(message, "requestUid")) object.requestUid = options.bytes === String ? $util.base64.encode(message.requestUid, 0, message.requestUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.requestUid) : message.requestUid; - if (message.recordUid != null && message.hasOwnProperty("recordUid")) + if (message.recordUid != null && Object.hasOwnProperty.call(message, "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; return object; }; @@ -314912,19 +255933,6 @@ export const PAM = $root.PAM = (() => { return writer; }; - /** - * Encodes the specified PAMControllersResponse message, length delimited. Does not implicitly {@link PAM.PAMControllersResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof PAM.PAMControllersResponse - * @static - * @param {PAM.IPAMControllersResponse} message PAMControllersResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - PAMControllersResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a PAMControllersResponse message from the specified reader or buffer. * @function decode @@ -314963,49 +255971,6 @@ export const PAM = $root.PAM = (() => { return message; }; - /** - * Decodes a PAMControllersResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof PAM.PAMControllersResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {PAM.PAMControllersResponse} PAMControllersResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - PAMControllersResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a PAMControllersResponse message. - * @function verify - * @memberof PAM.PAMControllersResponse - * @static - * @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) { - if (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); - if (error) - return "controllers." + error; - } - } - return null; - }; - /** * Creates a PAMControllersResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -315017,6 +255982,8 @@ export const PAM = $root.PAM = (() => { PAMControllersResponse.fromObject = function fromObject(object, long) { if (object instanceof $root.PAM.PAMControllersResponse) return object; + if (!$util.isObject(object)) + throw TypeError(".PAM.PAMControllersResponse: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -315027,7 +255994,7 @@ export const PAM = $root.PAM = (() => { throw TypeError(".PAM.PAMControllersResponse.controllers: array expected"); message.controllers = []; for (let i = 0; i < object.controllers.length; ++i) { - if (typeof object.controllers[i] !== "object") + if (!$util.isObject(object.controllers[i])) throw TypeError(".PAM.PAMControllersResponse.controllers: object expected"); message.controllers[i] = $root.PAM.PAMController.fromObject(object.controllers[i], long + 1); } @@ -315167,19 +256134,6 @@ export const PAM = $root.PAM = (() => { return writer; }; - /** - * Encodes the specified PAMRemoveController message, length delimited. Does not implicitly {@link PAM.PAMRemoveController.verify|verify} messages. - * @function encodeDelimited - * @memberof PAM.PAMRemoveController - * @static - * @param {PAM.IPAMRemoveController} message PAMRemoveController message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - PAMRemoveController.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a PAMRemoveController message from the specified reader or buffer. * @function decode @@ -315220,46 +256174,6 @@ export const PAM = $root.PAM = (() => { return message; }; - /** - * Decodes a PAMRemoveController message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof PAM.PAMRemoveController - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {PAM.PAMRemoveController} PAMRemoveController - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - PAMRemoveController.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a PAMRemoveController message. - * @function verify - * @memberof PAM.PAMRemoveController - * @static - * @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) { - if (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"; - if (message.message != null && message.hasOwnProperty("message")) - if (!$util.isString(message.message)) - return "message: string expected"; - return null; - }; - /** * Creates a PAMRemoveController message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -315271,6 +256185,8 @@ export const PAM = $root.PAM = (() => { PAMRemoveController.fromObject = function fromObject(object, long) { if (object instanceof $root.PAM.PAMRemoveController) return object; + if (!$util.isObject(object)) + throw TypeError(".PAM.PAMRemoveController: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -315313,9 +256229,9 @@ export const PAM = $root.PAM = (() => { } object.message = ""; } - if (message.controllerUid != null && message.hasOwnProperty("controllerUid")) + if (message.controllerUid != null && Object.hasOwnProperty.call(message, "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.message != null && message.hasOwnProperty("message")) + if (message.message != null && Object.hasOwnProperty.call(message, "message")) object.message = message.message; return object; }; @@ -315416,19 +256332,6 @@ export const PAM = $root.PAM = (() => { return writer; }; - /** - * Encodes the specified PAMRemoveControllerResponse message, length delimited. Does not implicitly {@link PAM.PAMRemoveControllerResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof PAM.PAMRemoveControllerResponse - * @static - * @param {PAM.IPAMRemoveControllerResponse} message PAMRemoveControllerResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - PAMRemoveControllerResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a PAMRemoveControllerResponse message from the specified reader or buffer. * @function decode @@ -315467,49 +256370,6 @@ export const PAM = $root.PAM = (() => { return message; }; - /** - * Decodes a PAMRemoveControllerResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof PAM.PAMRemoveControllerResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {PAM.PAMRemoveControllerResponse} PAMRemoveControllerResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - PAMRemoveControllerResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a PAMRemoveControllerResponse message. - * @function verify - * @memberof PAM.PAMRemoveControllerResponse - * @static - * @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) { - if (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); - if (error) - return "controllers." + error; - } - } - return null; - }; - /** * Creates a PAMRemoveControllerResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -315521,6 +256381,8 @@ export const PAM = $root.PAM = (() => { PAMRemoveControllerResponse.fromObject = function fromObject(object, long) { if (object instanceof $root.PAM.PAMRemoveControllerResponse) return object; + if (!$util.isObject(object)) + throw TypeError(".PAM.PAMRemoveControllerResponse: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -315531,7 +256393,7 @@ export const PAM = $root.PAM = (() => { throw TypeError(".PAM.PAMRemoveControllerResponse.controllers: array expected"); message.controllers = []; for (let i = 0; i < object.controllers.length; ++i) { - if (typeof object.controllers[i] !== "object") + if (!$util.isObject(object.controllers[i])) throw TypeError(".PAM.PAMRemoveControllerResponse.controllers: object expected"); message.controllers[i] = $root.PAM.PAMRemoveController.fromObject(object.controllers[i], long + 1); } @@ -315662,19 +256524,6 @@ export const PAM = $root.PAM = (() => { return writer; }; - /** - * Encodes the specified PAMModifyRequest message, length delimited. Does not implicitly {@link PAM.PAMModifyRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof PAM.PAMModifyRequest - * @static - * @param {PAM.IPAMModifyRequest} message PAMModifyRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - PAMModifyRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a PAMModifyRequest message from the specified reader or buffer. * @function decode @@ -315713,49 +256562,6 @@ export const PAM = $root.PAM = (() => { return message; }; - /** - * Decodes a PAMModifyRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof PAM.PAMModifyRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {PAM.PAMModifyRequest} PAMModifyRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - PAMModifyRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a PAMModifyRequest message. - * @function verify - * @memberof PAM.PAMModifyRequest - * @static - * @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) { - if (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); - if (error) - return "operations." + error; - } - } - return null; - }; - /** * Creates a PAMModifyRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -315767,6 +256573,8 @@ export const PAM = $root.PAM = (() => { PAMModifyRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.PAM.PAMModifyRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".PAM.PAMModifyRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -315777,7 +256585,7 @@ export const PAM = $root.PAM = (() => { throw TypeError(".PAM.PAMModifyRequest.operations: array expected"); message.operations = []; for (let i = 0; i < object.operations.length; ++i) { - if (typeof object.operations[i] !== "object") + if (!$util.isObject(object.operations[i])) throw TypeError(".PAM.PAMModifyRequest.operations: object expected"); message.operations[i] = $root.PAM.PAMDataOperation.fromObject(object.operations[i], long + 1); } @@ -315928,19 +256736,6 @@ export const PAM = $root.PAM = (() => { return writer; }; - /** - * Encodes the specified PAMDataOperation message, length delimited. Does not implicitly {@link PAM.PAMDataOperation.verify|verify} messages. - * @function encodeDelimited - * @memberof PAM.PAMDataOperation - * @static - * @param {PAM.IPAMDataOperation} message PAMDataOperation message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - PAMDataOperation.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a PAMDataOperation message from the specified reader or buffer. * @function decode @@ -315985,60 +256780,6 @@ export const PAM = $root.PAM = (() => { return message; }; - /** - * Decodes a PAMDataOperation message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof PAM.PAMDataOperation - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {PAM.PAMDataOperation} PAMDataOperation - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - PAMDataOperation.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a PAMDataOperation message. - * @function verify - * @memberof PAM.PAMDataOperation - * @static - * @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) { - if (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: - return "operationType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - break; - } - if (message.configuration != null && message.hasOwnProperty("configuration")) { - let error = $root.PAM.PAMConfigurationData.verify(message.configuration, long + 1); - if (error) - return "configuration." + error; - } - if (message.element != null && message.hasOwnProperty("element")) { - let error = $root.PAM.PAMElementData.verify(message.element, long + 1); - if (error) - return "element." + error; - } - return null; - }; - /** * Creates a PAMDataOperation message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -316050,6 +256791,8 @@ export const PAM = $root.PAM = (() => { PAMDataOperation.fromObject = function fromObject(object, long) { if (object instanceof $root.PAM.PAMDataOperation) return object; + if (!$util.isObject(object)) + throw TypeError(".PAM.PAMDataOperation: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -316080,12 +256823,12 @@ export const PAM = $root.PAM = (() => { break; } if (object.configuration != null) { - if (typeof object.configuration !== "object") + if (!$util.isObject(object.configuration)) throw TypeError(".PAM.PAMDataOperation.configuration: object expected"); message.configuration = $root.PAM.PAMConfigurationData.fromObject(object.configuration, long + 1); } if (object.element != null) { - if (typeof object.element !== "object") + if (!$util.isObject(object.element)) throw TypeError(".PAM.PAMDataOperation.element: object expected"); message.element = $root.PAM.PAMElementData.fromObject(object.element, long + 1); } @@ -316114,11 +256857,11 @@ export const PAM = $root.PAM = (() => { object.configuration = null; object.element = null; } - if (message.operationType != null && message.hasOwnProperty("operationType")) + if (message.operationType != null && Object.hasOwnProperty.call(message, "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")) + if (message.configuration != null && Object.hasOwnProperty.call(message, "configuration")) object.configuration = $root.PAM.PAMConfigurationData.toObject(message.configuration, options, q + 1); - if (message.element != null && message.hasOwnProperty("element")) + if (message.element != null && Object.hasOwnProperty.call(message, "element")) object.element = $root.PAM.PAMElementData.toObject(message.element, options, q + 1); return object; }; @@ -316268,19 +257011,6 @@ export const PAM = $root.PAM = (() => { return writer; }; - /** - * Encodes the specified PAMConfigurationData message, length delimited. Does not implicitly {@link PAM.PAMConfigurationData.verify|verify} messages. - * @function encodeDelimited - * @memberof PAM.PAMConfigurationData - * @static - * @param {PAM.IPAMConfigurationData} message PAMConfigurationData message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - PAMConfigurationData.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a PAMConfigurationData message from the specified reader or buffer. * @function decode @@ -316329,52 +257059,6 @@ export const PAM = $root.PAM = (() => { return message; }; - /** - * Decodes a PAMConfigurationData message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof PAM.PAMConfigurationData - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {PAM.PAMConfigurationData} PAMConfigurationData - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - PAMConfigurationData.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a PAMConfigurationData message. - * @function verify - * @memberof PAM.PAMConfigurationData - * @static - * @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) { - if (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"; - 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"; - if (message.controllerUid != null && message.hasOwnProperty("controllerUid")) - if (!(message.controllerUid && typeof message.controllerUid.length === "number" || $util.isString(message.controllerUid))) - return "controllerUid: buffer expected"; - if (message.data != null && message.hasOwnProperty("data")) - if (!(message.data && typeof message.data.length === "number" || $util.isString(message.data))) - return "data: buffer expected"; - return null; - }; - /** * Creates a PAMConfigurationData message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -316386,6 +257070,8 @@ export const PAM = $root.PAM = (() => { PAMConfigurationData.fromObject = function fromObject(object, long) { if (object instanceof $root.PAM.PAMConfigurationData) return object; + if (!$util.isObject(object)) + throw TypeError(".PAM.PAMConfigurationData: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -316463,18 +257149,18 @@ export const PAM = $root.PAM = (() => { object.data = $util.newBuffer(object.data); } } - if (message.configurationUid != null && message.hasOwnProperty("configurationUid")) + if (message.configurationUid != null && Object.hasOwnProperty.call(message, "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 (message.nodeId != null && Object.hasOwnProperty.call(message, "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") 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.controllerUid != null && message.hasOwnProperty("controllerUid")) + if (message.controllerUid != null && Object.hasOwnProperty.call(message, "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.data != null && message.hasOwnProperty("data")) + if (message.data != null && Object.hasOwnProperty.call(message, "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; return object; }; @@ -316595,19 +257281,6 @@ export const PAM = $root.PAM = (() => { return writer; }; - /** - * Encodes the specified PAMElementData message, length delimited. Does not implicitly {@link PAM.PAMElementData.verify|verify} messages. - * @function encodeDelimited - * @memberof PAM.PAMElementData - * @static - * @param {PAM.IPAMElementData} message PAMElementData message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - PAMElementData.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a PAMElementData message from the specified reader or buffer. * @function decode @@ -316652,49 +257325,6 @@ export const PAM = $root.PAM = (() => { return message; }; - /** - * Decodes a PAMElementData message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof PAM.PAMElementData - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {PAM.PAMElementData} PAMElementData - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - PAMElementData.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a PAMElementData message. - * @function verify - * @memberof PAM.PAMElementData - * @static - * @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) { - if (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"; - if (message.parentUid != null && message.hasOwnProperty("parentUid")) - if (!(message.parentUid && typeof message.parentUid.length === "number" || $util.isString(message.parentUid))) - return "parentUid: buffer expected"; - if (message.data != null && message.hasOwnProperty("data")) - if (!(message.data && typeof message.data.length === "number" || $util.isString(message.data))) - return "data: buffer expected"; - return null; - }; - /** * Creates a PAMElementData message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -316706,6 +257336,8 @@ export const PAM = $root.PAM = (() => { PAMElementData.fromObject = function fromObject(object, long) { if (object instanceof $root.PAM.PAMElementData) return object; + if (!$util.isObject(object)) + throw TypeError(".PAM.PAMElementData: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -316769,11 +257401,11 @@ export const PAM = $root.PAM = (() => { object.data = $util.newBuffer(object.data); } } - if (message.elementUid != null && message.hasOwnProperty("elementUid")) + if (message.elementUid != null && Object.hasOwnProperty.call(message, "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.parentUid != null && message.hasOwnProperty("parentUid")) + if (message.parentUid != null && Object.hasOwnProperty.call(message, "parentUid")) object.parentUid = options.bytes === String ? $util.base64.encode(message.parentUid, 0, message.parentUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.parentUid) : message.parentUid; - if (message.data != null && message.hasOwnProperty("data")) + if (message.data != null && Object.hasOwnProperty.call(message, "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; return object; }; @@ -316912,19 +257544,6 @@ export const PAM = $root.PAM = (() => { return writer; }; - /** - * Encodes the specified PAMElementOperationResult message, length delimited. Does not implicitly {@link PAM.PAMElementOperationResult.verify|verify} messages. - * @function encodeDelimited - * @memberof PAM.PAMElementOperationResult - * @static - * @param {PAM.IPAMElementOperationResult} message PAMElementOperationResult message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - PAMElementOperationResult.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a PAMElementOperationResult message from the specified reader or buffer. * @function decode @@ -316969,56 +257588,6 @@ export const PAM = $root.PAM = (() => { return message; }; - /** - * Decodes a PAMElementOperationResult message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof PAM.PAMElementOperationResult - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {PAM.PAMElementOperationResult} PAMElementOperationResult - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - PAMElementOperationResult.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a PAMElementOperationResult message. - * @function verify - * @memberof PAM.PAMElementOperationResult - * @static - * @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) { - if (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"; - if (message.result != null && message.hasOwnProperty("result")) - switch (message.result) { - default: - return "result: enum value expected"; - case 0: - case 1: - case 2: - case 3: - break; - } - if (message.message != null && message.hasOwnProperty("message")) - if (!$util.isString(message.message)) - return "message: string expected"; - return null; - }; - /** * Creates a PAMElementOperationResult message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -317030,6 +257599,8 @@ export const PAM = $root.PAM = (() => { PAMElementOperationResult.fromObject = function fromObject(object, long) { if (object instanceof $root.PAM.PAMElementOperationResult) return object; + if (!$util.isObject(object)) + throw TypeError(".PAM.PAMElementOperationResult: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -317097,11 +257668,11 @@ export const PAM = $root.PAM = (() => { object.result = options.enums === String ? "POT_SUCCESS" : 0; object.message = ""; } - if (message.elementUid != null && message.hasOwnProperty("elementUid")) + if (message.elementUid != null && Object.hasOwnProperty.call(message, "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.result != null && message.hasOwnProperty("result")) + if (message.result != null && Object.hasOwnProperty.call(message, "result")) object.result = options.enums === String ? $root.PAM.PAMOperationResultType[message.result] === undefined ? message.result : $root.PAM.PAMOperationResultType[message.result] : message.result; - if (message.message != null && message.hasOwnProperty("message")) + if (message.message != null && Object.hasOwnProperty.call(message, "message")) object.message = message.message; return object; }; @@ -317202,19 +257773,6 @@ export const PAM = $root.PAM = (() => { return writer; }; - /** - * Encodes the specified PAMModifyResult message, length delimited. Does not implicitly {@link PAM.PAMModifyResult.verify|verify} messages. - * @function encodeDelimited - * @memberof PAM.PAMModifyResult - * @static - * @param {PAM.IPAMModifyResult} message PAMModifyResult message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - PAMModifyResult.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a PAMModifyResult message from the specified reader or buffer. * @function decode @@ -317253,49 +257811,6 @@ export const PAM = $root.PAM = (() => { return message; }; - /** - * Decodes a PAMModifyResult message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof PAM.PAMModifyResult - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {PAM.PAMModifyResult} PAMModifyResult - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - PAMModifyResult.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a PAMModifyResult message. - * @function verify - * @memberof PAM.PAMModifyResult - * @static - * @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) { - if (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); - if (error) - return "results." + error; - } - } - return null; - }; - /** * Creates a PAMModifyResult message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -317307,6 +257822,8 @@ export const PAM = $root.PAM = (() => { PAMModifyResult.fromObject = function fromObject(object, long) { if (object instanceof $root.PAM.PAMModifyResult) return object; + if (!$util.isObject(object)) + throw TypeError(".PAM.PAMModifyResult: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -317317,7 +257834,7 @@ export const PAM = $root.PAM = (() => { throw TypeError(".PAM.PAMModifyResult.results: array expected"); message.results = []; for (let i = 0; i < object.results.length; ++i) { - if (typeof object.results[i] !== "object") + if (!$util.isObject(object.results[i])) throw TypeError(".PAM.PAMModifyResult.results: object expected"); message.results[i] = $root.PAM.PAMElementOperationResult.fromObject(object.results[i], long + 1); } @@ -317492,19 +258009,6 @@ export const PAM = $root.PAM = (() => { return writer; }; - /** - * Encodes the specified PAMElement message, length delimited. Does not implicitly {@link PAM.PAMElement.verify|verify} messages. - * @function encodeDelimited - * @memberof PAM.PAMElement - * @static - * @param {PAM.IPAMElement} message PAMElement message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - PAMElement.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a PAMElement message from the specified reader or buffer. * @function decode @@ -317559,61 +258063,6 @@ export const PAM = $root.PAM = (() => { return message; }; - /** - * Decodes a PAMElement message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof PAM.PAMElement - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {PAM.PAMElement} PAMElement - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - PAMElement.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a PAMElement message. - * @function verify - * @memberof PAM.PAMElement - * @static - * @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) { - if (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"; - 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.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"; - if (message.lastModified != null && message.hasOwnProperty("lastModified")) - if (!$util.isInteger(message.lastModified) && !(message.lastModified && $util.isInteger(message.lastModified.low) && $util.isInteger(message.lastModified.high))) - return "lastModified: integer|Long expected"; - if (message.children != null && message.hasOwnProperty("children")) { - 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); - if (error) - return "children." + error; - } - } - return null; - }; - /** * Creates a PAMElement message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -317625,6 +258074,8 @@ export const PAM = $root.PAM = (() => { PAMElement.fromObject = function fromObject(object, long) { if (object instanceof $root.PAM.PAMElement) return object; + if (!$util.isObject(object)) + throw TypeError(".PAM.PAMElement: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -317663,7 +258114,7 @@ export const PAM = $root.PAM = (() => { throw TypeError(".PAM.PAMElement.children: array expected"); message.children = []; for (let i = 0; i < object.children.length; ++i) { - if (typeof object.children[i] !== "object") + if (!$util.isObject(object.children[i])) throw TypeError(".PAM.PAMElement.children: object expected"); message.children[i] = $root.PAM.PAMElement.fromObject(object.children[i], long + 1); } @@ -317716,18 +258167,18 @@ export const PAM = $root.PAM = (() => { } else object.lastModified = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; } - if (message.elementUid != null && message.hasOwnProperty("elementUid")) + if (message.elementUid != null && Object.hasOwnProperty.call(message, "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")) + if (message.data != null && Object.hasOwnProperty.call(message, "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 (message.created != null && Object.hasOwnProperty.call(message, "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") 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 (message.lastModified != null && Object.hasOwnProperty.call(message, "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") @@ -317836,19 +258287,6 @@ export const PAM = $root.PAM = (() => { return writer; }; - /** - * Encodes the specified PAMGenericUidRequest message, length delimited. Does not implicitly {@link PAM.PAMGenericUidRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof PAM.PAMGenericUidRequest - * @static - * @param {PAM.IPAMGenericUidRequest} message PAMGenericUidRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - PAMGenericUidRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a PAMGenericUidRequest message from the specified reader or buffer. * @function decode @@ -317885,43 +258323,6 @@ export const PAM = $root.PAM = (() => { return message; }; - /** - * Decodes a PAMGenericUidRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof PAM.PAMGenericUidRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {PAM.PAMGenericUidRequest} PAMGenericUidRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - PAMGenericUidRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a PAMGenericUidRequest message. - * @function verify - * @memberof PAM.PAMGenericUidRequest - * @static - * @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) { - if (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"; - return null; - }; - /** * Creates a PAMGenericUidRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -317933,6 +258334,8 @@ export const PAM = $root.PAM = (() => { PAMGenericUidRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.PAM.PAMGenericUidRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".PAM.PAMGenericUidRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -317971,7 +258374,7 @@ export const PAM = $root.PAM = (() => { if (options.bytes !== Array) object.uid = $util.newBuffer(object.uid); } - if (message.uid != null && message.hasOwnProperty("uid")) + if (message.uid != null && Object.hasOwnProperty.call(message, "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; return object; }; @@ -318072,19 +258475,6 @@ export const PAM = $root.PAM = (() => { return writer; }; - /** - * Encodes the specified PAMGenericUidsRequest message, length delimited. Does not implicitly {@link PAM.PAMGenericUidsRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof PAM.PAMGenericUidsRequest - * @static - * @param {PAM.IPAMGenericUidsRequest} message PAMGenericUidsRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - PAMGenericUidsRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a PAMGenericUidsRequest message from the specified reader or buffer. * @function decode @@ -318123,47 +258513,6 @@ export const PAM = $root.PAM = (() => { return message; }; - /** - * Decodes a PAMGenericUidsRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof PAM.PAMGenericUidsRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {PAM.PAMGenericUidsRequest} PAMGenericUidsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - PAMGenericUidsRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a PAMGenericUidsRequest message. - * @function verify - * @memberof PAM.PAMGenericUidsRequest - * @static - * @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) { - if (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) - if (!(message.uids[i] && typeof message.uids[i].length === "number" || $util.isString(message.uids[i]))) - return "uids: buffer[] expected"; - } - return null; - }; - /** * Creates a PAMGenericUidsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -318175,6 +258524,8 @@ export const PAM = $root.PAM = (() => { PAMGenericUidsRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.PAM.PAMGenericUidsRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".PAM.PAMGenericUidsRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -318382,19 +258733,6 @@ export const PAM = $root.PAM = (() => { return writer; }; - /** - * Encodes the specified PAMConfiguration message, length delimited. Does not implicitly {@link PAM.PAMConfiguration.verify|verify} messages. - * @function encodeDelimited - * @memberof PAM.PAMConfiguration - * @static - * @param {PAM.IPAMConfiguration} message PAMConfiguration message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - PAMConfiguration.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a PAMConfiguration message from the specified reader or buffer. * @function decode @@ -318457,67 +258795,6 @@ export const PAM = $root.PAM = (() => { return message; }; - /** - * Decodes a PAMConfiguration message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof PAM.PAMConfiguration - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {PAM.PAMConfiguration} PAMConfiguration - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - PAMConfiguration.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a PAMConfiguration message. - * @function verify - * @memberof PAM.PAMConfiguration - * @static - * @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) { - if (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"; - 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"; - if (message.controllerUid != null && message.hasOwnProperty("controllerUid")) - if (!(message.controllerUid && typeof message.controllerUid.length === "number" || $util.isString(message.controllerUid))) - return "controllerUid: buffer 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.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"; - if (message.lastModified != null && message.hasOwnProperty("lastModified")) - if (!$util.isInteger(message.lastModified) && !(message.lastModified && $util.isInteger(message.lastModified.low) && $util.isInteger(message.lastModified.high))) - return "lastModified: integer|Long expected"; - if (message.children != null && message.hasOwnProperty("children")) { - 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); - if (error) - return "children." + error; - } - } - return null; - }; - /** * Creates a PAMConfiguration message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -318529,6 +258806,8 @@ export const PAM = $root.PAM = (() => { PAMConfiguration.fromObject = function fromObject(object, long) { if (object instanceof $root.PAM.PAMConfiguration) return object; + if (!$util.isObject(object)) + throw TypeError(".PAM.PAMConfiguration: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -318581,7 +258860,7 @@ export const PAM = $root.PAM = (() => { throw TypeError(".PAM.PAMConfiguration.children: array expected"); message.children = []; for (let i = 0; i < object.children.length; ++i) { - if (typeof object.children[i] !== "object") + if (!$util.isObject(object.children[i])) throw TypeError(".PAM.PAMConfiguration.children: object expected"); message.children[i] = $root.PAM.PAMElement.fromObject(object.children[i], long + 1); } @@ -318646,27 +258925,27 @@ export const PAM = $root.PAM = (() => { } else object.lastModified = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; } - if (message.configurationUid != null && message.hasOwnProperty("configurationUid")) + if (message.configurationUid != null && Object.hasOwnProperty.call(message, "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 (message.nodeId != null && Object.hasOwnProperty.call(message, "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") 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.controllerUid != null && message.hasOwnProperty("controllerUid")) + if (message.controllerUid != null && Object.hasOwnProperty.call(message, "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.data != null && message.hasOwnProperty("data")) + if (message.data != null && Object.hasOwnProperty.call(message, "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 (message.created != null && Object.hasOwnProperty.call(message, "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") 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 (message.lastModified != null && Object.hasOwnProperty.call(message, "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") @@ -318777,19 +259056,6 @@ export const PAM = $root.PAM = (() => { return writer; }; - /** - * Encodes the specified PAMConfigurations message, length delimited. Does not implicitly {@link PAM.PAMConfigurations.verify|verify} messages. - * @function encodeDelimited - * @memberof PAM.PAMConfigurations - * @static - * @param {PAM.IPAMConfigurations} message PAMConfigurations message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - PAMConfigurations.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a PAMConfigurations message from the specified reader or buffer. * @function decode @@ -318828,49 +259094,6 @@ export const PAM = $root.PAM = (() => { return message; }; - /** - * Decodes a PAMConfigurations message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof PAM.PAMConfigurations - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {PAM.PAMConfigurations} PAMConfigurations - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - PAMConfigurations.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a PAMConfigurations message. - * @function verify - * @memberof PAM.PAMConfigurations - * @static - * @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) { - if (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); - if (error) - return "configurations." + error; - } - } - return null; - }; - /** * Creates a PAMConfigurations message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -318882,6 +259105,8 @@ export const PAM = $root.PAM = (() => { PAMConfigurations.fromObject = function fromObject(object, long) { if (object instanceof $root.PAM.PAMConfigurations) return object; + if (!$util.isObject(object)) + throw TypeError(".PAM.PAMConfigurations: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -318892,7 +259117,7 @@ export const PAM = $root.PAM = (() => { throw TypeError(".PAM.PAMConfigurations.configurations: array expected"); message.configurations = []; for (let i = 0; i < object.configurations.length; ++i) { - if (typeof object.configurations[i] !== "object") + if (!$util.isObject(object.configurations[i])) throw TypeError(".PAM.PAMConfigurations.configurations: object expected"); message.configurations[i] = $root.PAM.PAMConfiguration.fromObject(object.configurations[i], long + 1); } @@ -319120,19 +259345,6 @@ export const PAM = $root.PAM = (() => { return writer; }; - /** - * Encodes the specified PAMController message, length delimited. Does not implicitly {@link PAM.PAMController.verify|verify} messages. - * @function encodeDelimited - * @memberof PAM.PAMController - * @static - * @param {PAM.IPAMController} message PAMController message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - PAMController.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a PAMController message from the specified reader or buffer. * @function decode @@ -319205,78 +259417,6 @@ export const PAM = $root.PAM = (() => { return message; }; - /** - * Decodes a PAMController message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof PAM.PAMController - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {PAM.PAMController} PAMController - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - PAMController.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a PAMController message. - * @function verify - * @memberof PAM.PAMController - * @static - * @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) { - if (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"; - if (message.controllerName != null && message.hasOwnProperty("controllerName")) - if (!$util.isString(message.controllerName)) - return "controllerName: string expected"; - if (message.deviceToken != null && message.hasOwnProperty("deviceToken")) - if (!$util.isString(message.deviceToken)) - return "deviceToken: string expected"; - if (message.deviceName != null && message.hasOwnProperty("deviceName")) - if (!$util.isString(message.deviceName)) - return "deviceName: string expected"; - 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"; - 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"; - if (message.lastModified != null && message.hasOwnProperty("lastModified")) - if (!$util.isInteger(message.lastModified) && !(message.lastModified && $util.isInteger(message.lastModified.low) && $util.isInteger(message.lastModified.high))) - return "lastModified: integer|Long expected"; - if (message.applicationUid != null && message.hasOwnProperty("applicationUid")) - if (!(message.applicationUid && typeof message.applicationUid.length === "number" || $util.isString(message.applicationUid))) - return "applicationUid: buffer expected"; - if (message.appClientType != null && message.hasOwnProperty("appClientType")) - switch (message.appClientType) { - default: - return "appClientType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - break; - } - if (message.isInitialized != null && message.hasOwnProperty("isInitialized")) - if (typeof message.isInitialized !== "boolean") - return "isInitialized: boolean expected"; - return null; - }; - /** * Creates a PAMController message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -319288,6 +259428,8 @@ export const PAM = $root.PAM = (() => { PAMController.fromObject = function fromObject(object, long) { if (object instanceof $root.PAM.PAMController) return object; + if (!$util.isObject(object)) + throw TypeError(".PAM.PAMController: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -319422,40 +259564,40 @@ export const PAM = $root.PAM = (() => { object.appClientType = options.enums === String ? "NOT_USED" : 0; object.isInitialized = false; } - if (message.controllerUid != null && message.hasOwnProperty("controllerUid")) + if (message.controllerUid != null && Object.hasOwnProperty.call(message, "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.controllerName != null && message.hasOwnProperty("controllerName")) + if (message.controllerName != null && Object.hasOwnProperty.call(message, "controllerName")) object.controllerName = message.controllerName; - if (message.deviceToken != null && message.hasOwnProperty("deviceToken")) + if (message.deviceToken != null && Object.hasOwnProperty.call(message, "deviceToken")) object.deviceToken = message.deviceToken; - if (message.deviceName != null && message.hasOwnProperty("deviceName")) + if (message.deviceName != null && Object.hasOwnProperty.call(message, "deviceName")) object.deviceName = message.deviceName; - if (message.nodeId != null && message.hasOwnProperty("nodeId")) + if (message.nodeId != null && Object.hasOwnProperty.call(message, "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") 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 (message.created != null && Object.hasOwnProperty.call(message, "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") 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 (message.lastModified != null && Object.hasOwnProperty.call(message, "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") 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.applicationUid != null && message.hasOwnProperty("applicationUid")) + if (message.applicationUid != null && Object.hasOwnProperty.call(message, "applicationUid")) object.applicationUid = options.bytes === String ? $util.base64.encode(message.applicationUid, 0, message.applicationUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.applicationUid) : message.applicationUid; - if (message.appClientType != null && message.hasOwnProperty("appClientType")) + if (message.appClientType != null && Object.hasOwnProperty.call(message, "appClientType")) object.appClientType = options.enums === String ? $root.Enterprise.AppClientType[message.appClientType] === undefined ? message.appClientType : $root.Enterprise.AppClientType[message.appClientType] : message.appClientType; - if (message.isInitialized != null && message.hasOwnProperty("isInitialized")) + if (message.isInitialized != null && Object.hasOwnProperty.call(message, "isInitialized")) object.isInitialized = message.isInitialized; return object; }; @@ -319565,19 +259707,6 @@ export const PAM = $root.PAM = (() => { return writer; }; - /** - * Encodes the specified PAMSetMaxInstanceCountRequest message, length delimited. Does not implicitly {@link PAM.PAMSetMaxInstanceCountRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof PAM.PAMSetMaxInstanceCountRequest - * @static - * @param {PAM.IPAMSetMaxInstanceCountRequest} message PAMSetMaxInstanceCountRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - PAMSetMaxInstanceCountRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a PAMSetMaxInstanceCountRequest message from the specified reader or buffer. * @function decode @@ -319618,46 +259747,6 @@ export const PAM = $root.PAM = (() => { return message; }; - /** - * Decodes a PAMSetMaxInstanceCountRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof PAM.PAMSetMaxInstanceCountRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {PAM.PAMSetMaxInstanceCountRequest} PAMSetMaxInstanceCountRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - PAMSetMaxInstanceCountRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a PAMSetMaxInstanceCountRequest message. - * @function verify - * @memberof PAM.PAMSetMaxInstanceCountRequest - * @static - * @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) { - if (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"; - if (message.maxInstanceCount != null && message.hasOwnProperty("maxInstanceCount")) - if (!$util.isInteger(message.maxInstanceCount)) - return "maxInstanceCount: integer expected"; - return null; - }; - /** * Creates a PAMSetMaxInstanceCountRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -319669,6 +259758,8 @@ export const PAM = $root.PAM = (() => { PAMSetMaxInstanceCountRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.PAM.PAMSetMaxInstanceCountRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".PAM.PAMSetMaxInstanceCountRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -319711,9 +259802,9 @@ export const PAM = $root.PAM = (() => { } object.maxInstanceCount = 0; } - if (message.controllerUid != null && message.hasOwnProperty("controllerUid")) + if (message.controllerUid != null && Object.hasOwnProperty.call(message, "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.maxInstanceCount != null && message.hasOwnProperty("maxInstanceCount")) + if (message.maxInstanceCount != null && Object.hasOwnProperty.call(message, "maxInstanceCount")) object.maxInstanceCount = message.maxInstanceCount; return object; }; @@ -319840,19 +259931,6 @@ export const PAM = $root.PAM = (() => { return writer; }; - /** - * Encodes the specified ControllerResponse message, length delimited. Does not implicitly {@link PAM.ControllerResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof PAM.ControllerResponse - * @static - * @param {PAM.IControllerResponse} message ControllerResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ControllerResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a ControllerResponse message from the specified reader or buffer. * @function decode @@ -319889,43 +259967,6 @@ export const PAM = $root.PAM = (() => { return message; }; - /** - * Decodes a ControllerResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof PAM.ControllerResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {PAM.ControllerResponse} ControllerResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ControllerResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a ControllerResponse message. - * @function verify - * @memberof PAM.ControllerResponse - * @static - * @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) { - if (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"; - return null; - }; - /** * Creates a ControllerResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -319937,6 +259978,8 @@ export const PAM = $root.PAM = (() => { ControllerResponse.fromObject = function fromObject(object, long) { if (object instanceof $root.PAM.ControllerResponse) return object; + if (!$util.isObject(object)) + throw TypeError(".PAM.ControllerResponse: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -319966,7 +260009,7 @@ export const PAM = $root.PAM = (() => { let object = {}; if (options.defaults) object.payload = ""; - if (message.payload != null && message.hasOwnProperty("payload")) + if (message.payload != null && Object.hasOwnProperty.call(message, "payload")) object.payload = message.payload; return object; }; @@ -320076,19 +260119,6 @@ export const PAM = $root.PAM = (() => { return writer; }; - /** - * Encodes the specified PAMConfigurationController message, length delimited. Does not implicitly {@link PAM.PAMConfigurationController.verify|verify} messages. - * @function encodeDelimited - * @memberof PAM.PAMConfigurationController - * @static - * @param {PAM.IPAMConfigurationController} message PAMConfigurationController message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - PAMConfigurationController.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a PAMConfigurationController message from the specified reader or buffer. * @function decode @@ -320129,46 +260159,6 @@ export const PAM = $root.PAM = (() => { return message; }; - /** - * Decodes a PAMConfigurationController message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof PAM.PAMConfigurationController - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {PAM.PAMConfigurationController} PAMConfigurationController - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - PAMConfigurationController.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a PAMConfigurationController message. - * @function verify - * @memberof PAM.PAMConfigurationController - * @static - * @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) { - if (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"; - if (message.controllerUid != null && message.hasOwnProperty("controllerUid")) - if (!(message.controllerUid && typeof message.controllerUid.length === "number" || $util.isString(message.controllerUid))) - return "controllerUid: buffer expected"; - return null; - }; - /** * Creates a PAMConfigurationController message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -320180,6 +260170,8 @@ export const PAM = $root.PAM = (() => { PAMConfigurationController.fromObject = function fromObject(object, long) { if (object instanceof $root.PAM.PAMConfigurationController) return object; + if (!$util.isObject(object)) + throw TypeError(".PAM.PAMConfigurationController: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -320231,9 +260223,9 @@ export const PAM = $root.PAM = (() => { object.controllerUid = $util.newBuffer(object.controllerUid); } } - if (message.configurationUid != null && message.hasOwnProperty("configurationUid")) + if (message.configurationUid != null && Object.hasOwnProperty.call(message, "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.controllerUid != null && message.hasOwnProperty("controllerUid")) + if (message.controllerUid != null && Object.hasOwnProperty.call(message, "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; return object; }; @@ -320378,19 +260370,6 @@ export const PAM = $root.PAM = (() => { return writer; }; - /** - * Encodes the specified ConfigurationAddRequest message, length delimited. Does not implicitly {@link PAM.ConfigurationAddRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof PAM.ConfigurationAddRequest - * @static - * @param {PAM.IConfigurationAddRequest} message ConfigurationAddRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ConfigurationAddRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a ConfigurationAddRequest message from the specified reader or buffer. * @function decode @@ -320445,63 +260424,6 @@ export const PAM = $root.PAM = (() => { return message; }; - /** - * Decodes a ConfigurationAddRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof PAM.ConfigurationAddRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {PAM.ConfigurationAddRequest} ConfigurationAddRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ConfigurationAddRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a ConfigurationAddRequest message. - * @function verify - * @memberof PAM.ConfigurationAddRequest - * @static - * @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) { - if (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"; - 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.data != null && message.hasOwnProperty("data")) - if (!(message.data && typeof message.data.length === "number" || $util.isString(message.data))) - return "data: 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], long + 1); - if (error) - return "recordLinks." + error; - } - } - if (message.audit != null && message.hasOwnProperty("audit")) { - let error = $root.Records.RecordAudit.verify(message.audit, long + 1); - if (error) - return "audit." + error; - } - return null; - }; - /** * Creates a ConfigurationAddRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -320513,6 +260435,8 @@ export const PAM = $root.PAM = (() => { ConfigurationAddRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.PAM.ConfigurationAddRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".PAM.ConfigurationAddRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -320538,13 +260462,13 @@ export const PAM = $root.PAM = (() => { throw TypeError(".PAM.ConfigurationAddRequest.recordLinks: array expected"); message.recordLinks = []; for (let i = 0; i < object.recordLinks.length; ++i) { - if (typeof object.recordLinks[i] !== "object") + if (!$util.isObject(object.recordLinks[i])) throw TypeError(".PAM.ConfigurationAddRequest.recordLinks: object expected"); message.recordLinks[i] = $root.Records.RecordLink.fromObject(object.recordLinks[i], long + 1); } } if (object.audit != null) { - if (typeof object.audit !== "object") + if (!$util.isObject(object.audit)) throw TypeError(".PAM.ConfigurationAddRequest.audit: object expected"); message.audit = $root.Records.RecordAudit.fromObject(object.audit, long + 1); } @@ -320594,18 +260518,18 @@ export const PAM = $root.PAM = (() => { } object.audit = null; } - if (message.configurationUid != null && message.hasOwnProperty("configurationUid")) + if (message.configurationUid != null && Object.hasOwnProperty.call(message, "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.recordKey != null && message.hasOwnProperty("recordKey")) + if (message.recordKey != null && Object.hasOwnProperty.call(message, "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.data != null && message.hasOwnProperty("data")) + if (message.data != null && Object.hasOwnProperty.call(message, "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.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); } - if (message.audit != null && message.hasOwnProperty("audit")) + if (message.audit != null && Object.hasOwnProperty.call(message, "audit")) object.audit = $root.Records.RecordAudit.toObject(message.audit, options, q + 1); return object; }; @@ -320726,19 +260650,6 @@ export const PAM = $root.PAM = (() => { return writer; }; - /** - * Encodes the specified RelayAccessCreds message, length delimited. Does not implicitly {@link PAM.RelayAccessCreds.verify|verify} messages. - * @function encodeDelimited - * @memberof PAM.RelayAccessCreds - * @static - * @param {PAM.IRelayAccessCreds} message RelayAccessCreds message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RelayAccessCreds.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a RelayAccessCreds message from the specified reader or buffer. * @function decode @@ -320783,49 +260694,6 @@ export const PAM = $root.PAM = (() => { return message; }; - /** - * Decodes a RelayAccessCreds message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof PAM.RelayAccessCreds - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {PAM.RelayAccessCreds} RelayAccessCreds - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RelayAccessCreds.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a RelayAccessCreds message. - * @function verify - * @memberof PAM.RelayAccessCreds - * @static - * @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) { - if (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"; - if (message.password != null && message.hasOwnProperty("password")) - if (!$util.isString(message.password)) - return "password: string expected"; - if (message.serverTime != null && message.hasOwnProperty("serverTime")) - if (!$util.isInteger(message.serverTime) && !(message.serverTime && $util.isInteger(message.serverTime.low) && $util.isInteger(message.serverTime.high))) - return "serverTime: integer|Long expected"; - return null; - }; - /** * Creates a RelayAccessCreds message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -320837,6 +260705,8 @@ export const PAM = $root.PAM = (() => { RelayAccessCreds.fromObject = function fromObject(object, long) { if (object instanceof $root.PAM.RelayAccessCreds) return object; + if (!$util.isObject(object)) + throw TypeError(".PAM.RelayAccessCreds: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -320884,11 +260754,11 @@ export const PAM = $root.PAM = (() => { } else object.serverTime = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; } - if (message.username != null && message.hasOwnProperty("username")) + if (message.username != null && Object.hasOwnProperty.call(message, "username")) object.username = message.username; - if (message.password != null && message.hasOwnProperty("password")) + if (message.password != null && Object.hasOwnProperty.call(message, "password")) object.password = message.password; - if (message.serverTime != null && message.hasOwnProperty("serverTime")) + if (message.serverTime != null && Object.hasOwnProperty.call(message, "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") @@ -321139,19 +261009,6 @@ export const PAM = $root.PAM = (() => { return writer; }; - /** - * Encodes the specified PAMRecordingsRequest message, length delimited. Does not implicitly {@link PAM.PAMRecordingsRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof PAM.PAMRecordingsRequest - * @static - * @param {PAM.IPAMRecordingsRequest} message PAMRecordingsRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - PAMRecordingsRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a PAMRecordingsRequest message from the specified reader or buffer. * @function decode @@ -321239,100 +261096,6 @@ export const PAM = $root.PAM = (() => { return message; }; - /** - * Decodes a PAMRecordingsRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof PAM.PAMRecordingsRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {PAM.PAMRecordingsRequest} PAMRecordingsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - PAMRecordingsRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a PAMRecordingsRequest message. - * @function verify - * @memberof PAM.PAMRecordingsRequest - * @static - * @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) { - 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))) - return "recordUid: buffer expected"; - if (message.maxCount != null && message.hasOwnProperty("maxCount")) - if (!$util.isInteger(message.maxCount)) - return "maxCount: integer expected"; - if (message.rangeStart != null && message.hasOwnProperty("rangeStart")) { - properties._rangeStart = 1; - if (!$util.isInteger(message.rangeStart) && !(message.rangeStart && $util.isInteger(message.rangeStart.low) && $util.isInteger(message.rangeStart.high))) - return "rangeStart: integer|Long expected"; - } - if (message.rangeEnd != null && message.hasOwnProperty("rangeEnd")) { - properties._rangeEnd = 1; - if (!$util.isInteger(message.rangeEnd) && !(message.rangeEnd && $util.isInteger(message.rangeEnd.low) && $util.isInteger(message.rangeEnd.high))) - return "rangeEnd: integer|Long expected"; - } - if (message.types != null && message.hasOwnProperty("types")) { - if (!Array.isArray(message.types)) - return "types: array expected"; - for (let i = 0; i < message.types.length; ++i) - switch (message.types[i]) { - default: - return "types: enum value[] expected"; - case 0: - case 1: - case 2: - case 3: - break; - } - } - if (message.risks != null && message.hasOwnProperty("risks")) { - if (!Array.isArray(message.risks)) - return "risks: array expected"; - for (let i = 0; i < message.risks.length; ++i) - switch (message.risks[i]) { - default: - return "risks: enum value[] expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - break; - } - } - if (message.protocols != null && message.hasOwnProperty("protocols")) { - if (!Array.isArray(message.protocols)) - return "protocols: array expected"; - for (let i = 0; i < message.protocols.length; ++i) - if (!$util.isString(message.protocols[i])) - return "protocols: string[] expected"; - } - if (message.closeReasons != null && message.hasOwnProperty("closeReasons")) { - if (!Array.isArray(message.closeReasons)) - return "closeReasons: array expected"; - for (let i = 0; i < message.closeReasons.length; ++i) - if (!$util.isInteger(message.closeReasons[i])) - return "closeReasons: integer[] expected"; - } - return null; - }; - /** * Creates a PAMRecordingsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -321344,6 +261107,8 @@ export const PAM = $root.PAM = (() => { PAMRecordingsRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.PAM.PAMRecordingsRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".PAM.PAMRecordingsRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -321486,11 +261251,11 @@ export const PAM = $root.PAM = (() => { } object.maxCount = 0; } - if (message.recordUid != null && message.hasOwnProperty("recordUid")) + if (message.recordUid != null && Object.hasOwnProperty.call(message, "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.maxCount != null && message.hasOwnProperty("maxCount")) + if (message.maxCount != null && Object.hasOwnProperty.call(message, "maxCount")) object.maxCount = message.maxCount; - if (message.rangeStart != null && message.hasOwnProperty("rangeStart")) { + if (message.rangeStart != null && Object.hasOwnProperty.call(message, "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") @@ -321500,7 +261265,7 @@ export const PAM = $root.PAM = (() => { if (options.oneofs) object._rangeStart = "rangeStart"; } - if (message.rangeEnd != null && message.hasOwnProperty("rangeEnd")) { + if (message.rangeEnd != null && Object.hasOwnProperty.call(message, "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") @@ -321759,19 +261524,6 @@ export const PAM = $root.PAM = (() => { return writer; }; - /** - * Encodes the specified PAMRecording message, length delimited. Does not implicitly {@link PAM.PAMRecording.verify|verify} messages. - * @function encodeDelimited - * @memberof PAM.PAMRecording - * @static - * @param {PAM.IPAMRecording} message PAMRecording message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - PAMRecording.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a PAMRecording message from the specified reader or buffer. * @function decode @@ -321856,94 +261608,6 @@ export const PAM = $root.PAM = (() => { return message; }; - /** - * Decodes a PAMRecording message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof PAM.PAMRecording - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {PAM.PAMRecording} PAMRecording - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - PAMRecording.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a PAMRecording message. - * @function verify - * @memberof PAM.PAMRecording - * @static - * @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) { - if (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"; - if (message.recordingType != null && message.hasOwnProperty("recordingType")) - switch (message.recordingType) { - default: - return "recordingType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - break; - } - 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.userName != null && message.hasOwnProperty("userName")) - if (!$util.isString(message.userName)) - return "userName: string expected"; - if (message.startedOn != null && message.hasOwnProperty("startedOn")) - if (!$util.isInteger(message.startedOn) && !(message.startedOn && $util.isInteger(message.startedOn.low) && $util.isInteger(message.startedOn.high))) - return "startedOn: integer|Long expected"; - if (message.length != null && message.hasOwnProperty("length")) - if (!$util.isInteger(message.length)) - return "length: integer expected"; - if (message.fileSize != null && message.hasOwnProperty("fileSize")) - if (!$util.isInteger(message.fileSize) && !(message.fileSize && $util.isInteger(message.fileSize.low) && $util.isInteger(message.fileSize.high))) - return "fileSize: integer|Long expected"; - if (message.createdOn != null && message.hasOwnProperty("createdOn")) - if (!$util.isInteger(message.createdOn) && !(message.createdOn && $util.isInteger(message.createdOn.low) && $util.isInteger(message.createdOn.high))) - return "createdOn: integer|Long expected"; - if (message.protocol != null && message.hasOwnProperty("protocol")) - if (!$util.isString(message.protocol)) - return "protocol: string expected"; - if (message.closeReason != null && message.hasOwnProperty("closeReason")) - if (!$util.isInteger(message.closeReason)) - return "closeReason: integer expected"; - if (message.recordingDuration != null && message.hasOwnProperty("recordingDuration")) - if (!$util.isInteger(message.recordingDuration)) - return "recordingDuration: integer expected"; - if (message.aiOverallRiskLevel != null && message.hasOwnProperty("aiOverallRiskLevel")) - switch (message.aiOverallRiskLevel) { - default: - return "aiOverallRiskLevel: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - break; - } - if (message.aiOverallSummary != null && message.hasOwnProperty("aiOverallSummary")) - if (!(message.aiOverallSummary && typeof message.aiOverallSummary.length === "number" || $util.isString(message.aiOverallSummary))) - return "aiOverallSummary: buffer expected"; - return null; - }; - /** * Creates a PAMRecording message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -321955,6 +261619,8 @@ export const PAM = $root.PAM = (() => { PAMRecording.fromObject = function fromObject(object, long) { if (object instanceof $root.PAM.PAMRecording) return object; + if (!$util.isObject(object)) + throw TypeError(".PAM.PAMRecording: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -322129,46 +261795,46 @@ export const PAM = $root.PAM = (() => { object.aiOverallSummary = $util.newBuffer(object.aiOverallSummary); } } - if (message.connectionUid != null && message.hasOwnProperty("connectionUid")) + if (message.connectionUid != null && Object.hasOwnProperty.call(message, "connectionUid")) object.connectionUid = options.bytes === String ? $util.base64.encode(message.connectionUid, 0, message.connectionUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.connectionUid) : message.connectionUid; - if (message.recordingType != null && message.hasOwnProperty("recordingType")) + if (message.recordingType != null && Object.hasOwnProperty.call(message, "recordingType")) object.recordingType = options.enums === String ? $root.PAM.PAMRecordingType[message.recordingType] === undefined ? message.recordingType : $root.PAM.PAMRecordingType[message.recordingType] : message.recordingType; - if (message.recordUid != null && message.hasOwnProperty("recordUid")) + if (message.recordUid != null && Object.hasOwnProperty.call(message, "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.userName != null && message.hasOwnProperty("userName")) + if (message.userName != null && Object.hasOwnProperty.call(message, "userName")) object.userName = message.userName; - if (message.startedOn != null && message.hasOwnProperty("startedOn")) + if (message.startedOn != null && Object.hasOwnProperty.call(message, "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") 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")) + if (message.length != null && Object.hasOwnProperty.call(message, "length")) object.length = message.length; - if (message.fileSize != null && message.hasOwnProperty("fileSize")) + if (message.fileSize != null && Object.hasOwnProperty.call(message, "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") 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 (message.createdOn != null && Object.hasOwnProperty.call(message, "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") 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.protocol != null && message.hasOwnProperty("protocol")) + if (message.protocol != null && Object.hasOwnProperty.call(message, "protocol")) object.protocol = message.protocol; - if (message.closeReason != null && message.hasOwnProperty("closeReason")) + if (message.closeReason != null && Object.hasOwnProperty.call(message, "closeReason")) object.closeReason = message.closeReason; - if (message.recordingDuration != null && message.hasOwnProperty("recordingDuration")) + if (message.recordingDuration != null && Object.hasOwnProperty.call(message, "recordingDuration")) object.recordingDuration = message.recordingDuration; - if (message.aiOverallRiskLevel != null && message.hasOwnProperty("aiOverallRiskLevel")) + if (message.aiOverallRiskLevel != null && Object.hasOwnProperty.call(message, "aiOverallRiskLevel")) object.aiOverallRiskLevel = options.enums === String ? $root.PAM.PAMRecordingRiskLevel[message.aiOverallRiskLevel] === undefined ? message.aiOverallRiskLevel : $root.PAM.PAMRecordingRiskLevel[message.aiOverallRiskLevel] : message.aiOverallRiskLevel; - if (message.aiOverallSummary != null && message.hasOwnProperty("aiOverallSummary")) + if (message.aiOverallSummary != null && Object.hasOwnProperty.call(message, "aiOverallSummary")) object.aiOverallSummary = options.bytes === String ? $util.base64.encode(message.aiOverallSummary, 0, message.aiOverallSummary.length) : options.bytes === Array ? Array.prototype.slice.call(message.aiOverallSummary) : message.aiOverallSummary; return object; }; @@ -322280,19 +261946,6 @@ export const PAM = $root.PAM = (() => { return writer; }; - /** - * Encodes the specified PAMRecordingsResponse message, length delimited. Does not implicitly {@link PAM.PAMRecordingsResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof PAM.PAMRecordingsResponse - * @static - * @param {PAM.IPAMRecordingsResponse} message PAMRecordingsResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - PAMRecordingsResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a PAMRecordingsResponse message from the specified reader or buffer. * @function decode @@ -322335,52 +261988,6 @@ export const PAM = $root.PAM = (() => { return message; }; - /** - * Decodes a PAMRecordingsResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof PAM.PAMRecordingsResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {PAM.PAMRecordingsResponse} PAMRecordingsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - PAMRecordingsResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a PAMRecordingsResponse message. - * @function verify - * @memberof PAM.PAMRecordingsResponse - * @static - * @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) { - if (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); - if (error) - return "recordings." + error; - } - } - if (message.hasMore != null && message.hasOwnProperty("hasMore")) - if (typeof message.hasMore !== "boolean") - return "hasMore: boolean expected"; - return null; - }; - /** * Creates a PAMRecordingsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -322392,6 +261999,8 @@ export const PAM = $root.PAM = (() => { PAMRecordingsResponse.fromObject = function fromObject(object, long) { if (object instanceof $root.PAM.PAMRecordingsResponse) return object; + if (!$util.isObject(object)) + throw TypeError(".PAM.PAMRecordingsResponse: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -322402,7 +262011,7 @@ export const PAM = $root.PAM = (() => { throw TypeError(".PAM.PAMRecordingsResponse.recordings: array expected"); message.recordings = []; for (let i = 0; i < object.recordings.length; ++i) { - if (typeof object.recordings[i] !== "object") + if (!$util.isObject(object.recordings[i])) throw TypeError(".PAM.PAMRecordingsResponse.recordings: object expected"); message.recordings[i] = $root.PAM.PAMRecording.fromObject(object.recordings[i], long + 1); } @@ -322438,7 +262047,7 @@ export const PAM = $root.PAM = (() => { for (let j = 0; j < message.recordings.length; ++j) object.recordings[j] = $root.PAM.PAMRecording.toObject(message.recordings[j], options, q + 1); } - if (message.hasMore != null && message.hasOwnProperty("hasMore")) + if (message.hasMore != null && Object.hasOwnProperty.call(message, "hasMore")) object.hasMore = message.hasMore; return object; }; @@ -322548,19 +262157,6 @@ export const PAM = $root.PAM = (() => { return writer; }; - /** - * Encodes the specified PAMData message, length delimited. Does not implicitly {@link PAM.PAMData.verify|verify} messages. - * @function encodeDelimited - * @memberof PAM.PAMData - * @static - * @param {PAM.IPAMData} message PAMData message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - PAMData.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a PAMData message from the specified reader or buffer. * @function decode @@ -322601,46 +262197,6 @@ export const PAM = $root.PAM = (() => { return message; }; - /** - * Decodes a PAMData message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof PAM.PAMData - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {PAM.PAMData} PAMData - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - PAMData.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a PAMData message. - * @function verify - * @memberof PAM.PAMData - * @static - * @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) { - if (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"; - if (message.content != null && message.hasOwnProperty("content")) - if (!(message.content && typeof message.content.length === "number" || $util.isString(message.content))) - return "content: buffer expected"; - return null; - }; - /** * Creates a PAMData message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -322652,6 +262208,8 @@ export const PAM = $root.PAM = (() => { PAMData.fromObject = function fromObject(object, long) { if (object instanceof $root.PAM.PAMData) return object; + if (!$util.isObject(object)) + throw TypeError(".PAM.PAMData: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -322703,9 +262261,9 @@ export const PAM = $root.PAM = (() => { object.content = $util.newBuffer(object.content); } } - if (message.vertex != null && message.hasOwnProperty("vertex")) + if (message.vertex != null && Object.hasOwnProperty.call(message, "vertex")) object.vertex = options.bytes === String ? $util.base64.encode(message.vertex, 0, message.vertex.length) : options.bytes === Array ? Array.prototype.slice.call(message.vertex) : message.vertex; - if (message.content != null && message.hasOwnProperty("content")) + if (message.content != null && Object.hasOwnProperty.call(message, "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; return object; }; @@ -322806,19 +262364,6 @@ export const PAM = $root.PAM = (() => { return writer; }; - /** - * Encodes the specified UidList message, length delimited. Does not implicitly {@link PAM.UidList.verify|verify} messages. - * @function encodeDelimited - * @memberof PAM.UidList - * @static - * @param {PAM.IUidList} message UidList message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - UidList.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes an UidList message from the specified reader or buffer. * @function decode @@ -322857,47 +262402,6 @@ export const PAM = $root.PAM = (() => { return message; }; - /** - * Decodes an UidList message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof PAM.UidList - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {PAM.UidList} UidList - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - UidList.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an UidList message. - * @function verify - * @memberof PAM.UidList - * @static - * @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) { - if (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) - if (!(message.uids[i] && typeof message.uids[i].length === "number" || $util.isString(message.uids[i]))) - return "uids: buffer[] expected"; - } - return null; - }; - /** * Creates an UidList message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -322909,6 +262413,8 @@ export const PAM = $root.PAM = (() => { UidList.fromObject = function fromObject(object, long) { if (object instanceof $root.PAM.UidList) return object; + if (!$util.isObject(object)) + throw TypeError(".PAM.UidList: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -323204,19 +262710,6 @@ export const PAM = $root.PAM = (() => { return writer; }; - /** - * Encodes the specified PAMResourceConfig message, length delimited. Does not implicitly {@link PAM.PAMResourceConfig.verify|verify} messages. - * @function encodeDelimited - * @memberof PAM.PAMResourceConfig - * @static - * @param {PAM.IPAMResourceConfig} message PAMResourceConfig message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - PAMResourceConfig.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a PAMResourceConfig message from the specified reader or buffer. * @function decode @@ -323289,92 +262782,6 @@ export const PAM = $root.PAM = (() => { return message; }; - /** - * Decodes a PAMResourceConfig message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof PAM.PAMResourceConfig - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {PAM.PAMResourceConfig} PAMResourceConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - PAMResourceConfig.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a PAMResourceConfig message. - * @function verify - * @memberof PAM.PAMResourceConfig - * @static - * @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) { - 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))) - return "recordUid: buffer expected"; - if (message.networkUid != null && message.hasOwnProperty("networkUid")) { - properties._networkUid = 1; - if (!(message.networkUid && typeof message.networkUid.length === "number" || $util.isString(message.networkUid))) - return "networkUid: buffer expected"; - } - if (message.adminUid != null && message.hasOwnProperty("adminUid")) { - properties._adminUid = 1; - if (!(message.adminUid && typeof message.adminUid.length === "number" || $util.isString(message.adminUid))) - return "adminUid: buffer expected"; - } - if (message.meta != null && message.hasOwnProperty("meta")) { - properties._meta = 1; - if (!(message.meta && typeof message.meta.length === "number" || $util.isString(message.meta))) - return "meta: buffer expected"; - } - if (message.connectionSettings != null && message.hasOwnProperty("connectionSettings")) { - properties._connectionSettings = 1; - if (!(message.connectionSettings && typeof message.connectionSettings.length === "number" || $util.isString(message.connectionSettings))) - return "connectionSettings: buffer expected"; - } - if (message.connectUsers != null && message.hasOwnProperty("connectUsers")) { - properties._connectUsers = 1; - { - let error = $root.PAM.UidList.verify(message.connectUsers, long + 1); - if (error) - return "connectUsers." + error; - } - } - if (message.domainUid != null && message.hasOwnProperty("domainUid")) { - properties._domainUid = 1; - if (!(message.domainUid && typeof message.domainUid.length === "number" || $util.isString(message.domainUid))) - return "domainUid: buffer expected"; - } - if (message.jitSettings != null && message.hasOwnProperty("jitSettings")) { - properties._jitSettings = 1; - if (!(message.jitSettings && typeof message.jitSettings.length === "number" || $util.isString(message.jitSettings))) - return "jitSettings: buffer expected"; - } - if (message.keeperAiSettings != null && message.hasOwnProperty("keeperAiSettings")) { - properties._keeperAiSettings = 1; - if (!(message.keeperAiSettings && typeof message.keeperAiSettings.length === "number" || $util.isString(message.keeperAiSettings))) - return "keeperAiSettings: buffer expected"; - } - if (message.updateServices != null && message.hasOwnProperty("updateServices")) { - properties._updateServices = 1; - if (typeof message.updateServices !== "boolean") - return "updateServices: boolean expected"; - } - return null; - }; - /** * Creates a PAMResourceConfig message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -323386,6 +262793,8 @@ export const PAM = $root.PAM = (() => { PAMResourceConfig.fromObject = function fromObject(object, long) { if (object instanceof $root.PAM.PAMResourceConfig) return object; + if (!$util.isObject(object)) + throw TypeError(".PAM.PAMResourceConfig: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -323417,7 +262826,7 @@ export const PAM = $root.PAM = (() => { else if (object.connectionSettings.length >= 0) message.connectionSettings = object.connectionSettings; if (object.connectUsers != null) { - if (typeof object.connectUsers !== "object") + if (!$util.isObject(object.connectUsers)) throw TypeError(".PAM.PAMResourceConfig.connectUsers: object expected"); message.connectUsers = $root.PAM.UidList.fromObject(object.connectUsers, long + 1); } @@ -323466,49 +262875,49 @@ export const PAM = $root.PAM = (() => { if (options.bytes !== Array) object.recordUid = $util.newBuffer(object.recordUid); } - if (message.recordUid != null && message.hasOwnProperty("recordUid")) + if (message.recordUid != null && Object.hasOwnProperty.call(message, "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.networkUid != null && message.hasOwnProperty("networkUid")) { + if (message.networkUid != null && Object.hasOwnProperty.call(message, "networkUid")) { object.networkUid = options.bytes === String ? $util.base64.encode(message.networkUid, 0, message.networkUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.networkUid) : message.networkUid; if (options.oneofs) object._networkUid = "networkUid"; } - if (message.adminUid != null && message.hasOwnProperty("adminUid")) { + if (message.adminUid != null && Object.hasOwnProperty.call(message, "adminUid")) { object.adminUid = options.bytes === String ? $util.base64.encode(message.adminUid, 0, message.adminUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.adminUid) : message.adminUid; if (options.oneofs) object._adminUid = "adminUid"; } - if (message.meta != null && message.hasOwnProperty("meta")) { + if (message.meta != null && Object.hasOwnProperty.call(message, "meta")) { object.meta = options.bytes === String ? $util.base64.encode(message.meta, 0, message.meta.length) : options.bytes === Array ? Array.prototype.slice.call(message.meta) : message.meta; if (options.oneofs) object._meta = "meta"; } - if (message.connectionSettings != null && message.hasOwnProperty("connectionSettings")) { + if (message.connectionSettings != null && Object.hasOwnProperty.call(message, "connectionSettings")) { object.connectionSettings = options.bytes === String ? $util.base64.encode(message.connectionSettings, 0, message.connectionSettings.length) : options.bytes === Array ? Array.prototype.slice.call(message.connectionSettings) : message.connectionSettings; if (options.oneofs) object._connectionSettings = "connectionSettings"; } - if (message.connectUsers != null && message.hasOwnProperty("connectUsers")) { + if (message.connectUsers != null && Object.hasOwnProperty.call(message, "connectUsers")) { object.connectUsers = $root.PAM.UidList.toObject(message.connectUsers, options, q + 1); if (options.oneofs) object._connectUsers = "connectUsers"; } - if (message.domainUid != null && message.hasOwnProperty("domainUid")) { + if (message.domainUid != null && Object.hasOwnProperty.call(message, "domainUid")) { object.domainUid = options.bytes === String ? $util.base64.encode(message.domainUid, 0, message.domainUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.domainUid) : message.domainUid; if (options.oneofs) object._domainUid = "domainUid"; } - if (message.jitSettings != null && message.hasOwnProperty("jitSettings")) { + if (message.jitSettings != null && Object.hasOwnProperty.call(message, "jitSettings")) { object.jitSettings = options.bytes === String ? $util.base64.encode(message.jitSettings, 0, message.jitSettings.length) : options.bytes === Array ? Array.prototype.slice.call(message.jitSettings) : message.jitSettings; if (options.oneofs) object._jitSettings = "jitSettings"; } - if (message.keeperAiSettings != null && message.hasOwnProperty("keeperAiSettings")) { + if (message.keeperAiSettings != null && Object.hasOwnProperty.call(message, "keeperAiSettings")) { object.keeperAiSettings = options.bytes === String ? $util.base64.encode(message.keeperAiSettings, 0, message.keeperAiSettings.length) : options.bytes === Array ? Array.prototype.slice.call(message.keeperAiSettings) : message.keeperAiSettings; if (options.oneofs) object._keeperAiSettings = "keeperAiSettings"; } - if (message.updateServices != null && message.hasOwnProperty("updateServices")) { + if (message.updateServices != null && Object.hasOwnProperty.call(message, "updateServices")) { object.updateServices = message.updateServices; if (options.oneofs) object._updateServices = "updateServices"; @@ -323610,19 +263019,6 @@ export const PAM = $root.PAM = (() => { return writer; }; - /** - * Encodes the specified PAMUniversalSyncFolder message, length delimited. Does not implicitly {@link PAM.PAMUniversalSyncFolder.verify|verify} messages. - * @function encodeDelimited - * @memberof PAM.PAMUniversalSyncFolder - * @static - * @param {PAM.IPAMUniversalSyncFolder} message PAMUniversalSyncFolder message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - PAMUniversalSyncFolder.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a PAMUniversalSyncFolder message from the specified reader or buffer. * @function decode @@ -323659,43 +263055,6 @@ export const PAM = $root.PAM = (() => { return message; }; - /** - * Decodes a PAMUniversalSyncFolder message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof PAM.PAMUniversalSyncFolder - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {PAM.PAMUniversalSyncFolder} PAMUniversalSyncFolder - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - PAMUniversalSyncFolder.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a PAMUniversalSyncFolder message. - * @function verify - * @memberof PAM.PAMUniversalSyncFolder - * @static - * @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) { - if (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"; - return null; - }; - /** * Creates a PAMUniversalSyncFolder message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -323707,6 +263066,8 @@ export const PAM = $root.PAM = (() => { PAMUniversalSyncFolder.fromObject = function fromObject(object, long) { if (object instanceof $root.PAM.PAMUniversalSyncFolder) return object; + if (!$util.isObject(object)) + throw TypeError(".PAM.PAMUniversalSyncFolder: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -323745,7 +263106,7 @@ export const PAM = $root.PAM = (() => { if (options.bytes !== Array) object.uid = $util.newBuffer(object.uid); } - if (message.uid != null && message.hasOwnProperty("uid")) + if (message.uid != null && Object.hasOwnProperty.call(message, "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; return object; }; @@ -323928,19 +263289,6 @@ export const PAM = $root.PAM = (() => { return writer; }; - /** - * Encodes the specified PAMUniversalSyncConfig message, length delimited. Does not implicitly {@link PAM.PAMUniversalSyncConfig.verify|verify} messages. - * @function encodeDelimited - * @memberof PAM.PAMUniversalSyncConfig - * @static - * @param {PAM.IPAMUniversalSyncConfig} message PAMUniversalSyncConfig message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - PAMUniversalSyncConfig.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a PAMUniversalSyncConfig message from the specified reader or buffer. * @function decode @@ -323999,73 +263347,6 @@ export const PAM = $root.PAM = (() => { return message; }; - /** - * Decodes a PAMUniversalSyncConfig message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof PAM.PAMUniversalSyncConfig - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {PAM.PAMUniversalSyncConfig} PAMUniversalSyncConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - PAMUniversalSyncConfig.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a PAMUniversalSyncConfig message. - * @function verify - * @memberof PAM.PAMUniversalSyncConfig - * @static - * @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) { - 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))) - return "networkUid: buffer expected"; - if (message.enabled != null && message.hasOwnProperty("enabled")) { - properties._enabled = 1; - if (typeof message.enabled !== "boolean") - return "enabled: boolean expected"; - } - if (message.dryRunEnabled != null && message.hasOwnProperty("dryRunEnabled")) { - properties._dryRunEnabled = 1; - if (typeof message.dryRunEnabled !== "boolean") - return "dryRunEnabled: boolean expected"; - } - 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.PAM.PAMUniversalSyncFolder.verify(message.folders[i], long + 1); - if (error) - return "folders." + error; - } - } - if (message.syncIdentity != null && message.hasOwnProperty("syncIdentity")) { - properties._syncIdentity = 1; - if (!(message.syncIdentity && typeof message.syncIdentity.length === "number" || $util.isString(message.syncIdentity))) - return "syncIdentity: buffer expected"; - } - if (message.vaultName != null && message.hasOwnProperty("vaultName")) { - properties._vaultName = 1; - if (!(message.vaultName && typeof message.vaultName.length === "number" || $util.isString(message.vaultName))) - return "vaultName: buffer expected"; - } - return null; - }; - /** * Creates a PAMUniversalSyncConfig message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -324077,6 +263358,8 @@ export const PAM = $root.PAM = (() => { PAMUniversalSyncConfig.fromObject = function fromObject(object, long) { if (object instanceof $root.PAM.PAMUniversalSyncConfig) return object; + if (!$util.isObject(object)) + throw TypeError(".PAM.PAMUniversalSyncConfig: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -324096,7 +263379,7 @@ export const PAM = $root.PAM = (() => { throw TypeError(".PAM.PAMUniversalSyncConfig.folders: array expected"); message.folders = []; for (let i = 0; i < object.folders.length; ++i) { - if (typeof object.folders[i] !== "object") + if (!$util.isObject(object.folders[i])) throw TypeError(".PAM.PAMUniversalSyncConfig.folders: object expected"); message.folders[i] = $root.PAM.PAMUniversalSyncFolder.fromObject(object.folders[i], long + 1); } @@ -324141,14 +263424,14 @@ export const PAM = $root.PAM = (() => { if (options.bytes !== Array) object.networkUid = $util.newBuffer(object.networkUid); } - if (message.networkUid != null && message.hasOwnProperty("networkUid")) + if (message.networkUid != null && Object.hasOwnProperty.call(message, "networkUid")) object.networkUid = options.bytes === String ? $util.base64.encode(message.networkUid, 0, message.networkUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.networkUid) : message.networkUid; - if (message.enabled != null && message.hasOwnProperty("enabled")) { + if (message.enabled != null && Object.hasOwnProperty.call(message, "enabled")) { object.enabled = message.enabled; if (options.oneofs) object._enabled = "enabled"; } - if (message.dryRunEnabled != null && message.hasOwnProperty("dryRunEnabled")) { + if (message.dryRunEnabled != null && Object.hasOwnProperty.call(message, "dryRunEnabled")) { object.dryRunEnabled = message.dryRunEnabled; if (options.oneofs) object._dryRunEnabled = "dryRunEnabled"; @@ -324158,12 +263441,12 @@ export const PAM = $root.PAM = (() => { for (let j = 0; j < message.folders.length; ++j) object.folders[j] = $root.PAM.PAMUniversalSyncFolder.toObject(message.folders[j], options, q + 1); } - if (message.syncIdentity != null && message.hasOwnProperty("syncIdentity")) { + if (message.syncIdentity != null && Object.hasOwnProperty.call(message, "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; if (options.oneofs) object._syncIdentity = "syncIdentity"; } - if (message.vaultName != null && message.hasOwnProperty("vaultName")) { + if (message.vaultName != null && Object.hasOwnProperty.call(message, "vaultName")) { object.vaultName = options.bytes === String ? $util.base64.encode(message.vaultName, 0, message.vaultName.length) : options.bytes === Array ? Array.prototype.slice.call(message.vaultName) : message.vaultName; if (options.oneofs) object._vaultName = "vaultName"; @@ -324276,19 +263559,6 @@ export const PAM = $root.PAM = (() => { return writer; }; - /** - * Encodes the specified NhiMetricsRequest message, length delimited. Does not implicitly {@link PAM.NhiMetricsRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof PAM.NhiMetricsRequest - * @static - * @param {PAM.INhiMetricsRequest} message NhiMetricsRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - NhiMetricsRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a NhiMetricsRequest message from the specified reader or buffer. * @function decode @@ -324329,46 +263599,6 @@ export const PAM = $root.PAM = (() => { return message; }; - /** - * Decodes a NhiMetricsRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof PAM.NhiMetricsRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {PAM.NhiMetricsRequest} NhiMetricsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - NhiMetricsRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a NhiMetricsRequest message. - * @function verify - * @memberof PAM.NhiMetricsRequest - * @static - * @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) { - if (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"; - if (message.endTime != null && message.hasOwnProperty("endTime")) - if (!$util.isInteger(message.endTime) && !(message.endTime && $util.isInteger(message.endTime.low) && $util.isInteger(message.endTime.high))) - return "endTime: integer|Long expected"; - return null; - }; - /** * Creates a NhiMetricsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -324380,6 +263610,8 @@ export const PAM = $root.PAM = (() => { NhiMetricsRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.PAM.NhiMetricsRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".PAM.NhiMetricsRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -324435,14 +263667,14 @@ export const PAM = $root.PAM = (() => { } else object.endTime = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; } - if (message.startTime != null && message.hasOwnProperty("startTime")) + if (message.startTime != null && Object.hasOwnProperty.call(message, "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") 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 (message.endTime != null && Object.hasOwnProperty.call(message, "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") @@ -324634,19 +263866,6 @@ export const PAM = $root.PAM = (() => { return writer; }; - /** - * Encodes the specified PamUsageByUser message, length delimited. Does not implicitly {@link PAM.PamUsageByUser.verify|verify} messages. - * @function encodeDelimited - * @memberof PAM.PamUsageByUser - * @static - * @param {PAM.IPamUsageByUser} message PamUsageByUser message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - PamUsageByUser.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a PamUsageByUser message from the specified reader or buffer. * @function decode @@ -324715,67 +263934,6 @@ export const PAM = $root.PAM = (() => { return message; }; - /** - * Decodes a PamUsageByUser message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof PAM.PamUsageByUser - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {PAM.PamUsageByUser} PamUsageByUser - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - PamUsageByUser.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a PamUsageByUser message. - * @function verify - * @memberof PAM.PamUsageByUser - * @static - * @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) { - if (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"; - if (message.recordRotationScheduledOk != null && message.hasOwnProperty("recordRotationScheduledOk")) - if (!$util.isInteger(message.recordRotationScheduledOk)) - return "recordRotationScheduledOk: integer expected"; - if (message.pamConnectionStarted != null && message.hasOwnProperty("pamConnectionStarted")) - if (!$util.isInteger(message.pamConnectionStarted)) - return "pamConnectionStarted: integer expected"; - if (message.pamTunnelStarted != null && message.hasOwnProperty("pamTunnelStarted")) - if (!$util.isInteger(message.pamTunnelStarted)) - return "pamTunnelStarted: integer expected"; - if (message.discoveryJobStarted != null && message.hasOwnProperty("discoveryJobStarted")) - if (!$util.isInteger(message.discoveryJobStarted)) - return "discoveryJobStarted: integer expected"; - if (message.recordRotationOnDemandOk != null && message.hasOwnProperty("recordRotationOnDemandOk")) - if (!$util.isInteger(message.recordRotationOnDemandOk)) - return "recordRotationOnDemandOk: integer expected"; - if (message.pamSessionRecordingStarted != null && message.hasOwnProperty("pamSessionRecordingStarted")) - if (!$util.isInteger(message.pamSessionRecordingStarted)) - return "pamSessionRecordingStarted: integer expected"; - if (message.pamRbiStarted != null && message.hasOwnProperty("pamRbiStarted")) - if (!$util.isInteger(message.pamRbiStarted)) - return "pamRbiStarted: integer expected"; - if (message.pamSessionRbiRecordingStarted != null && message.hasOwnProperty("pamSessionRbiRecordingStarted")) - if (!$util.isInteger(message.pamSessionRbiRecordingStarted)) - return "pamSessionRbiRecordingStarted: integer expected"; - return null; - }; - /** * Creates a PamUsageByUser message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -324787,6 +263945,8 @@ export const PAM = $root.PAM = (() => { PamUsageByUser.fromObject = function fromObject(object, long) { if (object instanceof $root.PAM.PamUsageByUser) return object; + if (!$util.isObject(object)) + throw TypeError(".PAM.PamUsageByUser: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -324841,23 +264001,23 @@ export const PAM = $root.PAM = (() => { object.pamRbiStarted = 0; object.pamSessionRbiRecordingStarted = 0; } - if (message.userId != null && message.hasOwnProperty("userId")) + if (message.userId != null && Object.hasOwnProperty.call(message, "userId")) object.userId = message.userId; - if (message.recordRotationScheduledOk != null && message.hasOwnProperty("recordRotationScheduledOk")) + if (message.recordRotationScheduledOk != null && Object.hasOwnProperty.call(message, "recordRotationScheduledOk")) object.recordRotationScheduledOk = message.recordRotationScheduledOk; - if (message.pamConnectionStarted != null && message.hasOwnProperty("pamConnectionStarted")) + if (message.pamConnectionStarted != null && Object.hasOwnProperty.call(message, "pamConnectionStarted")) object.pamConnectionStarted = message.pamConnectionStarted; - if (message.pamTunnelStarted != null && message.hasOwnProperty("pamTunnelStarted")) + if (message.pamTunnelStarted != null && Object.hasOwnProperty.call(message, "pamTunnelStarted")) object.pamTunnelStarted = message.pamTunnelStarted; - if (message.discoveryJobStarted != null && message.hasOwnProperty("discoveryJobStarted")) + if (message.discoveryJobStarted != null && Object.hasOwnProperty.call(message, "discoveryJobStarted")) object.discoveryJobStarted = message.discoveryJobStarted; - if (message.recordRotationOnDemandOk != null && message.hasOwnProperty("recordRotationOnDemandOk")) + if (message.recordRotationOnDemandOk != null && Object.hasOwnProperty.call(message, "recordRotationOnDemandOk")) object.recordRotationOnDemandOk = message.recordRotationOnDemandOk; - if (message.pamSessionRecordingStarted != null && message.hasOwnProperty("pamSessionRecordingStarted")) + if (message.pamSessionRecordingStarted != null && Object.hasOwnProperty.call(message, "pamSessionRecordingStarted")) object.pamSessionRecordingStarted = message.pamSessionRecordingStarted; - if (message.pamRbiStarted != null && message.hasOwnProperty("pamRbiStarted")) + if (message.pamRbiStarted != null && Object.hasOwnProperty.call(message, "pamRbiStarted")) object.pamRbiStarted = message.pamRbiStarted; - if (message.pamSessionRbiRecordingStarted != null && message.hasOwnProperty("pamSessionRbiRecordingStarted")) + if (message.pamSessionRbiRecordingStarted != null && Object.hasOwnProperty.call(message, "pamSessionRbiRecordingStarted")) object.pamSessionRbiRecordingStarted = message.pamSessionRbiRecordingStarted; return object; }; @@ -325000,19 +264160,6 @@ export const PAM = $root.PAM = (() => { return writer; }; - /** - * Encodes the specified NhiUsageByUser message, length delimited. Does not implicitly {@link PAM.NhiUsageByUser.verify|verify} messages. - * @function encodeDelimited - * @memberof PAM.NhiUsageByUser - * @static - * @param {PAM.INhiUsageByUser} message NhiUsageByUser message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - NhiUsageByUser.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a NhiUsageByUser message from the specified reader or buffer. * @function decode @@ -325065,55 +264212,6 @@ export const PAM = $root.PAM = (() => { return message; }; - /** - * Decodes a NhiUsageByUser message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof PAM.NhiUsageByUser - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {PAM.NhiUsageByUser} NhiUsageByUser - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - NhiUsageByUser.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a NhiUsageByUser message. - * @function verify - * @memberof PAM.NhiUsageByUser - * @static - * @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) { - if (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"; - if (message.rotations != null && message.hasOwnProperty("rotations")) - if (!$util.isInteger(message.rotations)) - return "rotations: integer expected"; - if (message.tunnels != null && message.hasOwnProperty("tunnels")) - if (!$util.isInteger(message.tunnels)) - return "tunnels: integer expected"; - if (message.connections != null && message.hasOwnProperty("connections")) - if (!$util.isInteger(message.connections)) - return "connections: integer expected"; - if (message.discoveryJobs != null && message.hasOwnProperty("discoveryJobs")) - if (!$util.isInteger(message.discoveryJobs)) - return "discoveryJobs: integer expected"; - return null; - }; - /** * Creates a NhiUsageByUser message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -325125,6 +264223,8 @@ export const PAM = $root.PAM = (() => { NhiUsageByUser.fromObject = function fromObject(object, long) { if (object instanceof $root.PAM.NhiUsageByUser) return object; + if (!$util.isObject(object)) + throw TypeError(".PAM.NhiUsageByUser: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -325167,15 +264267,15 @@ export const PAM = $root.PAM = (() => { object.connections = 0; object.discoveryJobs = 0; } - if (message.userId != null && message.hasOwnProperty("userId")) + if (message.userId != null && Object.hasOwnProperty.call(message, "userId")) object.userId = message.userId; - if (message.rotations != null && message.hasOwnProperty("rotations")) + if (message.rotations != null && Object.hasOwnProperty.call(message, "rotations")) object.rotations = message.rotations; - if (message.tunnels != null && message.hasOwnProperty("tunnels")) + if (message.tunnels != null && Object.hasOwnProperty.call(message, "tunnels")) object.tunnels = message.tunnels; - if (message.connections != null && message.hasOwnProperty("connections")) + if (message.connections != null && Object.hasOwnProperty.call(message, "connections")) object.connections = message.connections; - if (message.discoveryJobs != null && message.hasOwnProperty("discoveryJobs")) + if (message.discoveryJobs != null && Object.hasOwnProperty.call(message, "discoveryJobs")) object.discoveryJobs = message.discoveryJobs; return object; }; @@ -325366,19 +264466,6 @@ export const PAM = $root.PAM = (() => { return writer; }; - /** - * Encodes the specified NhiMetricsResponse message, length delimited. Does not implicitly {@link PAM.NhiMetricsResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof PAM.NhiMetricsResponse - * @static - * @param {PAM.INhiMetricsResponse} message NhiMetricsResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - NhiMetricsResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a NhiMetricsResponse message from the specified reader or buffer. * @function decode @@ -325451,79 +264538,6 @@ export const PAM = $root.PAM = (() => { return message; }; - /** - * Decodes a NhiMetricsResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof PAM.NhiMetricsResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {PAM.NhiMetricsResponse} NhiMetricsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - NhiMetricsResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a NhiMetricsResponse message. - * @function verify - * @memberof PAM.NhiMetricsResponse - * @static - * @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) { - if (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"; - 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"; - if (message.endTime != null && message.hasOwnProperty("endTime")) - if (!$util.isInteger(message.endTime) && !(message.endTime && $util.isInteger(message.endTime.low) && $util.isInteger(message.endTime.high))) - return "endTime: integer|Long expected"; - if (message.uniqueKsmDevices != null && message.hasOwnProperty("uniqueKsmDevices")) - if (!$util.isInteger(message.uniqueKsmDevices)) - return "uniqueKsmDevices: integer expected"; - if (message.pamGatewayOnline != null && message.hasOwnProperty("pamGatewayOnline")) - if (!$util.isInteger(message.pamGatewayOnline)) - return "pamGatewayOnline: integer expected"; - if (message.pamUsageByUser != null && message.hasOwnProperty("pamUsageByUser")) { - 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); - if (error) - return "pamUsageByUser." + error; - } - } - if (message.nhiCount != null && message.hasOwnProperty("nhiCount")) - if (!$util.isInteger(message.nhiCount)) - return "nhiCount: integer expected"; - if (message.ksmNhiCount != null && message.hasOwnProperty("ksmNhiCount")) - if (!$util.isInteger(message.ksmNhiCount)) - return "ksmNhiCount: integer expected"; - if (message.usageByUser != null && message.hasOwnProperty("usageByUser")) { - 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); - if (error) - return "usageByUser." + error; - } - } - return null; - }; - /** * Creates a NhiMetricsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -325535,6 +264549,8 @@ export const PAM = $root.PAM = (() => { NhiMetricsResponse.fromObject = function fromObject(object, long) { if (object instanceof $root.PAM.NhiMetricsResponse) return object; + if (!$util.isObject(object)) + throw TypeError(".PAM.NhiMetricsResponse: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -325576,7 +264592,7 @@ export const PAM = $root.PAM = (() => { throw TypeError(".PAM.NhiMetricsResponse.pamUsageByUser: array expected"); message.pamUsageByUser = []; for (let i = 0; i < object.pamUsageByUser.length; ++i) { - if (typeof object.pamUsageByUser[i] !== "object") + if (!$util.isObject(object.pamUsageByUser[i])) throw TypeError(".PAM.NhiMetricsResponse.pamUsageByUser: object expected"); message.pamUsageByUser[i] = $root.PAM.PamUsageByUser.fromObject(object.pamUsageByUser[i], long + 1); } @@ -325590,7 +264606,7 @@ export const PAM = $root.PAM = (() => { throw TypeError(".PAM.NhiMetricsResponse.usageByUser: array expected"); message.usageByUser = []; for (let i = 0; i < object.usageByUser.length; ++i) { - if (typeof object.usageByUser[i] !== "object") + if (!$util.isObject(object.usageByUser[i])) throw TypeError(".PAM.NhiMetricsResponse.usageByUser: object expected"); message.usageByUser[i] = $root.PAM.NhiUsageByUser.fromObject(object.usageByUser[i], long + 1); } @@ -325640,39 +264656,39 @@ export const PAM = $root.PAM = (() => { object.nhiCount = 0; object.ksmNhiCount = 0; } - if (message.enterpriseId != null && message.hasOwnProperty("enterpriseId")) + if (message.enterpriseId != null && Object.hasOwnProperty.call(message, "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") 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 (message.startTime != null && Object.hasOwnProperty.call(message, "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") 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 (message.endTime != null && Object.hasOwnProperty.call(message, "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") 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.uniqueKsmDevices != null && message.hasOwnProperty("uniqueKsmDevices")) + if (message.uniqueKsmDevices != null && Object.hasOwnProperty.call(message, "uniqueKsmDevices")) object.uniqueKsmDevices = message.uniqueKsmDevices; - if (message.pamGatewayOnline != null && message.hasOwnProperty("pamGatewayOnline")) + if (message.pamGatewayOnline != null && Object.hasOwnProperty.call(message, "pamGatewayOnline")) object.pamGatewayOnline = message.pamGatewayOnline; 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); } - if (message.nhiCount != null && message.hasOwnProperty("nhiCount")) + if (message.nhiCount != null && Object.hasOwnProperty.call(message, "nhiCount")) object.nhiCount = message.nhiCount; - if (message.ksmNhiCount != null && message.hasOwnProperty("ksmNhiCount")) + if (message.ksmNhiCount != null && Object.hasOwnProperty.call(message, "ksmNhiCount")) object.ksmNhiCount = message.ksmNhiCount; if (message.usageByUser && message.usageByUser.length) { object.usageByUser = []; @@ -325778,19 +264794,6 @@ export const PAM = $root.PAM = (() => { return writer; }; - /** - * Encodes the specified NhiBulkMetricsResponse message, length delimited. Does not implicitly {@link PAM.NhiBulkMetricsResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof PAM.NhiBulkMetricsResponse - * @static - * @param {PAM.INhiBulkMetricsResponse} message NhiBulkMetricsResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - NhiBulkMetricsResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a NhiBulkMetricsResponse message from the specified reader or buffer. * @function decode @@ -325829,49 +264832,6 @@ export const PAM = $root.PAM = (() => { return message; }; - /** - * Decodes a NhiBulkMetricsResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof PAM.NhiBulkMetricsResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {PAM.NhiBulkMetricsResponse} NhiBulkMetricsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - NhiBulkMetricsResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a NhiBulkMetricsResponse message. - * @function verify - * @memberof PAM.NhiBulkMetricsResponse - * @static - * @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) { - if (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); - if (error) - return "responses." + error; - } - } - return null; - }; - /** * Creates a NhiBulkMetricsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -325883,6 +264843,8 @@ export const PAM = $root.PAM = (() => { NhiBulkMetricsResponse.fromObject = function fromObject(object, long) { if (object instanceof $root.PAM.NhiBulkMetricsResponse) return object; + if (!$util.isObject(object)) + throw TypeError(".PAM.NhiBulkMetricsResponse: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -325893,7 +264855,7 @@ export const PAM = $root.PAM = (() => { throw TypeError(".PAM.NhiBulkMetricsResponse.responses: array expected"); message.responses = []; for (let i = 0; i < object.responses.length; ++i) { - if (typeof object.responses[i] !== "object") + if (!$util.isObject(object.responses[i])) throw TypeError(".PAM.NhiBulkMetricsResponse.responses: object expected"); message.responses[i] = $root.PAM.NhiMetricsResponse.fromObject(object.responses[i], long + 1); } @@ -326064,19 +265026,6 @@ export const PAM = $root.PAM = (() => { return writer; }; - /** - * Encodes the specified NhiUidEntry message, length delimited. Does not implicitly {@link PAM.NhiUidEntry.verify|verify} messages. - * @function encodeDelimited - * @memberof PAM.NhiUidEntry - * @static - * @param {PAM.INhiUidEntry} message NhiUidEntry message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - NhiUidEntry.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a NhiUidEntry message from the specified reader or buffer. * @function decode @@ -326121,57 +265070,6 @@ export const PAM = $root.PAM = (() => { return message; }; - /** - * Decodes a NhiUidEntry message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof PAM.NhiUidEntry - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {PAM.NhiUidEntry} NhiUidEntry - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - NhiUidEntry.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a NhiUidEntry message. - * @function verify - * @memberof PAM.NhiUidEntry - * @static - * @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) { - if (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"; - if (message.category != null && message.hasOwnProperty("category")) - switch (message.category) { - default: - return "category: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - break; - } - if (message.ksmNhi != null && message.hasOwnProperty("ksmNhi")) - if (typeof message.ksmNhi !== "boolean") - return "ksmNhi: boolean expected"; - return null; - }; - /** * Creates a NhiUidEntry message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -326183,6 +265081,8 @@ export const PAM = $root.PAM = (() => { NhiUidEntry.fromObject = function fromObject(object, long) { if (object instanceof $root.PAM.NhiUidEntry) return object; + if (!$util.isObject(object)) + throw TypeError(".PAM.NhiUidEntry: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -326245,11 +265145,11 @@ export const PAM = $root.PAM = (() => { object.category = options.enums === String ? "NHI_CATEGORY_UNKNOWN" : 0; object.ksmNhi = false; } - if (message.uid != null && message.hasOwnProperty("uid")) + if (message.uid != null && Object.hasOwnProperty.call(message, "uid")) object.uid = message.uid; - if (message.category != null && message.hasOwnProperty("category")) + if (message.category != null && Object.hasOwnProperty.call(message, "category")) object.category = options.enums === String ? $root.PAM.NhiCategory[message.category] === undefined ? message.category : $root.PAM.NhiCategory[message.category] : message.category; - if (message.ksmNhi != null && message.hasOwnProperty("ksmNhi")) + if (message.ksmNhi != null && Object.hasOwnProperty.call(message, "ksmNhi")) object.ksmNhi = message.ksmNhi; return object; }; @@ -326359,19 +265259,6 @@ export const PAM = $root.PAM = (() => { return writer; }; - /** - * Encodes the specified GetNhiUidsRequest message, length delimited. Does not implicitly {@link PAM.GetNhiUidsRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof PAM.GetNhiUidsRequest - * @static - * @param {PAM.IGetNhiUidsRequest} message GetNhiUidsRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetNhiUidsRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a GetNhiUidsRequest message from the specified reader or buffer. * @function decode @@ -326412,46 +265299,6 @@ export const PAM = $root.PAM = (() => { return message; }; - /** - * Decodes a GetNhiUidsRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof PAM.GetNhiUidsRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {PAM.GetNhiUidsRequest} GetNhiUidsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetNhiUidsRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a GetNhiUidsRequest message. - * @function verify - * @memberof PAM.GetNhiUidsRequest - * @static - * @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) { - if (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"; - if (message.endTime != null && message.hasOwnProperty("endTime")) - if (!$util.isInteger(message.endTime) && !(message.endTime && $util.isInteger(message.endTime.low) && $util.isInteger(message.endTime.high))) - return "endTime: integer|Long expected"; - return null; - }; - /** * Creates a GetNhiUidsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -326463,6 +265310,8 @@ export const PAM = $root.PAM = (() => { GetNhiUidsRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.PAM.GetNhiUidsRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".PAM.GetNhiUidsRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -326518,14 +265367,14 @@ export const PAM = $root.PAM = (() => { } else object.endTime = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; } - if (message.startTime != null && message.hasOwnProperty("startTime")) + if (message.startTime != null && Object.hasOwnProperty.call(message, "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") 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 (message.endTime != null && Object.hasOwnProperty.call(message, "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") @@ -326631,19 +265480,6 @@ export const PAM = $root.PAM = (() => { return writer; }; - /** - * Encodes the specified GetNhiUidsResponse message, length delimited. Does not implicitly {@link PAM.GetNhiUidsResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof PAM.GetNhiUidsResponse - * @static - * @param {PAM.IGetNhiUidsResponse} message GetNhiUidsResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetNhiUidsResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a GetNhiUidsResponse message from the specified reader or buffer. * @function decode @@ -326682,49 +265518,6 @@ export const PAM = $root.PAM = (() => { return message; }; - /** - * Decodes a GetNhiUidsResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof PAM.GetNhiUidsResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {PAM.GetNhiUidsResponse} GetNhiUidsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetNhiUidsResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a GetNhiUidsResponse message. - * @function verify - * @memberof PAM.GetNhiUidsResponse - * @static - * @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) { - if (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); - if (error) - return "uids." + error; - } - } - return null; - }; - /** * Creates a GetNhiUidsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -326736,6 +265529,8 @@ export const PAM = $root.PAM = (() => { GetNhiUidsResponse.fromObject = function fromObject(object, long) { if (object instanceof $root.PAM.GetNhiUidsResponse) return object; + if (!$util.isObject(object)) + throw TypeError(".PAM.GetNhiUidsResponse: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -326746,7 +265541,7 @@ export const PAM = $root.PAM = (() => { throw TypeError(".PAM.GetNhiUidsResponse.uids: array expected"); message.uids = []; for (let i = 0; i < object.uids.length; ++i) { - if (typeof object.uids[i] !== "object") + if (!$util.isObject(object.uids[i])) throw TypeError(".PAM.GetNhiUidsResponse.uids: object expected"); message.uids[i] = $root.PAM.NhiUidEntry.fromObject(object.uids[i], long + 1); } @@ -326888,19 +265683,6 @@ export const PAM = $root.PAM = (() => { return writer; }; - /** - * Encodes the specified PAMUniversalSyncPreCheckRequest message, length delimited. Does not implicitly {@link PAM.PAMUniversalSyncPreCheckRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof PAM.PAMUniversalSyncPreCheckRequest - * @static - * @param {PAM.IPAMUniversalSyncPreCheckRequest} message PAMUniversalSyncPreCheckRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - PAMUniversalSyncPreCheckRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a PAMUniversalSyncPreCheckRequest message from the specified reader or buffer. * @function decode @@ -326943,50 +265725,6 @@ export const PAM = $root.PAM = (() => { return message; }; - /** - * Decodes a PAMUniversalSyncPreCheckRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof PAM.PAMUniversalSyncPreCheckRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {PAM.PAMUniversalSyncPreCheckRequest} PAMUniversalSyncPreCheckRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - PAMUniversalSyncPreCheckRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a PAMUniversalSyncPreCheckRequest message. - * @function verify - * @memberof PAM.PAMUniversalSyncPreCheckRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - PAMUniversalSyncPreCheckRequest.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.networkUid != null && message.hasOwnProperty("networkUid")) - if (!(message.networkUid && typeof message.networkUid.length === "number" || $util.isString(message.networkUid))) - return "networkUid: buffer expected"; - if (message.folderUids != null && message.hasOwnProperty("folderUids")) { - if (!Array.isArray(message.folderUids)) - return "folderUids: array expected"; - for (let i = 0; i < message.folderUids.length; ++i) - if (!(message.folderUids[i] && typeof message.folderUids[i].length === "number" || $util.isString(message.folderUids[i]))) - return "folderUids: buffer[] expected"; - } - return null; - }; - /** * Creates a PAMUniversalSyncPreCheckRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -326998,6 +265736,8 @@ export const PAM = $root.PAM = (() => { PAMUniversalSyncPreCheckRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.PAM.PAMUniversalSyncPreCheckRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".PAM.PAMUniversalSyncPreCheckRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -327048,7 +265788,7 @@ export const PAM = $root.PAM = (() => { if (options.bytes !== Array) object.networkUid = $util.newBuffer(object.networkUid); } - if (message.networkUid != null && message.hasOwnProperty("networkUid")) + if (message.networkUid != null && Object.hasOwnProperty.call(message, "networkUid")) object.networkUid = options.bytes === String ? $util.base64.encode(message.networkUid, 0, message.networkUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.networkUid) : message.networkUid; if (message.folderUids && message.folderUids.length) { object.folderUids = []; @@ -327163,19 +265903,6 @@ export const PAM = $root.PAM = (() => { return writer; }; - /** - * Encodes the specified PAMUniversalSyncPreCheckResult message, length delimited. Does not implicitly {@link PAM.PAMUniversalSyncPreCheckResult.verify|verify} messages. - * @function encodeDelimited - * @memberof PAM.PAMUniversalSyncPreCheckResult - * @static - * @param {PAM.IPAMUniversalSyncPreCheckResult} message PAMUniversalSyncPreCheckResult message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - PAMUniversalSyncPreCheckResult.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a PAMUniversalSyncPreCheckResult message from the specified reader or buffer. * @function decode @@ -327216,46 +265943,6 @@ export const PAM = $root.PAM = (() => { return message; }; - /** - * Decodes a PAMUniversalSyncPreCheckResult message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof PAM.PAMUniversalSyncPreCheckResult - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {PAM.PAMUniversalSyncPreCheckResult} PAMUniversalSyncPreCheckResult - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - PAMUniversalSyncPreCheckResult.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a PAMUniversalSyncPreCheckResult message. - * @function verify - * @memberof PAM.PAMUniversalSyncPreCheckResult - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - PAMUniversalSyncPreCheckResult.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.folderUid != null && message.hasOwnProperty("folderUid")) - if (!(message.folderUid && typeof message.folderUid.length === "number" || $util.isString(message.folderUid))) - return "folderUid: buffer expected"; - if (message.isUsed != null && message.hasOwnProperty("isUsed")) - if (typeof message.isUsed !== "boolean") - return "isUsed: boolean expected"; - return null; - }; - /** * Creates a PAMUniversalSyncPreCheckResult message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -327267,6 +265954,8 @@ export const PAM = $root.PAM = (() => { PAMUniversalSyncPreCheckResult.fromObject = function fromObject(object, long) { if (object instanceof $root.PAM.PAMUniversalSyncPreCheckResult) return object; + if (!$util.isObject(object)) + throw TypeError(".PAM.PAMUniversalSyncPreCheckResult: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -327309,9 +265998,9 @@ export const PAM = $root.PAM = (() => { } object.isUsed = false; } - if (message.folderUid != null && message.hasOwnProperty("folderUid")) + if (message.folderUid != null && Object.hasOwnProperty.call(message, "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.isUsed != null && message.hasOwnProperty("isUsed")) + if (message.isUsed != null && Object.hasOwnProperty.call(message, "isUsed")) object.isUsed = message.isUsed; return object; }; @@ -327412,19 +266101,6 @@ export const PAM = $root.PAM = (() => { return writer; }; - /** - * Encodes the specified PAMUniversalSyncPreCheckResponse message, length delimited. Does not implicitly {@link PAM.PAMUniversalSyncPreCheckResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof PAM.PAMUniversalSyncPreCheckResponse - * @static - * @param {PAM.IPAMUniversalSyncPreCheckResponse} message PAMUniversalSyncPreCheckResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - PAMUniversalSyncPreCheckResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a PAMUniversalSyncPreCheckResponse message from the specified reader or buffer. * @function decode @@ -327463,49 +266139,6 @@ export const PAM = $root.PAM = (() => { return message; }; - /** - * Decodes a PAMUniversalSyncPreCheckResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof PAM.PAMUniversalSyncPreCheckResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {PAM.PAMUniversalSyncPreCheckResponse} PAMUniversalSyncPreCheckResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - PAMUniversalSyncPreCheckResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a PAMUniversalSyncPreCheckResponse message. - * @function verify - * @memberof PAM.PAMUniversalSyncPreCheckResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - PAMUniversalSyncPreCheckResponse.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.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.PAMUniversalSyncPreCheckResult.verify(message.results[i], long + 1); - if (error) - return "results." + error; - } - } - return null; - }; - /** * Creates a PAMUniversalSyncPreCheckResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -327517,6 +266150,8 @@ export const PAM = $root.PAM = (() => { PAMUniversalSyncPreCheckResponse.fromObject = function fromObject(object, long) { if (object instanceof $root.PAM.PAMUniversalSyncPreCheckResponse) return object; + if (!$util.isObject(object)) + throw TypeError(".PAM.PAMUniversalSyncPreCheckResponse: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -327527,7 +266162,7 @@ export const PAM = $root.PAM = (() => { throw TypeError(".PAM.PAMUniversalSyncPreCheckResponse.results: array expected"); message.results = []; for (let i = 0; i < object.results.length; ++i) { - if (typeof object.results[i] !== "object") + if (!$util.isObject(object.results[i])) throw TypeError(".PAM.PAMUniversalSyncPreCheckResponse.results: object expected"); message.results[i] = $root.PAM.PAMUniversalSyncPreCheckResult.fromObject(object.results[i], long + 1); } @@ -327675,7 +266310,7 @@ export const folder = $root.folder = (() => { * @variation 1 */ Object.defineProperty(RemoveService.prototype.removeRecord = function removeRecord(request, callback) { - return this.rpcCall(removeRecord, $root.folder.v3.remove.RemoveRecordRequest, $root.folder.v3.remove.RemoveResponse, request, callback); + return $protobuf.rpc.Service.prototype.rpcCall.call(this, removeRecord, $root.folder.v3.remove.RemoveRecordRequest, $root.folder.v3.remove.RemoveResponse, request, callback); }, "name", { value: "RemoveRecord" }); /** @@ -327712,7 +266347,7 @@ export const folder = $root.folder = (() => { * @variation 1 */ Object.defineProperty(RemoveService.prototype.removeFolder = function removeFolder(request, callback) { - return this.rpcCall(removeFolder, $root.folder.v3.remove.RemoveFolderRequest, $root.folder.v3.remove.RemoveResponse, request, callback); + return $protobuf.rpc.Service.prototype.rpcCall.call(this, removeFolder, $root.folder.v3.remove.RemoveFolderRequest, $root.folder.v3.remove.RemoveResponse, request, callback); }, "name", { value: "RemoveFolder" }); /** @@ -327749,7 +266384,7 @@ export const folder = $root.folder = (() => { * @variation 1 */ Object.defineProperty(RemoveService.prototype.trashcanRestore = function trashcanRestore(request, callback) { - return this.rpcCall(trashcanRestore, $root.folder.v3.remove.TrashcanRestoreRequest, $root.folder.v3.remove.TrashcanRestoreResponse, request, callback); + return $protobuf.rpc.Service.prototype.rpcCall.call(this, trashcanRestore, $root.folder.v3.remove.TrashcanRestoreRequest, $root.folder.v3.remove.TrashcanRestoreResponse, request, callback); }, "name", { value: "TrashcanRestore" }); /** @@ -327950,19 +266585,6 @@ export const folder = $root.folder = (() => { return writer; }; - /** - * Encodes the specified RecordRemoval message, length delimited. Does not implicitly {@link folder.v3.remove.RecordRemoval.verify|verify} messages. - * @function encodeDelimited - * @memberof folder.v3.remove.RecordRemoval - * @static - * @param {folder.v3.remove.IRecordRemoval} message RecordRemoval message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RecordRemoval.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a RecordRemoval message from the specified reader or buffer. * @function decode @@ -328007,56 +266629,6 @@ export const folder = $root.folder = (() => { return message; }; - /** - * Decodes a RecordRemoval message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof folder.v3.remove.RecordRemoval - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {folder.v3.remove.RecordRemoval} RecordRemoval - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RecordRemoval.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a RecordRemoval message. - * @function verify - * @memberof folder.v3.remove.RecordRemoval - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - RecordRemoval.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.folderUid != null && message.hasOwnProperty("folderUid")) - if (!(message.folderUid && typeof message.folderUid.length === "number" || $util.isString(message.folderUid))) - return "folderUid: buffer 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.operationType != null && message.hasOwnProperty("operationType")) - switch (message.operationType) { - default: - return "operationType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - break; - } - return null; - }; - /** * Creates a RecordRemoval message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -328068,6 +266640,8 @@ export const folder = $root.folder = (() => { RecordRemoval.fromObject = function fromObject(object, long) { if (object instanceof $root.folder.v3.remove.RecordRemoval) return object; + if (!$util.isObject(object)) + throw TypeError(".folder.v3.remove.RecordRemoval: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -328144,11 +266718,11 @@ export const folder = $root.folder = (() => { } object.operationType = options.enums === String ? "RECORD_OPERATION_UNKNOWN" : 0; } - if (message.folderUid != null && message.hasOwnProperty("folderUid")) + if (message.folderUid != null && Object.hasOwnProperty.call(message, "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")) + if (message.recordUid != null && Object.hasOwnProperty.call(message, "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.operationType != null && message.hasOwnProperty("operationType")) + if (message.operationType != null && Object.hasOwnProperty.call(message, "operationType")) object.operationType = options.enums === String ? $root.folder.v3.remove.RecordOperationType[message.operationType] === undefined ? message.operationType : $root.folder.v3.remove.RecordOperationType[message.operationType] : message.operationType; return object; }; @@ -328258,19 +266832,6 @@ export const folder = $root.folder = (() => { return writer; }; - /** - * Encodes the specified FolderRemoval message, length delimited. Does not implicitly {@link folder.v3.remove.FolderRemoval.verify|verify} messages. - * @function encodeDelimited - * @memberof folder.v3.remove.FolderRemoval - * @static - * @param {folder.v3.remove.IFolderRemoval} message FolderRemoval message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - FolderRemoval.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a FolderRemoval message from the specified reader or buffer. * @function decode @@ -328311,53 +266872,6 @@ export const folder = $root.folder = (() => { return message; }; - /** - * Decodes a FolderRemoval message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof folder.v3.remove.FolderRemoval - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {folder.v3.remove.FolderRemoval} FolderRemoval - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - FolderRemoval.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a FolderRemoval message. - * @function verify - * @memberof folder.v3.remove.FolderRemoval - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - FolderRemoval.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.folderUid != null && message.hasOwnProperty("folderUid")) - if (!(message.folderUid && typeof message.folderUid.length === "number" || $util.isString(message.folderUid))) - return "folderUid: buffer expected"; - if (message.operationType != null && message.hasOwnProperty("operationType")) - switch (message.operationType) { - default: - return "operationType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - break; - } - return null; - }; - /** * Creates a FolderRemoval message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -328369,6 +266883,8 @@ export const folder = $root.folder = (() => { FolderRemoval.fromObject = function fromObject(object, long) { if (object instanceof $root.folder.v3.remove.FolderRemoval) return object; + if (!$util.isObject(object)) + throw TypeError(".folder.v3.remove.FolderRemoval: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -328433,9 +266949,9 @@ export const folder = $root.folder = (() => { } object.operationType = options.enums === String ? "FOLDER_OPERATION_UNKNOWN" : 0; } - if (message.folderUid != null && message.hasOwnProperty("folderUid")) + if (message.folderUid != null && Object.hasOwnProperty.call(message, "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.operationType != null && message.hasOwnProperty("operationType")) + if (message.operationType != null && Object.hasOwnProperty.call(message, "operationType")) object.operationType = options.enums === String ? $root.folder.v3.remove.FolderOperationType[message.operationType] === undefined ? message.operationType : $root.folder.v3.remove.FolderOperationType[message.operationType] : message.operationType; return object; }; @@ -328558,19 +267074,6 @@ export const folder = $root.folder = (() => { return writer; }; - /** - * Encodes the specified RemoveRecordRequest message, length delimited. Does not implicitly {@link folder.v3.remove.RemoveRecordRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof folder.v3.remove.RemoveRecordRequest - * @static - * @param {folder.v3.remove.IRemoveRecordRequest} message RemoveRecordRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RemoveRecordRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a RemoveRecordRequest message from the specified reader or buffer. * @function decode @@ -328617,60 +267120,6 @@ export const folder = $root.folder = (() => { return message; }; - /** - * Decodes a RemoveRecordRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof folder.v3.remove.RemoveRecordRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {folder.v3.remove.RemoveRecordRequest} RemoveRecordRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RemoveRecordRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a RemoveRecordRequest message. - * @function verify - * @memberof folder.v3.remove.RemoveRecordRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - RemoveRecordRequest.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.action != null && message.hasOwnProperty("action")) - switch (message.action) { - default: - return "action: enum value expected"; - case 0: - case 1: - break; - } - 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.folder.v3.remove.RecordRemoval.verify(message.records[i], long + 1); - if (error) - return "records." + error; - } - } - if (message.confirmationToken != null && message.hasOwnProperty("confirmationToken")) - if (!(message.confirmationToken && typeof message.confirmationToken.length === "number" || $util.isString(message.confirmationToken))) - return "confirmationToken: buffer expected"; - return null; - }; - /** * Creates a RemoveRecordRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -328682,6 +267131,8 @@ export const folder = $root.folder = (() => { RemoveRecordRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.folder.v3.remove.RemoveRecordRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".folder.v3.remove.RemoveRecordRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -328708,7 +267159,7 @@ export const folder = $root.folder = (() => { throw TypeError(".folder.v3.remove.RemoveRecordRequest.records: array expected"); message.records = []; for (let i = 0; i < object.records.length; ++i) { - if (typeof object.records[i] !== "object") + if (!$util.isObject(object.records[i])) throw TypeError(".folder.v3.remove.RemoveRecordRequest.records: object expected"); message.records[i] = $root.folder.v3.remove.RecordRemoval.fromObject(object.records[i], long + 1); } @@ -328750,14 +267201,14 @@ export const folder = $root.folder = (() => { object.confirmationToken = $util.newBuffer(object.confirmationToken); } } - if (message.action != null && message.hasOwnProperty("action")) + if (message.action != null && Object.hasOwnProperty.call(message, "action")) object.action = options.enums === String ? $root.folder.v3.remove.RemoveAction[message.action] === undefined ? message.action : $root.folder.v3.remove.RemoveAction[message.action] : message.action; if (message.records && message.records.length) { object.records = []; for (let j = 0; j < message.records.length; ++j) object.records[j] = $root.folder.v3.remove.RecordRemoval.toObject(message.records[j], options, q + 1); } - if (message.confirmationToken != null && message.hasOwnProperty("confirmationToken")) + if (message.confirmationToken != null && Object.hasOwnProperty.call(message, "confirmationToken")) object.confirmationToken = options.bytes === String ? $util.base64.encode(message.confirmationToken, 0, message.confirmationToken.length) : options.bytes === Array ? Array.prototype.slice.call(message.confirmationToken) : message.confirmationToken; return object; }; @@ -328880,19 +267331,6 @@ export const folder = $root.folder = (() => { return writer; }; - /** - * Encodes the specified RemoveFolderRequest message, length delimited. Does not implicitly {@link folder.v3.remove.RemoveFolderRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof folder.v3.remove.RemoveFolderRequest - * @static - * @param {folder.v3.remove.IRemoveFolderRequest} message RemoveFolderRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RemoveFolderRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a RemoveFolderRequest message from the specified reader or buffer. * @function decode @@ -328939,60 +267377,6 @@ export const folder = $root.folder = (() => { return message; }; - /** - * Decodes a RemoveFolderRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof folder.v3.remove.RemoveFolderRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {folder.v3.remove.RemoveFolderRequest} RemoveFolderRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RemoveFolderRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a RemoveFolderRequest message. - * @function verify - * @memberof folder.v3.remove.RemoveFolderRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - RemoveFolderRequest.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.action != null && message.hasOwnProperty("action")) - switch (message.action) { - default: - return "action: enum value expected"; - case 0: - case 1: - break; - } - 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.v3.remove.FolderRemoval.verify(message.folders[i], long + 1); - if (error) - return "folders." + error; - } - } - if (message.confirmationToken != null && message.hasOwnProperty("confirmationToken")) - if (!(message.confirmationToken && typeof message.confirmationToken.length === "number" || $util.isString(message.confirmationToken))) - return "confirmationToken: buffer expected"; - return null; - }; - /** * Creates a RemoveFolderRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -329004,6 +267388,8 @@ export const folder = $root.folder = (() => { RemoveFolderRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.folder.v3.remove.RemoveFolderRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".folder.v3.remove.RemoveFolderRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -329030,7 +267416,7 @@ export const folder = $root.folder = (() => { throw TypeError(".folder.v3.remove.RemoveFolderRequest.folders: array expected"); message.folders = []; for (let i = 0; i < object.folders.length; ++i) { - if (typeof object.folders[i] !== "object") + if (!$util.isObject(object.folders[i])) throw TypeError(".folder.v3.remove.RemoveFolderRequest.folders: object expected"); message.folders[i] = $root.folder.v3.remove.FolderRemoval.fromObject(object.folders[i], long + 1); } @@ -329072,14 +267458,14 @@ export const folder = $root.folder = (() => { object.confirmationToken = $util.newBuffer(object.confirmationToken); } } - if (message.action != null && message.hasOwnProperty("action")) + if (message.action != null && Object.hasOwnProperty.call(message, "action")) object.action = options.enums === String ? $root.folder.v3.remove.RemoveAction[message.action] === undefined ? message.action : $root.folder.v3.remove.RemoveAction[message.action] : message.action; if (message.folders && message.folders.length) { object.folders = []; for (let j = 0; j < message.folders.length; ++j) object.folders[j] = $root.folder.v3.remove.FolderRemoval.toObject(message.folders[j], options, q + 1); } - if (message.confirmationToken != null && message.hasOwnProperty("confirmationToken")) + if (message.confirmationToken != null && Object.hasOwnProperty.call(message, "confirmationToken")) object.confirmationToken = options.bytes === String ? $util.base64.encode(message.confirmationToken, 0, message.confirmationToken.length) : options.bytes === Array ? Array.prototype.slice.call(message.confirmationToken) : message.confirmationToken; return object; }; @@ -329216,19 +267602,6 @@ export const folder = $root.folder = (() => { return writer; }; - /** - * Encodes the specified RemoveResponse message, length delimited. Does not implicitly {@link folder.v3.remove.RemoveResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof folder.v3.remove.RemoveResponse - * @static - * @param {folder.v3.remove.IRemoveResponse} message RemoveResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RemoveResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a RemoveResponse message from the specified reader or buffer. * @function decode @@ -329279,58 +267652,6 @@ export const folder = $root.folder = (() => { return message; }; - /** - * Decodes a RemoveResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof folder.v3.remove.RemoveResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {folder.v3.remove.RemoveResponse} RemoveResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RemoveResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a RemoveResponse message. - * @function verify - * @memberof folder.v3.remove.RemoveResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - RemoveResponse.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.confirmationToken != null && message.hasOwnProperty("confirmationToken")) - if (!(message.confirmationToken && typeof message.confirmationToken.length === "number" || $util.isString(message.confirmationToken))) - return "confirmationToken: buffer expected"; - if (message.tokenExpiresAt != null && message.hasOwnProperty("tokenExpiresAt")) - if (!$util.isInteger(message.tokenExpiresAt) && !(message.tokenExpiresAt && $util.isInteger(message.tokenExpiresAt.low) && $util.isInteger(message.tokenExpiresAt.high))) - return "tokenExpiresAt: integer|Long expected"; - 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.folder.v3.remove.RemoveResult.verify(message.results[i], long + 1); - if (error) - return "results." + error; - } - } - if (message.errorMessage != null && message.hasOwnProperty("errorMessage")) - if (!$util.isString(message.errorMessage)) - return "errorMessage: string expected"; - return null; - }; - /** * Creates a RemoveResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -329342,6 +267663,8 @@ export const folder = $root.folder = (() => { RemoveResponse.fromObject = function fromObject(object, long) { if (object instanceof $root.folder.v3.remove.RemoveResponse) return object; + if (!$util.isObject(object)) + throw TypeError(".folder.v3.remove.RemoveResponse: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -329366,7 +267689,7 @@ export const folder = $root.folder = (() => { throw TypeError(".folder.v3.remove.RemoveResponse.results: array expected"); message.results = []; for (let i = 0; i < object.results.length; ++i) { - if (typeof object.results[i] !== "object") + if (!$util.isObject(object.results[i])) throw TypeError(".folder.v3.remove.RemoveResponse.results: object expected"); message.results[i] = $root.folder.v3.remove.RemoveResult.fromObject(object.results[i], long + 1); } @@ -329410,9 +267733,9 @@ export const folder = $root.folder = (() => { object.tokenExpiresAt = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; object.errorMessage = ""; } - if (message.confirmationToken != null && message.hasOwnProperty("confirmationToken")) + if (message.confirmationToken != null && Object.hasOwnProperty.call(message, "confirmationToken")) object.confirmationToken = options.bytes === String ? $util.base64.encode(message.confirmationToken, 0, message.confirmationToken.length) : options.bytes === Array ? Array.prototype.slice.call(message.confirmationToken) : message.confirmationToken; - if (message.tokenExpiresAt != null && message.hasOwnProperty("tokenExpiresAt")) + if (message.tokenExpiresAt != null && Object.hasOwnProperty.call(message, "tokenExpiresAt")) if (typeof BigInt !== "undefined" && options.longs === BigInt) object.tokenExpiresAt = typeof message.tokenExpiresAt === "number" ? BigInt(message.tokenExpiresAt) : $util.Long.fromBits(message.tokenExpiresAt.low >>> 0, message.tokenExpiresAt.high >>> 0, false).toBigInt(); else if (typeof message.tokenExpiresAt === "number") @@ -329424,7 +267747,7 @@ export const folder = $root.folder = (() => { for (let j = 0; j < message.results.length; ++j) object.results[j] = $root.folder.v3.remove.RemoveResult.toObject(message.results[j], options, q + 1); } - if (message.errorMessage != null && message.hasOwnProperty("errorMessage")) + if (message.errorMessage != null && Object.hasOwnProperty.call(message, "errorMessage")) object.errorMessage = message.errorMessage; return object; }; @@ -329567,19 +267890,6 @@ export const folder = $root.folder = (() => { return writer; }; - /** - * Encodes the specified RemoveResult message, length delimited. Does not implicitly {@link folder.v3.remove.RemoveResult.verify|verify} messages. - * @function encodeDelimited - * @memberof folder.v3.remove.RemoveResult - * @static - * @param {folder.v3.remove.IRemoveResult} message RemoveResult message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RemoveResult.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a RemoveResult message from the specified reader or buffer. * @function decode @@ -329632,69 +267942,6 @@ export const folder = $root.folder = (() => { return message; }; - /** - * Decodes a RemoveResult message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof folder.v3.remove.RemoveResult - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {folder.v3.remove.RemoveResult} RemoveResult - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RemoveResult.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a RemoveResult message. - * @function verify - * @memberof folder.v3.remove.RemoveResult - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - RemoveResult.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.itemUid != null && message.hasOwnProperty("itemUid")) - if (!(message.itemUid && typeof message.itemUid.length === "number" || $util.isString(message.itemUid))) - return "itemUid: 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.status != null && message.hasOwnProperty("status")) - switch (message.status) { - default: - return "status: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - break; - } - if (message.impact != null && message.hasOwnProperty("impact")) { - let error = $root.folder.v3.remove.Impact.verify(message.impact, long + 1); - if (error) - return "impact." + error; - } - if (message.error != null && message.hasOwnProperty("error")) { - let error = $root.folder.v3.remove.ItemError.verify(message.error, long + 1); - if (error) - return "error." + error; - } - return null; - }; - /** * Creates a RemoveResult message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -329706,6 +267953,8 @@ export const folder = $root.folder = (() => { RemoveResult.fromObject = function fromObject(object, long) { if (object instanceof $root.folder.v3.remove.RemoveResult) return object; + if (!$util.isObject(object)) + throw TypeError(".folder.v3.remove.RemoveResult: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -329758,12 +268007,12 @@ export const folder = $root.folder = (() => { break; } if (object.impact != null) { - if (typeof object.impact !== "object") + if (!$util.isObject(object.impact)) throw TypeError(".folder.v3.remove.RemoveResult.impact: object expected"); message.impact = $root.folder.v3.remove.Impact.fromObject(object.impact, long + 1); } if (object.error != null) { - if (typeof object.error !== "object") + if (!$util.isObject(object.error)) throw TypeError(".folder.v3.remove.RemoveResult.error: object expected"); message.error = $root.folder.v3.remove.ItemError.fromObject(object.error, long + 1); } @@ -329806,15 +268055,15 @@ export const folder = $root.folder = (() => { object.impact = null; object.error = null; } - if (message.itemUid != null && message.hasOwnProperty("itemUid")) + if (message.itemUid != null && Object.hasOwnProperty.call(message, "itemUid")) object.itemUid = options.bytes === String ? $util.base64.encode(message.itemUid, 0, message.itemUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.itemUid) : message.itemUid; - if (message.folderUid != null && message.hasOwnProperty("folderUid")) + if (message.folderUid != null && Object.hasOwnProperty.call(message, "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.status != null && message.hasOwnProperty("status")) + if (message.status != null && Object.hasOwnProperty.call(message, "status")) object.status = options.enums === String ? $root.folder.v3.remove.RemoveStatus[message.status] === undefined ? message.status : $root.folder.v3.remove.RemoveStatus[message.status] : message.status; - if (message.impact != null && message.hasOwnProperty("impact")) + if (message.impact != null && Object.hasOwnProperty.call(message, "impact")) object.impact = $root.folder.v3.remove.Impact.toObject(message.impact, options, q + 1); - if (message.error != null && message.hasOwnProperty("error")) + if (message.error != null && Object.hasOwnProperty.call(message, "error")) object.error = $root.folder.v3.remove.ItemError.toObject(message.error, options, q + 1); return object; }; @@ -329972,19 +268221,6 @@ export const folder = $root.folder = (() => { return writer; }; - /** - * Encodes the specified Impact message, length delimited. Does not implicitly {@link folder.v3.remove.Impact.verify|verify} messages. - * @function encodeDelimited - * @memberof folder.v3.remove.Impact - * @static - * @param {folder.v3.remove.IImpact} message Impact message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Impact.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes an Impact message from the specified reader or buffer. * @function decode @@ -330045,68 +268281,6 @@ export const folder = $root.folder = (() => { return message; }; - /** - * Decodes an Impact message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof folder.v3.remove.Impact - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {folder.v3.remove.Impact} Impact - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Impact.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an Impact message. - * @function verify - * @memberof folder.v3.remove.Impact - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Impact.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.foldersCount != null && message.hasOwnProperty("foldersCount")) - if (!$util.isInteger(message.foldersCount)) - return "foldersCount: integer expected"; - if (message.recordsCount != null && message.hasOwnProperty("recordsCount")) - if (!$util.isInteger(message.recordsCount)) - return "recordsCount: integer expected"; - if (message.affectedUsersCount != null && message.hasOwnProperty("affectedUsersCount")) - if (!$util.isInteger(message.affectedUsersCount)) - return "affectedUsersCount: integer expected"; - if (message.affectedTeamsCount != null && message.hasOwnProperty("affectedTeamsCount")) - if (!$util.isInteger(message.affectedTeamsCount)) - return "affectedTeamsCount: integer expected"; - if (message.recordInfo != null && message.hasOwnProperty("recordInfo")) { - if (!Array.isArray(message.recordInfo)) - return "recordInfo: array expected"; - for (let i = 0; i < message.recordInfo.length; ++i) { - let error = $root.folder.v3.remove.RecordInfo.verify(message.recordInfo[i], long + 1); - if (error) - return "recordInfo." + error; - } - } - if (message.warnings != null && message.hasOwnProperty("warnings")) { - if (!Array.isArray(message.warnings)) - return "warnings: array expected"; - for (let i = 0; i < message.warnings.length; ++i) - if (!$util.isString(message.warnings[i])) - return "warnings: string[] expected"; - } - return null; - }; - /** * Creates an Impact message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -330118,6 +268292,8 @@ export const folder = $root.folder = (() => { Impact.fromObject = function fromObject(object, long) { if (object instanceof $root.folder.v3.remove.Impact) return object; + if (!$util.isObject(object)) + throw TypeError(".folder.v3.remove.Impact: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -330136,7 +268312,7 @@ export const folder = $root.folder = (() => { throw TypeError(".folder.v3.remove.Impact.recordInfo: array expected"); message.recordInfo = []; for (let i = 0; i < object.recordInfo.length; ++i) { - if (typeof object.recordInfo[i] !== "object") + if (!$util.isObject(object.recordInfo[i])) throw TypeError(".folder.v3.remove.Impact.recordInfo: object expected"); message.recordInfo[i] = $root.folder.v3.remove.RecordInfo.fromObject(object.recordInfo[i], long + 1); } @@ -330178,13 +268354,13 @@ export const folder = $root.folder = (() => { object.affectedUsersCount = 0; object.affectedTeamsCount = 0; } - if (message.foldersCount != null && message.hasOwnProperty("foldersCount")) + if (message.foldersCount != null && Object.hasOwnProperty.call(message, "foldersCount")) object.foldersCount = message.foldersCount; - if (message.recordsCount != null && message.hasOwnProperty("recordsCount")) + if (message.recordsCount != null && Object.hasOwnProperty.call(message, "recordsCount")) object.recordsCount = message.recordsCount; - if (message.affectedUsersCount != null && message.hasOwnProperty("affectedUsersCount")) + if (message.affectedUsersCount != null && Object.hasOwnProperty.call(message, "affectedUsersCount")) object.affectedUsersCount = message.affectedUsersCount; - if (message.affectedTeamsCount != null && message.hasOwnProperty("affectedTeamsCount")) + if (message.affectedTeamsCount != null && Object.hasOwnProperty.call(message, "affectedTeamsCount")) object.affectedTeamsCount = message.affectedTeamsCount; if (message.recordInfo && message.recordInfo.length) { object.recordInfo = []; @@ -330305,19 +268481,6 @@ export const folder = $root.folder = (() => { return writer; }; - /** - * Encodes the specified RecordInfo message, length delimited. Does not implicitly {@link folder.v3.remove.RecordInfo.verify|verify} messages. - * @function encodeDelimited - * @memberof folder.v3.remove.RecordInfo - * @static - * @param {folder.v3.remove.IRecordInfo} message RecordInfo message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RecordInfo.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a RecordInfo message from the specified reader or buffer. * @function decode @@ -330358,46 +268521,6 @@ export const folder = $root.folder = (() => { return message; }; - /** - * Decodes a RecordInfo message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof folder.v3.remove.RecordInfo - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {folder.v3.remove.RecordInfo} RecordInfo - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RecordInfo.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a RecordInfo message. - * @function verify - * @memberof folder.v3.remove.RecordInfo - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - RecordInfo.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.recordUid != null && message.hasOwnProperty("recordUid")) - if (!(message.recordUid && typeof message.recordUid.length === "number" || $util.isString(message.recordUid))) - return "recordUid: buffer expected"; - if (message.locationsCount != null && message.hasOwnProperty("locationsCount")) - if (!$util.isInteger(message.locationsCount)) - return "locationsCount: integer expected"; - return null; - }; - /** * Creates a RecordInfo message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -330409,6 +268532,8 @@ export const folder = $root.folder = (() => { RecordInfo.fromObject = function fromObject(object, long) { if (object instanceof $root.folder.v3.remove.RecordInfo) return object; + if (!$util.isObject(object)) + throw TypeError(".folder.v3.remove.RecordInfo: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -330451,9 +268576,9 @@ export const folder = $root.folder = (() => { } object.locationsCount = 0; } - if (message.recordUid != null && message.hasOwnProperty("recordUid")) + if (message.recordUid != null && Object.hasOwnProperty.call(message, "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.locationsCount != null && message.hasOwnProperty("locationsCount")) + if (message.locationsCount != null && Object.hasOwnProperty.call(message, "locationsCount")) object.locationsCount = message.locationsCount; return object; }; @@ -330563,19 +268688,6 @@ export const folder = $root.folder = (() => { return writer; }; - /** - * Encodes the specified ItemError message, length delimited. Does not implicitly {@link folder.v3.remove.ItemError.verify|verify} messages. - * @function encodeDelimited - * @memberof folder.v3.remove.ItemError - * @static - * @param {folder.v3.remove.IItemError} message ItemError message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ItemError.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes an ItemError message from the specified reader or buffer. * @function decode @@ -330616,55 +268728,6 @@ export const folder = $root.folder = (() => { return message; }; - /** - * Decodes an ItemError message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof folder.v3.remove.ItemError - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {folder.v3.remove.ItemError} ItemError - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ItemError.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an ItemError message. - * @function verify - * @memberof folder.v3.remove.ItemError - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ItemError.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.code != null && message.hasOwnProperty("code")) - switch (message.code) { - default: - return "code: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - break; - } - if (message.message != null && message.hasOwnProperty("message")) - if (!$util.isString(message.message)) - return "message: string expected"; - return null; - }; - /** * Creates an ItemError message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -330676,6 +268739,8 @@ export const folder = $root.folder = (() => { ItemError.fromObject = function fromObject(object, long) { if (object instanceof $root.folder.v3.remove.ItemError) return object; + if (!$util.isObject(object)) + throw TypeError(".folder.v3.remove.ItemError: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -330739,9 +268804,9 @@ export const folder = $root.folder = (() => { object.code = options.enums === String ? "REMOVE_ERROR_UNKNOWN" : 0; object.message = ""; } - if (message.code != null && message.hasOwnProperty("code")) + if (message.code != null && Object.hasOwnProperty.call(message, "code")) object.code = options.enums === String ? $root.folder.v3.remove.RemoveErrorCode[message.code] === undefined ? message.code : $root.folder.v3.remove.RemoveErrorCode[message.code] : message.code; - if (message.message != null && message.hasOwnProperty("message")) + if (message.message != null && Object.hasOwnProperty.call(message, "message")) object.message = message.message; return object; }; @@ -330886,19 +268951,6 @@ export const folder = $root.folder = (() => { return writer; }; - /** - * Encodes the specified RemovalTokenPayload message, length delimited. Does not implicitly {@link folder.v3.remove.RemovalTokenPayload.verify|verify} messages. - * @function encodeDelimited - * @memberof folder.v3.remove.RemovalTokenPayload - * @static - * @param {folder.v3.remove.IRemovalTokenPayload} message RemovalTokenPayload message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RemovalTokenPayload.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a RemovalTokenPayload message from the specified reader or buffer. * @function decode @@ -330953,61 +269005,6 @@ export const folder = $root.folder = (() => { return message; }; - /** - * Decodes a RemovalTokenPayload message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof folder.v3.remove.RemovalTokenPayload - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {folder.v3.remove.RemovalTokenPayload} RemovalTokenPayload - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RemovalTokenPayload.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a RemovalTokenPayload message. - * @function verify - * @memberof folder.v3.remove.RemovalTokenPayload - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - RemovalTokenPayload.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.itemFingerprints != null && message.hasOwnProperty("itemFingerprints")) { - if (!Array.isArray(message.itemFingerprints)) - return "itemFingerprints: array expected"; - for (let i = 0; i < message.itemFingerprints.length; ++i) { - let error = $root.folder.v3.remove.ItemFingerprint.verify(message.itemFingerprints[i], long + 1); - if (error) - return "itemFingerprints." + error; - } - } - if (message.userId != null && message.hasOwnProperty("userId")) - if (!$util.isInteger(message.userId)) - return "userId: integer expected"; - 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"; - if (message.sessionUid != null && message.hasOwnProperty("sessionUid")) - if (!(message.sessionUid && typeof message.sessionUid.length === "number" || $util.isString(message.sessionUid))) - return "sessionUid: buffer expected"; - if (message.expiresAtMillis != null && message.hasOwnProperty("expiresAtMillis")) - if (!$util.isInteger(message.expiresAtMillis) && !(message.expiresAtMillis && $util.isInteger(message.expiresAtMillis.low) && $util.isInteger(message.expiresAtMillis.high))) - return "expiresAtMillis: integer|Long expected"; - return null; - }; - /** * Creates a RemovalTokenPayload message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -331019,6 +269016,8 @@ export const folder = $root.folder = (() => { RemovalTokenPayload.fromObject = function fromObject(object, long) { if (object instanceof $root.folder.v3.remove.RemovalTokenPayload) return object; + if (!$util.isObject(object)) + throw TypeError(".folder.v3.remove.RemovalTokenPayload: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -331029,7 +269028,7 @@ export const folder = $root.folder = (() => { throw TypeError(".folder.v3.remove.RemovalTokenPayload.itemFingerprints: array expected"); message.itemFingerprints = []; for (let i = 0; i < object.itemFingerprints.length; ++i) { - if (typeof object.itemFingerprints[i] !== "object") + if (!$util.isObject(object.itemFingerprints[i])) throw TypeError(".folder.v3.remove.RemovalTokenPayload.itemFingerprints: object expected"); message.itemFingerprints[i] = $root.folder.v3.remove.ItemFingerprint.fromObject(object.itemFingerprints[i], long + 1); } @@ -331106,18 +269105,18 @@ export const folder = $root.folder = (() => { for (let j = 0; j < message.itemFingerprints.length; ++j) object.itemFingerprints[j] = $root.folder.v3.remove.ItemFingerprint.toObject(message.itemFingerprints[j], options, q + 1); } - if (message.userId != null && message.hasOwnProperty("userId")) + if (message.userId != null && Object.hasOwnProperty.call(message, "userId")) object.userId = message.userId; - if (message.deviceId != null && message.hasOwnProperty("deviceId")) + if (message.deviceId != null && Object.hasOwnProperty.call(message, "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") 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.sessionUid != null && message.hasOwnProperty("sessionUid")) + if (message.sessionUid != null && Object.hasOwnProperty.call(message, "sessionUid")) object.sessionUid = options.bytes === String ? $util.base64.encode(message.sessionUid, 0, message.sessionUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.sessionUid) : message.sessionUid; - if (message.expiresAtMillis != null && message.hasOwnProperty("expiresAtMillis")) + if (message.expiresAtMillis != null && Object.hasOwnProperty.call(message, "expiresAtMillis")) if (typeof BigInt !== "undefined" && options.longs === BigInt) object.expiresAtMillis = typeof message.expiresAtMillis === "number" ? BigInt(message.expiresAtMillis) : $util.Long.fromBits(message.expiresAtMillis.low >>> 0, message.expiresAtMillis.high >>> 0, false).toBigInt(); else if (typeof message.expiresAtMillis === "number") @@ -331257,19 +269256,6 @@ export const folder = $root.folder = (() => { return writer; }; - /** - * Encodes the specified ItemFingerprint message, length delimited. Does not implicitly {@link folder.v3.remove.ItemFingerprint.verify|verify} messages. - * @function encodeDelimited - * @memberof folder.v3.remove.ItemFingerprint - * @static - * @param {folder.v3.remove.IItemFingerprint} message ItemFingerprint message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ItemFingerprint.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes an ItemFingerprint message from the specified reader or buffer. * @function decode @@ -331314,62 +269300,6 @@ export const folder = $root.folder = (() => { return message; }; - /** - * Decodes an ItemFingerprint message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof folder.v3.remove.ItemFingerprint - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {folder.v3.remove.ItemFingerprint} ItemFingerprint - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ItemFingerprint.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an ItemFingerprint message. - * @function verify - * @memberof folder.v3.remove.ItemFingerprint - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ItemFingerprint.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"; - let properties = {}; - if (message.record != null && message.hasOwnProperty("record")) { - properties.target = 1; - { - let error = $root.folder.v3.remove.RecordTarget.verify(message.record, long + 1); - if (error) - return "record." + error; - } - } - if (message.folder != null && message.hasOwnProperty("folder")) { - if (properties.target === 1) - return "target: multiple values"; - properties.target = 1; - { - let error = $root.folder.v3.remove.FolderTarget.verify(message.folder, long + 1); - if (error) - return "folder." + error; - } - } - if (message.fingerprint != null && message.hasOwnProperty("fingerprint")) - if (!(message.fingerprint && typeof message.fingerprint.length === "number" || $util.isString(message.fingerprint))) - return "fingerprint: buffer expected"; - return null; - }; - /** * Creates an ItemFingerprint message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -331381,18 +269311,20 @@ export const folder = $root.folder = (() => { ItemFingerprint.fromObject = function fromObject(object, long) { if (object instanceof $root.folder.v3.remove.ItemFingerprint) return object; + if (!$util.isObject(object)) + throw TypeError(".folder.v3.remove.ItemFingerprint: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) throw Error("maximum nesting depth exceeded"); let message = new $root.folder.v3.remove.ItemFingerprint(); if (object.record != null) { - if (typeof object.record !== "object") + if (!$util.isObject(object.record)) throw TypeError(".folder.v3.remove.ItemFingerprint.record: object expected"); message.record = $root.folder.v3.remove.RecordTarget.fromObject(object.record, long + 1); } if (object.folder != null) { - if (typeof object.folder !== "object") + if (!$util.isObject(object.folder)) throw TypeError(".folder.v3.remove.ItemFingerprint.folder: object expected"); message.folder = $root.folder.v3.remove.FolderTarget.fromObject(object.folder, long + 1); } @@ -331429,17 +269361,17 @@ export const folder = $root.folder = (() => { if (options.bytes !== Array) object.fingerprint = $util.newBuffer(object.fingerprint); } - if (message.record != null && message.hasOwnProperty("record")) { + if (message.record != null && Object.hasOwnProperty.call(message, "record")) { object.record = $root.folder.v3.remove.RecordTarget.toObject(message.record, options, q + 1); if (options.oneofs) object.target = "record"; } - if (message.folder != null && message.hasOwnProperty("folder")) { + if (message.folder != null && Object.hasOwnProperty.call(message, "folder")) { object.folder = $root.folder.v3.remove.FolderTarget.toObject(message.folder, options, q + 1); if (options.oneofs) object.target = "folder"; } - if (message.fingerprint != null && message.hasOwnProperty("fingerprint")) + if (message.fingerprint != null && Object.hasOwnProperty.call(message, "fingerprint")) object.fingerprint = options.bytes === String ? $util.base64.encode(message.fingerprint, 0, message.fingerprint.length) : options.bytes === Array ? Array.prototype.slice.call(message.fingerprint) : message.fingerprint; return object; }; @@ -331560,19 +269492,6 @@ export const folder = $root.folder = (() => { return writer; }; - /** - * Encodes the specified RecordTarget message, length delimited. Does not implicitly {@link folder.v3.remove.RecordTarget.verify|verify} messages. - * @function encodeDelimited - * @memberof folder.v3.remove.RecordTarget - * @static - * @param {folder.v3.remove.IRecordTarget} message RecordTarget message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RecordTarget.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a RecordTarget message from the specified reader or buffer. * @function decode @@ -331617,56 +269536,6 @@ export const folder = $root.folder = (() => { return message; }; - /** - * Decodes a RecordTarget message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof folder.v3.remove.RecordTarget - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {folder.v3.remove.RecordTarget} RecordTarget - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RecordTarget.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a RecordTarget message. - * @function verify - * @memberof folder.v3.remove.RecordTarget - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - RecordTarget.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.folderUid != null && message.hasOwnProperty("folderUid")) - if (!(message.folderUid && typeof message.folderUid.length === "number" || $util.isString(message.folderUid))) - return "folderUid: buffer 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.operationType != null && message.hasOwnProperty("operationType")) - switch (message.operationType) { - default: - return "operationType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - break; - } - return null; - }; - /** * Creates a RecordTarget message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -331678,6 +269547,8 @@ export const folder = $root.folder = (() => { RecordTarget.fromObject = function fromObject(object, long) { if (object instanceof $root.folder.v3.remove.RecordTarget) return object; + if (!$util.isObject(object)) + throw TypeError(".folder.v3.remove.RecordTarget: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -331754,11 +269625,11 @@ export const folder = $root.folder = (() => { } object.operationType = options.enums === String ? "RECORD_OPERATION_UNKNOWN" : 0; } - if (message.folderUid != null && message.hasOwnProperty("folderUid")) + if (message.folderUid != null && Object.hasOwnProperty.call(message, "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")) + if (message.recordUid != null && Object.hasOwnProperty.call(message, "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.operationType != null && message.hasOwnProperty("operationType")) + if (message.operationType != null && Object.hasOwnProperty.call(message, "operationType")) object.operationType = options.enums === String ? $root.folder.v3.remove.RecordOperationType[message.operationType] === undefined ? message.operationType : $root.folder.v3.remove.RecordOperationType[message.operationType] : message.operationType; return object; }; @@ -331868,19 +269739,6 @@ export const folder = $root.folder = (() => { return writer; }; - /** - * Encodes the specified FolderTarget message, length delimited. Does not implicitly {@link folder.v3.remove.FolderTarget.verify|verify} messages. - * @function encodeDelimited - * @memberof folder.v3.remove.FolderTarget - * @static - * @param {folder.v3.remove.IFolderTarget} message FolderTarget message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - FolderTarget.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a FolderTarget message from the specified reader or buffer. * @function decode @@ -331921,53 +269779,6 @@ export const folder = $root.folder = (() => { return message; }; - /** - * Decodes a FolderTarget message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof folder.v3.remove.FolderTarget - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {folder.v3.remove.FolderTarget} FolderTarget - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - FolderTarget.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a FolderTarget message. - * @function verify - * @memberof folder.v3.remove.FolderTarget - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - FolderTarget.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.folderUid != null && message.hasOwnProperty("folderUid")) - if (!(message.folderUid && typeof message.folderUid.length === "number" || $util.isString(message.folderUid))) - return "folderUid: buffer expected"; - if (message.operationType != null && message.hasOwnProperty("operationType")) - switch (message.operationType) { - default: - return "operationType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - break; - } - return null; - }; - /** * Creates a FolderTarget message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -331979,6 +269790,8 @@ export const folder = $root.folder = (() => { FolderTarget.fromObject = function fromObject(object, long) { if (object instanceof $root.folder.v3.remove.FolderTarget) return object; + if (!$util.isObject(object)) + throw TypeError(".folder.v3.remove.FolderTarget: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -332043,9 +269856,9 @@ export const folder = $root.folder = (() => { } object.operationType = options.enums === String ? "FOLDER_OPERATION_UNKNOWN" : 0; } - if (message.folderUid != null && message.hasOwnProperty("folderUid")) + if (message.folderUid != null && Object.hasOwnProperty.call(message, "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.operationType != null && message.hasOwnProperty("operationType")) + if (message.operationType != null && Object.hasOwnProperty.call(message, "operationType")) object.operationType = options.enums === String ? $root.folder.v3.remove.FolderOperationType[message.operationType] === undefined ? message.operationType : $root.folder.v3.remove.FolderOperationType[message.operationType] : message.operationType; return object; }; @@ -332217,19 +270030,6 @@ export const folder = $root.folder = (() => { return writer; }; - /** - * Encodes the specified RestoreResult message, length delimited. Does not implicitly {@link folder.v3.remove.RestoreResult.verify|verify} messages. - * @function encodeDelimited - * @memberof folder.v3.remove.RestoreResult - * @static - * @param {folder.v3.remove.IRestoreResult} message RestoreResult message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RestoreResult.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a RestoreResult message from the specified reader or buffer. * @function decode @@ -332278,68 +270078,6 @@ export const folder = $root.folder = (() => { return message; }; - /** - * Decodes a RestoreResult message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof folder.v3.remove.RestoreResult - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {folder.v3.remove.RestoreResult} RestoreResult - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RestoreResult.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a RestoreResult message. - * @function verify - * @memberof folder.v3.remove.RestoreResult - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - RestoreResult.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.itemUid != null && message.hasOwnProperty("itemUid")) - if (!(message.itemUid && typeof message.itemUid.length === "number" || $util.isString(message.itemUid))) - return "itemUid: buffer expected"; - if (message.itemType != null && message.hasOwnProperty("itemType")) - switch (message.itemType) { - default: - return "itemType: enum value expected"; - case 0: - case 1: - case 2: - break; - } - if (message.status != null && message.hasOwnProperty("status")) - switch (message.status) { - default: - return "status: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - break; - } - if (message.errorMessage != null && message.hasOwnProperty("errorMessage")) - if (!$util.isString(message.errorMessage)) - return "errorMessage: string expected"; - return null; - }; - /** * Creates a RestoreResult message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -332351,6 +270089,8 @@ export const folder = $root.folder = (() => { RestoreResult.fromObject = function fromObject(object, long) { if (object instanceof $root.folder.v3.remove.RestoreResult) return object; + if (!$util.isObject(object)) + throw TypeError(".folder.v3.remove.RestoreResult: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -332451,13 +270191,13 @@ export const folder = $root.folder = (() => { object.status = options.enums === String ? "RESTORE_STATUS_UNKNOWN" : 0; object.errorMessage = ""; } - if (message.itemUid != null && message.hasOwnProperty("itemUid")) + if (message.itemUid != null && Object.hasOwnProperty.call(message, "itemUid")) object.itemUid = options.bytes === String ? $util.base64.encode(message.itemUid, 0, message.itemUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.itemUid) : message.itemUid; - if (message.itemType != null && message.hasOwnProperty("itemType")) + if (message.itemType != null && Object.hasOwnProperty.call(message, "itemType")) object.itemType = options.enums === String ? $root.folder.v3.remove.RestoreItemType[message.itemType] === undefined ? message.itemType : $root.folder.v3.remove.RestoreItemType[message.itemType] : message.itemType; - if (message.status != null && message.hasOwnProperty("status")) + if (message.status != null && Object.hasOwnProperty.call(message, "status")) object.status = options.enums === String ? $root.folder.v3.remove.RestoreStatus[message.status] === undefined ? message.status : $root.folder.v3.remove.RestoreStatus[message.status] : message.status; - if (message.errorMessage != null && message.hasOwnProperty("errorMessage")) + if (message.errorMessage != null && Object.hasOwnProperty.call(message, "errorMessage")) object.errorMessage = message.errorMessage; return object; }; @@ -332569,19 +270309,6 @@ export const folder = $root.folder = (() => { return writer; }; - /** - * Encodes the specified TrashcanRestoreResponse message, length delimited. Does not implicitly {@link folder.v3.remove.TrashcanRestoreResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof folder.v3.remove.TrashcanRestoreResponse - * @static - * @param {folder.v3.remove.ITrashcanRestoreResponse} message TrashcanRestoreResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TrashcanRestoreResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a TrashcanRestoreResponse message from the specified reader or buffer. * @function decode @@ -332624,52 +270351,6 @@ export const folder = $root.folder = (() => { return message; }; - /** - * Decodes a TrashcanRestoreResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof folder.v3.remove.TrashcanRestoreResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {folder.v3.remove.TrashcanRestoreResponse} TrashcanRestoreResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TrashcanRestoreResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a TrashcanRestoreResponse message. - * @function verify - * @memberof folder.v3.remove.TrashcanRestoreResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - TrashcanRestoreResponse.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.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.folder.v3.remove.RestoreResult.verify(message.results[i], long + 1); - if (error) - return "results." + error; - } - } - if (message.errorMessage != null && message.hasOwnProperty("errorMessage")) - if (!$util.isString(message.errorMessage)) - return "errorMessage: string expected"; - return null; - }; - /** * Creates a TrashcanRestoreResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -332681,6 +270362,8 @@ export const folder = $root.folder = (() => { TrashcanRestoreResponse.fromObject = function fromObject(object, long) { if (object instanceof $root.folder.v3.remove.TrashcanRestoreResponse) return object; + if (!$util.isObject(object)) + throw TypeError(".folder.v3.remove.TrashcanRestoreResponse: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -332691,7 +270374,7 @@ export const folder = $root.folder = (() => { throw TypeError(".folder.v3.remove.TrashcanRestoreResponse.results: array expected"); message.results = []; for (let i = 0; i < object.results.length; ++i) { - if (typeof object.results[i] !== "object") + if (!$util.isObject(object.results[i])) throw TypeError(".folder.v3.remove.TrashcanRestoreResponse.results: object expected"); message.results[i] = $root.folder.v3.remove.RestoreResult.fromObject(object.results[i], long + 1); } @@ -332727,7 +270410,7 @@ export const folder = $root.folder = (() => { for (let j = 0; j < message.results.length; ++j) object.results[j] = $root.folder.v3.remove.RestoreResult.toObject(message.results[j], options, q + 1); } - if (message.errorMessage != null && message.hasOwnProperty("errorMessage")) + if (message.errorMessage != null && Object.hasOwnProperty.call(message, "errorMessage")) object.errorMessage = message.errorMessage; return object; }; @@ -332848,19 +270531,6 @@ export const folder = $root.folder = (() => { return writer; }; - /** - * Encodes the specified RestoreRecord message, length delimited. Does not implicitly {@link folder.v3.remove.RestoreRecord.verify|verify} messages. - * @function encodeDelimited - * @memberof folder.v3.remove.RestoreRecord - * @static - * @param {folder.v3.remove.IRestoreRecord} message RestoreRecord message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RestoreRecord.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a RestoreRecord message from the specified reader or buffer. * @function decode @@ -332905,49 +270575,6 @@ export const folder = $root.folder = (() => { return message; }; - /** - * Decodes a RestoreRecord message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof folder.v3.remove.RestoreRecord - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {folder.v3.remove.RestoreRecord} RestoreRecord - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RestoreRecord.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a RestoreRecord message. - * @function verify - * @memberof folder.v3.remove.RestoreRecord - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - RestoreRecord.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.recordUid != null && message.hasOwnProperty("recordUid")) - if (!(message.recordUid && typeof message.recordUid.length === "number" || $util.isString(message.recordUid))) - return "recordUid: buffer expected"; - if (message.encryptedRecordKey != null && message.hasOwnProperty("encryptedRecordKey")) - if (!(message.encryptedRecordKey && typeof message.encryptedRecordKey.length === "number" || $util.isString(message.encryptedRecordKey))) - return "encryptedRecordKey: buffer expected"; - if (message.sourceFolderUid != null && message.hasOwnProperty("sourceFolderUid")) - if (!(message.sourceFolderUid && typeof message.sourceFolderUid.length === "number" || $util.isString(message.sourceFolderUid))) - return "sourceFolderUid: buffer expected"; - return null; - }; - /** * Creates a RestoreRecord message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -332959,6 +270586,8 @@ export const folder = $root.folder = (() => { RestoreRecord.fromObject = function fromObject(object, long) { if (object instanceof $root.folder.v3.remove.RestoreRecord) return object; + if (!$util.isObject(object)) + throw TypeError(".folder.v3.remove.RestoreRecord: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -333022,11 +270651,11 @@ export const folder = $root.folder = (() => { object.sourceFolderUid = $util.newBuffer(object.sourceFolderUid); } } - if (message.recordUid != null && message.hasOwnProperty("recordUid")) + if (message.recordUid != null && Object.hasOwnProperty.call(message, "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.encryptedRecordKey != null && message.hasOwnProperty("encryptedRecordKey")) + if (message.encryptedRecordKey != null && Object.hasOwnProperty.call(message, "encryptedRecordKey")) object.encryptedRecordKey = options.bytes === String ? $util.base64.encode(message.encryptedRecordKey, 0, message.encryptedRecordKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedRecordKey) : message.encryptedRecordKey; - if (message.sourceFolderUid != null && message.hasOwnProperty("sourceFolderUid")) + if (message.sourceFolderUid != null && Object.hasOwnProperty.call(message, "sourceFolderUid")) object.sourceFolderUid = options.bytes === String ? $util.base64.encode(message.sourceFolderUid, 0, message.sourceFolderUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.sourceFolderUid) : message.sourceFolderUid; return object; }; @@ -333136,19 +270765,6 @@ export const folder = $root.folder = (() => { return writer; }; - /** - * Encodes the specified RestoreFolder message, length delimited. Does not implicitly {@link folder.v3.remove.RestoreFolder.verify|verify} messages. - * @function encodeDelimited - * @memberof folder.v3.remove.RestoreFolder - * @static - * @param {folder.v3.remove.IRestoreFolder} message RestoreFolder message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RestoreFolder.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a RestoreFolder message from the specified reader or buffer. * @function decode @@ -333189,46 +270805,6 @@ export const folder = $root.folder = (() => { return message; }; - /** - * Decodes a RestoreFolder message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof folder.v3.remove.RestoreFolder - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {folder.v3.remove.RestoreFolder} RestoreFolder - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RestoreFolder.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a RestoreFolder message. - * @function verify - * @memberof folder.v3.remove.RestoreFolder - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - RestoreFolder.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.folderUid != null && message.hasOwnProperty("folderUid")) - if (!(message.folderUid && typeof message.folderUid.length === "number" || $util.isString(message.folderUid))) - return "folderUid: buffer expected"; - if (message.encryptedFolderKey != null && message.hasOwnProperty("encryptedFolderKey")) - if (!(message.encryptedFolderKey && typeof message.encryptedFolderKey.length === "number" || $util.isString(message.encryptedFolderKey))) - return "encryptedFolderKey: buffer expected"; - return null; - }; - /** * Creates a RestoreFolder message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -333240,6 +270816,8 @@ export const folder = $root.folder = (() => { RestoreFolder.fromObject = function fromObject(object, long) { if (object instanceof $root.folder.v3.remove.RestoreFolder) return object; + if (!$util.isObject(object)) + throw TypeError(".folder.v3.remove.RestoreFolder: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -333291,9 +270869,9 @@ export const folder = $root.folder = (() => { object.encryptedFolderKey = $util.newBuffer(object.encryptedFolderKey); } } - if (message.folderUid != null && message.hasOwnProperty("folderUid")) + if (message.folderUid != null && Object.hasOwnProperty.call(message, "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.encryptedFolderKey != null && message.hasOwnProperty("encryptedFolderKey")) + if (message.encryptedFolderKey != null && Object.hasOwnProperty.call(message, "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; return object; }; @@ -333418,19 +270996,6 @@ export const folder = $root.folder = (() => { return writer; }; - /** - * Encodes the specified TrashcanRestoreRequest message, length delimited. Does not implicitly {@link folder.v3.remove.TrashcanRestoreRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof folder.v3.remove.TrashcanRestoreRequest - * @static - * @param {folder.v3.remove.ITrashcanRestoreRequest} message TrashcanRestoreRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TrashcanRestoreRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** * Decodes a TrashcanRestoreRequest message from the specified reader or buffer. * @function decode @@ -333479,61 +271044,6 @@ export const folder = $root.folder = (() => { return message; }; - /** - * Decodes a TrashcanRestoreRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof folder.v3.remove.TrashcanRestoreRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {folder.v3.remove.TrashcanRestoreRequest} TrashcanRestoreRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TrashcanRestoreRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a TrashcanRestoreRequest message. - * @function verify - * @memberof folder.v3.remove.TrashcanRestoreRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - TrashcanRestoreRequest.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.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.folder.v3.remove.RestoreRecord.verify(message.records[i], long + 1); - if (error) - return "records." + error; - } - } - 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.v3.remove.RestoreFolder.verify(message.folders[i], long + 1); - if (error) - return "folders." + error; - } - } - if (message.targetFolderUid != null && message.hasOwnProperty("targetFolderUid")) - if (!(message.targetFolderUid && typeof message.targetFolderUid.length === "number" || $util.isString(message.targetFolderUid))) - return "targetFolderUid: buffer expected"; - return null; - }; - /** * Creates a TrashcanRestoreRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -333545,6 +271055,8 @@ export const folder = $root.folder = (() => { TrashcanRestoreRequest.fromObject = function fromObject(object, long) { if (object instanceof $root.folder.v3.remove.TrashcanRestoreRequest) return object; + if (!$util.isObject(object)) + throw TypeError(".folder.v3.remove.TrashcanRestoreRequest: object expected"); if (long === undefined) long = 0; if (long > $util.recursionLimit) @@ -333555,7 +271067,7 @@ export const folder = $root.folder = (() => { throw TypeError(".folder.v3.remove.TrashcanRestoreRequest.records: array expected"); message.records = []; for (let i = 0; i < object.records.length; ++i) { - if (typeof object.records[i] !== "object") + if (!$util.isObject(object.records[i])) throw TypeError(".folder.v3.remove.TrashcanRestoreRequest.records: object expected"); message.records[i] = $root.folder.v3.remove.RestoreRecord.fromObject(object.records[i], long + 1); } @@ -333565,7 +271077,7 @@ export const folder = $root.folder = (() => { throw TypeError(".folder.v3.remove.TrashcanRestoreRequest.folders: array expected"); message.folders = []; for (let i = 0; i < object.folders.length; ++i) { - if (typeof object.folders[i] !== "object") + if (!$util.isObject(object.folders[i])) throw TypeError(".folder.v3.remove.TrashcanRestoreRequest.folders: object expected"); message.folders[i] = $root.folder.v3.remove.RestoreFolder.fromObject(object.folders[i], long + 1); } @@ -333617,7 +271129,7 @@ export const folder = $root.folder = (() => { for (let j = 0; j < message.folders.length; ++j) object.folders[j] = $root.folder.v3.remove.RestoreFolder.toObject(message.folders[j], options, q + 1); } - if (message.targetFolderUid != null && message.hasOwnProperty("targetFolderUid")) + if (message.targetFolderUid != null && Object.hasOwnProperty.call(message, "targetFolderUid")) object.targetFolderUid = options.bytes === String ? $util.base64.encode(message.targetFolderUid, 0, message.targetFolderUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.targetFolderUid) : message.targetFolderUid; return object; };